PDA

View Full Version : How to remove...


pentium
03-16-2002, 09:23 PM
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:
eval("\$header_nobuts = \"".gettemplate('header_nobuts')."\";");
right after this:
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:
$templatesused.=',pagenav,pagenav_curpage,pagenav_ firstlink,pagenav_lastlink,pagenav_nextlink,pagena v_pagelink,pagenav_prevlink';

pentium
03-19-2002, 10:13 PM
Thanks a lot FireFly!
I go to try it.