Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6433

PostPosted: Fri Jul 21, 2006 5:07 pm Reply with quote

Not sure why it disappeared, but I put it on my site until it returns to the author's site.

You can get it here.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
Misha
Worker
Worker



Joined: Jul 30, 2006
Posts: 205
Location: McLean, VA

PostPosted: Wed Aug 23, 2006 8:21 pm Reply with quote

hitwalker, after you re-faced your site, link to adsense inside forum does not work anymore Sad Could you put it back, please?
Thanks a million, Misha

_________________
http://www.funandsafedriving.com/defensive-driving.html 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Thu Aug 24, 2006 3:13 am Reply with quote

Hit is now using Joomla.
 
View user's profile Send private message Send e-mail
Misha







PostPosted: Thu Aug 24, 2006 6:42 am Reply with quote

Did you mean that non-working links is Joomla feature? Laughing
 
Guardian2003







PostPosted: Thu Aug 24, 2006 1:48 pm Reply with quote

No I meant the link possibly is not live yet as he is working all hours to get all the content back in.
 
kguske







PostPosted: Thu Aug 24, 2006 2:26 pm Reply with quote

Did you report the downloads link? If not, please tell us which one wasn't working so we can correct it...thanks!
 
Misha







PostPosted: Thu Aug 24, 2006 2:47 pm Reply with quote

Guardian,
sure I do understand, I'm just pointing out the broken link for Hitwalker, no pressure intended Smile
Kevin,
I meant this Hitwalker's post up the topic:
Quote:

or this one,that ads google adsense to the bottom of forum reply....lol [ Only registered users can see links on this board! Get registered or login! ]

Anyway, I just managed to solve the puzzle on putting AdSense after first topic myself, and I'm pretty happy with results Cheers
 
kguske







PostPosted: Thu Aug 24, 2006 2:56 pm Reply with quote

Great! That's the best solution! Care to post it for others?
 
Misha







PostPosted: Thu Aug 24, 2006 5:50 pm Reply with quote

Kevin,
I does not let me to post code. Does not matter if I break all "script" with spaces Sad
 
Misha







PostPosted: Thu Aug 24, 2006 6:09 pm Reply with quote

OK, I figured out a way to post it. You will have to delete all dashes from <s-c-r-i-p-t> and j-a-v-a-s-c-r-i-p-t. Weird! Or is it?

Well,
This could be some amature work, since I knew nothing about PHP, java, or PHP-Nuke just a month ago; but if you, guys, promise not to beat me too hard, here it goes:

All is done for default RavenNuke fisubice theme, you will need to change AdSense colors to match yours, if different.

Edit themes\{YOUR THEME}\forums\viewtopic_body.tpl

find:
<td class="spacerow" colspan="2" height="1"><img src="themes/fisubice/forums/images/spacer.gif" alt="" width="1" height="1" /></td>

replace with:
<td class="spacerow" colspan="2" height="1" align="middle"><img src="themes/fisubice/forums/images/spacer.gif" alt="" width="1" height="1" />{postrow.INTOPIC_ADSENSE}</td>

Edit modules\Forums\viewtopic.php

find:
$poster_avatar = '';

add BEFORE:

Code:


//
// Start InTopic AdSence Misha funandsafedriving.com 2006
//
      $intopic_adsense = '';
      If ( $i == 0 && $total_posts > 1 ) {
         $intopic_adsense = "<s-c-r-i-p-t type=\"text/j-a-v-a-s-c-r-i-p-t\"><!--
         google_ad_client = \"pub-4256287149559407\";
         google_alternate_color = \"cad9ea\";
         google_ad_width = 728;
         google_ad_height = 90;
         google_ad_format = \"728x90_as\";
         google_ad_type = \"text\";
         google_ad_channel =\"2997401662\";
         google_color_border = \"cad9ea\";
         google_color_bg = \"cad9ea\";
         google_color_link = \"000000\";
         google_color_text = \"000000\";
         google_color_url = \"32475F\";
         //--></s-c-r-i-p-t>
         <s-c-r-i-p-t type=\"text/j-a-v-a-s-c-r-i-p-t\"
           src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
         </s-c-r-i-p-t>";
      }
//
// End InTopic AdSense
//


find:
'MINI_POST_IMG' => $mini_post_img,

add BEFORE:

Code:


// Start InTopic AdSence Misha funandsafedriving.com 2006
                'INTOPIC_ADSENSE' => $intopic_adsense,
// End AdSence



Change Google codes to yours, or your money will go to my account Smile


that's it.
Oh, ya, upload files Smile

You can see how it looks on my site.
 
kguske







PostPosted: Thu Aug 24, 2006 9:17 pm Reply with quote

We certainly won't beat anyone up for contributing code - thanks! Thanks, too, for the full disclosure on changing the Google code...
 
Guardian2003







PostPosted: Fri Aug 25, 2006 6:11 am Reply with quote

Good job - thanks for sharing it with the comunity.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©