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
  #842  
Old 02-14-2005, 10:34 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zain Jaffer
Unfortunately that didn't work
What didn't work?
Reply With Quote
  #843  
Old 02-14-2005, 06:10 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post withdrawn
Reply With Quote
  #844  
Old 02-14-2005, 07:32 PM
UManiac's Avatar
UManiac UManiac is offline
 
Join Date: May 2002
Location: DC
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Andrew!

I updated from 1.41 to 1.51 an now I have two minor problems when administering links I was hoping you could help me with...

1. When I click on Administer on the links page the browser just reloads the page - the address cycles through and sets the "action" to links

To try and resolve that I simply changed the link on the head template to point to "local_links_admin.php" which it does. However, none of the changes I make (like path to icon directory, or group permissions) ever take hold. Any ideas?

Thanks in advance!
Reply With Quote
  #845  
Old 02-14-2005, 10:38 PM
Zain Jaffer Zain Jaffer is offline
 
Join Date: Sep 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD

v1.55 has the following features/fixes not in 1.51: .....

- strip out bbcodes in category names when constructing navbar (Zain Jaffer didn't think his bbcodes look too good there...)
Hey Andrew, I just upgraded!

How do I enable this option?

Secondly, I'm pretty sure this already exits, just that i'm not seeing it ... how do I set permissions for one usergroup to view a particular section. For example, the downloads section should only be accessed by "registered users" or "any usegroup" I choose?

Thanks, a lot Andrew for your hard work!!! :laugh:
Reply With Quote
  #846  
Old 02-15-2005, 04:06 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by UManiac
Thanks Andrew!

I updated from 1.41 to 1.51 an now I have two minor problems when administering links I was hoping you could help me with...

1. When I click on Administer on the links page the browser just reloads the page - the address cycles through and sets the "action" to links

To try and resolve that I simply changed the link on the head template to point to "local_links_admin.php" which it does. However, none of the changes I make (like path to icon directory, or group permissions) ever take hold. Any ideas?

Thanks in advance!
Yes, I'm sorry about that - its seems you are the first person (apart from me!!) to notice that little bug in 1.51 and 1.52. I split the admin code into sections and screwed something up in the process. Just upgrade to 1.55, see post just above yours, and the admin settings should stick again.
Reply With Quote
  #847  
Old 02-15-2005, 04:14 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zain Jaffer
Hey Andrew, I just upgraded!

How do I enable this option?

Secondly, I'm pretty sure this already exits, just that i'm not seeing it ... how do I set permissions for one usergroup to view a particular section. For example, the downloads section should only be accessed by "registered users" or "any usegroup" I choose?

Thanks, a lot Andrew for your hard work!!! :laugh:
Zain, either I'm not understanding your problem, or your problem is already fixed. I thought that what you didn't like was that the text of your bbcode appeared in the navigation bar, and version 1.55 has removed that.

For setting usergroup permissions, you do the following:
a) Either select a forum that already has the viewing permissions that you want to use, or create such a forum on your main board (you can hide it if necessary) and (using the main VB admin page) give that the permissions you want to apply to your downloads category
b) Go into your links admin page and make sure you've given yourself can_set_permissions privilege
c) Edit the category that you want to restrict and associate it with the forum in a)

If you only want to restrict some of the links in the category, you can simply edit those and set their associated forum.
Reply With Quote
  #848  
Old 02-15-2005, 08:33 AM
Zain Jaffer Zain Jaffer is offline
 
Join Date: Sep 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andrew, in regard to the last question ... I want all usegroups to be able to view the page, but not download it unless I choose which usegroups.

In regards to the first problem, I think I didn't make it very clear:

The actual thumbnail itself shows where I don't want it to show... for example on here: http://www.juicyduff.com/forum/local...=links&catid=2 (beside "avatars")... I only want the image to show on the main page.

But, thanks a lot for solving the other problem (image url appears in the nav menu!) !

lol .. i'm sorry if I ask too much!
Reply With Quote
  #849  
Old 02-15-2005, 03:18 PM
UManiac's Avatar
UManiac UManiac is offline
 
Join Date: May 2002
Location: DC
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD
Yes, I'm sorry about that - its seems you are the first person (apart from me!!) to notice that little bug in 1.51 and 1.52. I split the admin code into sections and screwed something up in the process. Just upgrade to 1.55, see post just above yours, and the admin settings should stick again.
Thanks Andrew. problem fixed - I noticed all the new features

I very much appreciate your time and effort in providing us with this valuable resource!
Reply With Quote
  #850  
Old 02-15-2005, 04:33 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zain Jaffer
Hi Andrew, in regard to the last question ... I want all usegroups to be able to view the page, but not download it unless I choose which usegroups.

In regards to the first problem, I think I didn't make it very clear:

The actual thumbnail itself shows where I don't want it to show... for example on here: http://www.juicyduff.com/forum/local...=links&catid=2 (beside "avatars")... I only want the image to show on the main page.

But, thanks a lot for solving the other problem (image url appears in the nav menu!) !

lol .. i'm sorry if I ask too much!
Zain, I tried to explain in a previous post how to do what you want to do. You have to edit the links_main template and play around with the $viewcatname, $viewcatdesc and $viewcattext variables, which hold the category name + contents of the brief and extended category descriptions. For example, when you set up your category entry, do what you are already doing with the category name, but (e.g.) use the extended description to hold just the title without the img tag. Then kill the line
Code:
<td class="tcat" align="center"><strong>$viewcatname</strong>
in the links_main template.

As far as your permission question goes, I think you've changed your question! You achieve this as follows:
a) on the links admin page, set can_see_protected_links_on_portal permission for those usergroups that you want to be able to see but not download files.
b) for the links that you want this to apply to, associate them with a VB forum that you protect as I explained in my previous post.
Reply With Quote
  #851  
Old 02-16-2005, 08:39 AM
Catch-22|BL Catch-22|BL is offline
 
Join Date: Aug 2003
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks but the discussed circumstances have changed. Congratulations on a very good hack and thanks for your work.

Quote:
Originally Posted by AndrewD
Not a stupid question. Currently, there is no distinction between moderators of different categories - either you can moderate (i.e. everything) or you can't (i.e. nothing). It would not be very difficult to change this in the way you suggest (i.e so that moderation was also linked to the category forum) - how big a deal is this to anyone?
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 11:42 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.05935 seconds
  • Memory Usage 2,328KB
  • 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
  • (1)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