[code] inline ads

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Locked
User avatar
Alexis Canver
Registered User
Posts: 22
Joined: Wed Jun 14, 2006 8:00 pm

[code] inline ads

Post by Alexis Canver »

Some user search inline ads code:


I search any way for inline banner add, and find this quick variable: S_ROW_COUNT. Built 3 different code for inline ads.


1. inline ads on after first post

Code: Select all

#
##-----[ OPEN ]--------------------------------------------------------
#

styles/subSilver/template/viewtopic_body.html

#
#------[ FIND ]--------------------------------------------------------
#

	</table>
<!-- END postrow -->

#
#------[ BEFORE ADD ]---------------------------------------------------
#

	<!-- IF postrow.S_ROW_COUNT == 0 -->
	<tr> 
		<td align="center" colspan="2" class="row1" valign="middle" height="70">
		* ads code *
		</td>  
	</tr>  
	<tr> 
		<td class="spaceRow" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
	</tr>
	<!-- ENDIF -->
2. inline ads on post inside:

Code: Select all

#
##-----[ OPEN ]--------------------------------------------------------
#

styles/subSilver/template/viewtopic_body.html

#
#------[ FIND ]--------------------------------------------------------
#

						<div class="postbody">{postrow.MESSAGE}</div>

#
#------[ BEFORE ADD ]---------------------------------------------------
#

						<!-- IF postrow.S_ROW_COUNT == 0 -->
						* ads code *
						<!-- ENDIF -->

3. inline ads between forum title

Code: Select all

#
##-----[ OPEN ]--------------------------------------------------------
#

styles/subSilver/template/index_body.html

#
#------[ FIND ]--------------------------------------------------------
#

		<tr>
			<td class="row1" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
			<td class="row1" width="100%">

#
#------[ BEFORE ADD ]---------------------------------------------------
#

		<!-- IF forumrow.S_ROW_COUNT == 2 -->
		<tr>
			<td class="row1" width="50" align="center"><img src="{T_THEME_PATH}/../imageset/forum_read.gif" alt="" /></td>
			<td class="row1">
				* ads code *
			</td>
			<td class="row2" align="center"><p class="topicdetails">0</p></td>
			<td class="row2" align="center"><p class="topicdetails">0</p></td>
			<td class="row2" colspan="0" align="center"><span class="genmed">&#304;leti yok</span></td>
		</tr>
		<!-- ENDIF -->
Demo image:

inline ads between forum title:

Image


inline ads on after first post:

Image


inline ads on post inside:

Image
bad-dj
Posts: 173
Joined: Sat Aug 26, 2006 11:15 am
Location: Australia
Contact:

Re: [code] inline ads

Post by bad-dj »

ok thats good
Graham
Registered User
Posts: 1304
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK

Re: [code] inline ads

Post by Graham »

As noted before, this is not a MOD release forum
"So Long, and Thanks for All the Fish"

Graham
Eeek, a blog!
Locked