vBulletin Search Engine Optimization
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 ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#121
| |||
| |||
|
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! |
|
#122
| ||||
| ||||
|
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 |
|
#123
| |||
| |||
|
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. |
|
#124
| |||
| |||
|
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 ? |
|
#125
| ||||
| ||||
|
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 |
|
#127
| |||
| |||
|
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> oh and btw. you can exclude adsense with this condition Code: <if condition="THIS_SCRIPT != 'misc'"> #your adsense code# </if> Last edited by Lowfyr; 10-17-2008 at 08:56 AM. |
|
#128
| ||||
| ||||
|
i've Also added a tag cloud to mine. This requires hacking misc.php a little bit. http://hondaswap.com/404y0! |
|
#129
| ||||
| ||||
| Quote:
|
|
#130
| |||
| |||
|
Can you please share how this is accomplished so I can do the same, Brian?
|
|
#131
| ||||
| ||||
| Quote:
|
|
#132
| ||||
| ||||
| Quote:
in misc.php add the gloabaltemplates for the cloud: replace Code: $globaltemplates = array(); Code: $globaltemplates = array(
'tag_cloud_link',
'tag_cloud_box_search',
'tag_cloud_headinclude'
);
Code: // ######################### REQUIRE BACK-END ############################
require_once('./global.php');
Code: // ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(DIR . '/includes/functions_search.php');
require_once(DIR . '/includes/functions_misc.php');
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) . '");');
}
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>
let me know if something doesn't work... been a while since i did this and didn't write down the steps involved. |
|
#133
| ||||
| ||||
|
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> 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> |
|
#134
| ||||
| ||||
|
Good idea, Mert |
|
#135
| |||
| |||
|
Thanks so much, Brian. I'll give installing this a shot!
|
| Tags |
| 404, custom pages |
| Thread Tools | |
| |
LinkBacks (?)
| ||||
| Posted By | For | Type | Date | |
| Solo 297 pagine indicizzate, ma perchè? | This thread | Refback | 02-21-2007 09:33 AM | |