Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Register like Facebook

6 years 4 months ago
  • André's Avatar
    Topic Author
  • André
  • Offline
  • Fresh Boarder
  • Posts: 31
  • Thank you received: 1
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

Is it possible on the frontpage a register view like facebook?

(See attachment).

Thanks for your quick help...

Attachments:
6 years 4 months ago
Licenses:
JomSocial Active

Registering on JomSocial is slightly more complex than FB because of custom fields so 2(3) stage account creation is needed. If you want to display first step of registration to unregistered users take a look at Flat template:
js-flat.demo.joomlart.com/index.php
You can modify
...\components\com_community\templates\Flat\layouts\frontpage\guest.php
and insert:

			$lang = JFactory::getLanguage();
			$lang->load('com_community', JPATH_ADMINISTRATOR);

			if (!class_exists('CommunityRegisterController')) {
			require_once (JPATH_COMPONENT .DS. 'controllers' .DS. 'register.php');
			}

			$controller = new CommunityRegisterController();
			$controller->execute('register');
instead of <form class="joms-form joms-js-form--login" ... </form> block.
This modification will load first register step instead of login form. That means that you need to implement login form in other location just like FB solution.

6 years 4 months ago
  • André's Avatar
    Topic Author
  • André
  • Offline
  • Fresh Boarder
  • Posts: 31
  • Thank you received: 1
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

Thanks - i have not your Flat template - i've socialize... is it also possible in socialize?

And i not mean the login - i mean the "Register" Step...

thanks for your quick answer...

6 years 4 months ago
Licenses:
JomSocial Active

Sure, modify same file:
...\components\com_community\templates\YOUR_TEMPLATE\layouts\frontpage\guest.php
and put same code:

			$lang = JFactory::getLanguage();
			$lang->load('com_community', JPATH_ADMINISTRATOR);
 
			if (!class_exists('CommunityRegisterController')) {
			require_once (JPATH_COMPONENT .DS. 'controllers' .DS. 'register.php');
			}
 
			$controller = new CommunityRegisterController();
			$controller->execute('register');
where is needed.
Since Socialize looks like default jomsocial template the part of guest.php that needs to be modified is in section
<div class="joms-landing__cover"> ... </div> that is responsible for displaying landing image (<div class="joms-landing__image" ... </div>), landing text (<div class="joms-landing__text"> ... </div>) and register button (<div class="joms-landing__signup"> ... </div>). Each of these sections if inside an [if ... endif] loop since sections can be enabled/disabled from settings.
Always make backups of file that you modify so you can revert changes to default when/if error is made.
Inserting additional <form> will mess up that section so some css modifications will be needed.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW