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



Posts: 1,635
Joined: May 2008
Reputation: 35
MyBux: 436
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
Tuts Team



Posts: 531
Joined: Aug 2008
Reputation: 2
MyBux: 507
Post: #2
RE: My Custom Errors
Great idea for a mod been looking for this!

Thanks Polarbear541! (Polar or PB)
Tuts Team at MyBBSource
Review Team at AdminSpace.net

[Image: polarbear541.png]
04-22-2009 05:01 AM


faviouz
Member


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


Posts: 151
Joined: Feb 2009
Reputation: 0
MyBux: 248
Post: #4
RE: My Custom Errors
oooo nice one but i doubt if ill get around to setting them any time soon ...

"Real men don't use backups, they post their stuff on a public ftp server and let the rest of the world make copies"
04-22-2009 06:09 AM


Bluepower10
Teh Awesumnessest


Posts: 139
Joined: Apr 2009
Reputation: 0
MyBux: 49
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 KoolBots for discussions of PHP, mIRC, perl, Java, and more coding. You will have lots of fun!
04-24-2009 11:28 AM
Nickman
Manager



Posts: 1,635
Joined: May 2008
Reputation: 35
MyBux: 436
Post: #6
RE: My Custom Errors
please post your .htaccess and your forums domain



Free Traffic for your forum! | Small URLs | Orbit Arcade | Tech news at a glance | BestVidz.net | Download'en
04-24-2009 12:04 PM


ByteHunter
Junior Member


Posts: 37
Joined: Dec 2008
Reputation: 0
MyBux: 34
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
(This post was last modified: 04-25-2009 05:59 AM by ByteHunter.)
04-25-2009 05:58 AM
Nickman
Manager



Posts: 1,635
Joined: May 2008
Reputation: 35
MyBux: 436
Post: #8
RE: My Custom Errors



Free Traffic for your forum! | Small URLs | Orbit Arcade | Tech news at a glance | BestVidz.net | Download'en
04-25-2009 06:18 AM


faviouz
Member


Posts: 134
Joined: Oct 2008
Reputation: 0
MyBux: 24
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: 139
Joined: Apr 2009
Reputation: 0
MyBux: 49
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 KoolBots for discussions of PHP, mIRC, perl, Java, and more coding. You will have lots of fun!
04-25-2009 11:49 AM


 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Custom ACP Links Nickman 2 44 Today 05:10 AM
Last Post: habs
  Custom Pages Nickman 34 829 04-16-2009 12:28 AM
Last Post: hfbvm



New to MyBBSource?Need Assistance?
  • Mark Forums Read
  • View Forum Staff
  • Looking for a MyBB Host?

  



Theme created by AK-47. Find more great themes and skins at K! Dezign R1s.net