Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - no cache
no cache
Goto page 1, 2  Next

15 Replies / 1697 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Ravens Nuke

View previous topic :: View next topic


Please report all major problems to Ravens Site.


Express
Reputation: 269.2 Add RepSubtract Rep
Local time: 5:57 AM
Location: Alaska
usa.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 02 Jan 2011
Posts: 95
Points: 3800 

Post no cache Posted: Mon Jan 04, 2010 8:15 pm

Hi all,

I am using RN with the zonecopper theme. I want to stop search engines from indexing or caching my pages. i researched it and found this.

To prevent all search engines from showing a "Cached" link for your site, place this tag in the <HEAD> section of your page:

<meta name="robots" content="noarchive">

To prevent all robots from indexing a page on your site, use a noindex meta tag. Place the following into the section of your page:

<meta name="robots" content="noindex">

My question is this;
In what files do I put this in and since they are all php and not html, where do i insert these codes? I cannot find or locate the <HEAD> section that they say where to put it.

Thanks,
Express
 

I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones. Albert Einstein (1879 - 1955)  
View user's profileSend private messageVisit poster's website Reply with quote

DreAdeDcoRpSE
Reputation: 2220.7 Add RepSubtract Rep
votes: 28
Local time: 9:57 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 09 Feb 2012
Posts: 2451
Points: 128598 

Post Re: no cache Posted: Mon Jan 04, 2010 9:43 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

Why would you want them to stop indexing your site, do you not want people to be able to find you site by means of ask.com, or google?
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Express
Reputation: 269.2 Add RepSubtract Rep
Local time: 5:57 AM
Location: Alaska
usa.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 02 Jan 2011
Posts: 95
Points: 3800 

Post Re: no cache Posted: Mon Jan 04, 2010 10:47 pm

When I first put my site online I had the modules public instead of just for registered guests. Google then indexed and cached all of my modules. I have since reset all my modules to be only for registered but in the meantime I have floating around module/info that is only for reg.
Google requires that I do this to clean up the other pages that I do not want indexed or cached.
So if I restrict these bots from caching and indexing for a brief period of time. The search engines will remove the pages in question if I have these scripts mentioned above in my web pages.
So where would I enter the above mentioned scripts if I have a php site?
 

 
View user's profileSend private messageVisit poster's website Reply with quote


Noto
Reputation: 1043.8 Add RepSubtract Rep
votes: 13
Local time: 3:57 PM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.56 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 09 Feb 2012
Posts: 978
Points: 61066 

Post no cache Posted: Mon Jan 04, 2010 11:04 pm

Code:
nuke_dir/header.php


add them like this in between the head tags.
Code:
echo '<meta name="robots" content="noarchive">';
echo '<meta name="robots" content="noindex">';
[/code]
 

Tactical Combat Evolved - Sig Showcase  
View user's profileSend private messageVisit poster's website Reply with quote

Express
Reputation: 269.2 Add RepSubtract Rep
Local time: 5:57 AM
Location: Alaska
usa.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 02 Jan 2011
Posts: 95
Points: 3800 

Post Re: no cache Posted: Tue Jan 05, 2010 2:17 am

Anywhere between them? So it does not matter whether it is line 20 or 30 or 40, just as long as it is between head() and head().
Here is a bit of my header.php.

function head() {
global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle, $name, $db, $prefix, $nukeNAV;
// Initialize CSS and JS arrays
$headCSS = array();
// Post 138905 Step 3
addCSSToHead(INCLUDE_PATH . 'themes/ravennuke.css', 'file');
$headJS = array(); // added inside HEAD tags
$bodyJS = array(); // added at bottom of page, before </BODY>
$ThemeSel = get_theme();
// Post 138905 Step 1
include_once INCLUDE_PATH . 'themes/' . $ThemeSel . '/theme.php';
// Tolerant baseURL Hack - VinDSL (Lenon.com)
$base_url = $_SERVER['HTTP_HOST'];

Since this is the header.php I assume that just putting this code here affects all the other pages too. S
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DreAdeDcoRpSE
Reputation: 2220.7 Add RepSubtract Rep
votes: 28
Local time: 9:57 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 09 Feb 2012
Posts: 2451
Points: 128598 

Post Re: no cache Posted: Tue Jan 05, 2010 7:49 am

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

should be able to do it I through the .htaccess
http://blamcast.net/articles/block-bots-hotlinking-ban-ip-htaccess
That's a site that explains what i am talking about.

But if you do it the way Noto says, you would put that after a line that looks like this,
Code:
 echo "<head>\n";


hope this helps a bit.
 

 
View user's profileSend private messageVisit poster's website Reply with quote


Express
Reputation: 269.2 Add RepSubtract Rep
Local time: 5:57 AM
Location: Alaska
usa.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 02 Jan 2011
Posts: 95
Points: 3800 

Post no cache Posted: Tue Jan 05, 2010 6:28 pm

Yes that helps alot. I looked over the whole header php page and was absolutely unsure where to put the text. I will give this a go and see what happens. Thansk again DC.

ps
I went and viewed your tutes the other night and they are excellent!
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Express
Reputation: 269.2 Add RepSubtract Rep
Local time: 5:57 AM
Location: Alaska
usa.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 02 Jan 2011
Posts: 95
Points: 3800 

Post Re: no cache Posted: Tue Jan 05, 2010 6:40 pm

Well this is what I did and I recieved an internal error message when I tried to visit the site.


}
echo "\n\n", '</head>', "\n";
<meta name="robots" content="noarchive">
<meta name="robots" content="noindex">
if (file_exists(INCLUDE_PATH . 'includes/custom_files/custom_header.php')) {
include_once INCLUDE_PATH . 'includes/custom_files/custom_header.php';
}
global $ab_config;
if ($ab_config['site_switch'] == 1 && isset($_COOKIE['admin']) && is_admin($_COOKIE['admin'])) {
echo '<center><img src="images/nukesentinel/disabled.png" alt="' . _AB_SITEDISABLED . '" title="' . _AB_SITEDISABLED . '" border="0" /></center><br />';
}
if ($ab_config['disable_switch'] == 1 && isset($_COOKIE['admin']) && is_admin($_COOKIE['admin'])) {
echo '<center><img src="images/nukesentinel/inactive.png" alt="' . _AB_NSDISABLED . '" title="' . _AB_NSDISABLED . '" border="0" /></center><br />';
}
if ($ab_config['test_switch'] == 1 && isset($_COOKIE['admin']) && is_admin($_COOKIE['admin'])) {
echo '<center><img src="images/nukesentinel/testmode.png" alt="' . _AB_TESTMODE . '" title="' . _AB_TESTMODE . '" border="0" /></center><br />';
}
themeheader();
}
online();
head();

Did I put it in the wrong line?
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DreAdeDcoRpSE
Reputation: 2220.7 Add RepSubtract Rep
votes: 28
Local time: 9:57 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 09 Feb 2012
Posts: 2451
Points: 128598 

Post Re: no cache Posted: Tue Jan 05, 2010 7:12 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

nope, that looks right to me, well the location.

you need to do this with the code.

Code:
echo '<meta name="robots" content="noarchive">';
echo '<meta name="robots" content="noindex">';
 

 
View user's profileSend private messageVisit poster's website Reply with quote


Express
Reputation: 269.2 Add RepSubtract Rep
Local time: 5:57 AM
Location: Alaska
usa.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 02 Jan 2011
Posts: 95
Points: 3800 

Post no cache Posted: Tue Jan 05, 2010 9:00 pm

Perfect. Works like a champ!

Heaping huge amounts of praise to this site and it's members Pint
Thanks fellas
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Noto
Reputation: 1043.8 Add RepSubtract Rep
votes: 13
Local time: 3:57 PM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.56 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 09 Feb 2012
Posts: 978
Points: 61066 

Post no cache Posted: Tue Jan 05, 2010 9:02 pm

They need to be inside the head tags. you are trying to add them after.

Code:
echo "\n\n", '</head>', "\n";

Notice you are trying to add them outside the head tag. </head> this indicates the end of the head tag.

look for
Code:
      echo '<head>', "\n";
   }

change it to look like
Code:
      echo '<head>', "\n";
   }
     echo '<meta name="robots" content="noarchive">';
     echo '<meta name="robots" content="noindex">'; 
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DreAdeDcoRpSE
Reputation: 2220.7 Add RepSubtract Rep
votes: 28
Local time: 9:57 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 09 Feb 2012
Posts: 2451
Points: 128598 

Post Re: no cache Posted: Tue Jan 05, 2010 10:33 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

or just put them before the line

Code:
echo "\n\n", '</head>', "\n";


so it would look like

Code:
}
echo '<meta name="robots" content="noarchive">';
echo '<meta name="robots" content="noindex">';
echo "\n\n", '</head>', "\n";
if (file_exists(INCLUDE_PATH . 'includes/custom_files/custom_header.php')) {
include_once INCLUDE_PATH . 'includes/custom_files/custom_header.php';
}


As long as it is between the <head> and the </head> like Noto said.

Nice catch Noto, when I looked at it, it was a quick glance and I didn't realize it was the closing of the head.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Ravens Nuke


 
15 Replies / 1697 Views
Page 1 of 2
All times are GMT
Goto page 1, 2  Next
Display posts from previous:   
 
Jump to:  
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 cannot attach files in this forum
You cannot download files in this forum