vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Help with adding and removing a button hack... (https://vborg.vbsupport.ru/showthread.php?t=47691)

ranger2kxlt 01-13-2003 07:37 PM

Help with adding and removing a button hack...
 
Need some quick help on this guys. Ive got the html coding part done, i just need to know where to insert the code to get it to work right.

Code:

if ($bbuserinfo[usergroupid]==6) {
  $adminonly='<a href=\"http://www.thunderbirdnest.com/vb/admin\"><img src=\"http://www.thunderbirdnest.com/vb/images/admin.gif\"</a>';
}

if ($bbuserinfo[usergroupid]==1) {
  $register='<a href=\"http://www.thunderbirdnest.com/vb/register.php?action=signup"><img src=\"http://www.thunderbirdnest.com/vb/images/top_register.gif\"</a>';
} else {
  $register='';
}

Then i have $register and $adminonly in the header template where i need them displayed....


Anyways what the above does is take away the registration button for people that are already registered or banned, and it also displays the admin button on the top allowing only admins to view it.

I have tried adding this to index.php but i get nothing... it doesnt even look like index.php calls the header template. Anyone know where i can insert this to get it to work?

ranger2kxlt 01-16-2003 03:25 PM

no one is able to help me with this? can it be done at all? Thanks.

Boofo 01-16-2003 03:27 PM

Why don't you try Logicians's Dynamic Templates hack and you can do it in the templates instead of doing it in the php from now on?


All times are GMT. The time now is 10:02 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.01813 seconds
  • Memory Usage 1,709KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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