TinyPortal

Development => Support => Topic started by: DistantJ on July 29, 2010, 01:44:31 PM

Title: SSI Functions in blocks
Post by: DistantJ on July 29, 2010, 01:44:31 PM
Ok, a quick one...

What would I do to include an SSI function in a PHP block? Say I wanted to display the latest users or whatever else, obviously things work a little different as TinyPortal is part of the forum etc. I'm guessing it's not exactly the way no normally would include an SSI feature on a .PHP page...
Title: Re: SSI Functions in blocks
Post by: Freddy on July 29, 2010, 02:22:10 PM
SSI will already be called/included by the time it gets to a block.  You can use a function directly.

EG :

ssi_recentTopics(8);

That will then run the SSI function as normal.
Title: Re: SSI Functions in blocks
Post by: Crip on July 29, 2010, 11:43:54 PM
pretty good example of ssi_examples.php ..

http://www.jpr62.com/ssihomepage.php
Title: Re: SSI Functions in blocks
Post by: Muziekforum on October 14, 2010, 08:23:04 PM
Hello,

I'm using the same function on my forum  and it works! But the alignment of the recent topics on the fronpage looks a bit weird. Not like the one on the boardindex(evrything to the left). See attachment.

Where can I change that?
I've been looking in the style sheet and in ssi.php but can;t find anything alike. I'm very bad in coding, so can anybody help please?

Thanks in advance.

Ed.
Title: Re: SSI Functions in blocks
Post by: Muziekforum on October 14, 2010, 08:47:57 PM
Excuse me guys,

You can consider my problem solved. :-[
It was in ssi.php I was just looking over it and when I found it it was still looking wrong but the reason for that was that 1 board had an extreme long name while wrapping was off.
I'm pretty retarded sometimes and specially when I'm having flew like today. :idiot2:
Title: Re: SSI Functions in blocks
Post by: Freddy on October 14, 2010, 08:59:30 PM
Glad you figured it out  ;D