/************************************************************************/
/************************************************************************/
/* DO NOT EDIT BELOW THIS LINE */
/************************************************************************/
/************************************************************************/
if (eregi("block-GoogleAdSense.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
inside code client google Adsence 'pub-0783045000870789'
_________________ anseur.5gigs.com
blackark Nuke Cadet
Joined: Sep 11, 2004
Posts: 2
Posted:
Mon Jul 25, 2005 5:54 pm
This is the adsense block I use, much cleaner and better quality too.
Quote:
<?php
######################################################################
# PHP-Nuke Block: Google AdSense (block-Google-Ads120x240.php) #
# Copyright(c) 2004 Steph Benoit - http://64bit.us #
# This script is free. You can redistribute it and/or modify #
# it under the terms of GNU/GLP Version 2 #
######################################################################
if (eregi("block-Google-Ads.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
?>
The php tags are broken up because if you don't do it this way then your code won't stay inside the block.
Below is my google site search block, same basic idea.
Quote:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2005 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-Search.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
</td></tr></table>
</form>
<!-- SiteSearch Google -->";
?>
anseur Nuke Soldier
Joined: May 01, 2005
Posts: 25
Location: algeria
Posted:
Mon Jul 25, 2005 7:34 pm
blackark wrote:
This is the adsense block I use, much cleaner and better quality too.
Quote:
<?php
######################################################################
# PHP-Nuke Block: Google AdSense (block-Google-Ads120x240.php) #
# Copyright(c) 2004 Steph Benoit - http://64bit.us #
# This script is free. You can redistribute it and/or modify #
# it under the terms of GNU/GLP Version 2 #
######################################################################
if (eregi("block-Google-Ads.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
?>
The php tags are broken up because if you don't do it this way then your code won't stay inside the block.
Below is my google site search block, same basic idea.
Quote:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2005 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-Search.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
</td></tr></table>
</form>
<!-- SiteSearch Google -->";
?>
yes my friend i have many good blocks google
i am juste ask for help all friends if use this block need to change code clien google
thank you my friend for you reply
_________________ anseur.5gigs.com
blackark Nuke Cadet
Joined: Sep 11, 2004
Posts: 2
Posted:
Tue Jul 26, 2005 11:11 am
Yes if you decide to use the search block that I pasted you need to fill it out with your own info for the google id and also the website you are going to search, as the one I pasted has my website info in it still (lazy).
I changed the google id's in the scripts to "yourgoogleid" so if you just pasted it into a page it would be broken,
which is better than other people serving ads for me like the one above is doing.
I found the same situation with a wordpress theme where the theme designer pasted in his own google ads into the theme pages and used his own google id so if people were lazy and didn't see it,
then they would be providing him with impressions and clicks until they notice.
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