UBB.Dev
Posted By: abbood Addons - 08/18/2002 7:24 PM
Hi,
Can any body help me with adding top posters to my ubbthreads.php page ?

I added the include link..it worked correctly..BUT...it shows in the wrong place..I can't add a table for it..and it wont display in any of the existing tables.

Help ?

Thank you for your time and effort.

Abdullah
Posted By: abbood Re: Addons - 08/18/2002 10:51 PM
Any body ?..Help !
Posted By: JustDave Re: Addons - 08/18/2002 11:07 PM
I thought I answered this over at Infopop?
Posted By: abbood Re: Addons - 08/19/2002 6:12 AM
Hi,

Yes you did and I replied to that...I was hoping for more details.

Thanks
Posted By: AllenAyres Re: Addons - 08/19/2002 6:22 AM
You got a link to what's happening?
Posted By: JustDave Re: Addons - 08/19/2002 6:32 AM
In your ubbthreads.tmpl file, just below this line:


<? //UBBTREMARK


add this:


echo <<<UBBTPRINT
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td align="left" valign="top">
UBBTPRINT;

include "addons/ubbtnews.php";

echo <<<UBBTPRINT
</td>
<td align="left" valign="top">
UBBTPRINT;



Ok now just before this line:


/* UBBTREMARK */ ?>


Add this:


echo <<<UBBTPRINT
</td>
</tr>
</table>
UBBTPRINT;


That should be all that is needed to pull the ubbtnews.php script into the ubbthreads.tmpl file. Also, remember to remove this line: require ("$path/main.inc.php"); from the ubbtnews.php script because it's not needed a second time. (ubbthreads.php has already called it)
Posted By: abbood Re: Addons - 08/19/2002 8:14 PM
Thanks for your time and effort...am gonna try it right away

Posted By: abbood Re: Addons - 08/19/2002 9:35 PM
Hi,

This is the result am getting :
echo << UBBTPRINT; include "/home/mysite/www/ubbthreads/addons/ubbtposters.php"; echo << UBBTPRINT;

This is printed as text on the page ??

I did exactly what you told me ?

What's wrong here

Thanks
© UBB.Developers