» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 69
0 members and 69 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on Modifying the Articles Module within the Nuke 6.5 to 6.9 - Modules forums, part of the PHP-Nuke 6.5 to 6.9 category; I'd like to ad a google ad next to the text, http://www.radiopalmwine.com/modules...article&sid=...



Go Back   Nukemods Forum » PHP-Nuke 6.5 to 6.9 » Nuke 6.5 to 6.9 - Modules

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-17-2005, 11:45 AM
Junior Member
 
Join Date: Dec 2004
Posts: 38
Modifying the Articles Module
I'd like to ad a google ad next to the text,
http://www.radiopalmwine.com/modules...article&sid=18

Just as the picture is only farther down the page. Is this possible, and if so what file should I edit?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-19-2005, 09:51 AM
Junior Member
 
Join Date: Dec 2004
Posts: 38
Anyone? I'm usually able to figure things like this out on my own but I'm having problems now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-19-2005, 10:32 AM
Moderator
 
Join Date: Sep 2004
Location: Notts, UK
Posts: 330
i cant see a google add next to the text :?
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-19-2005, 10:40 AM
Junior Member
 
Join Date: Dec 2004
Posts: 38
Sorry, that's the page I'm putting it on .

Here's the example, http://nigeriaworld.com/columnist/ajayi/050505.html

The text should wrap around the ad just as it does the image
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-19-2005, 01:47 PM
Moderator
 
Join Date: Sep 2004
Location: Notts, UK
Posts: 330
just a quick question..

Where is the PHPNuke Copyright on the site you're putting it on?
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-19-2005, 02:23 PM
Junior Member
 
Join Date: Dec 2004
Posts: 38
:? Guess they took it off... I'll get it back on.

I setup nuke and everything for this woman, but apparently she has 1 other coder doing things on the site too, I'll tell her that is against the contract since it's the free version of the CMS.

Just re-added it to the footer.php file

Anybody know which part of what file to edit? or if it's even possible?

Looks like it pulls the story content from the database and generates the page, but seeing as the story image is inserted and wrapped, I just need to add one static code just like the image, so it' sprobably possible but something I'm looking over.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-21-2005, 06:58 AM
Junior Member
 
Join Date: Dec 2004
Posts: 38
Anybody know how to do this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-21-2005, 04:24 PM
coldblooded's Avatar
Super Moderator
 
Join Date: Jan 2002
Location: USA
Posts: 618
I know you're helping someone else with that site, but our policy is not to provide support to people that remove the theme credits from our themes.
__________________
The more we learn... the more we realize how little we actually know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-21-2005, 04:41 PM
Junior Member
 
Join Date: Dec 2004
Posts: 38
ops: I had readded the Nuke Copyright and completely forgotten about the theme copyright, I just added it. Footer's a little jumbled because I can't remember where I put the other things ops:

It's there now, I'll make sure it stays now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-21-2005, 10:48 PM
Junior Member
 
Join Date: Apr 2003
Posts: 60
I hope this doesn't go against the rules since the credits have been added on his site.

I don't know about adding the google ads "inside" the text block, but you can add it to the right side after the "Most Read Story" text. Here's how:

While I was playing around with the Google Adsense on my site, I found a way to have the Adsense Ads included inside the "Related Links" box instead of outside it with tables. If you aren't sure what exactly I am talking about, go here:

http://www.bootleghollow.com/article-99--0-0.html

Here is the code I used, and where to place it.

-----[ OPEN ] -----

Code:
modules/News/article.php
-----[ FIND ] -----

Code:
themesidebox($boxtitle, $boxstuff);
-----[ ON A NEW LINE ABOVE ADD ] -----

Code:
$boxstuff .= "
<center><s cript type=\"text/javasc ript\"><!--\n";
$boxstuff .= "google_ad_client = \"YourAdsenseClientID\";\n";
$boxstuff .= "google_ad_width = 120;\n";
$boxstuff .= "google_ad_height = 600;\n";
$boxstuff .= "google_ad_format = \"120x600_as\";\n";
$boxstuff .= "google_ad_channel =\"\";\n";
$boxstuff .= "google_color_border = \"669966\";\n";
$boxstuff .= "google_color_bg = \"99CC99\";\n";
$boxstuff .= "google_color_link = \"000000\";\n";
$boxstuff .= "google_color_url = \"00008B\";\n";
$boxstuff .= "google_color_text = \"336633\";\n";
$boxstuff .= "//--></s cript>\n";
$boxstuff .= "<s cript type=\"text/javas cript\"\n";
$boxstuff .= "src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n";
$boxstuff .= "</s cript></center>
\n";
Here's the way it looks in my article.php

Code:
$row9 = $db->sql_fetchrow($db->sql_query("select sid, title from ".$prefix."_stories where topic='$topic' $querylang order by counter desc limit 0,1"));
$topstory = intval($row9['sid']);
$ttitle = stripslashes(check_html($row9['title'], "nohtml"));

$boxstuff .= "<a href=\"modules.php?name=$module_name&file=article&sid=$topstory\">$ttitle</a></font></center>
\n";

$boxstuff .= "
<center><s cript type=\"text/javas cript\"><!--\n";
$boxstuff .= "google_ad_client = \"YourAdsenseClientID\";\n";
$boxstuff .= "google_ad_width = 120;\n";
$boxstuff .= "google_ad_height = 600;\n";
$boxstuff .= "google_ad_format = \"120x600_as\";\n";
$boxstuff .= "google_ad_channel =\"\";\n";
$boxstuff .= "google_color_border = \"000000\";\n";
$boxstuff .= "google_color_bg = \"848484\";\n";
$boxstuff .= "google_color_link = \"000000\";\n";
$boxstuff .= "google_color_url = \"FF0000\";\n";
$boxstuff .= "google_color_text = \"FFFFFF\";\n";
$boxstuff .= "//--></s cript>\n";
$boxstuff .= "<s cript type=\"text/javascript\"\n";
$boxstuff .= "src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n";
$boxstuff .= "</s cript></center>
\n";

themesidebox($boxtitle, $boxstuff);
Remove the space between the "s" and "c" in the words "script." You will also have to change the colors to fit your site. I just liked the idea of having it look like part of the block instead of having it as a new table.
__________________
http://www.bootleghollow.com/images/sig1.gif
Vivere disce, cogita mori
Molon Labe!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying a a theme? Elethil Nuke 7.x - Themes 9 12-17-2006 06:59 PM
Help modifying Your Account details DiscPete Nuke 7.x - General 17 03-02-2005 08:58 PM
Modifying background in XPMidnight savage3e Theme packs 0 01-05-2005 08:54 AM
need help creating/modifying a block elb0m Nuke 6.5 to 6.9 - Blocks 6 04-17-2003 06:30 AM
modifying smartdark machinegod Theme packs 5 03-06-2003 06:15 PM


All times are GMT -5. The time now is 04:51 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31