How to show Add your ads between /in middle of forum posts on wapka

Have you been looking for how to add ad codes
in between forum post? then you're on the right
track.....
This can be applied for Google AdSense users
amongst other ad companies.
Step 1:Wrap your ::msg:: In your wap2 style of
forum site (The second big text box) with div id
ads. That is:
<div id="ads">::msg::</div>
Now this will make it easier to parse.
In your bottom auto content for forum
<div id="adCode" style="display:none">your
ad codes go here</div>
Immediately after the above code let this
follow:
<script language="javascript"> var
dAds=document.getElementById
('adCode').innerHTML; var
dC=document.getElementById
('ads').innerHTML; dC=dC.replace(/
Missing ad type
/gi,dAds);document.getElementById
('ads').innerHTML=dC;</script>
Missing ad type
/gi,dAds);document.getElementById
('ads').innerHTML=dC;" size="7">
*Remove text *Missing ad type from the above
code.
To display your ads type:
Code
Include Code [*ad] in your message/forum
post..
Note: Remove the * sign
Enjoy... Always checkout our forum for latest
Tips.

No comments

Powered by Blogger.