UBB.Dev
Posted By: Sushi Man $MainButtonsLine - 05/06/2001 1:30 AM
anybody know where $MainButtonsLine is?
Posted By: gene1938 Re: $MainButtonsLine - 05/06/2001 2:01 AM
I think it is in the public_forum_summary.pl
Posted By: Sushi Man Re: $MainButtonsLine - 05/06/2001 2:38 AM
no, but thanks
Posted By: Sushi Man Re: $MainButtonsLine - 05/06/2001 5:59 AM
does anyone know?
Posted By: Tolitz Re: $MainButtonsLine - 05/06/2001 7:04 PM
public_edit_post.pl
public_new_reply_form.pl
public_new_topic_form.pl
public_pm_form.pl
Posted By: Sushi Man Re: $MainButtonsLine - 05/06/2001 8:32 PM
uhh...which one?
Posted By: cooled Re: $MainButtonsLine - 05/07/2001 12:08 AM
public_login.pl
Posted By: Greg Hard Re: $MainButtonsLine - 05/07/2001 3:52 AM
ITS DEFINED IN ubb_lib.cgi. Why the heck are these guys telling you otherwise i dont know.
Posted By: Tolitz Re: $MainButtonsLine - 05/08/2001 1:13 AM
Hmm MM... I was just answering his question... try to find the line $MainButtonsLine in ubb_lib.cgi and I'll give you a cookie...

Anyway, as far as I know, that exact LINE is located in the four template files I said, as well as the template file mentioned by cooled.

But feel free to find out where that line is defined in ubb_lib.cgi ... MM may be right, y'know [Linked Image]

[ May 07, 2001 06:14 PM: Message edited by: Canis Lupus ]
Posted By: AllenAyres Re: $MainButtonsLine - 05/08/2001 1:15 AM
smile

it's called in quite a few template files... most of the public_x.pl ones...
Posted By: GoTorankusuKu Re: $MainButtonsLine - 05/08/2001 1:50 AM
The main $MainButtonsLine is in ubb_lib.cgi
Posted By: el84 Re: $MainButtonsLine - 05/08/2001 1:52 AM
Ever considered using the Find feature built right into Windows? I know similar utilities come with MacOS and Linux. Just in case someone doesn't know how to do this in Windows...

Locate the directory containing your UBB files.

Right-Click -> Find... -> Containing text -> Find Now

Really easy, huh?

Better yet, get a real text editor, like Multiedit . When working on a mod, when I need to find every instance of something, I can simply open all the UBB files simultaneously and do a global search. The search results show up in a tree list . Double clicking on an entry in that list brings me right to that line of code. Sweet.
Posted By: Tolitz Re: $MainButtonsLine - 05/08/2001 5:07 AM
Quote
quote:
Uh huh, I see $MainButtons several times in ubb_lib.cgi, but I don't see $MainButtonsLine... so where is it? wink

Sorry, just trying to reiterate the obvious...
Posted By: DGMayor Re: $MainButtonsLine - 05/09/2001 9:37 PM
Quote
quote:
The actual function is defined as $MainButtons in ubb_lib.cgi, and is called in various other templates as $MainButtonsline. If you edit anything in the main function, it'll effect the rest of it obviously. If you just want to move the location of where it's displayed, then you'd go to the various templates and move the $MainButtonsLine to wherever you want it placed.

[ May 09, 2001 02:39 PM: Message edited by: DGmayor ]
© UBB.Developers