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

Reply
 
Thread Tools
Links and Files Database Details »»
Links and Files Database
Version: 1.60, by AndrewD AndrewD is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 01-17-2004 Last Update: 07-25-2005 Installs: 238
DB Changes Template Edits
 
No support by the author.

The VB3.0 version is no longer supported although there have been no reported problems for some time

See here for the VB 3.6 version of this hack, which is now the supported version. This version currently also works with VB 3.5
See here for the VB 3.5 thread for this hack.

What's new in v1.60?

Option to display associated thumbnail images
Option to accept/not accept new entries if these already exists in database
Code for mass edits (accessed via admincp) tidied up
VB phrasing completed
Includes a full French and a partial German translation (thanks to cclaerhout, Allan and LeeWicKeD), handled properly by installation script.
Various bugs fixed and tested against php4 and php5:
Better database validation (on startup/in admincp: links with invalid associated forumids, categories with invalid parentids)
Alternative linkbit templates provided (default uses a fieldset, the other is the old-style table row)
Alternative category selection templates (pull down menu/list of checkboxes),
Star rating displayed using standard VB stars rather than in text form
Series of minor bug fixes
See file change.txt in zip file

What it is/does

- Provides a searchable database of weblinks and/or downloadable files, for example manuals, music files, pictures, etc.
- Integrates within VBulletin, without requiring any code changes.
- Transparently handles links and file downloads. (If you want to provide downloads from your own site, you need a separate tool to upload these files. This hack does not and will not include a file uploader.)
- Provides unlimited nested categories.
- Each link/file can be a member of multiple categories.
- Link and category title and descriptions can use all BBCODEs, giving the possibility to add images, colouring, etc, as you wish
- Viewing/access permissions controlled using VBulletin forum system
- Users can rate links, in a similar manner to VB thread rating.
- File downloads are semi-leechproof, i.e. the user does not see where the file is stored and can only access the link if she has access to the associated forum.
- Audio files playable via Windows Media Player can be offered as a jukebox .
- Tracks who downloads what
- Validates links on entry/editing, and provides admin facility to validate the entire database.

Installation/upgrading instructions

Read instructions.txt in the zip file. Installation script works out whether to install or upgrade.

To upgrade from an earlier release of this hack, simply re-run the installation script. If you modified the templates in the top styles, you will lose these modifications unless you back up and re-edit.

PLEASE BACK UP YOUR DATABASE

See also

For screen shots, see attachments.

Tested with

VBulletin 3.0 and higher
PHP 4.1.1 and 4.3.4, should work with all 4.x versions, seems ok with 5.0.4
MySQL 4.0.
Reported ok with MySQL 4.1 but not exhaustively tested

Credits

Initially inspired by drkFusion's vb2 hack "vb Link Directory" v.2 and discussion about v.3 on Vbulletin.org. This is a complete rewrite with many more features. Every credit to the VBulletin folks for providing the infrastructure and to those on vbulletin.org who have helped with testing.

Integrations/Conversions

Natch has written extensions to integrate this hack with VBindex and VBAdvanced.

For convenience, this hack includes fully integrates with, but does not install, his VBIndex hack - i.e. the required template and code are provided, and the admin panel handles the configuration settings. Please refer to his thread for instructions.

Integration with VBadvanced is described in thread 1319 at vbadvanced.com.

The zip file includes a script and instructions for converting from vbLinks v2 (see thread 44551

Show Your Support

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

Comments
  #1152  
Old 06-28-2005, 03:50 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LeeWicKeD
hiho

just updated to 1.60c and now i can't add any new links. it always shows up a message "no category specified"

and in the box "parent categories" there are no categories listed? what did i wrong?

I'll bet that you didn't upload the new templates, or put them in the wrong place. I can reproduce your error exactly by installing the 1.60 code and the 1.55 templates
Reply With Quote
  #1153  
Old 06-28-2005, 04:04 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CHIngs
I updaraded to the latest and I have to say its the BEST yet. But I have one question, I set the timeout_hit_allow to 300 seconds (5 minutes), though I would like it in minutes (suggestion for next version), its no big deal. But I want to show them how much time they have left. The script must be storing that time limit somewhere in the database and I want to show it on the page where it says "Please wait before trying another access - timeout period (seconds): 300."

I want to show it as "Please wait before trying another access - timeout period (seconds): 300, you have *** seconds left for you next download" or something like that. Can anyone please help me out here .
Thanks.

This is an easy change to make. Two edits:

edit local_links.php. Find these lines

Code:
// Prevent multiple hits within specified timeout
	if ($links_defaults["timeout_hit_allow"]>0) {
		$timeout = $time - $links_defaults["timeout_hit_allow"];
		$jumplink = $DB_site->query("
			SELECT userid, usertime FROM ".THIS_TABLE."linksdownloads
	        WHERE userid='".$bbuserinfo[userid]."'
	        ORDER BY usertime DESC
	        LIMIT 1
        ");
	    while ($jump=$DB_site->fetch_array($jumplink)) {
	        if ($jump['usertime'] > $timeout) {
	            eval(print_standard_error($vbphrase['ll_wait'].' '.$links_defaults["timeout_hit_allow"],0));
	            exit;
	        }
	    } 
	}
and replace with
Code:
// Prevent multiple hits within specified timeout
	if ($links_defaults["timeout_hit_allow"]>0) {
		$timeout = $time - $links_defaults["timeout_hit_allow"];
		$jumplink = $DB_site->query("
			SELECT userid, usertime FROM ".THIS_TABLE."linksdownloads
	        WHERE userid='".$bbuserinfo[userid]."'
	        ORDER BY usertime DESC
	        LIMIT 1
        ");
	    while ($jump=$DB_site->fetch_array($jumplink)) {
	        $timeleft = $jump['usertime'] - $timeout;
	        if ($timeleft>0) {
				$wait = construct_phrase($vbphrase['ll_wait'], $timeleft, $links_defaults["timeout_hit_allow"]);
				eval(print_standard_error($wait,0));
	            exit;
	        }
	    } 
	}
Then edit local_links_phrases.xml and find the line
Code:
		<phrase name="ll_wait"><![CDATA[Please wait before trying another access - timeout period (seconds):]]></phrase>
and replace by
Code:
		<phrase name="ll_wait"><![CDATA[Please wait {1} seconds. Timeout period between accesses: {2} seconds]]></phrase>
I'll make this a permanent fix for version 2.00 but I don't plan any more changes to 1.60 unless there are serious bugs.
Reply With Quote
  #1154  
Old 07-02-2005, 04:21 AM
CHIngs CHIngs is offline
 
Join Date: Jun 2003
Location: USA
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Possible BUG...NOTHING SERIOUS... Just a suggestion for a FIX in 2.0...

When I rate a file, the rating is correctly logged and all. But unlike the forum's rating system, your rating system allows members to CHANGE the rating once they have given a rating. Its no big deal but I think in your version 2.0 should have an option in the ADMIN PANEL where the admin can set to allow the members to rate once OR more than once, this way its more flexible depending on the admin's needs.
Reply With Quote
  #1155  
Old 07-02-2005, 04:33 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CHIngs
Possible BUG...NOTHING SERIOUS... Just a suggestion for a FIX in 2.0...

When I rate a file, the rating is correctly logged and all. But unlike the forum's rating system, your rating system allows members to CHANGE the rating once they have given a rating. Its no big deal but I think in your version 2.0 should have an option in the ADMIN PANEL where the admin can set to allow the members to rate once OR more than once, this way its more flexible depending on the admin's needs.
Yes, this was by design - actually they can't give more than one rating - only the latest one that is counted. I'll note your suggestion - thanks.
Reply With Quote
  #1156  
Old 07-05-2005, 01:19 PM
LeeWicKeD LeeWicKeD is offline
 
Join Date: Jan 2005
Location: Germany
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i have now fully translated 1.60c to german

@andrew: do you want it via email or as an attachment in the forum here?
Reply With Quote
  #1157  
Old 07-07-2005, 09:24 PM
NxTek NxTek is offline
 
Join Date: Jun 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Database error in vBulletin 3.0.7:

Invalid SQL: SELECT * FROM local_linksadmin mysql error: Table 'forums.local_linksadmin' doesn't exist

mysql error number: 1146

Date: Thursday 07th of July 2005 05:21:47 PM
Script: http://www.xxxxxxxxxx.com/forums/local_links.php
Super. heh
Reply With Quote
  #1158  
Old 07-19-2005, 04:49 AM
lovevn lovevn is offline
 
Join Date: May 2004
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

This is every good hack. I installed version 1.3 and did not use it because I bought the Vbadvanced links directory. But now I tested the newest version and realized that it is excellent now and I want to use it for my music page.
Things work well. Howerver,I want to give a user group pessmission for ONLY listen(play )the music file but not to DOWNLOAD(it mean that the hyper link to the music file will be hidden). If anyone know how to do this please help me!

Thanks a lot!
Reply With Quote
  #1159  
Old 07-23-2005, 03:38 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LeeWicKeD
ok i have now fully translated 1.60c to german

@andrew: do you want it via email or as an attachment in the forum here?

Sorry for the delay - I've been on holiday. Could you post the translation here? I'll pick it up and include it in the official release.
Reply With Quote
  #1160  
Old 07-23-2005, 03:43 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lovevn
Hi,

This is every good hack. I installed version 1.3 and did not use it because I bought the Vbadvanced links directory. But now I tested the newest version and realized that it is excellent now and I want to use it for my music page.
Things work well. Howerver,I want to give a user group pessmission for ONLY listen(play )the music file but not to DOWNLOAD(it mean that the hyper link to the music file will be hidden). If anyone know how to do this please help me!

Thanks a lot!
It is an easy edit to the links_linkbit template - you just need to remove the hyperlinks to local_links.php?action=jump - let me know if you need help. I'm not going to make any further releases to the vb 3.0x version of this hack - efforts concentrate on the 3.5x version and I'll include this as an option.
Reply With Quote
  #1161  
Old 07-23-2005, 03:44 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NxTek
Super. heh
Can't help you with this
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 12:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07267 seconds
  • Memory Usage 2,330KB
  • 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
  • (4)bbcode_code
  • (7)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
  • (3)pagenav_pagelinkrel
  • (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