vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   something easy, yet hard for me.. (https://vborg.vbsupport.ru/showthread.php?t=42362)

ExAvIoUr 08-16-2002 10:53 AM

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

Dark_Wizard 08-16-2002 11:21 AM

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... ;)

[D]Vincent 08-16-2002 11:50 AM

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

Sparkz 08-16-2002 05:47 PM

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

[D]Vincent 08-16-2002 06:00 PM

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.

[D]Vincent 08-16-2002 06:02 PM

What the hell.. even when I try editing it and adding it it still shows up like that.

[D]Vincent 08-16-2002 06:04 PM

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\"

DrkFusion 08-16-2002 07:20 PM

You also forgot } I think

ExAvIoUr 08-16-2002 07:30 PM

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


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

[D]Vincent 08-17-2002 01:35 AM

Oh yeah, forgot to include the link =\


All times are GMT. The time now is 05:54 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.01030 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete