Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Put something between threads, forum, categories...
MaxSteel Offline
Junior Member
**
Posts: 5
Joined: Jan 2012
Post: #1
Put something between threads, forum, categories...
HI,

I'm adding some ads in my forum, I would these ads:

- after the first forum;
- after the first category;
- after the first sticky thread;
- after the first non-sticky thread.

Can I do it with some conditional? Tongue
03-03-2012 12:17 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Put something between threads, forum, categories...

Code:
<if !$tplvars['done_first'] then>
First post stuffs
</if>
<setvar done_first>true</setvar>


My Blog
03-03-2012 08:37 AM
Find all posts by this user Quote this message in a reply
MaxSteel Offline
Junior Member
**
Posts: 5
Joined: Jan 2012
Post: #3
RE: Put something between threads, forum, categories...
Hi,

thank you for your help, but can you explain me qhat I can do with that code, ecxatly? Erf
03-03-2012 11:35 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: Put something between threads, forum, categories...
That code will put stuff in these area:
(03-03-2012 12:17 AM)MaxSteel Wrote:  - after the first forum;
- after the first category;
- after the first sticky thread;
- after the first non-sticky thread.

You need to put (and maybe modify) it in your template, for example: forumbit_depth2_forum, forumbit_depth1_cat, forumdisplay_thread.

03-04-2012 07:12 AM
Find all posts by this user Quote this message in a reply
MaxSteel Offline
Junior Member
**
Posts: 5
Joined: Jan 2012
Post: #5
RE: Put something between threads, forum, categories...
So if I put that code in forum display it automatically undestand that I mean "after 1st forum" and so on in showthread etc.?...
03-21-2012 04:38 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #6
RE: Put something between threads, forum, categories...
You know... it would've been quicker just to try putting the code there and seeing the effect.
Even if it doesn't work, it may help you understand it.

There's nothing to be scared of.

My Blog
03-21-2012 08:50 AM
Find all posts by this user Quote this message in a reply
MaxSteel Offline
Junior Member
**
Posts: 5
Joined: Jan 2012
Post: #7
RE: Put something between threads, forum, categories...
Ok, I'll try it. Thank you, Guys! (:
03-23-2012 02:02 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: