Gossamer Forum
Skip to Content



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.com

Merry Xmas and a Happy New Year!


Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Custom Toolbar for IE and Firefox! - Compare our different Plugin packages *new*
Free CSS Templates