Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

adding ads to your forums....

Quote Reply
adding ads to your forums....
I wanted to know how i could use an if test to see if. A) the user is a guest and B) that there is two post.

I want to add an ad block after the first post, but only want to show it to the guest at my boards.

Any ideas on how to check if 2 post exist?
Quote Reply
Re: [carminejg3] adding ads to your forums.... In reply to
Hi,

This should work:

Code:
<%
<%if num_posts > 1%>
<%if post_num == 2%>
advert
<%endif%>
<%endif%>
<%endifnot%>

Hope that helps :) (forgot to test the <%ifnot current_user_status_string%> bit I'm afraid - but the other part works perfectly :))

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!