Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
URL Status Checker Details »»
URL Status Checker
Version: 1.00, by Slynderdale Slynderdale is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 02-27-2003 Last Update: Never Installs: 26
 
No support by the author.

This is a simple hack, Just copy and paste two bits of code into two files (admin/functions.php and member.php), it adds a real handy url status checker function that checks for these web statuses:

"N/A"=>"Ikke HTTP",
"OK"=>"Valid hostname",
"FEJL"=>"Invalid hostname",
"D?d"=>"No response",
"100"=>"Continue",
"101"=>"Switching Protocols",
"200"=>"OK",
"201"=>"Created",
"202"=>"Accepted",
"203"=>"Non-Authoritative Information",
"204"=>"No Content",
"205"=>"Reset Content",
"206"=>"Partial Content",
"300"=>"Multiple Choices",
"301"=>"Moved Permanently",
"302"=>"Found",
"303"=>"See Other",
"304"=>"Not Modified",
"305"=>"Use Proxy",
"307"=>"Temporary Redirect",
"400"=>"Bad Request",
"401"=>"Unauthorized",
"402"=>"Payment Required",
"403"=>"Forbidden",
"404"=>"Not Found",
"405"=>"Method Not Allowed",
"406"=>"Not Acceptable",
"407"=>"Proxy Authentication Required",
"408"=>"Request Timeout",
"409"=>"Conflict",
"410"=>"Gone",
"411"=>"Length Required",
"412"=>"Precondition Failed",
"413"=>"Request Entity Too Large",
"414"=>"Request-URI Too Long",
"415"=>"Unsupported Media Type",
"416"=>"Requested Range Not Satisfiable",
"417"=>"Expectation Failed",
"500"=>"Internal Server Error",
"501"=>"Not Implemented",
"502"=>"Bad Gateway",
"503"=>"Service Unavailable",
"504"=>"Gateway Timeout",
"505"=>"HTTP Version Not Supported"

Screen Shot:
https://vborg.vbsupport.ru/attachmen...&postid=359438

If you like it and install it on your board, all I ask of you is to support the hack and click install, thank you.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-04-2003, 02:24 PM
rick barclay rick barclay is offline
 
Join Date: Nov 2001
Location: Freehold, N.J.
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need your email checker hack asap. We've had a couple of
spam attacks within the last couple of weeks, and people are
starting to get a little annoyed. Thanks a bunch.
Reply With Quote
  #23  
Old 03-06-2003, 05:23 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

excellent hack
Reply With Quote
  #24  
Old 03-06-2003, 09:19 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had to uninstall this hack. It made viewing some member's profiles wat too slow and it even gave me a "no response" on a link that when clicked, works fine. It definitely needs some tweaking somewhere.
Reply With Quote
  #25  
Old 03-06-2003, 10:26 PM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
I had to uninstall this hack. It made viewing some member's profiles wat too slow and it even gave me a "no response" on a link that when clicked, works fine. It definitely needs some tweaking somewhere.
Hmm yea, It might slow the page down a little depending on your server's speed, what it does is connects to the server the page and on and checks the page and exracts the headers and then outputs it, I might be able to ass a timeout to it so if it takes to long to connect to the server, it stops instead of showing a no respomse, but if ou have a fast server like I do and some others do, you should see just a slight speed difference if any at all
Reply With Quote
  #26  
Old 03-06-2003, 10:40 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was fast on all the other profiles. I just had one that it slowed to a crawl on. That was the one that reported back "no response" but when you clicked on the link, his site came up fine.
Reply With Quote
  #27  
Old 03-07-2003, 03:55 AM
limey's Avatar
limey limey is offline
 
Join Date: Dec 2001
Location: -
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No offense, but whats the point of this hack? To make sure a website in a profile is up and running?

BTW Slynderdale I think your hacks are truly creative, I'm just trying to understand this one better.
Reply With Quote
  #28  
Old 03-07-2003, 04:02 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by limey
No offense, but what's the point of this hack? To make sure a web site in a profile is up and running?

BTW Slynderdale I think your hacks are truly creative, I'm just trying to understand this one better.
Yea, it tells you the current status of the site I the profile and you can also use the function any wheres you want, not just for the member page and even not just for the forum. If you have a link list page, this can come in handy.
Reply With Quote
  #29  
Old 03-07-2003, 04:44 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you wanna add this to the postbit in admin/functions.php find:
PHP Code:
        if ($post[showemail] and $displayemails) {
            eval(
"\$post[useremail] = \"".gettemplate("postbit_useremail")."\";");
        } else {
            
$post[useremail]="";
        } 
and replace it with:
PHP Code:
        if ($post[showemail] and $displayemails) {
                  if (
$post[homepage]!="http://" and $post[homepage]!="www" and $post[homepage]!="http://www." and $post[homepage]!="") {
                    
$page_status check_url($post[homepage]);
                  }
            eval(
"\$post[useremail] = \"".gettemplate("postbit_useremail")."\";");
        } else {
            
$post[useremail]="";
        } 
Then place $page_status any wheres in the postbit you want, it will just show the page status so you maybe want to add (Status: $page_status) if you want, its up to you.

Also use this at your own risk, I havn't tested it in the post so I have no idea on how it will affect the server load or page loading time or any thing like that, If you do use this, please post and tell me how it works out.
Reply With Quote
  #30  
Old 03-07-2003, 05:02 AM
Funkie Funkie is offline
 
Join Date: Nov 2001
Location: uk
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx for the help fella,
Done it to the letter,but nothing will show up apart from

Status:
Reply With Quote
  #31  
Old 03-08-2003, 02:33 AM
limey's Avatar
limey limey is offline
 
Join Date: Dec 2001
Location: -
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Slynderdale
If you have a link list page, this can come in handy.
AH now we're talking!
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 01:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04436 seconds
  • Memory Usage 2,311KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete