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

Quote:
Originally Posted by RichieBoy67
Thanks Andrew... That worked

I was wondering... is there a scheduled task or something that makes it scan the site??? I might have missed something in the settings...

Thanks again


skip that.... I found it but it is finding no links.... I must have something wrong...lol
NO, there isn't a scheduled task - I thought about this once, but never finished it. One problem with scheduled tasks is that you have to make sure that they don't go haywire if the job gets too big.
Reply With Quote
  #983  
Old 04-10-2005, 08:34 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I found out where you click on scan but it is finding nothing..... where it said diectory to scan I put /* and it got nothing??
Reply With Quote
  #984  
Old 04-11-2005, 04:30 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67
Yeah, I found out where you click on scan but it is finding nothing..... where it said diectory to scan I put /* and it got nothing??
I'm getting a little confused - and maybe there's something else I hadn't explained.

- The directory scan only presents you with the option of selecting file that have mimetypes recognised by VBulletin - have a look at the top of the links and files admin page / settings and permissions. Not sure what this is on a clean install of Vbulletin - something like gif, jpeg, doc, etc

- The first time you carry out a scan on a directory, the listing should include all the files it finds, with three columns offering select, ignore and omit. The ones that you 'select' are inserted as downloadable links into the specified category. The ones that you 'ignore' are registered in a file 'ignore.txt' in the web directory, so that they will not be presented to you again the next time you run a scan on the same directory. The ones you 'omit' are ignored this time only.

- The next time you scan the same directory, the listing will *only* include files that are either a) new or b) were 'omitted' the previous time. It does not show the ones that you 'selected' or 'ignored'

If you're having problems with /*, try it first on a directory where you know there are files of interest, e.g. put a jpeg file into a directory and use the scan to look for it.
Reply With Quote
  #985  
Old 04-11-2005, 11:42 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem.....

I really don't even need that specific feature anyways. I am happy just adding links and downloads

Sometime when I have time I'll mess around more with it...... Great Hack... and thanks for the support

Rich
Reply With Quote
  #986  
Old 04-12-2005, 03:28 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AndrewD .. a suggestion ..

When you go to add a link does it check to see if it's already in the database? .. if not could there be a check put into the add link page to flag this up (with a link to the link edit page incase you want to add it to another cat)
Reply With Quote
  #987  
Old 04-12-2005, 03:34 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Slave
AndrewD .. a suggestion ..

When you go to add a link does it check to see if it's already in the database? .. if not could there be a check put into the add link page to flag this up (with a link to the link edit page incase you want to add it to another cat)
There's no check at that stage, but there is a check for duplicates in the admin page.

Thanks Slave, I'll think about this - seems a good idea. I'm getting a bit worried as the code is reaching the stage of being too complicated to test properly before each release. Need to make sure I don't keep breaking things.
Reply With Quote
  #988  
Old 04-12-2005, 06:04 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

k .. no problem ..

I'm happy to be a ginni pig pig if you'd like
Reply With Quote
  #989  
Old 04-13-2005, 03:50 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Easy one....

Sorry if this was covered already...

I have been looking for desc limit so I can change the amount of links listed before a new page starts but I cannot find it....

Where is this?????

Thanks
Reply With Quote
  #990  
Old 04-13-2005, 08:01 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67
Easy one....

Sorry if this was covered already...

I have been looking for desc limit so I can change the amount of links listed before a new page starts but I cannot find it....


Where is this?????

Thanks
There are three levels of control.

On the links admin page, if you set *links_per_page* option to a value>0, this applies to everyone in every case.

If you leave this set at 0, then the code picks up in this order:

a) The value the user has set for Number of Posts to Show Per Page on his UserCP
or
b) Maximum displayed posts vefore page split from the main admincp/thread display options
Reply With Quote
  #991  
Old 04-15-2005, 03:04 PM
reitube reitube is offline
 
Join Date: Jan 2004
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi folks,

I know, there are several posts for this issue. I just want to put an easy one, too.

I took the rating images from vbulletin ( images/rating...) and flipped it, cause there right aligned. I used "irfanview" (Flip Horizontal Function).
The images called "rating_left_<number>.gif".

Then I changed the links_ratebit like this:

Change it from:
HTML Code:
<br /><span class="smallfont">rated <b>$linkrate</b> Stars <if condition="$links_permissions[can_admin_links]"> <a href="local_links.php?action=doratelink&amp;vote=-1&amp;id=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber">clear</a></if></span>
To:
HTML Code:
<span class="smallfont"><img class="inlineimg" src="images/rating/rating_left_$linkrate.gif" /><if condition="$links_permissions[can_admin_links]"> <a href="local_links.php?action=doratelink&amp;vote=-1&amp;id=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber">clear</a></if></span>

That does all what I want.
Regards

P.S Don't hit me if it has been posted already... :knockedout:
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 04:54 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.04869 seconds
  • Memory Usage 2,331KB
  • 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
  • (2)bbcode_html
  • (4)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