vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   How to remove... (https://vborg.vbsupport.ru/showthread.php?t=36229)

pentium 03-16-2002 09:23 PM

How to remove...
 
How to remove the header buttons: (User cp - Register - Calendar etc..) from the registration and login page?
I like to have them on the categories and forum pages only.
Is it possible?
Thanks.

pentium 03-18-2002 08:43 PM

bump.

Neo 03-18-2002 10:19 PM

if you still want your title image to show , you need a small hack.. if you can deal without both of them just go into those template and take our $header

pentium 03-18-2002 10:49 PM

Thanks to replyed neo!
yes, I will like to remove the buttons only... is there an hack that already do it?

pentium 03-18-2002 11:39 PM

Hi neo!
I'd just understood a bit more :)
I can change the $header with the logo insert code without the links buttons on each templates where I don't want the buttons appears to.

Now the question is:
Can I make more than one variable for $header?
Example:
$header means logo and buttons.
$header1 means just logo.
If it's possible to do it, what's the code to write in the new variable and where must I put that code?
Thanks.

Admin 03-19-2002 05:03 AM

Yes that's possible. :)
In global.php add:
Code:

eval("\$header_nobuts = \"".gettemplate('header_nobuts')."\";");
right after this:
Code:

eval("\$header .= \"".gettemplate('header')."\";");
Then create a new template called header_nobuts, and use $header_nobuts where you don't want buttons.

Oh and add header_nobuts to the end of the list here:
Code:

$templatesused.=',pagenav,pagenav_curpage,pagenav_firstlink,pagenav_lastlink,pagenav_nextlink,pagenav_pagelink,pagenav_prevlink';

pentium 03-19-2002 10:13 PM

Thanks a lot FireFly!
I go to try it.


All times are GMT. The time now is 01:45 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.01016 seconds
  • Memory Usage 1,716KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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