Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

PostPosted: Tue May 18, 2010 3:53 am Reply with quote

Hi, Guys, is there anyway i can add a extra block on top of "Related Links" in news. what i wanna do is add a block right net to news story and insert google ads there. i found this code and test it.

Code:
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" bgcolor=\"#FFFFFF\"

width=\"160\"><tr><td>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"160\">\n"
."</table>\n"
."<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\" bgcolor=\"#FFFFFF\"
width=\"100%\">\n"
."<tr><td align=\"center\">\n"
."<font class=\"title\" size=\"1\"><b>Related Websites</b></font>\n"
."</td></tr>\n"
."<tr>\n"
."<td bgcolor=\"#FFFFFF\"><font size=\"1\">";
?>
<center>
<script type="text/javascript"><!--
google_ad_client = "your client-number";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "336699";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
<?php
echo "</td>\n"
."</tr>\n"
."</table></td></tr></table>\n"
."<br>\n\n\n";


but since it is for a phpnuke and it's very old code it didn't come right. is if anyone know pls let me know. thank you so much in advance.
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Tue May 18, 2010 3:21 pm Reply with quote

The code for the "related links" box is found starting at line 188 in articles.php in the /modules/news directory of the latest RN distribution. If I am not mistaken you would have to start "hacking" the code there -- probably putting your box content into a variable called $boxstuff and your title into a variable called $boxtitle and then calling themesidebox() with those two variables as parameters.
 
View user's profile Send private message Visit poster's website
zacklk
PostPosted: Tue May 18, 2010 9:06 pm Reply with quote

tnx a lot. it works Smile i tried this before what i did wrong was i didnt call this function "themesidebox($boxtitle, $boxstuff);" anyways now it workd fine. thanks.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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 ©