Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Links and Files Database Details »
Links and Files Database
Mod Version: 1.60, by AndrewD (R.I.P) AndrewD is offline
Developer Last Online: Apr 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.7 Rating: (7 votes - 5.00 average) Installs: 238
Released: 18 Jan 2004 Last Update: 26 Jul 2005 Downloads: 51
Not Supported DB Changes Template Edits  

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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	cat_with_image.jpg
Views:	7884
Size:	38.8 KB
ID:	18075  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #1111  
Old 31 May 2005, 06:26
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by Goodspeed
Great hack!

But there is one important question: is it possible to convert pafiledb database into this hack?

Thank you!
I'm sure it's possible - but I've never used pafiledb.

a) Can you code in php? If so, you could use the source code in the subdirectory upgrade_vblinks (see the release zip file) as a template
b) can pafiledb export its contents in some readable format? If so, we could probably tweak that format to be imported here.
Reply With Quote
  #1112  
Old 31 May 2005, 06:28
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by Slave
Cool

One other thing while you're there ..

Any chance you could make it that we can pick a vB style per category? or the same style as the forum I link the category to?
Will have a look - second option is probably the easier
Reply With Quote
  #1113  
Old 31 May 2005, 14:10
Arial Arial is offline
 
Join Date: Feb 2005
Hi

Can you tell me how I can allow somebody to use the 'ADD LINK' function if they are not a admin on the forum, can it be done via groups somehow?
Reply With Quote
  #1114  
Old 31 May 2005, 14:13
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by Arial
Hi

Can you tell me how I can allow somebody to use the 'ADD LINK' function if they are not a admin on the forum, can it be done via groups somehow?
Straightforward - select links/administration/permissions and settings and specify the user groups who should have this (or any other) privilege.

The code works on VBulletin extended user groups so anybody who is either a primary or secondary member of the specified groups gains the right to add links.
Reply With Quote
  #1115  
Old 01 Jun 2005, 18:13
wattieuk's Avatar
wattieuk wattieuk is offline
 
Join Date: Jul 2004
Installed this but there was no facility to add links. Checked the permissions and reinstalled the hack but still no joy. Gave me the admin page, just no way at all of ading categories and links. Therefore it proved uselss for me, but must have being doing something wrong although I followed the steps to the letter.
Reply With Quote
  #1116  
Old 02 Jun 2005, 12:54
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by wattieuk
Installed this but there was no facility to add links. Checked the permissions and reinstalled the hack but still no joy. Gave me the admin page, just no way at all of ading categories and links. Therefore it proved uselss for me, but must have being doing something wrong although I followed the steps to the letter.
Have you created a category? Until you do so, there is nowhere to put any links. The 'add link' command is only visible when you are in a place where the links can be stored, i.e. withi categories. This is the only thing I can think of.
Reply With Quote
  #1117  
Old 02 Jun 2005, 13:58
wattieuk's Avatar
wattieuk wattieuk is offline
 
Join Date: Jul 2004
thanks for the reply but there was no way to add a category either. :disappointed:
Reply With Quote
  #1118  
Old 02 Jun 2005, 17:35
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by wattieuk
thanks for the reply but there was no way to add a category either. :disappointed:
Then something must have been missed out during the installation - can you pm me details of your board and ideally an admin username and pwd so I can take a look.
Reply With Quote
  #1119  
Old 03 Jun 2005, 18:01
rmorley rmorley is offline
 
Join Date: May 2005
Cannot get moderation to work

I installed v1.60, and set the Moderate_links setting to 1. I then created a catagory, and added a couple of links via an admin user. These instantly appears, since I was the admin. That's OK. I then went to the website agian on another computer, did not log into the Vbulletin software, created another link, and it too showed up, even though I was not logged in.

It looks as though I am doing someting wrong because I cannot get the moderation to kick in for non-administrators. I double checked the permissions, and administrators are the only group set to handle the moderation of new links.

Any ideas?

Thanks
Rob
Reply With Quote
  #1120  
Old 03 Jun 2005, 21:32
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by rmorley
I installed v1.60, and set the Moderate_links setting to 1. I then created a catagory, and added a couple of links via an admin user. These instantly appears, since I was the admin. That's OK. I then went to the website agian on another computer, did not log into the Vbulletin software, created another link, and it too showed up, even though I was not logged in.

It looks as though I am doing someting wrong because I cannot get the moderation to kick in for non-administrators. I double checked the permissions, and administrators are the only group set to handle the moderation of new links.

Any ideas?

Thanks
Rob
If a link is created by a user who is authorised to moderate links, then the link is immediately accepted. Moderation only applies to links created by users who are not authorised to moderate. I suspect that is what you are seeing.

The separate question is how to create links that can only be viewed by certain users. You do this by associating the link with a VB forum which has the required viewing permissions.
Reply With Quote
  #1121  
Old 04 Jun 2005, 03:26
rmorley rmorley is offline
 
Join Date: May 2005
Ok Andrew, so if I want to allow anyone to view and add links, but I want to moderate all the added links, I should set moderate_link parameter to 1, and set default_forumid to "none". In the permissions section the can_add_link parameter has every usergroup checked.

I am not sure if it matters, but I set "Can_Set_permissions" to only the administrator.

Is there anything I am missing? I cant explain it, but unregistered users are seeing all links, even those awaiting moderation. However, a registered user does not see the items awaiting moderation.

Thanks for your help, and sorry about being a pest.

Originally Posted by AndrewD
If a link is created by a user who is authorised to moderate links, then the link is immediately accepted. Moderation only applies to links created by users who are not authorised to moderate. I suspect that is what you are seeing.

The separate question is how to create links that can only be viewed by certain users. You do this by associating the link with a VB forum which has the required viewing permissions.
Reply With Quote
  #1122  
Old 04 Jun 2005, 13:50
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by rmorley
Ok Andrew, so if I want to allow anyone to view and add links, but I want to moderate all the added links, I should set moderate_link parameter to 1, and set default_forumid to "none". In the permissions section the can_add_link parameter has every usergroup checked.

I am not sure if it matters, but I set "Can_Set_permissions" to only the administrator.

Is there anything I am missing? I cant explain it, but unregistered users are seeing all links, even those awaiting moderation. However, a registered user does not see the items awaiting moderation.

Thanks for your help, and sorry about being a pest.

I understand the problem

When moderation is switched on, new links are only visible to the user who submitted the entry and to moderators, until the link has been moderated.

However, if you allow an unregistered user to add new links, this creates the difficulty you observe. Logic:
- link was created by userid 0 (the userid of an unregistered user)
- any other unregistered user also has userid 0, therefore the hack thinks that they are the same user who added the link, therefore displays the unmoderated link.
- any registered user who is not a moderator has a different userid, therefore cannot see the unmoderated link

Possible solutions:
- I change the code so that links added by unregistered users are only visible to moderators (i.e. not even to the person who added the link) until the link has been accepted by a moderator
- You only allow registered users to add links
- maybe there's another possible solution?

What do you think is best?
Reply With Quote
  #1123  
Old 04 Jun 2005, 15:42
rmorley rmorley is offline
 
Join Date: May 2005
Good, I'm glad I'm not going crazy. It does make sense now. Although it would be a bit more difficult, I think Option 1 (Links added by unregistered users can only be view by moderators) would probably be the best option.

Option two, I believe, could probably be implemented using the Default_Forumid parameter, if you wanted to restrict to only registered members.

Do you think this is a quick modification? If you can make the change, I would be willing to test it out for you.

Rob Morley

Originally Posted by AndrewD
I understand the problem

When moderation is switched on, new links are only visible to the user who submitted the entry and to moderators, until the link has been moderated.

However, if you allow an unregistered user to add new links, this creates the difficulty you observe. Logic:
- link was created by userid 0 (the userid of an unregistered user)
- any other unregistered user also has userid 0, therefore the hack thinks that they are the same user who added the link, therefore displays the unmoderated link.
- any registered user who is not a moderator has a different userid, therefore cannot see the unmoderated link

Possible solutions:
- I change the code so that links added by unregistered users are only visible to moderators (i.e. not even to the person who added the link) until the link has been accepted by a moderator
- You only allow registered users to add links
- maybe there's another possible solution?

What do you think is best?
Reply With Quote
  #1124  
Old 04 Jun 2005, 16:05
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by rmorley
Good, I'm glad I'm not going crazy. It does make sense now. Although it would be a bit more difficult, I think Option 1 (Links added by unregistered users can only be view by moderators) would probably be the best option.

Option two, I believe, could probably be implemented using the Default_Forumid parameter, if you wanted to restrict to only registered members.

Do you think this is a quick modification? If you can make the change, I would be willing to test it out for you.

Rob Morley
Assuming that you are running v1.60, try the attached local_links.php. It's almost complete - the change also requires a mod to the 'whats new' count, but this should be enough for now. Let me know.
Attached Files
File Type: php local_links.php (76.0 KB, 3 views)
Reply With Quote
  #1125  
Old 04 Jun 2005, 16:38
rmorley rmorley is offline
 
Join Date: May 2005
Preliminary tests look good. I will continue to test it, and let you know what I find out. Thanks agian for responding so quickly, and putting together a quick fix for the problem!


Originally Posted by AndrewD
Assuming that you are running v1.60, try the attached local_links.php. It's almost complete - the change also requires a mod to the 'whats new' count, but this should be enough for now. Let me know.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 01:24.

Layout Options | Width: Wide Color: