Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
kishan
New Member
New Member



Joined: Mar 01, 2006
Posts: 4

PostPosted: Sun Mar 05, 2006 1:03 pm Reply with quote

I want embede adsense in article once they click to read more.
using include tag.
where do I put
include("includes/adsense.php");
so that each article will have adsense wraped in article.
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Mar 05, 2006 4:19 pm Reply with quote

You'll need to place your code in modules/News/article.php

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
kishan







PostPosted: Sun Mar 05, 2006 4:52 pm Reply with quote

Thank you for a quick reply

I have put one after the header and it goes on top of article
this is where i put it.


$artpage = 1;
$pagetitle = "- $title";
require("header.php");
include("includes/adsense.php");
$artpage = 0;


I would be very grateful if you could please guide me where to put the code so that it is inside the table like the image. I could have adsense on left if possible
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Mon Mar 06, 2006 5:49 am Reply with quote

Within your modules/News/article.php scripts, you may have this bit of code:

Code:



echo "<table width=\"100%\" border=\"0\"><tr><td valign=\"top\" width=\"100%\">\n";
themearticle($aaid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext);
echo "</td><td>&nbsp;</td><td valign=\"top\">\n";


Unfortunately, how your article is displayed is controlled by your theme. However, you could try to add your HTML to either the front of $bodytext or after it using something like this before themearticle is called:

$bodytext = $yourHTMLstring . $bodytext

OR

$bodytext = $bodytext . $yourHTMLstring

If you want to get more precise in where you place it in the article, you are going to have to modify your theme.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
kishan







PostPosted: Mon Mar 06, 2006 8:23 am Reply with quote

Thank you very much will try to do as said above
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©