TinyPortal

Development => Support => Topic started by: rickyreter40 on October 13, 2006, 04:09:04 PM

Title: TOP BOARD HELP
Post by: rickyreter40 on October 13, 2006, 04:09:04 PM
hi,when i add ssi funtion on front page as top posters, how do i align the text in centre instead of to the left.

see home:

www.panicfreedom.co.uk


peter  ;)
Title: Re: TOP BOARD HELP
Post by: akulion on October 13, 2006, 04:11:09 PM
try and echo statement like:

echo '<center>';
YOUR SSI function here (whatever it is);
echo '</center>';
Title: Re: TOP BOARD HELP
Post by: rickyreter40 on October 13, 2006, 04:15:16 PM
hi, what just add that at the end off etc...top posters?

Title: Re: TOP BOARD HELP
Post by: akulion on October 13, 2006, 04:17:57 PM
yup that should really do it i believe since ALL the coding output by SSI functions is in HTML (at the user end) so enclosing it in center tags should produce the results :)
Title: Re: TOP BOARD HELP
Post by: rickyreter40 on October 13, 2006, 04:34:45 PM
sorry not work do i put this;

echo ''; Top Posters  echo ''; in title
Title: Re: TOP BOARD HELP
Post by: akulion on October 13, 2006, 04:36:06 PM
can u post ur top board function code here?

ill modify it for u  :up:
Title: Re: TOP BOARD HELP
Post by: rickyreter40 on October 13, 2006, 04:38:14 PM
where that be  ??? as thick and learning

pete :laugh:
Title: Re: TOP BOARD HELP
Post by: akulion on October 13, 2006, 04:43:37 PM
please try this:


echo'<center>';
php ssi_topBoards();
echo'</center>';


and let me know it it works :)
Title: Re: TOP BOARD HELP
Post by: rickyreter40 on October 13, 2006, 05:33:20 PM
where do i put this code? :)
Title: Re: TOP BOARD HELP
Post by: akulion on October 13, 2006, 05:35:19 PM
just like in ur other block

create a PHPbox block (center block)

and put the code in there :up: