How to add buttons to "your account" pop up box

Advanced and professional portal news Joomla template with community features and various content display layouts.
GK User
Sun Jan 27, 2013 12:39 pm
Hello

I want to add two buttons to "your account" pop up box (where is logout button placed")

That's will be buttons with "your profile" and "edit profile"

As at a photo.
your account.JPG


How can I do this? It's possible?

regards!
User avatar
Fresh Boarder

Konrad M
Mon Jan 28, 2013 10:48 am
Hi,
you have to add links to menu showed for registered users. Then you will need to style this links as same way as logout button.
User avatar

teitbite
Mon Jan 28, 2013 10:48 am
Hi

Popup is displaing mod_login module, so please simply add Your buttons into this module template. Please check if this module got an override in /html/mod_login. If override exists do Your modification there, If not try to create on copying template file form module itself.
User avatar
Moderator

GK User
Wed Jan 30, 2013 8:39 am
Thank's, but it's not so easy for me.

In module mod_login is one file - default.php Which rule answers for button, how adds him to new position, and how add links for this button ?
And I must do something in the template of site?

Regards!
User avatar
Fresh Boarder

teitbite
Wed Jan 30, 2013 1:09 pm
Hi

That's really simple. The file You need to modifie is /html/mod_login/default.php just under the line 22 which looks like that:

Code: Select all
            <input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGOUT'); ?>" />


please add new buttons linking to where You want it. Example:

Code: Select all
<a href="LINK_TO_A_PLACE_YOU_WANT"><input type="button" value="TEXT_ON_THE_BUTTON" /></a>
User avatar
Moderator

GK User
Fri Feb 22, 2013 11:56 am
I tried to modify file default.php in many ways but no effect

I have still the same :
logout button.JPG
User avatar
Fresh Boarder

Konrad M
Fri Feb 22, 2013 1:31 pm
Please send me Private Message with some test account to check it. Remember add link to this topic too.
User avatar

Konrad M
Fri Feb 22, 2013 5:18 pm
Please go to css/joomla.css and find:
Code: Select all
.button, button, button.button, input[type="submit"], input[type="button"], .pagenav-next a, .pagenav-prev a, .k2ReadMore, div.mobileSwitch > a, .custom_plupload_buttons a {

change it to:

Code: Select all
.button, button, button.button, input[type="submit"], input[type="button"], .pagenav-next a, .pagenav-prev a, .k2ReadMore, div.mobileSwitch > a, .custom_plupload_buttons a, .gkPopupWrap #login-form + ul.menu li a {

Then please go to template settings. Here in font section add this selector to Headers selectors:
Code: Select all
.gkPopupWrap #login-form + ul.menu li a

Then please add to override.css
Code: Select all
.gkPopupWrap #login-form + ul.menu li a {
height:27px !important;
}
User avatar

GK User
Mon Feb 25, 2013 10:58 am
Thanks, now works great!

Only font bebasneue was not showing but I add one sentence to overrride.css and everythings is OK

.gkPopupWrap #login-form + ul.menu li a {
font-family: bebasneue;
}

Regards!
User avatar
Fresh Boarder


cron