TinyPortal

Development => Support => Topic started by: louhi on October 02, 2008, 08:13:40 AM

Title: front page block
Post by: louhi on October 02, 2008, 08:13:40 AM
Hello!
I use SMF 1.1.6 and TP 0.983. On my front page i display 5 messages from the "news" board.

Is there a way to put a block of code right after 1st news message? I'll try to draw:

[title]
[1st news]
[my HTML code (ads)]
[2nd news]
[3nd news]
etc

Thank you!
Title: Re: front page block
Post by: IchBin on October 02, 2008, 07:00:16 PM
No, there's no option for that in TP. Sorry.
Title: Re: front page block
Post by: louhi on October 02, 2008, 09:38:51 PM
Found a way to do this.

In TPortal.template.php search string

$count++;


and add after it:


if($count==2) echo 'Here is my mighty HTML code';