WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

Sanket

avatar
Administrator
Administrator

How to place Ads/Affiliates (Top & Bottom of Forum Content)
Note: This will be possible only for forum versions which provide template editing(Phpbb2 & PunBB)


To add the Ads / Affiliate Space at the bottom of your forum.

Step 1: Get your Ads/Affiliate Code ready

ADs Code
Get the code by registering on google adsense, create the ads & get the code.

Affiliate Code

Code:
<a href="HERE TYPE THE ADDRESS WHERE YOU WANT TO LINK"><img src="HERE TYPE THE URL OF THE PICTURE YOU WANT TO BE SHOWN"></a>
Just go on adding the above code to add more affiliate images.


Step 2: Display>Templates>General
Hit the corresponding to index_body

Step 3: You will find a whole lot of code displayed, now find the place at the bottom of the code where it has.
Code:
<!-- END switch_legend -->

{AUTO_DST}

Step 4: Above the code provided above add this bit of code.
Code:
<font size="2" color="#000000" face="Arial">
<div><table width="100%" border="1" cellpadding="2" cellspacing="2" bgcolor="#ffffff">
<tr valign="top">
<td><br />YOUR AD CODE or AFFILIATE CODE GOES HERE
</td></tr></table></div></font>
To remove the table, you can just make border = "0" in the above code, which will hide the border. Also, replace the text of YOUR AD CODE or AFFILIATE CODE GOES HERE with your affiliate or google adsense code.




To add the Ads / Affiliate Space at the top of your forum.
Step 1 & Step 2: These steps remain the same as in the case above.
Step 3: You will find a whole lot of code displayed, now at the beginning of the code you will find

Code:
{Javascript}
Step 4: Add the code given below above the {Javascript }
Code:
<font size="2" color="#000000" face="Arial"><div><table width="100%" border="1" cellpadding="2" cellspacing="2" bgcolor="#ffffff">
<tr valign="top">
<td><br />YOUR AD CODE or AFFILIATE CODE GOES HERE
</td></tr></table></div></font>
To remove the table, you can just make border = "0" in the above code, which will hide the border. Also, replace the text of YOUR AD CODE or AFFILIATE CODE GOES HERE with your affiliate or google adsense code.
Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators.



Last edited by Sanket on Mon Jan 11, 2010 1:26 am; edited 1 time in total

http://www.webartzforum.com

shamzblueworld

avatar
Registered Member
Registered Member
great tutorial sanket, just a question what if we place two affiliate codes will they work side by side and how? I mean with just a space difference would they work? I am asking for the top positing

Sanket

avatar
Administrator
Administrator
If they are side by side, you will need the table codes adjusted properly.
If you want both tables one below each other. Then just ad <br> & then add the code above. It shall work fine then.


_________________
Sanket
http://www.webartzforum.com

shamzblueworld

avatar
Registered Member
Registered Member
so for them to work side by side i have to place the table code twice too? I mean the code that you gave above it should be used twice to work them side by side right?

Sanket

avatar
Administrator
Administrator
Nopes, for them to work side by side you will need to make a table with two columns basically. Also, you will require your ads to be of smaller size.


_________________
Sanket
http://www.webartzforum.com

shamzblueworld

avatar
Registered Member
Registered Member
okay thanx, how to center that image/banner? see here its in the left side, how to center it?

Sanket

avatar
Administrator
Administrator
Which image? The adbrite thing?


_________________
Sanket
http://www.webartzforum.com

shamzblueworld

avatar
Registered Member
Registered Member
yes that one.

Sanket

avatar
Administrator
Administrator
okay, its done via chat Wink


_________________
Sanket
http://www.webartzforum.com

Bratzy


Registered Member
Registered Member
I have a question regarding the adsense ads. When I follow this the ad is only on the home page. How do you get the ad to the bottom of all pages of the forum?
TIA Smile

Sanket

avatar
Administrator
Administrator
What is your forum Version?

http://www.webartzforum.com

Bratzy


Registered Member
Registered Member
My forum version is phpBB2 (subsilver)

Thank you for answering.

Sanket

avatar
Administrator
Administrator
It should work on phpbb2, did you try doing as the tutorial suggested?

http://www.webartzforum.com

Bratzy


Registered Member
Registered Member
Yes, I did do that. It only puts the ad on the bottom of the homepage of the forum, not the bottom of all pages.

Sanket

avatar
Administrator
Administrator
Sorry for the delayed response. Sad

To place it on all pages.
Display>Templates>General
Click on corresponding to overall_footer_begin

Then find this bit of code.
Code:
</div>

<!-- close div id="page-body" -->
Replace that bit of code with this.

Code:
</div>
Your Content Here
<!-- close div id="page-body" -->
Save
Publish the templates.

http://www.webartzforum.com

Petermichael


Registered Member
Registered Member
thank you for the tutorial .I was having little problem putting the ads .but now its clear to me .

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum