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.
  #1126  
Old 05 Jun 2005, 03:35
rmorley rmorley is offline
 
Join Date: May 2005
Andrew,

I am not sure if this is already in the works, or I just missed it on the admin page. When moderation is turned on, is it possible to have Vbulletin email a moderator so that they can review the added link and accept or reject it.

Is this option possible by using the default_forumid parameter?

Thanks

Rob
Reply With Quote
  #1127  
Old 05 Jun 2005, 08:49
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by rmorley
Andrew,

I am not sure if this is already in the works, or I just missed it on the admin page. When moderation is turned on, is it possible to have Vbulletin email a moderator so that they can review the added link and accept or reject it.

Is this option possible by using the default_forumid parameter?

Thanks

Rob
This is not in the system at present and no-one had asked for it, but I'll give it some thought. I'm wary about the consequences - do different moderators receive different emails, do standard users receive emails when there is something new, should this be a 'cron' job - i.e. regular emails announcing status, etc.

The forum assignment does not have any connection with this - it is basically a mechanism for providing security and association.
Reply With Quote
  #1128  
Old 05 Jun 2005, 13:34
rmorley rmorley is offline
 
Join Date: May 2005
I had not thought of the new post notification for users. You could probably use some of the same code used in the subscription notification in VBulletin, but I am not sure how important this would be. I just looked at Vbulletin, and it looks like there is a cron job setup to handle thread subscriptions on an hourly basis. Rather than trying to re-create this, would it be possible to tap into the thread/post subscription process? I am not very familiar with the VBulletin coding, so I have no idea of the complexity of this enhancement.

Regarding emailing moderators, I was thinking about the possibility of creating a Moderator_Email_Address parameter. Then, when a new link is added, and being held for moderation, an Email could be sent to the moderator(s). Since this would probably only email a few folks, I was thinking that this could be run when the submit button is clicked.

Thanks agian for the enhancement that handles moderation of unregistered users.

-Rob

Originally Posted by AndrewD
This is not in the system at present and no-one had asked for it, but I'll give it some thought. I'm wary about the consequences - do different moderators receive different emails, do standard users receive emails when there is something new, should this be a 'cron' job - i.e. regular emails announcing status, etc.

The forum assignment does not have any connection with this - it is basically a mechanism for providing security and association.
Reply With Quote
  #1129  
Old 05 Jun 2005, 15:39
Goodspeed Goodspeed is offline
 
Join Date: Aug 2004
Originally Posted by AndrewD
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.
Andrew unfortunately I got really low skill in coding.

There is only database backup available in pafile db, is it possible to move data from sql dump to csv?

Forgot to ask you: is it possible to setup links category view in the same way as forum category view, I mean dept of forums? Something like here, at vbulletin.org?

Thank you for your help!

Last edited by Goodspeed; 05 Jun 2005 at 15:46.
Reply With Quote
  #1130  
Old 05 Jun 2005, 16:11
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by Goodspeed
Andrew unfortunately I got really low skill in coding.

There is only database backup available in pafile db, is it possible to move data from sql dump to csv?

Forgot to ask you: is it possible to setup links category view in the same way as forum category view, I mean dept of forums? Something like here, at vbulletin.org?

Thank you for your help!
I took a quick look at pafiledb. It's quite easy to translate the database format, however it would take me several hours to write and text the code. How many entries and categories do you have in your pafile database?

Concerning the second question, you can set up the category view to include subcategories to any depth.
Reply With Quote
  #1131  
Old 05 Jun 2005, 16:50
Goodspeed Goodspeed is offline
 
Join Date: Aug 2004
Originally Posted by AndrewD
I took a quick look at pafiledb. It's quite easy to translate the database format, however it would take me several hours to write and text the code. How many entries and categories do you have in your pafile database?

Concerning the second question, you can set up the category view to include subcategories to any depth.
Andrew,

We have about 20 categories and 300 files in databse. And we have 3 databases based on pafiledb: files database, addons databse and missions database. We had to made 3 different databases because this script doesn't allow to make subcategories. Also here is very important fields like filesize and author - is it possible to convert these data too?

Andrew, I have tried to make different dept but unfortunately can't do this. Because color of categories and sub-categories alternate all the time without account for importance or parent of category.

Ones again thank you for your help, I appreciate it.

Last edited by Goodspeed; 05 Jun 2005 at 16:53.
Reply With Quote
  #1132  
Old 05 Jun 2005, 17:26
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by Goodspeed
Andrew,

We have about 20 categories and 300 files in databse. And we have 3 databases based on pafiledb: files database, addons databse and missions database. We had to made 3 different databases because this script doesn't allow to make subcategories. Also here is very important fields like filesize and author - is it possible to convert these data too?

Andrew, I have tried to make different dept but unfortunately can't do this. Because color of categories and sub-categories alternate all the time without account for importance or parent of category.

Ones again thank you for your help, I appreciate it.
Send me the pafiledb sql backups by email - ad_rodin at noos.fr - I'll take a look
Reply With Quote
  #1133  
Old 06 Jun 2005, 21:18
ProperMethodz's Avatar
ProperMethodz ProperMethodz is offline
 
Join Date: Jan 2005
Real name: Richard Magnano
Awesome mod! I just added it. The ease of install should seriously be commended on this one! HUGE THUMBS UP!

I guess the only thing missing is possibly a way to have the "Who's Viewing" thing to work with it.
Reply With Quote
  #1134  
Old 07 Jun 2005, 12:48
Goodspeed Goodspeed is offline
 
Join Date: Aug 2004
Arrow

Originally Posted by AndrewD
Send me the pafiledb sql backups by email - ad_rodin at noos.fr - I'll take a look
I have sent SQL dump to you Andrew, thank you for your help!
Reply With Quote
  #1135  
Old 07 Jun 2005, 16:22
Arial Arial is offline
 
Join Date: Feb 2005
Hi
We have the hack setup here:
http://www.global-army.com/forum/local_links.php?

And am very pleased with it however, we have a bit of a problem with perms.

We created a group in admincp called links

Then we added the user to that group.

Then we used the hacks admin tool to allow that user to add links etc

Which worked BUT..

It also gave him rights to all our private forums.

Sorry we are a bit noobish, can you advise .
Reply With Quote
  #1136  
Old 08 Jun 2005, 06:02
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by Goodspeed
I have sent SQL dump to you Andrew, thank you for your help!
Got it, thanks. Will take a look when I have a chance - probably it will be at the weekend

Andrew
Reply With Quote
  #1137  
Old 08 Jun 2005, 06:42
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by Arial
Hi
We have the hack setup here:
http://www.global-army.com/forum/local_links.php?

And am very pleased with it however, we have a bit of a problem with perms.

We created a group in admincp called links

Then we added the user to that group.

Then we used the hacks admin tool to allow that user to add links etc

Which worked BUT..

It also gave him rights to all our private forums.

Sorry we are a bit noobish, can you advise .
Surely you need to go to the regular VB admin page / Forum Permissions and remove viewing permissions for links from your private forums?
Reply With Quote
  #1138  
Old 08 Jun 2005, 19:05
Lizard King's Avatar
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Real name: Mert
Andrew my members today informed me a strange situation. Normally they never faced a problem like this but a member uploaded a 123 mb file from ftp to the server and added it to links section. When someone clicks on the link it opens the link in a new window and wait like 15-20 seconds then it start downloading and when it reachs 48kb it says completed. Do you have any idea what can cause this ?
When I try to download from ftp i have no problems.
__________________
Mert G÷kšeimam / Crawlability Inc.

DepKaš | vBSEO 3.3.0 - vBulletin Search Engine Optimisation

Last edited by Lizard King; 08 Jun 2005 at 19:46.
Reply With Quote
  #1139  
Old 08 Jun 2005, 20:50
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Real name: Andrew
Originally Posted by Lizard King
Andrew my members today informed me a strange situation. Normally they never faced a problem like this but a member uploaded a 123 mb file from ftp to the server and added it to links section. When someone clicks on the link it opens the link in a new window and wait like 15-20 seconds then it start downloading and when it reachs 48kb it says completed. Do you have any idea what can cause this ?
When I try to download from ftp i have no problems.
Yes, the problem is related to how you provide access.

If you have force_redirect=0 (the default value of the parameter on the admin page), then downloads are mediated by the script. In that case, large files can use up all the cpu time available to the script (typically 30 seconds). If you set force_redirect=1, then there is no problem with downloading large files, but the location of the file becomes visible to the user. It's a question of how important you find security versus cpu time. If you want to keep file locations secure, then you need to permit php scripts to use sufficient cpu time to read and re-transmit the file. If you prefer to limit cpu usage and are not concerned about security, then change the setting of force_redirect.

OK?

Andrew
Reply With Quote
  #1140  
Old 09 Jun 2005, 18:27
Lizard King's Avatar
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Real name: Mert
Originally Posted by AndrewD
Yes, the problem is related to how you provide access.

If you have force_redirect=0 (the default value of the parameter on the admin page), then downloads are mediated by the script. In that case, large files can use up all the cpu time available to the script (typically 30 seconds). If you set force_redirect=1, then there is no problem with downloading large files, but the location of the file becomes visible to the user. It's a question of how important you find security versus cpu time. If you want to keep file locations secure, then you need to permit php scripts to use sufficient cpu time to read and re-transmit the file. If you prefer to limit cpu usage and are not concerned about security, then change the setting of force_redirect.

OK?

Andrew
I am keeping the security more important then downloads but is there a way to get this working ? If yes how can i do that ? I have a shared hosting and will it work with it ?
__________________
Mert G÷kšeimam / Crawlability Inc.

DepKaš | vBSEO 3.3.0 - vBulletin Search Engine Optimisation
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 22:40.

Layout Options | Width: Wide Color: