Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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

Version: 3.5.x Rating:
Released: 06-25-2005 Last Update: 05-10-2006 Installs: 337
DB Changes Uses Plugins
Additional Files  
No support by the author.

LDM extends VBulletin to manage a library of documents, files and links to other web sites. Documents can be stored on your own web site, stored on your server separate from the web site, uploaded by your user community, or held somewhere else altogether. So you can use LDM to provide your user community with access to your own files and allow them to share files with each other.

12/08/06 - Versions that work with vb36 are available and supported in the VB36 thread. Version 2.2.1, which works with VB 3.5 but not with VB 3.6, remains available here.

Thanks to everyone who has helped with all the design, testing, etc.
Translations are provided (thanks dLutt and LeeWicked) into German, (thanks to Allan) into French, and (thanks to Hugo) into Spanish. Harry1951 has handled the Dutch translation.

Screenshots, Instructions and How to Install

Full details and instructions are available as a Wiki at http://www.eirma.org/wikis/index.php...nloads_Manager

LDM installs as a VBulletin product. There are no modifications required to standard VB code.

Basically - upload php files and run the installer through VB's Product installer. No changes needed to VB code. Remember to BACKUP YOUR DATABASE. By default, LDM prefixes its database tables 'local_'. Edit the configuration file, local_links_init.php, if you need/wish to change this.

LDM can handle an essentially unlimited number of categories and nested subcategories, and an unlimited number of entries (hyperlinks or downloadable files). Each entry can be placed in one or several categories. Categories can have styles. Descriptions and titles can optionally include BBcodes, smilies, images and html, giving the possibility to add images, colouring, etc. File types can be flagged using icons and individual entries can also have associated thumbnail images.

Standards templates are provided for libraries of links, files, documents, and photographs.

Users can offer comments and rate the links/downloads. Each user is allowed one rating and many comments per entry, and can freely edit these if they change their mind.

Permission to use specific features is established via the product's admin page, where the administrator specifies which usergroups can add and edit entries, comment and rate these entries, moderate, etc.

By default, all entries are visible to all users. You can restrict visibility/access to links and categories by using the permissions masks from your board's forums.

Moderation of new entries is available but turned off by default.

Users can report bad links to the relevant moderators/administrators.

Each user can flag links as his/her "Favourites".

Modules are provided for VBAdvanced.

Hooks are provided in suitable places in LDM and sample plugins are included in the release (see extras directory), for example to integrate with ID3 tags in mp3 files, for slideshows, to autocreate new threads in your forums, etc.

Plus much more.

Show Your Support

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

Comments
  #2382  
Old 09-17-2006, 09:58 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bhxtyrant
Hey AndrewD,
It's been a while since i last been here lol.In any case i just began working with this newer version of LDM and it's pretty awsome so far.But i ran into one error i cant seem to figure out so thought i would ask here as you always had the answers for these things in the past.I installed LDM with VB 3.5.4 all was working well.I added a few test links.But now when i try to mass import files i get this error "Warning: Wrong parameter count for fgets() in \local_links_admin.php on line 1619" im not entirly sure why.Thanks
What version of php is your site running? The parameter count for fgets() changed at around version php 4.2 (which is rather old).
Reply With Quote
  #2383  
Old 09-21-2006, 01:40 AM
phenomenon phenomenon is offline
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I've found that on mac firefox and mac safari the links that should be pointing out to a jukebox are instead just doing a 'jump' (instead of a 'play')

for example, the link for an audio file is showing this url:
Code:
http://www.staytunedtheband.com/forum/local_links.php?action=jump&id=1&catid=1
whereas on my windows machine in IE and Firefox, it shows this url:

Code:
http://www.staytunedtheband.com/forum/local_links.php?action=play&id=1
So basically my mac users aren't able to see the jukebox. I've been searching through the code trying to figure out where there's an operating system setting that would set that up differently, but can't find one. Does anyone have any ideas how I could fix this?

Thanks,

Will Lanni
Reply With Quote
  #2384  
Old 09-21-2006, 04:46 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by phenomenon
Hello,

I've found that on mac firefox and mac safari the links that should be pointing out to a jukebox are instead just doing a 'jump' (instead of a 'play')

for example, the link for an audio file is showing this url:
Code:
http://www.staytunedtheband.com/forum/local_links.php?action=jump&id=1&catid=1
whereas on my windows machine in IE and Firefox, it shows this url:

Code:
http://www.staytunedtheband.com/forum/local_links.php?action=play&id=1
So basically my mac users aren't able to see the jukebox. I've been searching through the code trying to figure out where there's an operating system setting that would set that up differently, but can't find one. Does anyone have any ideas how I could fix this?

Thanks,

Will Lanni
The LDM Jukebox tests explicitly that the user is running a Windows box, as I do not have any access to/experience of embedded media players in Mac OS or Linux. If someone can help me sort out how to make this work, I'll be delighted to extend the product.
Reply With Quote
  #2385  
Old 09-21-2006, 03:30 PM
angkor408's Avatar
angkor408 angkor408 is offline
 
Join Date: Jul 2006
Location: California
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok now I didnt get that error any more which it allow me to upload image. But the issue it is not display the image. Here my link:


http://www.khmerclub.org/local_links.php?catid=2



Quote:
Originally Posted by AndrewD
See my reply immediately above this one.
Reply With Quote
  #2386  
Old 09-21-2006, 04:30 PM
phenomenon phenomenon is offline
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD
The LDM Jukebox tests explicitly that the user is running a Windows box, as I do not have any access to/experience of embedded media players in Mac OS or Linux. If someone can help me sort out how to make this work, I'll be delighted to extend the product.
I would LOVE to help, as I have both a mac and a windows box sitting here, anxiously awaiting.

As I wrote, I was looking through the code trying to find where the browser/OS testing was done, but couldn't find it. After I get through some client work today, I'll run a global search; I'm assuming you're doing a javascript check? If you can remember what file the OS test is in, would you let me know? I can find it from there.

thanks,

w
Reply With Quote
  #2387  
Old 09-21-2006, 05:24 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by phenomenon
I would LOVE to help, as I have both a mac and a windows box sitting here, anxiously awaiting.

As I wrote, I was looking through the code trying to find where the browser/OS testing was done, but couldn't find it. After I get through some client work today, I'll run a global search; I'm assuming you're doing a javascript check? If you can remember what file the OS test is in, would you let me know? I can find it from there.

thanks,

w
Stage 1:

The OS test is done in includes/local_links_install.php. With v2.2.1 (which is what I think you're using), there's a test against $_SERVER[HTTP_USER_AGENT] at line 103, which sets the global $user_windows.

Stage 2:

Subsequently, also in local_links_include, in function get_linklistbit (which actually builds the individual entry bits), you'll find the line:

Code:
$is_musicbox = iif($user_windows and get_mimetype($urlType) and in_array($urlType, $musicboxtypes), 1, 0);
If is_musicbox is set to 1 and various other conditions are met, then the entry url is set to point to LDM/action=play; otherwise to LDM/action=jump

Stage 3 - the actual playing. This is the key bit.

The links_play template contains a series of nested <object> <embed> sequences that are set up for the various players (Windows Media Player, Real Player, QuickTime, DivX, etc) that LDM can handle. The various variables that it tests against are set in local_links.php, in the action="play" section, towards the bottom.

You'll need to work out the correct sequence for the Mac. Presumably WMP is a no go? But perhaps Real player is fine.

Let me know how it goes.
Reply With Quote
  #2388  
Old 09-21-2006, 05:33 PM
phenomenon phenomenon is offline
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD
Stage 1:

The OS test is done in includes/local_links_install.php. With v2.2.1 (which is what I think you're using), there's a test against $_SERVER[HTTP_USER_AGENT] at line 103, which sets the global $user_windows.

Stage 2:

Subsequently, also in local_links_include, in function get_linklistbit (which actually builds the individual entry bits), you'll find the line:

Code:
$is_musicbox = iif($user_windows and get_mimetype($urlType) and in_array($urlType, $musicboxtypes), 1, 0);
If is_musicbox is set to 1 and various other conditions are met, then the entry url is set to point to LDM/action=play; otherwise to LDM/action=jump

Stage 3 - the actual playing. This is the key bit.

The links_play template contains a series of nested <object> <embed> sequences that are set up for the various players (Windows Media Player, Real Player, QuickTime, DivX, etc) that LDM can handle. The various variables that it tests against are set in local_links.php, in the action="play" section, towards the bottom.

You'll need to work out the correct sequence for the Mac. Presumably WMP is a no go? But perhaps Real player is fine.

Let me know how it goes.
Awesome, thanks.

I am using 2.2.1, not upgrading to vB 3.6 until they've got a few more versions knocked out.

Macs come with Quicktime installed, so I'll probably wind up setting the player to QT. I'm also thinking about grabbing the $type, and if it's mp3, setting up a flash player as well, as that has been the most cross platform/browser friendly so far for music playing. (I'm having problems in Windows FireFox getting it to recognize I don't have quicktime but do have WMP)

Anyway, I will let you know how it goes. I'm assuming that whatever I update I should let you know with line numbers and quoted code? Or should I zip up what I do and message it?
Reply With Quote
  #2389  
Old 09-21-2006, 05:44 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by phenomenon
Awesome, thanks.

I am using 2.2.1, not upgrading to vB 3.6 until they've got a few more versions knocked out.

Macs come with Quicktime installed, so I'll probably wind up setting the player to QT. I'm also thinking about grabbing the $type, and if it's mp3, setting up a flash player as well, as that has been the most cross platform/browser friendly so far for music playing. (I'm having problems in Windows FireFox getting it to recognize I don't have quicktime but do have WMP)

Anyway, I will let you know how it goes. I'm assuming that whatever I update I should let you know with line numbers and quoted code? Or should I zip up what I do and message it?
Thanks. Just post a message with a zip file or whatever you find convenient.

I 'beta'-d a test with the Wimpy player, which is Flash based - you'll find it in the VB36 version 2.2.6. Very straightforward.
Reply With Quote
  #2390  
Old 09-21-2006, 11:02 PM
SMO's Avatar
SMO SMO is offline
 
Join Date: Sep 2005
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I uninstalled this as I really didnt need it any longer...i did like it however. Anyhow,
I uninstalled it and a pop up came and said to run a "something_kill".

It went away really quickly and wasnt sure exactly what to do. How do I run this feature?
Reply With Quote
  #2391  
Old 09-21-2006, 11:04 PM
phenomenon phenomenon is offline
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was just a couple revisions of code in the local_links_include.php, I can just post my changes here.

This is for v2.2.1 (I haven't looked at your new version):

Line 103: defined $user_mac on line after $user_windows:
Code:
$user_windows = iif(strstr($_SERVER[HTTP_USER_AGENT],"Windows"), 1, 0);
$user_mac = iif(strstr($_SERVER[HTTP_USER_AGENT],"Macintosh"), 1, 0);
Line 2199: added $user_mac to global vars after $user_windows:
Code:
global $linkscat, $schemes, $modes, $icon_cache, $user_windows, $user_mac;
Line 2330: added $user_mac to if statement parameters:
Code:
$is_musicbox = iif(($user_mac or $user_windows) and get_mimetype($urlType) and in_array($urlType, $musicboxtypes), 1, 0);
ISSUES
  1. mp3's don't seem to stream in very well. My solution is to write a flash player to play mp3's. I'll have a look at your Wimpy code in the new version if I can't get it straight; basically I'm going to try to grab the $type in the play section of local_links.php, compare to mp3, and then have it load flash player, so no matter what OS or browser, it gets flash for music.
  2. Can't test for Linux, sorry
  3. Not sure if it's supposed to show the Quicktime Plugin like it says in the documentation. However, when user clicks the song title as the link, it pops open the jukebox, so I'm not worried about it.
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 05:06 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.06024 seconds
  • Memory Usage 2,338KB
  • 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
  • (9)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