UBB.Dev
Posted By: JoshPet Move "Extra Information" to the top. - 07/22/2002 6:09 AM
I answered this for soneone over at the info pop board, I figured I'd post these simple instructions here for anyone else looking.

The user wanted to move the Extra Information box (at the bottom of the Main Index) to the top. Here's how:

You need to edit the ubbthreads.tmpl file inside the templates/default/ directory.
Scroll to the bottom..... just after where it says
code:

<!--END CATEGORY LOOP-->



Cut from the
code:

<br />



Down through the:
code:

UBBTPRINT;



Paste it in the second line, just after:
code:

<? //UBBTREMARK



Then insert this....as line 2, just in front of what you just moved:
code:

echo <<<UBBTPRINT



then at the very end of the file, just above:
code:

/* UBBTREMARK */ ?>



add:
code:

UBBTPRINT;



If you think there is too much space between your header and the Extra Information box, you can remove the first <br />
I think you'll probably want to remove that.
Hope that made sense. That should do it.
Posted By: AllenAyres Re: Move "Extra Information" to the top. - 07/22/2002 6:17 AM
thanks Josh
Posted By: Muhammad Re: Move "Extra Information" to the top. - 08/09/2002 9:21 PM
I did this exactly, and it seems to be repeating the extra information table before each category... Help!
Posted By: JoshPet Re: Move "Extra Information" to the top. - 08/09/2002 9:54 PM
Hey,

My laptop died last night....with all my threads files. So until I get a case for this hard drive I won't have access to them to "play" and see if I missed a step.

A couple of things..... did you "cut" (thus 'Move') the code for the extra info...or did you copy (thus duplicating)?

I'll see if I can either find my access information to the member area, or a copy of the ubbthreads.tmpl file so I can check it out for you.

Actually, if you would email me at [][email protected][/] your ubbthreads.tmpl file, I'll take a peek and see what might be wrong.
Posted By: Muhammad Re: Move "Extra Information" to the top. - 08/09/2002 10:11 PM
Thanks!
Posted By: JoshPet Re: Move "Extra Information" to the top. - 08/09/2002 10:41 PM
Just sent the fixed file back to you.

Above where I say:
Past it in the second line, just after:

code:
------------------------------------------------------------------------
<? //UBBTREMARK

Of course, I mistyped "paste" it in the second line. I should clarify that this becomes the new line 2. So it goes before the "for($c=0;$c<$catsize;$c++) { //UBBTREMERK" line as well... as this is what goes through the categories.

Hope that helps!
© UBB.Developers