MyBB Hacks

Full Version: Put something between threads, forum, categories...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

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

Hi,

thank you for your help, but can you explain me qhat I can do with that code, ecxatly? Erf
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.
So if I put that code in forum display it automatically undestand that I mean "after 1st forum" and so on in showthread etc.?...
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.
Ok, I'll try it. Thank you, Guys! (:
Reference URL's