I would like to make a website without a JOIN possibility, just a LOGIN.
Searched all files, but can't find the one where I can remove the JOIN button.
Can someone advise on this ?
|
I provided an answer to this question a while back. I'll go dig it up now. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
I'll do this in parts as I dig it up.
To remove the large join button from the promo banner area, as well as the smaller join button visible when navigating through certain pages, edit the login_join.html file under ./templates/base/ on line 4:
<div class="sys_tm_actions"> <div class="input_wrapper input_wrapper_input_set"> <div class="button_wrapper" style="margin-right: 14px"> <input class="form_input_submit bigJoinButton submit" type="button" value="<bx_text:_Join />" name="join" alt="window.open ('<bx_url_root />join.php','_self');" /> <div class="button_wrapper_close"> </div> </div><div class="button_wrapper"> <input class="form_input_submit bigLoginButton submit" type="button" value="<bx_text:_Login />" name="login" alt="showPopupLoginForm(); return false;" /> <div class="button_wrapper_close"> </div> </div> </div> </div>
This is the affected area, shown in red:
<div class="sys_tm_actions"> <div class="input_wrapper input_wrapper_input_set"> <div class="button_wrapper" style="margin-right: 14px"> <input class="form_input_submit bigJoinButton submit" type="button" value="<bx_text:_Join />" name="join" alt="window.open ('<bx_url_root />join.php','_self');" /> <div class="button_wrapper_close"> </div> </div><div class="button_wrapper"> <input class="form_input_submit bigLoginButton submit" type="button" value="<bx_text:_Login />" name="login" alt="showPopupLoginForm(); return false;" /> <div class="button_wrapper_close"> </div> </div> </div> </div>
Remove the red text, changing it to the following:
<div class="sys_tm_actions"> <div class="input_wrapper input_wrapper_input_set"> <div class="button_wrapper" style="margin-right: 14px"> <div class="button_wrapper_close"> </div> </div><div class="button_wrapper"> <input class="form_input_submit bigLoginButton submit" type="button" value="<bx_text:_Login />" name="login" alt="showPopupLoginForm(); return false;" /> <div class="button_wrapper_close"> </div> </div> </div> </div>
Save your changes and empty the ./cache/ and ./cache_public/ directories, keeping the .htaccess file in the former directory remaining.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
To remove the join link in the breadcrumbs area, edit the BxBaseMenu.php file under ./templates/base/scripts/ on line 900:
//--- Get additional links(right side) ---//
$sAddons = "";
if(isMember()) {
$aProfile = getProfileInfo();
$sAddons = _t('_Hello member', $aProfile['NickName']);
$sAddons .= ' <a href="' . $this->sSiteUrl . 'member.php">' . _t('_sys_breadcrumb_account') . '</a>';
$sAddons .= ' <a href="' . $this->sSiteUrl . 'logout.php">' . _t('_sys_breadcrumb_logout') . '</a>';
}
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>';
}
return '<div class="breadcrumb"><div class="bc_open"> </div>' . $sPathLinks . '<div class="bc_addons">' . $sAddons . '</div><div class="bc_close"> </div></div>';
}
}
?>
This is the affected area, shown in red:
//--- Get additional links(right side) ---//
$sAddons = "";
if(isMember()) {
$aProfile = getProfileInfo();
$sAddons = _t('_Hello member', $aProfile['NickName']);
$sAddons .= ' <a href="' . $this->sSiteUrl . 'member.php">' . _t('_sys_breadcrumb_account') . '</a>';
$sAddons .= ' <a href="' . $this->sSiteUrl . 'logout.php">' . _t('_sys_breadcrumb_logout') . '</a>';
}
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>';
}
return '<div class="breadcrumb"><div class="bc_open"> </div>' . $sPathLinks . '<div class="bc_addons">' . $sAddons . '</div><div class="bc_close"> </div></div>';
}
}
?>
Remove the red text, changing it to the following:
//--- Get additional links(right side) ---//
$sAddons = "";
if(isMember()) {
$aProfile = getProfileInfo();
$sAddons = _t('_Hello member', $aProfile['NickName']);
$sAddons .= ' <a href="' . $this->sSiteUrl . 'member.php">' . _t('_sys_breadcrumb_account') . '</a>';
$sAddons .= ' <a href="' . $this->sSiteUrl . 'logout.php">' . _t('_sys_breadcrumb_logout') . '</a>';
}
else {
$sAddons = _t('_Hello member', _t('_sys_breadcrumb_guest'));
$sAddons .= ' <a href="javascript:void(0)" onclick="showPopupLoginForm(); return false;">' . _t('_sys_breadcrumb_login') . '</a>';
}
return '<div class="breadcrumb"><div class="bc_open"> </div>' . $sPathLinks . '<div class="bc_addons">' . $sAddons . '</div><div class="bc_close"> </div></div>';
}
}
?>
Save your changes and empty the ./cache/ and ./cache_public/
directories, keeping the .htaccess file in the former directory
remaining.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
I almost forgot: have fun. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Hey Magnussoft,
Thanks for your help.
As a matter of fact, I did make the changes you posted here, but I forgot to empty my cache and cache_public :-)
Nevertheless, the right side of the button still shows on the index page.
Please check this on http://www.onderweg.be/dating/datingsite/
|
Hey Magnussoft,
Thanks for your help.
As a matter of fact, I did make the changes you posted here, but I forgot to empty my cache and cache_public :-)
Nevertheless, the right side of the button still shows on the index page.
Please check this on http://www.onderweg.be/dating/datingsite/
I accidentally left a part of the code still in. All you need to do is remove the following line below the other line which was removed from the first tutorial:
<div class="button_wrapper_close"> </div>
Once this line is removed, follow the standard cache emptying procedures and have fun.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
|
Dang tootin skippy! Now I don't gotta fix that pesky ajax problem. Always liked Comet better anyways!
I'm jazzed. I got several major issues solved on my site today. Thanks Y'all fer puttin up with me!
http://towtalk.net ... Hosted by Zarconia.net! |
How do I get the file .htaccess back? I deleted by mistake from the cache_public directory. I feel so stupid for doing that. |
How do I get the file .htaccess back? I deleted by mistake from the cache_public directory. I feel so stupid for doing that.
You can download a fresh copy of Dolphin from here and upload the file to your server. I assume you meant cache/ and not cache_public/, as the .htaccess file is only in the former directory.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Thank you This is very helpful. Good job
www.cirqueperformers.net
|
I'll do this in parts as I dig it up.
To remove the large join button from the promo banner area, as well as the smaller join button visible when navigating through certain pages, edit the login_join.html file under ./templates/base/ on line 4:
<div class="sys_tm_actions"> <div class="input_wrapper input_wrapper_input_set"> <div class="button_wrapper" style="margin-right: 14px"> <input class="form_input_submit bigJoinButton submit" type="button" value="<bx_text:_Join />" name="join" alt="window.open ('<bx_url_root />join.php','_self');" /> <div class="button_wrapper_close"> </div> </div><div class="button_wrapper"> <input class="form_input_submit bigLoginButton submit" type="button" value="<bx_text:_Login />" name="login" alt="showPopupLoginForm(); return false;" /> <div class="button_wrapper_close"> </div> </div> </div> </div>
This is the affected area, shown in red:
<div class="sys_tm_actions"> <div class="input_wrapper input_wrapper_input_set"> <div class="button_wrapper" style="margin-right: 14px"> <input class="form_input_submit bigJoinButton submit" type="button" value="<bx_text:_Join />" name="join" alt="window.open ('<bx_url_root />join.php','_self');" /> <div class="button_wrapper_close"> </div> </div><div class="button_wrapper"> <input class="form_input_submit bigLoginButton submit" type="button" value="<bx_text:_Login />" name="login" alt="showPopupLoginForm(); return false;" /> <div class="button_wrapper_close"> </div> </div> </div> </div>
Remove the red text, changing it to the following:
<div class="sys_tm_actions"> <div class="input_wrapper input_wrapper_input_set"> <div class="button_wrapper" style="margin-right: 14px"> <div class="button_wrapper_close"> </div> </div><div class="button_wrapper"> <input class="form_input_submit bigLoginButton submit" type="button" value="<bx_text:_Login />" name="login" alt="showPopupLoginForm(); return false;" /> <div class="button_wrapper_close"> </div> </div> </div> </div>
Save your changes and empty the ./cache/ and ./cache_public/ directories, keeping the .htaccess file in the former directory remaining.
In order to do the same on Dolphin 7.1.x just got to the same file: login_join.html file under ./templates/base/ and deactivate the code in red by adding the <!-- and --> as it shown:
<div class="sys_tm_login_join">
<!--<button class="bx-btn bx-btn-primary" onclick="window.open ('<bx_url_root />join.php','_self');">
<bx_text:_Join />
</button>
<button class="bx-btn" onclick="showPopupLoginForm(); return false;" >
<bx_text:_Login />
</button> -->
</div>
It's quite easy but I just posted because the code for the login_join.html file has been modified on D7.1.x versions :)
P.D.: For the rest of steps please follow the actions posted by Nathan Paton: clean cache, etc...
|