vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it.

This is a discussion on Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it. within the Member Articles forums, part of the Focus on Members category; Hi, I am using this 404 mod and instead of 404s, every page that doesn't exist is sending a 200 ...

Go Back   vBulletin SEO Forums > Focus on Members > Member Articles

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack (1) Thread Tools
  #121  
Old 10-10-2008, 07:31 PM
Member
 
Real Name: Johnny5
Join Date: Oct 2008
Posts: 86
Hi,

I am using this 404 mod and instead of 404s, every page that doesn't exist is sending a 200 and taking people to a list of smileys. Has anyone else had this issue and can you recommend a fix? I'm afraid it's going to hurt my search engines results. :(

Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #122  
Old 10-10-2008, 09:15 PM
Keith Cohen's Avatar
vBSEO Staff
vBSEO Total Customer SupportBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,266
If you're getting the smilies, then you made a mistake on a step of this.

The smilies come up if you just call misc.php with no parameters, or with incorrect parameters. Example: vBulletin SEO Forums - Smilies
__________________
Keith Cohen / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.


My Personal Sites: My Blog | GPS Discussion Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #123  
Old 10-10-2008, 09:53 PM
Member
 
Real Name: Johnny5
Join Date: Oct 2008
Posts: 86
Thanks, Keith. I'm using this in tandem with this: 404 / 301 Tool After Import Redirect on ImpEx imported forums

Are there any additional steps I need to follow/things I need to ensure to make them jive?

Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #124  
Old 10-14-2008, 05:20 PM
Junior Member
 
Real Name: Catherine L Wright
Join Date: Sep 2008
Posts: 27
Dear

How do I should create a new template ?

create a
custom_404.XML file and paste codes into it ?

then admincp > Download / Upload Style > Styles & Templates > Import XML File ?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #125  
Old 10-14-2008, 06:00 PM
SIINSI's Avatar
Member
Big Board Administrator
 
Real Name: Miguel Diaz
Join Date: Sep 2008
Location: Palm Coast, FL
Posts: 74
Send a message via AIM to SIINSI
AdminCP>Styles & Templates>Style Manager>Add New Template in Dopdown Menu

Copy and paste and name template custom_404>Save. Do the same for all styles.

Miguel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #126  
Old 10-15-2008, 02:54 PM
Junior Member
 
Real Name: Catherine L Wright
Join Date: Sep 2008
Posts: 27
Thanks SIINSI

you guide me well
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #127  
Old 10-17-2008, 08:34 AM
Junior Member
 
Real Name: Lowfyr
Join Date: Aug 2007
Posts: 2
I just wanna share my customized custom_404 template, I've included the new google Enhance 404 pages widget (you can find this widget in WMT).

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
 <!-- no cache headers -->
 <meta http-equiv="Pragma" content="no-cache" />
 <meta http-equiv="Expires" content="-1" />
 <meta http-equiv="Cache-Control" content="no-cache" />
 <!-- end no cache headers -->
 $headinclude
 <title>Page Not Found - <phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar
<br />
<div style="padding-left: 25px; padding-right: 25px; font-weight: bold;" class="alt1">
<br />
<h2>Page not found</h2>
########## enter your google 404 code here ##########
<br />
</div>
$footer
</body>
</html>
how it looks like: http://www.elitepvpers.de/forum/404

oh and btw. you can exclude adsense with this condition

Code:
<if condition="THIS_SCRIPT != 'misc'">
#your adsense code#
</if>
but please note that this condition excludes your adsense from all misc sites.

Last edited by Lowfyr; 10-17-2008 at 08:56 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #128  
Old 10-17-2008, 04:25 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,538
i've Also added a tag cloud to mine.

This requires hacking misc.php a little bit.

http://hondaswap.com/404y0!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #129  
Old 10-17-2008, 05:06 PM
webwizzy's Avatar
Senior Member
 
Real Name: Vinayak
Join Date: Aug 2008
Location: India
Posts: 118
Send a message via Yahoo to webwizzy
Quote:
Originally Posted by briansol View Post
i've Also added a tag cloud to mine.

This requires hacking misc.php a little bit.

http://hondaswap.com/404y0!
You could have done it with vba integration feature without modifing misc.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #130  
Old 10-17-2008, 05:11 PM
Member
 
Real Name: Johnny5
Join Date: Oct 2008
Posts: 86
Can you please share how this is accomplished so I can do the same, Brian?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #131  
Old 10-17-2008, 05:30 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,538
Quote:
Originally Posted by webwizzy View Post
You could have done it with vba integration feature without modifing misc.php
possibly, but vba doesn't touch my site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #132  
Old 10-17-2008, 05:45 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,538
Quote:
Originally Posted by Johnny5 View Post
Can you please share how this is accomplished so I can do the same, Brian?

in misc.php

add the gloabaltemplates for the cloud:

replace
Code:
$globaltemplates = array();
with

Code:
$globaltemplates = array(
    'tag_cloud_link',
    'tag_cloud_box_search',
    'tag_cloud_headinclude'
    );
replace
Code:
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
with

Code:
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(DIR . '/includes/functions_search.php');
require_once(DIR . '/includes/functions_misc.php');
Note: this next section includes my 404 logger product hack (link in sig). If you are not running this, skip this and use the next one

swap out the whole if page... conditional with this:

Code:
if ($_REQUEST['do'] == 'page' AND $vbulletin->GPC['template'] != '')
{
    $template_name = preg_replace('#[^a-z0-9_]#i', '', $vbulletin->GPC['template']);


    if($template_name == "404") {        
        // store bad hits for reports

        if ($vbulletin->userinfo['userid'] == '' || $vbulletin->userinfo['userid'] == '0')
        {
            $userid = "0";
        }
        else
        {
            $userid = $vbulletin->userinfo['userid'];
        }

        $dateline = TIMENOW;

        //defined in class_core
        $ref = addslashes(REFERRER);
        $page = addslashes(SCRIPTPATH);
        $ip = addslashes(SESSION_HOST);
        $ua = addslashes(USER_AGENT);

        $sql = $db->query_write("INSERT INTO " . TABLE_PREFIX . "four0four (dateline, userid, ref, page, ip, ua)  VALUES ($dateline, $userid, '$ref', '$page', '$ip', '$ua')    ");
    

        //*  include tag cloud *//

        // tag cloud display
        if ($vbulletin->options['threadtagging'] == 1 AND $vbulletin->options['tagcloud_searchcloud'] == 1)
        {
            $tag_cloud = fetch_tagcloud('usage');            
        }
        else
        {
            $tag_cloud = '';
            $tag_cloud_headinclude = '';
        }
    }

    $navbits = construct_navbits(array('' => $template_name));
    eval('$navbar = "' . fetch_template('navbar') . '";');
    

    eval('print_output("' . fetch_template('custom_' . $template_name) . '");');
}
If you don't use my product, use this instead:

Code:
if ($_REQUEST['do'] == 'page' AND $vbulletin->GPC['template'] != '')
{
    $template_name = preg_replace('#[^a-z0-9_]#i', '', $vbulletin->GPC['template']);


    if($template_name == "404") { 
        //*  include tag cloud *//

        // tag cloud display
        if ($vbulletin->options['threadtagging'] == 1 AND $vbulletin->options['tagcloud_searchcloud'] == 1)
        {
            $tag_cloud = fetch_tagcloud('usage');            
        }
        else
        {
            $tag_cloud = '';
            $tag_cloud_headinclude = '';
        }
    }

    $navbits = construct_navbits(array('' => $template_name));
    eval('$navbar = "' . fetch_template('navbar') . '";');
    

    eval('print_output("' . fetch_template('custom_' . $template_name) . '");');
}


edit custom_404 template. You may want to change some of this, but it includes both the google 404 stuff (which you must sign up for / get from google webmaster tools), and the cloud tag.

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" xmlns="http://www.w3.org/1999/xhtml">
<head>
 <!-- no cache headers -->
 <meta http-equiv="Pragma" content="no-cache" />
 <meta http-equiv="Expires" content="-1" />
 <meta http-equiv="Cache-Control" content="no-cache" />
 <!-- end no cache headers -->
 $headinclude
 <title>404 Page Not Found - <phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
<style type="text/css">
  #goog-wm { }
  #goog-wm h3.closest-match { }
  #goog-wm h3.closest-match a { }
  #goog-wm h3.other-things { display: none; }
  #goog-wm ul li { text-align: center; }
  #goog-wm li.search-goog { display: block; }
#wrapper404 { width: 550px; margin: 0 auto 0 auto; padding: 0; 
 text-align: center;
h1 { margin: 0; padding: 0; }
}
ul li {text-align: left; }

a.tagcloudlink:link, a.tagcloudlink:visited { text-decoration:none; }
a.tagcloudlink:hover, a.tagcloudlink:active { text-decoration:underline; }
a.level1 { font-size: xx-small; }
a.level2 { font-size: small; }
a.level3 { font-size: medium; }
a.level4 { font-size: large; }
a.level5 { font-size: xx-large; }

</style>
</head>
<body>
$header
$navbar
<br />
<div id="wrapper404">
<h1>404</h1>
<p>Sorry, the page you have requested cannot be found.</p>
<script type="text/javascript">
  var GOOG_FIXURL_LANG = 'en';
  var GOOG_FIXURL_SITE = 'http://YOURDOMAIN.com/';
</script>
<script type="text/javascript" 
    src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>

<ul>
<li><a href="$vboptions[bburl]/search.php">Forum Search Engine</a></li>
<li>Return to the <a href="/">homepage</a></li>
</ul>

<h3>Popular Tags</h3>
$tag_cloud 

</div>
$footer
</body>
</html>
I think that's it.

let me know if something doesn't work... been a while since i did this and didn't write down the steps involved.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #133  
Old 10-17-2008, 07:38 PM
Mert Gökçeimam's Avatar
vBSEO.com Webmaster
vBSEO Total Customer SupportvBulletin HackerBig Board Administrator
 
Real Name: Lizard King
Join Date: Oct 2005
Location: Istanbul
Posts: 7,817
Blog Entries: 1
Send a message via MSN to Mert Gökçeimam
Adding tags is a great idea.

You may also want to change

Code:
<h1>404</h1>
<p>Sorry, the page you have requested cannot be found.</p>
with

Code:
<h1>404</h1>
<p>Sorry, <a href="http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" rel="nofollow">the page</a>  you have requested cannot be found.</p>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #134  
Old 10-18-2008, 01:53 AM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,538
Good idea, Mert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #135  
Old 10-18-2008, 07:13 AM
Member
 
Real Name: Johnny5
Join Date: Oct 2008
Posts: 86
Thanks so much, Brian. I'll give installing this a shot!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Tags
404, custom pages

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.vbseo.com/f34/create-custom-vbulletin-404-page-not-found-page-direct-vbseo-use-11288/

Posted By For Type Date
Solo 297 pagine indicizzate, ma perchè? This thread Refback 02-21-2007 09:33 AM


All times are GMT -4. The time now is 09:18 PM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.