Page 10 of 26 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ... LastLast
Results 136 to 150 of 376
Like Tree7Likes

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; Any benefit of using the file edits to get the tag cloud on misc.php over using a plugin/product to achieve ...

  1. #136
    Senior Member
    Real Name
    dave
    Join Date
    Jun 2006
    Posts
    348
    Liked
    0 times
    Blog Entries
    1
    Any benefit of using the file edits to get the tag cloud on misc.php over using a plugin/product to achieve it?

    Here's mine, its personalized so if a logged in member finds it, it spits back their username
    HTML 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>404 Error 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; background: white; font-size: 13px;">
    <br />
    <h2>Sorry <if condition="$show[member]">$bbuserinfo[username] </if>Page can not be found</h2>
    <p>We're sorry but, <a href="http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" rel="nofollow">the page</a>  you have requested cannot be found.</p>
    <if condition="$show[guest]"><p>You can try to find what your looking for using the search box below, or why not <a href="register.php" rel="nofollow">register/login</a> and enjoy all the features and information we do have to offer</p></if>
    
    <style type="text/css">
      #goog-wm { }
      #goog-wm h3.closest-match { }
      #goog-wm h3.closest-match a { }
      #goog-wm h3.other-things { }
      #goog-wm ul li { }
      #goog-wm li.search-goog { display: block; }
    </style>
    <script type="text/javascript">
      var GOOG_FIXURL_LANG = 'en';
      var GOOG_FIXURL_SITE = 'http://seotips4.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>
    $vbcloud
    <br />
    </div>
    $footer
    </body>
    </html>
    Last edited by FightRice; 10-20-2008 at 08:08 PM.

  2. #137
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    If you want to use plugin system create a new plugin with the following info :

    Plugin Name : 404 Display Page
    Hook Name : misc_start
    Executiın Order : 5
    and choose one of Brian's suggested code.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #138
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    If there was a hook available where i needed it, i would have used it.

    You can get the templates in with cache_templates hook.

    and you can get the requires in with misc_start


    but, you can't get inside
    Code:
    if ($_REQUEST['do'] == 'page' AND $vbulletin->GPC['template'] != '')
    because there's no hook there.


    I know, it's a pain when upgrade time comes around :(

  4. #139
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    Honestly Brian , i miss the days when we used to upgrade our old forums. Upgrading was fun then. Now it is pretty easy and doesn't allow webmasters to learn anything. Thats why i usually still modify code on my sites which of course allow me to save resources on my server also. File edits always perform better perfonmance then plugins.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  5. #140
    Junior Member
    Real Name
    Raymond
    Join Date
    Aug 2008
    Posts
    23
    Liked
    0 times
    I've upgraded from PunBB to vBulletin and all of my links changed.

    I'd like to do it in a much easier way, which is instead of displaying "Page Not Found", how can I make vBulletin redirect to my main forum page?

  6. #141
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  7. #142
    Junior Member
    Real Name
    Raymond
    Join Date
    Aug 2008
    Posts
    23
    Liked
    0 times
    Thanks but unfortunately the 404 script doesn't support PunBB :(

  8. #143
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    If you supply your url formats in that thread maybe we can supplu you the correct version.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  9. #144
    Junior Member
    Real Name
    Raymond
    Join Date
    Aug 2008
    Posts
    23
    Liked
    0 times
    I just saw an option to redirect to the main forum page in vbseo mod. Thanks.

  10. #145
    Junior Member
    Real Name
    Simon
    Join Date
    Apr 2007
    Posts
    27
    Liked
    0 times
    Hi there,

    first of all, thanks for this great post .

    I have a question regarding http status code. After some tests, I noticed that this 404 are returning 200 status code:

    #1 Server Response: http://example.org/forums/sffd
    HTTP Status Code: HTTP/1.1 200 OK
    Date: Sat, 15 Nov 2008 10:34:59 GMT
    Server: Apache
    Status: 404 Not Found
    Set-Cookie: bblastactivity=0; expires=Sun, 15-Nov-2009 10:34:59 GMT; path=/
    Cache-Control: private, max-age=1
    Pragma: private
    X-UA-Compatible: IE=7
    Expires: Sat, 15 Nov 2008 10:35:00 GMT
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=ISO-8859-1
    Is that fine? Shouldn´t the server return a 404 status code?

    Thanks in advance, Simon.

  11. #146
    Member popowich's Avatar
    Real Name
    Raymond Popowich
    Join Date
    Nov 2008
    Location
    Rochester, New York
    Posts
    40
    Liked
    0 times
    Hello,

    Thank you for the 404.php file!

    I used a combination of the 404.php from the first post in this thread and the advanced 404 error pages code from the google webmaster tools site.

    The result is a custom 404 error page that also includes a local google powered search.

    Demo.

    All you need to do is replace this line with the goggle code:

    You can try a <a href="$vboptions[bburl]/search.php">search</a> if you are looking for something specific.
    I am not a vBSEO customer so I needed to use an apache directive to enable the error page.

    ErrorDocument 404 /404.php
    Any suggestions for improving this combination?

    -Raymond

    PS: When registering the options page needs 3.7.4 added to the vBulletin version selections.
    Last edited by popowich; 12-11-2008 at 12:58 PM.

  12. #147
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Any suggestions for improving this combination?
    install vbseo

  13. #148
    Junior Member
    Real Name
    Jon
    Join Date
    Apr 2007
    Posts
    22
    Liked
    0 times
    Quote Originally Posted by BamaStangGuy View Post
    Everyone that uses this should add:
    PHP Code:
    define('SKIP_SESSIONCREATE'1); 
    to the top of their 404 file so that vBulletin doesn't track your 404 errors in whos online.
    Any way to code this so it only does this for un-registered members? when registered members view a error page with this code enabled, and the navbar is visible, it makes them think they are loged out.

  14. #149
    Member samel's Avatar
    Real Name
    Val
    Join Date
    Jul 2007
    Posts
    57
    Liked
    7 times
    Thanks for excellent guide. I created a 404 page

    How can we make the same effect for pages with broken links
    See example:
    http://www.insurance-forums.net/foru...ead5096-2.html

    Thanks

  15. #150
    Member samel's Avatar
    Real Name
    Val
    Join Date
    Jul 2007
    Posts
    57
    Liked
    7 times
    Quote Originally Posted by samel View Post
    Thanks for excellent guide. I created a 404 page

    How can we make the same effect for pages with broken links
    See example:
    http://www.insurance-forums.net/foru...ead5096-2.html

    Thanks
    Hate to quote myself, but did anyone figured how to rewrite the broken links like the one above?

    Thanks

Page 10 of 26 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ... LastLast

LinkBacks (?)


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •