If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Sideboxes / adding extra link to Login box

adding extra link to Login box

Started by gilcnx on 2 Mar 2013, 9:50 AM · Views: 1,084

Results 1 to 2 of 2
2 Mar 2013, 9:50 AM
#1
gilcnx avatar

gilcnx

New Zenner

Join Date:
Jun 2011
Location:
chiangmai
Posts:
3
Plugin Contributions:
0

adding extra link to Login box

Hi

I'm having trouble adding an extra link to addon : Login Box v1.6

When I login to my account the sidebox shows my account, shopping cart and log out. I'm trying to add 2 more pages which doesn't not exist yet but must be created, but I ain't any idea how to do it.

If anyone understands how to do it, I would appreciate your help. Thank you

PS: an "England forever" member ask the same question post in may 2010 and finalize the answer itself but didn't share with the community.
Unfortunatly for all of us

2 Mar 2013, 10:12 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: adding extra link to Login box

Go to the following file in Login Box plugin:

/includes/templates/template_default/sideboxes/tpl_login_box.php

FIND:

$content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . LOGIN_BOX_LOGOFF . '</a></li>';
$content .= '</ul>';

You can ADD your own URL's below the last one here:

$content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . LOGIN_BOX_LOGOFF . '</a></li>';
$content .= '<li><a class="loginBoxLinks" href="YOUR-FIRST-HYPERLINK URL HERE">First Link Name</a></li>';
$content .= '<li><a class="loginBoxLinks" href="YOUR-SECOND-HYPERLINK URL HERE">Second Link Name</a></li>';
$content .= '</ul>';

20 years a Zencart User