Having trouble with Ad Mod and Google Adsense

Started by purrplegrrl77, April 09, 2011, 03:02:48 PM

Previous topic - Next topic

purrplegrrl77

Hi,

Sorry if I posted this in the wrong section.  I am very new to HTML and operating a forum.  I am using SMF forum version 1.1.13 and currently using the Black Rain theme.  I downloaded the Ad Mod so I can easily insert some ad codes from Google.  It seems some of the options in the Ad Mod doesn't work.  For example, I was able to add a Google search to my main page right underneath the "Home, Help, Search...etc." buttons as well as have the Google ads show up after each post.  I would like an ad to show on the main screen, across from the Google search bar or across from the "you have # messages..." section.  I checked the "Displays ads on the top of the page on every page" and the "Display ads in the welcome user area" options but nothing shows up.  I'm not sure if it's the theme not supporting it or if I'm missing something.  I tried to include the link to my forum here so you can see what I was talking about, but it will not allow me to post it.  Please let me know if you need more information.

Many thanks!

mashby

Because the ad mod affects index.template.php and that file exists on the Black Rain theme because it has to, you have to manually edit that file for that theme to achieve what you need. If you go to the mod, you'll see a Parsing thing over on the right. Choose 1.1.13 and it will show you what edits are made for the entire mod. Simply look for index.template.php and make similar edits to the Black Rain's theme. If you need assistance doing that, please attach that file to a reply here.
Always be a little kinder than necessary.
- James M. Barrie

purrplegrrl77

Thanks for the reply.  It's just strange to me that some of the ads are working where they need to and others are not when using the Ad Mod.  I checked all the Black Rain theme links on this site and I'm not seeing the Parse with the drop down box to choose the forum version on any of them.  I know what you're talking about because I've seen the drop down box on other mods.  I'm attaching a screenshot of the theme page where I downloaded Black Rain. I did a quick search on the rest of the site for it but I'm not having any luck. 


purrplegrrl77

I also wanted to add that I also tried downloading the Global Headers and Footers Mod, but I'm having trouble with that also.  Everything seems to install ok and all the tests are successful, but the link to it in Admin - Configuration isn't showing up...just a blank space.  I'm also attaching a screenshot of that as well.

Thanks again.

mashby

You really can't parse the theme, but you can absolutely parse the ad mod. What language are you running on your site? It looks to me like some language strings didn't show up for the global headers/footers mod.
Always be a little kinder than necessary.
- James M. Barrie

purrplegrrl77

I hope your question is literal and not "code-speak" cause then I'll look silly with my answer (I'm a complete newbie to all this) :laugh:   It's in English.

mashby

Maybe it could be UTF-8 English, but for some reason, I'd venture a guess that this file didn't get the needed edits:
Themes/default/languages/Modifications.english.php
If you can download that file and see if this appears at the end of it...

//Begin Global Headers and Footers Text Strings
$txt['globalhf_title'] = 'Global Headers and Footers';
//END Global Headers and Footers Text Strings
If it doesn't appear in that file add it before the ?> at the end of the file.
Always be a little kinder than necessary.
- James M. Barrie

purrplegrrl77

I went to the modifications.english.php file and opened it, and pasted the code you showed below, saved the file, went back to my site and refreshed it.  The option still does not show up in the Configuration section.  I went back into the php file to make sure that I copy/pasted everything correctly and it the many lines of code that were originally there now isn't, but what I pasted below is still there.

purrplegrrl77

Ok, I finally got it to work.  First, I had to change the language in server settings from "english UT8" to "english".  Once I did that, the Global Headers and Footers option appeared in the Configuration menu.  Once I copy/pasted the google code in the header portion, I inserted <div style="float:right"> so it wouldn't be too close to my other ad on the page.  Everything seems to be working great now.  Thanks again!  ::)

Advertisement: