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

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

Category: Major Additions - Version: 3.7.0 Rating:
Released: 12-24-2007 Last Update: 06-13-2009 Installs: 576
DB Changes Uses Plugins
Re-useable Code Additional Files Translations  
No support by the author.

What this is and does

LDM is a general-purpose tool for managing libraries of links and files, and handling uploads and downloads in a flexible way, while tracking and control user access. It has a range of integrated media players and a large library of 'plugin' extras.

Installation and Usage Explained in the on-line Wiki, with a brief explanation in the file instructions.txt in the release zip. The recent revision history is given in the first post of this thread.

Please use carefully and always backup your database before upgrading. Post reports of problems and suggestions for enhancements in this thread.

14.06.09 Version 2.3.0 is now the the officially-supported version. Works with 3.7 and vb 3.8. Please post comments in this thread

22.06.08 Version 2.2.9-post1 - This is the previous supported version. Works fine with all versions of vb 3.6 and vb 3.7. All standard features except profile integration and forum prefix selection work fine with vb 3.8.

Show Your Support

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

Comments
  #982  
Old 08-29-2008, 12:37 AM
Ophelia Ophelia is offline
 
Join Date: Feb 2006
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD View Post
Main thing to check:

- Have you (or maybe have I) at some point in the past edited any of the LDM templates used on your site and forgotten to 'revert' them?

Are you using the LDM flash-based swfuploader extra for handling uploads or just the standard form-based uploader?

Will take a look at your site if you want.
Looking in vBulletin under styles, everything is showing that it's been reverted.

We are using the normal form based uploader.

Before I bother you with looking, let me do some testing to see exactly what is happening. I'll repost when I have that information.
Reply With Quote
  #983  
Old 08-29-2008, 03:38 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Origin2 View Post
I'm getting this error when trying to access any of your files "Codification Error" "Bad compression"....
I can't even edit any settings or access anything
This is the first report of this problem, and the error messages are not being generated inside LDM as far as I can tell. Do you want me to take a look at your site - I will need full admin privileges? Send me a PM if so.
Reply With Quote
  #984  
Old 08-29-2008, 06:33 AM
derfelix derfelix is offline
 
Join Date: Nov 2001
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A little utf-8 bug for keywords..

IF the site is in UTF-8 AND you are using multi-language.. (example german and english)
then
when you add keywords to an entry containing special characters like ? ? ? ? there is a problem.. they wont display or get truncated at the special character..

i found the reason:
the strtolower function cannot convert special characters.. (it says though it will leave them as is.. thats true for some.. but not for those i need..
keyword: "key????test" will come out.. as "key" only..

i did a fix for me.. (it will only work if you dont have multi-encodings on your site AND if your site is UTF-8 for ALL languages)

Fix:
in the function ldm_explode_keywords in the file: local_links_include.php
find:
PHP Code:
return preg_split("/[,;\s]+/"strtolower($words)); 
replace with:
PHP Code:
return preg_split("/[,;\s]+/"mb_strtolower($words,"UTF-8")); 
hope that helps someone...

Felix
PS: still anotherone when testing.. the highlighting doesnt work on keywords with special chars... but that is really minor...(will look into it if time permitting)
PPS: the mb extensions must be installed in php (usually are by default)
Reply With Quote
  #985  
Old 08-29-2008, 07:16 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by derfelix View Post
PS: still anotherone when testing.. the highlighting doesnt work on keywords with special chars... but that is really minor...(will look into it if time permitting)
PPS: the mb extensions must be installed in php (usually are by default)
Thanks - I went stir crazy with this a year or so ago with trying to highlight Chinese searches... What to do when you don't understand anything that's on the screen.
Reply With Quote
  #986  
Old 08-29-2008, 08:51 AM
Origin2 Origin2 is offline
 
Join Date: Aug 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's a problem with my crappy host >_>

derflix I tried that but still didn't work
Reply With Quote
  #987  
Old 08-29-2008, 12:40 PM
sparklywater sparklywater is offline
 
Join Date: Jun 2008
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need to add a separate link in one of the category listing pages (which displays all the entries in that category), but if I try to add the link to the 'links_linkbit_short_direct' template, the link is added to every row of entry in that category. I don't want the separate link to appear in every row, I need it to appear once somewhere in that category's entry-list page.

I can't add the link to the 'links_main' template because this causes it to appear in every category (I only need the link to appear in one category). How can I add an additional link or some other text to a category's listing without it appearing in every row of entry in that category?
Reply With Quote
  #988  
Old 08-29-2008, 12:55 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sparklywater View Post
I need to add a separate link in one of the category listing pages (which displays all the entries in that category), but if I try to add the link to the 'links_linkbit_short_direct' template, the link is added to every row of entry in that category. I don't want the separate link to appear in every row, I need it to appear once somewhere in that category's entry-list page.

I can't add the link to the 'links_main' template because this causes it to appear in every category (I only need the link to appear in one category). How can I add an additional link or some other text to a category's listing without it appearing in every row of entry in that category?
Can you not make it part of the category's extended description?

Alternatively, there are a series of placeholders in the links_main template, which come from elements of the $ldm_includeinmain array, e.g. $ldm_includeinmain[precat]. You could write a very small plugin which is tied to the ldm_maindisplay_end hook, e.g.:

Code:
if ($viewcatid==25) {
$ldm_includeinmain[precat] = "additional html";
}
This would only appear in categoryid #25
Reply With Quote
  #989  
Old 08-30-2008, 12:07 AM
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Location: Silicon Valley, CA
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vbboarder View Post
Thanks for the fix! The player now shows when listing a category's entries for mp4 and m4v files, but now incorrectly sizes the player.
Bug Report: when viewing a category's listing for audio files with album art, the player's size is the size of the album art, NOT the preset size. This problem did not exist with the prior version of jwaddons.xml.
When you fix this bug, can you PLEASE make LDM use the size for videos if it detects album art and use the size for mp3 if it detects no artwork?
Also, can you make LDM show the player for aac & m4a files, which are supported by the JW Player?
Bug Fix To correctly size the JW player for audio files with album art, edit the JWPlayer Addons plugin attached to the ldm_linkbit_create hook. FIND AND DELETE:

Quote:
$player_height += $links_defaults['link_imagesize'];
$player_width = max($player_width, $links_defaults['link_imagesize']);
To show JW player for m4a files when viewing a category's list of entries, follow Andrew's instructions in this post, except you're adding "m4a" to the codes he mentioned:
https://vborg.vbsupport.ru/showpost....&postcount=978
Also in the JWPlayer Addons plugin attached to the ldm_linkbit_create hook, FIND:
Quote:
case "mp3":
After that, ADD:
Quote:
case "m4a":
DO NOT enable JW player 4 for aac files, even though it claims support for it. The JW player caused Firefox 2 to freeze/ hang when I tried to play aac files.
Reply With Quote
  #990  
Old 08-30-2008, 03:33 AM
derfelix derfelix is offline
 
Join Date: Nov 2001
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi andrew...
I did some tests
with german umlaut.. (???) or french accents (? ? ? ? ?) my fix above seems to work...
BUT
with chinese... AAAAAAAAAAAAAAAGH.... you are right.. that is a pain....

but i think i narrowed it down.. BUT i would need some help..

OK.. the problem is.. in UTF-8 with multibyte characters.. there is a preg_replace problem..
(dont ask me why)

The problem is in the line..:
PHP Code:
// Apply highlighting to each of the substrings
    
$resstrings preg_replace($find$replace$substrings); 
(its the $find that doesnt work for UTF-8 chinese)

I ran some examples with dummy strings.. (notice the /u modifier was added)
example :
PHP Code:
$resstrings preg_replace("/(\b???\b)/iu"" Replaced: $1 ""test ??? test"); 
will give: test Replaced: ??? test
==> works!!!

but:
PHP Code:
$resstrings preg_replace("/(\b欢迎您\b)/iu"" Replaced: $1 ""欢迎欢迎您 欢迎"); 
will give: 欢迎欢迎您 欢迎
==> no highlight
------------
The problem whith characters like chinese seems to be the boundary \b
so i tried:
PHP Code:
$resstrings preg_replace("/(" preg_quote("欢迎您") . ")/iu"" Replaced: $1 ""欢迎欢迎您 欢迎"); 
will give: 欢迎 Replaced: 欢迎您 欢迎
==> works.. chinese text is highlighted..!!!!!

BUT.. my question.. is there a drawback?????
not using the boundary \b ???
i used the preg_quote just to avoid $1 errors.. but i guess its not really needed..

to implement this in LDM it would be:
in local_links_include.php in function ldm_make_highlight_regex
find:
PHP Code:
$find[] = '/(\b'.$w.'\b)/i'
replace with:
PHP Code:
$find[] = '/('.preg_quote($w).')/iu'
actually i would also (maybe) add @ in front of the preg_replace in $resstrings = preg_replace($find, $replace, $substrings);
i have ran some tests with keywords in chinese.. they highlight... tried message-text: works also...
PLEASE TEST...!!!!
Felix
Reply With Quote
  #991  
Old 08-30-2008, 04:44 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vbboarder View Post
Bug Fix To correctly size the JW player for audio files with album art, edit the JWPlayer Addons plugin attached to the ldm_linkbit_create hook. FIND AND DELETE:

To show JW player for m4a files when viewing a category's list of entries, follow Andrew's instructions in this post, except you're adding "m4a" to the codes he mentioned:
https://vborg.vbsupport.ru/showpost....&postcount=978
Also in the JWPlayer Addons plugin attached to the ldm_linkbit_create hook, FIND:

After that, ADD:

DO NOT enable JW player 4 for aac files, even though it claims support for it. The JW player caused Firefox 2 to freeze/ hang when I tried to play aac files.

Thanks for the info.

The sizing bug was originally intended to be a feature - the larger player would include the album cover within the player, rather than displaying it separately. But this did not work consistently.
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:21 PM.


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.06523 seconds
  • Memory Usage 2,347KB
  • 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
  • (8)bbcode_php
  • (9)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
  • (5)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