PDA

View Full Version : Forum Name Variable


Stretchr
01-16-2002, 10:47 PM
I'm not much of a coder but I'm trying to do my first hack. In forumpermission.php I'm trying to find the variable that will display the forum name. I've tried $forum but since I need to put it near the top of the code, I'm not sure if that's a problem or if I'm using the wrong variable. I can get the forum ID to display and tried to go from there but I'm stuck. Worked on this for 2 days now and thought it was time to ask for a pointer. You don't have to do all the work, if someone could just give me a nudge? :confused:

Thanks!

Stretchr
01-16-2002, 11:58 PM
O.K. Now all I need is one small thing. If you're getting the code to display the Forum ID Number, how do you convert that to the text ID? Any help for an old man would be appreciated! :)
I'm very close to having my first hack. Would one of you veterans help a new person with his first hack? Please?
Thanks!

Ajay
01-17-2002, 12:32 AM
What is the hack?

Stretchr
01-17-2002, 01:57 AM
I'm trying to make a hack that will display the forum name in the title portion of the table when you're editing forum permissions. It already does this when you're editing a forum, but for the permissions I can get it to display 1 level back but not display the forum name. So far I've gotten it to display, say, Moderators when you're editing the Moderators in a forum. I also have it displaying the forum id number. Now if I can just get it to display the name! :confused:

This would be helpful when you're changing permissions on a bunch of forums. Going back and forth it's easy to lose track of which one you just did.

Shenlong
01-17-2002, 06:49 PM
to display the title of your forum, the variable is $bbtitle

Stretchr
01-17-2002, 07:58 PM
Thank you, Shenlong. I belive that variable is for the board name. I needed the variable for the specific forum that you're editing within the board. I appreciate your response, though. If you happen to know the answer to this, so far, you're my only response. Guess I don't quite know how to make an interesting enough question to get answers to. :)

Stretchr
01-18-2002, 05:40 PM
Never mind. I wrote the hack and you can find it here. (https://vborg.vbsupport.ru/showthread.php?s=&threadid=34237)