Latest News:
Latest Mods: Latest Tutorials:


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My Custom Errors
Author Message
Nickman
Manager



Posts: 2,662
Joined: May 2008
Reputation: 63
Post: #1
My Custom Errors
Mod Description: Allows you to integrate the 400,401,403,404 and 500 Error Pages

EDIT: If your forum is not in the ROOT directory of your SITE, then do this edit instead:
Open .htaccess, add
Code:
ErrorDocument 400 /<forum_directory>/400.php
ErrorDocument 401 /<forum_directory>/401.php
ErrorDocument 403 /<forum_directory>/403.php
ErrorDocument 404 /<forum_directory>/404.php
ErrorDocument 500 /<forum_directory>/500.php


Link to Mods DB: Get It
04-22-2009, 04:53 AM
Polarbear541
Premium User


Posts: 1,190
Joined: Aug 2008
Reputation: 5
Post: #2
RE: My Custom Errors
Great idea for a mod been looking for this!

Thanks, Polarbear541
04-22-2009, 05:01 AM
faviouz
Member


Posts: 231
Joined: Oct 2008
Reputation: 0
Post: #3
RE: My Custom Errors
Is this like Crakter's plugin? Custom Error Pages?
04-22-2009, 06:05 AM
madshark
Member


Posts: 185
Joined: Feb 2009
Reputation: 0
Post: #4
RE: My Custom Errors
oooo nice one but i doubt if ill get around to setting them any time soon ...
04-22-2009, 06:09 AM
Bluepower10
Teh Awesumnessest


Posts: 156
Joined: Apr 2009
Reputation: 0
Post: #5
RE: My Custom Errors
When I do /forum/idnoem it still shows teh default error page. And I did the .htaccess edit.


[Image: 1_1998.gif]
Join Traffikr to get more hits and users for your site, guaranteed!
04-24-2009, 11:28 AM
Nickman
Manager



Posts: 2,662
Joined: May 2008
Reputation: 63
Post: #6
RE: My Custom Errors
please post your .htaccess and your forums domain


DailyMix
04-24-2009, 12:04 PM
ByteHunter
Community builder


Posts: 1,358
Joined: Dec 2008
Reputation: 20
Post: #7
RE: My Custom Errors
It sounds great . Nickman can you post a preview ?
It sounds great ...
Preview it at :
http://mybbsource.com/forums/trythis

free forum
(This post was last modified: 04-25-2009, 05:59 AM by ByteHunter)
04-25-2009, 05:58 AM
Nickman
Manager



Posts: 2,662
Joined: May 2008
Reputation: 63
Post: #8
RE: My Custom Errors


DailyMix
04-25-2009, 06:18 AM
faviouz
Member


Posts: 231
Joined: Oct 2008
Reputation: 0
Post: #9
RE: My Custom Errors
(04-25-2009 06:18 AM)Nickman Wrote:  just go here:

http://mybbsource.com/forums/nickman.php
That link doesn't work.
edit: OMG lol, forget it. HAHA. I phail'd >:
(This post was last modified: 04-25-2009, 06:49 AM by faviouz)
04-25-2009, 06:45 AM
Bluepower10
Teh Awesumnessest


Posts: 156
Joined: Apr 2009
Reputation: 0
Post: #10
RE: My Custom Errors
htaccess:
Code:
Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
    # Turn off mod_security filtering.
    SecFilterEngine Off

    # The below probably isn't needed, but better safe than sorry.
    SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
#   the setting enabled in the Admin CP and you have this file
#   named .htaccess
#
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
    RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

    RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
    RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
    RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
    RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
    RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
    RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
    RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]

    RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]

    RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]

    RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]

    RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
    RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

    RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]

    <IfModule mod_env.c>
        SetEnv SEO_SUPPORT 1
    </IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>
ErrorDocument 400 /400.php
ErrorDocument 401 /401.php
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php

forum link: http://koolbots.biz/forum/


[Image: 1_1998.gif]
Join Traffikr to get more hits and users for your site, guaranteed!
04-25-2009, 11:49 AM




User(s) browsing this thread: 2 Guest(s)