PDA

View Full Version : Admin and Mod Buttons.


voogru
02-06-2002, 05:03 PM
Heres a quick demo:

http://www.voogru.com/vb/top_buttons/

the demo explains exactly what it does, it removes the log out and user cp buttons if there not logged in, if there logged in they will see different buttons depending on what they are, (admin, mod, normal user)

since it doesnt have any editing with the php files i dont think this would qualify as a hack.

enjoy :)

Lesane
02-06-2002, 05:22 PM
Great, thanks.

A suggestion, u could use this:

/admin/index.php?s=$session[sessionhash]
&
/mod/index.php?s=$session[sessionhash]

instead of /admin & /mod

voogru
02-06-2002, 05:35 PM
Thanks, its been updated :)

Floris
02-08-2002, 08:06 AM
Ah great :) Especially because this is just a template hack :) Nice job voogru :)

Soma
02-15-2002, 02:02 AM
thanx man looks coolio

MusicArea
02-24-2002, 05:03 AM
thanx

NYI Fan
02-24-2002, 05:35 AM
This wont work on my forums since i have kinda big specialized buttons, that just fit across the top, but its a really nice idea! Great work!

voogru
02-24-2002, 05:46 AM
glad people like it :)

PHiXTiT
09-08-2002, 12:32 PM
Have this installed on 2.2.7 and it works great!

Although I am in need of help.

I am using a mouse roll over javascript. Therefore with all my buttons they change images.
EXAMPLE:) images/admin.gif --mouseover--> images/adminroll.gif

I have just erased the java where the images are to be and replaced them with the variables of this hack.
The java works exept for the new usercp.gif, register.gif, admin.gif, and mod.gif. The above images don't rollover.
It works great and all, but I would sure appreciate it if someone could help or point me in the right direction to remedy my problem.

blackice912
09-13-2002, 07:36 AM
Nice buttons, very nice!

Now I can be really lazy when surfing my forums!

Tony DiMera
09-13-2002, 08:13 PM
What would I put in the templates to make it work?

NTLDR
09-13-2002, 08:32 PM
Originally posted by PHiXTiT
could help or point me in the right direction to remedy my problem.

You need to add the javascript to the code in your phpinclude template for this if you haven't already.

58sniper
09-27-2002, 08:33 PM
Has anyone made MOD and ADMIN buttons that use the default style? I'm lame at PhotoShop, and it might be a while before I get a new style up.