Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 08-16-2002, 10:53 AM
ExAvIoUr ExAvIoUr is offline
 
Join Date: Jan 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default something easy, yet hard for me..

hey.. how do i make it. so if a guest visits my board they See the "Register" image instead of the "UserCP" image i have.

and once they become a member of the site, they see "UserCP" image instead of the "Register" image.. all in the same place..

cheers


becuase if i accomodate both of the buttons.. then it looks real bad..

thanks again
Reply With Quote
  #2  
Old 08-16-2002, 11:21 AM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ExAvIoUr
hey.. how do i make it. so if a guest visits my board they See the "Register" image instead of the "UserCP" image i have.

and once they become a member of the site, they see "UserCP" image instead of the "Register" image.. all in the same place..

cheers


becuase if i accomodate both of the buttons.. then it looks real bad..

thanks again
There is a hack for this...do a search for it...
Reply With Quote
  #3  
Old 08-16-2002, 11:50 AM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Vincent]Login to Admin CP, go to Styles > Modify > Defualt > phpinclude at the top.
Add this into it:
PHP Code:
if ($bbuserinfo['usergroupid'] == 1) {
$regcpbutton "<img src=\"images/top_register.gif\" alt=\"Registeration is free! Join now!\" border=\"0\">;
} else {
$regcpbutton = "<img src=\\"images/top_profile.gif\" alt=\"Manage your forum preferences!\" border=\"0\">; 
Then go to Templates > Modify > Template Set > header
Find the register button and remove it, next find the user cp button and replace it with:
$regcpbutton
Reply With Quote
  #4  
Old 08-16-2002, 05:47 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And when that gives you an error, try this instead
PHP Code:
if ($bbuserinfo['usergroupid'] == 1) {
    
$regcpbutton "<img src=\"images/register.gif\" alt=\"Registeration is free! Join now!\" border=\"0\">";
} else {
    
$regcpbutton "<img src=\"images/top_profile.gif\" alt=\"Manage your forum preferences!\" border=\"0\">";

A few syntax errors up there, DV
Reply With Quote
  #5  
Old 08-16-2002, 06:00 PM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What the hell.. I added the \ in front of the first " on the second one.. when I go to edit it it shows that also.
Reply With Quote
  #6  
Old 08-16-2002, 06:02 PM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What the hell.. even when I try editing it and adding it it still shows up like that.
Reply With Quote
  #7  
Old 08-16-2002, 06:04 PM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well that thing is freaking me out now I even added two of them and it still shows up as src="images/top_profile.gif\"
Reply With Quote
  #8  
Old 08-16-2002, 07:20 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You also forgot } I think
Reply With Quote
  #9  
Old 08-16-2002, 07:30 PM
ExAvIoUr ExAvIoUr is offline
 
Join Date: Jan 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Sparkz
And when that gives you an error, try this instead
PHP Code:
if ($bbuserinfo['usergroupid'] == 1) {
    
$regcpbutton "<img src=\"images/register.gif\" alt=\"Registeration is free! Join now!\" border=\"0\">";
} else {
    
$regcpbutton "<img src=\"images/top_profile.gif\" alt=\"Manage your forum preferences!\" border=\"0\">";

A few syntax errors up there, DV


ooh nice one


hm.. but will that link to the register pages ... or user cp..

i can mod the code if it currently cant do it :P

cheers again
Reply With Quote
  #10  
Old 08-17-2002, 01:35 AM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh yeah, forgot to include the link =\
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:17 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
  • Page Generation 0.05269 seconds
  • Memory Usage 2,253KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete