Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Link System - integrated, categorized link directory with extras... Details »»
vB Link System - integrated, categorized link directory with extras...
Version: 1.00, by N!ck N!ck is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-20-2003 Last Update: Never Installs: 32
Is in Beta Stage  
No support by the author.

Just a note, this will work with 2.2.x-2.3.0, that option is just unavailable.

vB Link System
Current version: 0.1.5

This will add a links directory to your vBulletin. Features include:
  1. Seamless integration with vBulletin
  2. Unlimited folders/categories (only one level right now, sorry)
  3. New link indicator for each folder on main page
  4. Link ratings (and who rated a given link)
  5. Admin-defined SponsorLinks appear at the top
  6. Option to set # of links per page
  7. Option to moderate new links
  8. Powerful administration script

This is fairly stable, but I put it in the beta hacks forum because it's really not finished yet. It has all the main functions, but I have plans for additions and changes in the future. Of course, I will provide upgrade scripts if necessary, so it's perfectly fine if you install it now.

See following posts for screenshots. I think you'll like what you see.

Courtesy of VampireMan, a live demo is available here.

Download: here

Show Your Support

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

Comments
  #52  
Old 03-02-2003, 07:31 AM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by nicksaunders
This fixes that issue with folders not updating when links are edited or deleted.
Thanks for the update, but how in earth do i delete links?
I tried visible to invisible, but no luck sofar. Do i really need to use phpmyadmin to delete some links?

Nevertheless a very cool hack!
Thanks man!
Reply With Quote
  #53  
Old 03-02-2003, 07:37 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Aaron1


Thanks for the update, but how in earth do i delete links?
I tried visible to invisible, but no luck sofar. Do i really need to use phpmyadmin to delete some links?

Nevertheless a very cool hack!
Thanks man!
No, you have a new checkbox (delete) in "edit links"!
Reply With Quote
  #54  
Old 03-02-2003, 07:43 AM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're right!
I never updated the admin/links.php!
Me stupid
Reply With Quote
  #55  
Old 03-02-2003, 07:57 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This nifty little addon will display "down" next to a link title if it is not working.

Credit goes to Slynderdale, he did all the hard work.

So, open links.php and find:

PHP Code:
require("./global.php"); 
Replace it with:

PHP Code:
require("./global.php");

// URL Status Checker by Slynderdale
// Integrated by Nick Saunders
function check_url($url) {
    
$status_array = array(
      
"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"
    
);
    
$urlArray parse_url($url);
    if (!
$urlArray[port]) $urlArray[port] = "80";
    if (!
$urlArray[path]) $urlArray[path] = "/";
    
$sock = @fsockopen($urlArray[host], $urlArray[port], &$errnum, &$errstr10);
    if (!
$sock) {
      
$return[code] = "Dead";
    } else {
        
$dump .= "HEAD $urlArray[path] HTTP/1.1\r\n";
        
$dump .= "User-Agent: Link Checker\r\n";
        
$dump .= "Host: $urlArray[host]\r\nConnection: close\r\n";
        
$dump .= "Connection: close\r\n\r\n";
        @
fputs($sock$dump);
        while(
$str = @fgets($sock1024)) {
            if (
eregi("^http/[0-9]+.[0-9]+ ([0-9]{3}) [a-z ]*"$str)) {
              
$return[code] = trim(eregi_replace("^http/[0-9]+.[0-9]+ ([0-9]{3}) [a-z ]*""\\1"$str));
            }
            if (
eregi("^Content-Type: "$str)) $return[contentType] = trim(eregi_replace("^Content-Type: """$str));
        }
        @
fclose($sock);
        
flush();
    }
    
$return[status] = $status_array[$return[code]];
    return 
$return;
}
// End URL Status Checker 
Still in links.php, find:

PHP Code:
    $link[title]=stripslashes($link[title]);
    
$link[date]=vbdate("m-d-Y",$link[dateline]);
    
$link[time]=vbdate("h:i A",$link[dateline]); 
After this, add:
PHP Code:
    $linkstatus=check_url($link[url]);
    if (
$linkstatus[code]!="200") {
      
$link[status]="<highlight><i>(down)</i></highlight>";
    } else {
      
$link[status]="";
    } 
Now save and upload links.php. For the next step go into your admin cp and edit template "links_listbit". Find:

PHP Code:
$link[title]</a></normalfont><br
Replace it with:

PHP Code:
$link[title]</a></normalfont> <smallfont>&nbsp;$link[status]</smallfont><br
Voila! If you want to test it, just enter a fictitious link with an obviously defunct URL. The word "down" should appear next to the link.

This may not work with some server configurations. If it doesn't, contact your web hosting company.
Reply With Quote
  #56  
Old 03-02-2003, 08:20 PM
VampireMan VampireMan is offline
 
Join Date: Jan 2003
Location: Leicestershire uk
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My demo updated , down link added :-)

eek , it says all my links are down lol
Reply With Quote
  #57  
Old 03-04-2003, 09:51 AM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just have one small problem, the time on the main links folder page doesn't seem to update when a link is submitted?

Btw: I have modified the links page alot, i also removed the rating stuff column, because that causes to many pop-ups and it disturbes viewing the submitted site.

Take a look if you want, on how it looks and works on my site:
http://www.housequake.com/forum/links.php
Reply With Quote
  #58  
Old 03-04-2003, 08:52 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure you're upped to 0.1.4. If you followed the instructions, there should be a link "Update Folders" in your left frame. Click that when you delete or move a link (unless it's old anyway) and the main links page will have the correct information.
Reply With Quote
  #59  
Old 03-04-2003, 08:55 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW, looks great!
Reply With Quote
  #60  
Old 03-04-2003, 10:25 PM
VampireMan VampireMan is offline
 
Join Date: Jan 2003
Location: Leicestershire uk
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree i like the layout & scheme of that site. I wish i was that good at stuff lol.

What's suprising is i like the site even though im not a prince fan :-)
Reply With Quote
  #61  
Old 03-05-2003, 08:37 AM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the compliments guys!
Although my knowledge on PHP is very slim :-)

But back to my problem, i still can't figure out what i did wrong, i checked every template and php file, and also made sure that i updated the folders in admin links.php, but nevertheless the problem still remains. What could i have overlooked?

The example URL at:
http://www.in-here.co.uk/forum/links.php?s=
(i took the liberty to add a test link there, sorry for that)
Seems to have the same problem. The latesttime on the main link folder page doesn't seem to update, however the date works fine i guess.

Besides from this this small problem, i think this hack is great!
Wouldn't it be even nicer if members from the board could comment it, just as if the link was a discussion topic? Well, i am just thinking out load
Reply With Quote
Reply


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 10:08 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.05124 seconds
  • Memory Usage 2,366KB
  • Queries Executed 27 (?)
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
  • (6)bbcode_php
  • (2)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
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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