PDA

View Full Version : placing adsense ads in article


moodyblue
07-18-2005, 04:28 AM
Hi, does anyone know how to place adsense ads in the articles, much like someone did it here: http://www.articleworld.net/articles/417/1/What-is-my-acne-really-trying-to-tell-me%3F
I tried editing the viewarticlepanel, but its not really possible to stick in the adsense code. What I'd really like to do is place the ads right below the author biography in the article. Any ideas or suggestions on how to do this?

Jordie (Interspire Staff)
07-19-2005, 05:57 AM
From what I can work out from their site, they have modifed the ViewArticlePanel.html in the Panels folder of your chosen template. They have then inserted the body code for adsense after the title which looks like:<div class="PageTitle" style="display: %%GLOBAL_HidePageTitle%%">%%GLOBAL_PageTitle%%</div>

But before the content one starts.

They have put the google code inside a div tag like: <div class="googlead">GOOGLE ADSENSE CODE HERE</div> then added the following in their Styles.css (click the templates link in the control panel)

.googlead
{
float: right;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 18px;
width: 250px;
}

sureshkumar
09-23-2005, 02:58 PM
Hi Sir

I am very much happy to use this kind of great script articlelive. I will be the most happiest guy if the admin or moderators of this forum can able to place these adsense code in my site.
I will give you the code , username & pass everything. i really dont have enough stuff in editing code.
I hope & i requesting a lot.. pl'z'e do this for me..

Waiting for your replay. this is my site www.livearticles.ner

billyou
10-06-2005, 02:27 AM
I am trying to modify my ViewArticlePanel.html panel through the admin area on my server to put in google Ad code and a I get :

"An error occured while trying to save the file "../templates/Default/ViewArticlePanel.html". Is it writable?" when I try to save it.

I chickened out and tried to restore original and still get same error. I had you install program, so don't know how it is set up. I'm a novice so please be detailed in explanation. Also I'm assuming that I add
.googlead
{
float: right;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 18px;
width: 250px;
}

to the css style downloaded on my computer, then upload that 1 page to the server right?
Thanks, Bill

Eddie (Interspire Staff)
10-07-2005, 04:32 AM
Hi Bill,

You need to set write permission on the templates that you are trying to edit. Using your FTP program, right click on the folder / files that you are having problems with and set CHMOD permissions to 757. That should do the trick.

spiritualgate
11-04-2005, 02:39 PM
the post mentioned ViewArticlesPanel.html, should it not be ViewArticlePanel.html ? (no S after article)

Jordie (Interspire Staff)
11-06-2005, 10:30 PM
Ah yeah, thanks spiritualgate! It is indeed ViewArticlesPanel.html.