RESOLVED::Google Adsense box in NEWS article story

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   RESOLVED::Google Adsense box in NEWS article story
Bazil
CZ Super Newbie
Bazil has been a member for over 19 year's 19 Year Member
usa.gif florida.gif
Website:
Status: Offline
Joined: Dec 09, 2004
0.01 posts per day
Posts: 49
Points: 1,505
   
Hey folks, I am back. I am curious if there is a way to add a 336X280 ad box in news area. I was hoping to have it go directly below ( centered ) the news article that is being read.
Example: [ Register or login to view links on this board. ]

I was hoping to get it right after the article content in the center column.. any insite would be greatly appreciated..



Back to top Reply with quote
#2   
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Try looking here:
[ Register or login to view links on this board. ]

Just about anything dealing with Adsense placement and PHP-Nuke




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#3   re: Google Adsense box in NEWS article story
Bazil
CZ Super Newbie
Bazil has been a member for over 19 year's 19 Year Member
usa.gif florida.gif
Website:
Status: Offline
Joined: Dec 09, 2004
0.01 posts per day
Posts: 49
Points: 1,505
   
Yeah he has a good article, I ave seen that one before, but I was hopeing to have the ad go beneath each article, when the user chooses read more, they see the full article and thats where I wanted it..

Thanks for the input..



Back to top Reply with quote
#4   re: Google Adsense box in NEWS article story
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
You could try this and see if it works:

Take the code from the link regarding the placement of the add on the right side of each news article. Substitute the code you get from Adsense for the banner size you want.

Then go to your /modules/News/article.php and look for:

include("modules/$module_name/associates.php");


And on a line BEFORE that add the subsitituted code. If that isn't the right area, you may have to shift it around until you find the right place.

Remember to BACK UP any file you change BEFORE you start.



_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#5   re: Google Adsense box in NEWS article story
Bazil
CZ Super Newbie
Bazil has been a member for over 19 year's 19 Year Member
usa.gif florida.gif
Website:
Status: Offline
Joined: Dec 09, 2004
0.01 posts per day
Posts: 49
Points: 1,505
   
Just wanted to post that this worked... I created a file called "google what ever".php with the adsense code, I only added tags to center it. then added the line called

include("googlewhatever.php");

Works great, the one thing I dont like is that the add will apear after the last block on the right, so if the article is short the add may be too low , I may mess with it to be before the artile..who knows,

but yes it worked.



Back to top Reply with quote
#6   RESOLVED::Google Adsense box in NEWS article story
Bazil
CZ Super Newbie
Bazil has been a member for over 19 year's 19 Year Member
usa.gif florida.gif
Website:
Status: Offline
Joined: Dec 09, 2004
0.01 posts per day
Posts: 49
Points: 1,505
   
OK, with alot of hair pulling and coffee I have figured out how to do this.. First see example:
[ Register or login to view links on this board.]
My goal was to get the ad box inside the story or article itself, the way I had it before it moved everything down and caused huge gaps.
You must edit the Theme. php file from with in your theme itself look for:
 
  FormatStory($thetext, $notes="", $aid, $informant);

after that you want to add , your adsense code with the close php tags before and open php tags after

Make sure you center it so it looks correct. notice the php tags are reversed so it tells the browser to stop reading php, then it starts again.

I find it better this way since it is closer to the story, there is a better chance of it pulling ads that pertain to the story.

If I am wrong, PLEASE let me know ASAP, I am still learning this stuff. If I have stumbled accross something that is old news then forgive me, I am still learning this stuff..

Enjoy. [ Register or login to view links on this board.] [ Register or login to view links on this board.]


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum