Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Release] User CP or Register Link Details »»
[Release] User CP or Register Link
Version: 1.00, by SaintDog SaintDog is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-14-2002 Last Update: Never Installs: 0
 
No support by the author.

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):



Non-Registered Member (Logged Out):

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-17-2002, 03:57 PM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #23  
Old 02-03-2003, 02:01 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by sonic
do i just replace top_profile.gif with $register or the whole image line?

do u get what i am saying?
I got kinda confused there too, until I found out the obvious when I saw two user cp buttons.

Instead of
Quote:
<a href="usercp.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a>
<a href="register.php?s=$session[sessionhash]&action=signup"><img src="{imagesfolder}/top_register.gif" alt="Registration is free!" border="0"></a>
Replace it with $register.

*Clicks Install*
Reply With Quote
  #24  
Old 04-04-2003, 02:55 PM
WoodiE WoodiE is offline
 
Join Date: May 2002
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #25  
Old 04-04-2003, 10:18 PM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you show your modified code of the mod here please?
Reply With Quote
  #26  
Old 04-04-2003, 10:46 PM
WoodiE WoodiE is offline
 
Join Date: May 2002
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

// 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
Reply With Quote
  #27  
Old 04-08-2003, 01:42 PM
Hermit Hermit is offline
 
Join Date: Sep 2002
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
if ($bbuserinfo[usergroupid]==1) { // Non-Registered
$register = "<a href=\"http://www.mydomain.com/forum/register.php?s=Array%5Bsessionhash%5D&action=signup\">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
Reply With Quote
  #28  
Old 05-02-2003, 02:36 PM
imported_ogden2k's Avatar
imported_ogden2k imported_ogden2k is offline
 
Join Date: Apr 2003
Location: Maine, USA
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, works great!
Reply With Quote
  #29  
Old 05-11-2003, 11:23 PM
imported_DMC imported_DMC is offline
 
Join Date: Oct 2002
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks........!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04396 seconds
  • Memory Usage 2,284KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete