PDA

View Full Version : postbit buttons question


sifuhall
06-05-2002, 06:06 PM
I want to write a hack that displays a button or not in the postbit buttons (usually under the post) depeneding on what usergroup the person that posted the message is in.

I've looked at showthread.php, but if I add a function in here and create a new variable that contains the button I want to create, how can I reference that in postbit template?

Xenon
06-05-2002, 07:36 PM
you have to edit functions.php in the adminfolder...

goto section getpostbit and there you can add the variables, then in the postbit template just put $variable where you want to have it and all should work :)

Chris M
06-05-2002, 08:17 PM
What sort of hack where you looking at?

Satan

sifuhall
06-06-2002, 05:41 PM
Thanks for the reply.

We're using the techimo portfolio system and if the user is in the portfolio users group I want to place a button to that person's portfolio at the bottom of their posts (with the pm, homepage, aim, etc. buttons)

sifuhall
06-06-2002, 06:08 PM
works great, thanks guys.

Xenon
06-07-2002, 01:18 PM
your welcome :)