![]() |
Sort of a hack....
Ok, I would like add an admin button to the top along with the other buttons (user cp, register, search, etc). So I created a new template called forumhome_loggedin_admin and the added:
Code:
<a href="admin/index.phps=$session[sessionhash]"><img src="https://vborg.vbsupport.ru/images/top_admin.gif"></a> PHP Code:
PHP Code:
However for some reason, it doesn't show up...There are no errors and the other buttons work, I am using vB 2.2.9 if that helps.. Can anyone think of what I am missing, or did I change the code in the wrong spot? Please help! |
It should be:
PHP Code:
|
Btw, if you just want to add an admin button, what you are doing there is way too complicated. You don't even need to hack any PHP files. Just template edits.
Do this: Open phpinclude template, Add this to the bottom of the template: PHP Code:
Add $adminbutton where you want to show up. It will just show up for admins. Done! No need file hacking or extra templates! :) |
1 Attachment(s)
THanks Erwin....that worked....almost perfectly. But now for some reason there is a black border around the button. So what is the big difference between this and all the other buttons??
I attaches the screenshot of the black border. |
use this:
PHP Code:
look, it was defined afterwards... nevertheless, for such things a template conditional hack would help you look for logician's :) |
Thanks guys! It works now. I don't know why I didn't think of using Logician's hack. Anyway, thanks for your help
|
Yeah, never forget border="0" if you're linking images. :)
|
All times are GMT. The time now is 06:22 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|