I need the assistance of a guru to assist me with a modification of OSSN index page (GoBlue theme). I would like to remove the registration form on the index page and add it as a link below login and Reset Password links.
Thanks for your help
Dear all.
I am trying to implement what is discussed in this thread but i find it quite confusing because I am not sure what to do in what order. Elements of discussion are all over the place and it's hard to precisely know what to patch. Some help would be much appreciated.
Great and thanks. I will follow instructions as highlighted.
Now in: system/plugins/default/pages/contents/index.php Add a button between login and loss pass:
<a href="<?php echo ossn_site_url('register');?>" class="btn btn-danger"><?php echo ossn_print('create:account'); ?></a>
This one is red color, better looking! :)
register.php should be like this:
<?php
/**
* Open Source Social Network
*
* @package (softlab24.com).ossn
* @author OSSN Core Team <[email protected]>
* @copyright (C) SOFTLAB24 LIMITED
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
* @link https://www.opensource-socialnetwork.org/
*/
?>
<div class="row">
<div class="col-md-6 col-center ossn-page-contents">
<?php
$contents = ossn_view_form('signup', array(
'id' => 'ossn-home-signup',
'action' => ossn_site_url('action/user/register')
));
$heading = "<p>".ossn_print('its:free')."</p>";
echo ossn_plugin_view('widget/view', array(
'title' => ossn_print('create:account'),
'contents' => $heading.$contents,
));
?>
</div>
</div>
In: system/plugins/default/pages/contents/index.php You can now remove registration form, As there will be a link to Registration page:
<div class="col-md-6">
<?php
$contents = ossn_view_form('signup', array(
'id' => 'ossn-home-signup',
'action' => ossn_site_url('action/user/register')
));
$heading = "<p>".ossn_print('its:free')."</p>";
echo ossn_plugin_view('widget/view', array(
'title' => ossn_print('create:account'),
'contents' => $heading.$contents,
));
?>
</div>
In /system/plugins/default/pages/contents/user
Create a php file called "register.php". I cannot put the code here as there is a limit. So
Copy entire /system/plugins/default/pages/contents/index.php and place it in register.php you created
Now in: system/plugins/default/pages/contents/index.php Add a button between login and loss pass:
<a href="<?php echo ossn_site_url('register');?>" class="btn btn-warning"><?php echo ossn_print('create:account'); ?></a>
Write up "Create separate Registration Page"
Open up /libraries/ossn.lib.initialize.php
Find:
ossn_register_action('resetlogin', ossn_route()->actions . 'user/resetlogin.php');
After add:
ossn_register_action('register', ossn_route()->actions . 'user/register.php');
Find:
ossn_register_page('resetlogin', 'ossn_user_pagehandler');
After add:
ossn_register_page('register', 'ossn_user_pagehandler');
Find:
case 'login':
if(ossn_isLoggedin()) {
Add Before:
case 'register':
if(ossn_isLoggedin()) {
redirect('home');
}
$title = ossn_print('create:account');
$contents['content'] = ossn_plugin_view('pages/contents/user/register');
$content = ossn_set_page_layout('startup', $contents);
echo ossn_view_page($title, $content);
break;
Save and close.
@Roman, When will your write up be ready? - would like to use your solution
I did it. At first I tryd to use Custom Pages. Damn that took forever and Even with HelloWorld I could not change echo"Hello World" to redirect me to pages/contents/register_page. That shit is messed up in there completly. They need a new write up specifically for 'WHAT TO DO WITH THAT HELLO WORLD"!
Anyway,
So I Implement the Register Page as same as the Login and Reset password pages appear. Without plugins or any other addons. Now That I have it working, I will start on a write up for other people.
@Roman, much appreciated if you can share details with me after page has been created. Thanks
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)