![]() |
[Release] User CP or Register Link
Author: SaintDog
Description: This will teach you how to make your navigation so that non-registered users do not see the user cp link and where registered users do not see the register link (frees up navigation space). Screenshots below: Registered Member (Logged In): http://www.vbulletintemplates.com/mo...s/loggedin.gif Non-Registered Member (Logged Out): http://www.vbulletintemplates.com/mo.../loggedout.gif |
Thanks! Im going to be busy tonight will all of these new hacks to install!
|
I think that now the top link for the user cp is top_profile.gif well the default anyway also might wanna include telling them to put the $register where they would want the image to appear on the top links other than that great idea
|
I have updated the file to reflect the changes, it will now state where to place register as well as what this hack does in the downloadable file.
- SaintDog |
Sounds good; nice job SD ! :D
|
Another great one!
|
how would I do this if I wanted a rollover?
|
Edit: Look down a few posts for the attachement :)
Thats what i used for http://forums.cybersportsnet.net |
Please use attachements :)
Regards, - SaintDog |
Roll-Over Edit
|
yeh man wasn't sure lol i noticed it really screwed up the design afterwards. sorry bout that
|
Installed!
Works great, I finally have the space again to add my statistics button to the top again. Fnx for sharing! |
thanks for the rollover mod :D worked great
|
I have a question, what file do i apply this to?
Now, replace top_profile.gif & top_register.gif with: $register Excuse me for my ignorance. Thanks, WoodiE |
in the header template i thnk
|
That would be correct :)
|
There are 2 links in the header template representing those two buttons, remove both and instead of those 2 codes, put $register there, then it will parse accordingly the proper button when a user/guest logs on to the site.
It did indeed a bit confusing, but it is quite logical. [button1] [button2] = visual <a href= ..> etc for both buttons = back-end code replace both buttons, because $register should be there, and $register means: either button1 or button2, and will put the right code in the right place and will show therefor the right button. |
do i just replace top_profile.gif with $register or the whole image line?
do u get what i am saying? |
Very cool!!! I was wondering how to do this.
|
Where have I to replace top_profile.gif & top_register.gif with $register?
Tnx in advance for your support, Nomad. |
Oops. I missed this one, and modified the other one you released to do this....so I will go and "install" this one too. Thanks alot!
|
Quote:
Instead of Quote:
*Clicks Install* |
I dont use Images for my register / profile links. I use text links. So what i did was edit your mod to use my text links instead of images and I receive this error:
Parse error: parse error, unexpected T_STRING in /home/rcnitro/public_html/forum/global.php(309) : eval()'d code on line 3 Is there anyway this can be fixed? -WoodiE |
Can you show your modified code of the mod here please?
|
// Show User CP or Register
if ($bbuserinfo[usergroupid]==1) { // Non-Registered $register = "<a href="http://www.mydomain.com/forum/register.php?s=Array%5Bsessionhash%5D&action=signu p">Register</a>"; } else { //Everyone else/Registered users $register = "<a href="http://www.mydomain.com/forum/usercp.php?s=Array%5Bsessionhash%5D">Profile</a>"; } //End Show User CP or Register Code Thats my edited version. -WoodiE |
You must use a "\" before your quotation marks in your phpinclude template.
Copy and paste the following in it's place. Code:
// Show User CP or Register |
Awesome, works great!
|
Thanks........!! :)
|
All times are GMT. The time now is 04:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|