How to change teh Join button to another page

Hello,

 

How can i change the path or te page from the button "join" in the upper section next to login.

Where can i find the links????

When you push  the button "join" then you go to join.php bur i want to go to another page.

 

Gr Rob

Quote · 8 Sep 2010

thats a strange request...you don't want people to join? what type of page are you talking about..

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 8 Sep 2010

I want lots of users but first the have to visit another page before the sign in page

Quote · 8 Sep 2010

This was asked and answered in the past (by me). I recommend you search, since I will be spending the next five minutes waiting for the search page to show up on my dial up.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 8 Sep 2010

From a private message (Note: The second half involves changing the URI of the logo. You can ignore this.):

 

Alright, this is what I've managed to track down.

To change the URI of the join button, edit the login_join.html file under ./templates/base/ and look for the following:

<input class="form_input_submit bigJoinButton submit" type="button" value="<bx_text:_Join />" name="join" onclick="window.open ('<bx_url_root />join.php','_self');" />

Change the value bx_url_root to point to the needed directory/file. For example, if you wanted the new file to be join.html, it would look like:

<input class="form_input_submit bigJoinButton submit" type="button" value="<bx_text:_Join />" name="join" onclick="window.open ('<bx_url_root />join.html','_self');" />

Once you have finished editing the file, save your changes and clear the ./cache/ and ./cache_public/ directories, leaving the .htaccess file intact.

To change the URI of the logo, edit the design.inc.php file under ./inc/ and look for the following:

function getMainLogo() {
global $dir, $site;

$sFileName = getParam('sys_main_logo');
if(!file_exists($dir['mediaImages'] . $sFileName))
return '';

return '<a href="' . BX_DOL_URL_ROOT . '"><img src="' . $site['mediaImages'] . $sFileName . '" class="mainLogo" alt="logo" /></a>';;
}

Change the value ' . BX_DOL_URL_ROOT . ' to point to the needed file/directory. For example, if wanted the new location to be http://www.website.com/newhomepage/, it would look like:

function getMainLogo() {
global $dir, $site;

$sFileName = getParam('sys_main_logo');
if(!file_exists($dir['mediaImages'] . $sFileName))
return '';

return '<a href="http://www.website.com/newhomepage/"><img src="' . $site['mediaImages'] . $sFileName . '" class="mainLogo" alt="logo" /></a>';;
}

Notice that I removed the two ' symbols, leaving only two " symbols.

Once you have finished editing the file, save your changes and clear the ./cache/ and ./cache_public/ directories, leaving the .htaccess file intact.

Note, that these changes have not been tested and may not work. Please let me know if you have any issues.
I then realized that I forgot a file, explained here:

Alright, I found one more files for you to modify (and there may be more).

Edit the BxBaseMenu.php file found in ./templates/base/scripts and look for:

else {

$sAddons = _t('_Hello member', _t('_sys_breadcrumb_guest'));

$sAddons .= ' <a href="' . $this->sSiteUrl . 'join.php">' . _t('_sys_breadcrumb_join') . '</a>';

$sAddons .= ' <a href="javascript:void(0)" onclick="showPopupLoginForm(); return false;">' . _t('_sys_breadcrumb_login') . '</a>';

}

Change the sSiteUrl value. For example, to have it point to newjoin.html, it would look like:

else {

$sAddons = _t('_Hello member', _t('_sys_breadcrumb_guest'));

$sAddons .= ' <a href="' . $this->sSiteUrl . 'newjoin.html">' . _t('_sys_breadcrumb_join') . '</a>';

$sAddons .= ' <a href="javascript:void(0)" onclick="showPopupLoginForm(); return false;">' . _t('_sys_breadcrumb_login') . '</a>';

}

After that's done, clear your cache directories as described before.

This was written for an earlier version, but should still work.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 8 Sep 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.