Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ Miscellaneous ⇒ Search Engines :: Archives ⇒ Google Adsense X Dragonfly :: Archived


Google Adsense X Dragonfly :: Archived
Questions and issues with search engines, SEO, bots, meta tags.
Go to page 1, 2  Next
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Search Engines

Topic Archived View previous topic :: View next topic  
Author Message
Smell
Newbie
Newbie

Offline Offline
Joined: Dec 07, 2005
Posts: 12

PostPosted: Tue Dec 13, 2005 3:25 am
Post subject: Google Adsense X Dragonfly

Hy there! Big grin

I'd been taking a look at the search in this forum, and i realized that google adsense displays a cpgnuke related content rather than your page content. Well, my account's just been accepted now and i've figured out that it's true... Sad

So, is there already a way to fix that up?

Txs a lot! Wink


Smell's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Red Hat/1.34/4.1.13/4.4.1/9.1.0.8
Back to top
View user's profile Visit poster's website
Head-e
Silver Supporter
Silver Supporter

Offline Offline
Joined: Apr 20, 2004
Posts: 937

PostPosted: Tue Dec 13, 2005 3:39 am
Post subject: Re: Google Adsense X Dragonfly

perhaps a link to your website?

did you edit the meta.php to your own keywords and descriptions?
how much content is on the site? I had one site that had great adsense relativity and clickthrough.


Head-e please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Photo Gallery
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Dec 13, 2005 5:14 am
Post subject: Re: Google Adsense X Dragonfly

You need to edit includes/meta.php, where you can add additional module descriptions and keywords, and also edit the default settings near the bottom of the file - just make sure you use a utf-8 compliant editor with appropriate settings.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Smell
Newbie
Newbie

Offline Offline
Joined: Dec 07, 2005
Posts: 12

PostPosted: Tue Dec 13, 2005 8:55 am
Post subject: Re: Google Adsense X Dragonfly

Txs for your answers brovs! Very Happy

I haven't made any change in that file... now i changed every "keywords" value by using php editor 2.21. Then i uploaded to the folder includes and cleaned the cache, it didn't make any difference. Should i wait some hours maybe? Confused

My site is this one. Laughing You cannot see the adsense yet, i've set it up only for admins so that i can test it bofore setting online for all. Razz

Btw txs a lot! i thought i was gonna have to get a job to afford my host... hehee Laughing


Smell's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Red Hat/1.34/4.1.13/4.4.1/9.1.0.8
Back to top
View user's profile Visit poster's website
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Tue Dec 13, 2005 9:15 am
Post subject: Re: Google Adsense X Dragonfly

what kind of adds do you want on your website ?

For example you could use the following in .htaccess
Code::
RewriteCond %{HTTP_USER_AGENT} "Mediapartners-Google" [NC]
RewriteRule ^.*$ /google.txt [L]
and put in google.txt the words where you want adds for like
Code::
musical paintings software


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Head-e
Silver Supporter
Silver Supporter

Offline Offline
Joined: Apr 20, 2004
Posts: 937

PostPosted: Tue Dec 13, 2005 4:35 pm
Post subject: Re: Google Adsense X Dragonfly

you can also add this to the standard adsense script

google_hints = "keywords"


Head-e please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Photo Gallery
Smell
Newbie
Newbie

Offline Offline
Joined: Dec 07, 2005
Posts: 12

PostPosted: Tue Dec 13, 2005 8:26 pm
Post subject: Re: Google Adsense X Dragonfly

Hyê!

DJMaze, i wanna add to my site anouncements like "olsen twins, mary kate olsen, ashley olsen". Then i created a file "google.txt" as you said with the content:

Code::
olsen twins mary kate olsen ashley olsen

I sent it to my "public_html". I made those changes in the .htaccess and didn't work either...

Head-e, i did it too, still not working...

Txs again for trying fellows! Very Happy

I donno if it helps, but here is the code of the block: (google_ad_client edited)

Code::
<?php
if (!defined('CPG_NUKE')) { exit; }
?>
<script language="JavaScript">
<!--
google_hints = "keywords"
google_ad_client = "pub-66949996929XXXXXX";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DFF2FD";
google_color_bg = "DFF2FD";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
// -->
</script>
<?php
$content .= "<center><script language=\"JavaScript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">";
$content .= "</script></center>";
?>

Confused


Smell's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Red Hat/1.34/4.1.13/4.4.1/9.1.0.8
Back to top
View user's profile Visit poster's website
Head-e
Silver Supporter
Silver Supporter

Offline Offline
Joined: Apr 20, 2004
Posts: 937

PostPosted: Tue Dec 13, 2005 10:31 pm
Post subject: Re: Google Adsense X Dragonfly

Code::
<?php
if (!defined('CPG_NUKE')) { exit; }
?>
<script language="JavaScript">
<!--
google_hints = "keywords"
google_ad_client = "pub-66949996929XXXXXX";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DFF2FD";
google_color_bg = "DFF2FD";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
google_hints = "olsen twins, mary kate olsen, ashley olsen";
// -->
</script>
<?php
$content .= "<center><script language=\"JavaScript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">";
$content .= "</script></center>";
?>

but if all you have for content is your google ads, of course its gonna pull info from the core... Try modifying your ads into a populated forum or weblinks or downloads module.. you will see targeted results.


Head-e please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Photo Gallery
Smell
Newbie
Newbie

Offline Offline
Joined: Dec 07, 2005
Posts: 12

PostPosted: Wed Dec 14, 2005 8:12 am
Post subject: Re: Google Adsense X Dragonfly

hehe that's tru Head-e, there's still a lack of content in my page. But i'm gonna solve that soon. Very Happy

I think it's working now! Smile I took a look at some other fan sites that also use adsense and figured out that their metatags use names like fan pages of other stars, make-up, teen content... so what did i do? "Michael Jackson, Avril Lavigne, Hillary Duff..." Big grin hehehe Laughing

Txs all! Razz


Smell's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Red Hat/1.34/4.1.13/4.4.1/9.1.0.8
Back to top
View user's profile Visit poster's website
skoeter
Silver Supporter
Silver Supporter

Offline Offline
Joined: Aug 17, 2004
Posts: 140
Location: Netherlands
PostPosted: Fri Sep 28, 2007 7:47 am
Post subject: Re: Google Adsense X Dragonfly

Great tips, thanx Very Happy


skoeter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
server ??/MySQL 5+/PHP 5+/Dragonfly 9.1.2
Back to top
View user's profile Visit poster's website
dusman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
PostPosted: Fri Sep 28, 2007 1:42 pm
Post subject: Re: Google Adsense X Dragonfly

be advised using the google_hints is against the TOS "you cannot modify the code in any way" and google will ban your site if you use it. Make sure you read the TOS very carefully and follow it to the "T" or they will diabled your account and even take $$ back to refund back to the publishers.

The best way to get relevant ADS is your meta data and content.

_________________
-Dustin

Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men

dusman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
Back to top
View user's profile Visit poster's website
dusman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
PostPosted: Fri Sep 28, 2007 1:46 pm
Post subject: Re: Google Adsense X Dragonfly

DJMaze that .htaccess code is interesting, can you describe exactly what it is doing for me?

thanks

_________________
-Dustin

Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men

dusman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
Back to top
View user's profile Visit poster's website
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Fri Sep 28, 2007 3:21 pm
Post subject: Re: Google Adsense X Dragonfly

Code::
RewriteCond %{HTTP_USER_AGENT} "Mediapartners-Google" [NC]
Check if the 'user-agent' header that is send by the client contains "string".

Code::
RewriteRule ^.*$ /google.txt [L]
If so then open for all requests google.txt


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
webhax
Newbie
Newbie

Offline Offline
Joined: May 13, 2006
Posts: 26

PostPosted: Sat Sep 29, 2007 5:22 am
Post subject: Re: Google Adsense X Dragonfly

One can also use Google Ad Section Targeting to get ads relevant to your content.

For example if you publish a story through news module what you could do is add
<!-- google_ad_section_start -->
before the start of your story
and
<!-- google_ad_section_end -->
after the end of your story.

You can read more about it here...
www.google.com/adsense...swer=23168

Btw I also had a question in mind...
Is it possible to show google ad using div by text wrapping it in the first post of every thread like this webmaster has done here for example...
forums.megagames.com/f...hp?t=52770

_________________
{ Oversize Sig }

webhax's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33/5.0.45/5.1.4/9.1.2.1
Back to top
View user's profile Visit poster's website
ma_hunter
Newbie
Newbie

Offline Offline
Joined: Nov 02, 2007
Posts: 22
Location: MA
PostPosted: Tue Nov 06, 2007 6:38 pm
Post subject: Re: Google Adsense X Dragonfly

Remember to disable the GoogleAds when you test your site. You do not want to generate new ads each time you click to see if your content is OK. What I do is something like:

if (!is_admin()) {
googleAds();
}

That way when I am logged in as an Admin, I never get the ads.


ma_hunter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/5.0.45/9.1.2.1
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Search Engines
Page 1 of 2
All times are GMT
Go to page 1, 2  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

lesa meira...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy