By Richard on Monday, 02 May 2016
Posted in Technical Issues
Replies 12
Likes 0
Views 686
Votes 0
The dropdown menu register links for EasyBlog, EasyDiscuss, Komento and EasySocial go to the full registration page by default (../menuname/registration) and I make the following adjustments to make the link go to the short/quick registration form (../menuname/login) by changing the word 'registration' to 'login' in the following 5 files:

At "$link = FRoute::registration();" for
/components/com_easysocial/themes/elegant/toolbar/default.login.php - at line 36
/components/com_komento/helpers/login.php - at line 51

At "<div class="popbox-dropdown__meta"><?php echo JText::sprintf('COM_EASYDISCUSS_TOOLBAR_NEW_USERS', '<a href="'. ED::getRegistrationLink() .'">' . JText::_('COM_EASYDISCUSS_TOOLBAR_REGISTER') . '</a>');?></div>" for
/components/com_easydiscuss/themes/wireframe/toolbar/default.php - at line 308

At "<a href="/<?php echo EB::getRegistrationLink();?>" class="float-r"><?php echo JText::_( 'COM_EASYBLOG_REGISTER' );?></a>" for
/components/com_easyblog/themes/wireframe/toolbar/default.php - at line 234

At "<a href="/<?php echo EB::getRegistrationLink();?>" class="btn btn-block btn-success"><?php echo JText::_('COM_EASYBLOG_CREATE_AN_ACCOUNT'); ?> <i class="fa fa-angle-right"></i></a>"
/components/com_easyblog/themes/wireframe/login/default.php - at line 59

I need to make the changes again every time after an update to a new version, is there an override option I can use instead to only require making the change once?

It would be nice to have an Yes/No "Go to Login?" option in Admin for each component to choose between going to Registration and Login from the toolbar dropdown Registration link.
You should create template overrides if you are modifying the theme files. You can refer to the guide here, http://stackideas.com/docs/easyblog/administrators/customizations/template-overriding
·
Monday, 02 May 2016 14:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark, all fine now, I had tried the theme overrides but could not get them to work before as I was including the /themes/wireframe/ (or similar) folders for some reason (being dozy probably.....) and I used the wireframe route as per guide which reduced the files needed to adjust and made things simpler.

For anyone reading the thread I changed registration to login at "$link = FRoute::registration();" for:

..templatename/html/com_easyblog/login/default.php - at line 59 (using wireframe theme file)*
..templatename/html/com_easydiscuss/toolbar/default.php - at line 308 (using wireframe theme file)**
..templatename/html/com_easysocial/toolbar/default.login.php - at line 36 (using wireframe theme file)
..templatename/html/com_komento/comment/form/login.php - at line 67 (using Kuro theme file)

*I did not need to make the other EasyBlog adjustment (line 234) in my initial post as this covered both.

**I noticed the link path that appears at the bottom of the screen when you hover over the link, instead of showing /login (as the EB/ES/K options do), had the following:

/component/users/?view=login&itemid=733

The link works, I just wondered if this is the correct path it is using or should I have adjusted a different file?
·
Monday, 02 May 2016 18:12
·
0 Likes
·
0 Votes
·
0 Comments
·
I am not sure if I understand you here but based on your url, it should really be Itemid instead of itemid .
·
Monday, 02 May 2016 23:48
·
0 Likes
·
0 Votes
·
0 Comments
·
It is Itemid sorry, but what I mean is if I hover over Register for the EasyBlog, EasySocial and Komento links, the bar that always pops up at the bottom of my screen for links shows mywebsite/login but for the EasyDiscuss link, the path shown is mywebsite//component/users/?view=login&Itemid=733 instead of /login.

It links correctly but I just wondered why it used a different path or should it not be /login like the other links?

The image shows where I hover over 'register for an account' in the EasyDiscuss link.
·
Tuesday, 03 May 2016 00:01
·
0 Likes
·
0 Votes
·
0 Comments
·
mywebsite/component not //component.....not my day today....
·
Tuesday, 03 May 2016 00:04
·
0 Likes
·
0 Votes
·
0 Comments
·
You are linking it wrongly I guess, if you want it to go to EasySocial, it should be:

·
Tuesday, 03 May 2016 00:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Maybe I am in the wrong file for the link (attached, see line 308).

.templatename/html/com_easydiscuss/toolbar/default.php - (using wireframe theme file) at line 308 shows
<a href="'. ED::getRegistrationLink() .'">' . JText::_('COM_EASYDISCUSS_TOOLBAR_REGISTER')
and I change Registration to Login.

It does go to the right place, just a different route, it was the only file i could find with the Registration code to change. I expected FRoute::registration(); but this was the only Registration word in the file.
·
Tuesday, 03 May 2016 00:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Perhaps you did not configure EasyDiscuss to use EasySocial as a login provider. Go to settings > general > login & authentication. Change the login provider to EasySocial
·
Tuesday, 03 May 2016 00:37
·
0 Likes
·
0 Votes
·
0 Comments
·
EasyDiscuss is configured for EasySocial so not that...

It is the ../components/com_easydiscuss/themes/wireframe/toolbar/default.php file I am using, is that the right one to copy for an override and change the Registration path?

I didn't mean this to be as long Mark, especially on a Bank Holiday, sorry, it is like a Jigsaw Puzzle that is finished and looks fine but something in the background just doesn't look right, as if a piece fits but shouldn't be there....
·
Tuesday, 03 May 2016 00:59
·
0 Likes
·
0 Votes
·
0 Comments
·
If you try to revert all your files, see if the links is correct. If it is, then it is something wrong with your override.
·
Tuesday, 03 May 2016 01:11
·
0 Likes
·
0 Votes
·
0 Comments
·
The original links are correct (/registration) and the other overrides show /login so there is something wrong with this one.

I will take a look and find it, pouring rain outside so seems like a good alternative with a glass of wine (perhaps..)

Thank you Mark, nothing else you can do, I will update the thread with a closing post when I find it.
·
Tuesday, 03 May 2016 01:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Alright, keep us updated then.
·
Tuesday, 03 May 2016 13:19
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post