Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Banner after first post
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

realhorrorshow
Starting Member

United Kingdom
31 Posts

Posted - 04 May 2006 :  12:41:23  Show Profile  Visit realhorrorshow's Homepage
Hi Guys, I've been trying to work out how to slot a banner in after the first post of a topic as i've seen this in vbulletin.

I've had a look and can't see
a) where the code would go or
b) how i'd stop it appearing after every subsequent post.

Any ideas on this one?

Thanks

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 04 May 2006 :  13:56:00  Show Profile  Send ruirib a Yahoo! Message
There is a function called GetFirst in topic.asp. You can add your code at the end of it, or after the function being called in topic.asp, to achieve what you need.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 05 May 2006 :  02:33:43  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
There was a thread about placing an ad after every X post in a thread. Maybe you can get help if you find it.

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

realhorrorshow
Starting Member

United Kingdom
31 Posts

Posted - 07 May 2006 :  06:55:06  Show Profile  Visit realhorrorshow's Homepage
I've tried this:

intI  = intI + 1
if intI = 2 then 
intI = 0
end if
'My Ad
Response.Write ("<tr><td class=""profile"" align=""center"" bgcolor=""FFFFFF"" colspan=""" & sGetColspan(6,7) & """>MY BANNER</td></tr>")
next


But it appears after every reply too. A search has not found anything further to this.
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 07 May 2006 :  07:49:21  Show Profile
Try finding this line :

quote:
Call GetFirst()

And add your code directly after it, but probably not the intI code
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07