TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,219
  • Total Topics: 21,352
  • Online today: 556
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

front page block

Started by louhi, October 02, 2008, 08:13:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

louhi

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!

IchBin

No, there's no option for that in TP. Sorry.

louhi

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';

This website is proudly hosted on Crocweb Cloud Website Hosting.