Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Mods for 3.6.x Thread, Adsense Inside the Post in Mods; Adsense Inside the Post This little template modification allows you to put an Ad inside the post with Text wrapped ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=4865


Reply
LinkBack Thread Tools Display Modes
Adsense Inside the Post
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
20-10-2008, 03:18 AM
 
Adsense Inside the Post

This little template modification allows you to put an Ad inside the post with Text wrapped around the Ad.

See Screenshot.

In postbit template replace
Code:
PHP Code:
 <!-- message -->
  <
div id="post_message_$post[postid]">$post[message]</div>
   <!-- /
message -->
With
Code:
PHP Code:
   <!-- message -->
<if
condition="(($post[postcount] % $vboptions[maxposts] == 1)) and ($show['guest'])">
<
span style="margin: 2px; float: right; width: 301px; height: 251px;">
        
ADSENSE CODE HERE
</span>
</if>
    <
div id="post_message_$post[postid]">$post[message]</div>
              <!-- /
message -->
  • you will have to replace ADSENSE CODE HERE with the actual code.
  • The code is for 300 * 250 Medium Rectangle Format,Edit width & height parameters if you want to use any other format.
  • Ad is shown on the first and last post (modify if you want)
  • Ad is shown to guests Only ( remove "and ($show['guest'])" to show to all)
Version History:
v 1.0.1 :Ads displayed after the first post on every page (instead of just the first page)

Tip: To remove quote button for guests.
Replace
Code:
PHP Code:
<if condition="$post['replylink']
with
Code:
PHP Code:
<if condition="$post['replylink'] AND $show['member']">
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
 
Junior Member

Reply With Quote
 
Join Date: Dec 2008
Posts: 2
20-12-2008, 11:09 PM
 
Thanks for this
/bow
 
 
 
Reply

Mods for 3.6.x Thread, Adsense Inside the Post in Mods; Adsense Inside the Post This little template modification allows you to put an Ad inside the post with Text wrapped ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=4865


Bookmarks

Tags
adsense, inside, post


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
JTS-post Assistant: Problem post generation utility released Developer Articles 1 05-04-2009 08:23 PM
Adsense as second post. 2 Sizes - Big for guests, small for members - Legacy Version Developer Mods for 3.6.x 6 02-04-2009 03:23 AM
Perform simple calculations inside templates Developer Articles 0 28-10-2008 04:42 AM
Three smugglers die inside Gaza smuggling tunnel Developer News 0 27-10-2008 04:31 AM
Egypt : No demonstrations inside Mosques and Churches SABRAWY News 0 06-02-2008 11:14 PM