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
  #1932  
Old 06-03-2009, 05:29 AM
nachtfalkesatul nachtfalkesatul is offline
 
Join Date: Apr 2009
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a Question:

Wenn i create a new Category comes this error

Fatal error: Call to undefined function ldm_create_category() in /var/www/satulcvb/htdocs/local_links_actions.php on line 2450

Question to LDM.

I want the uploadtime behind the Uploader or upload Date!
Is that possible?

Best Regards
Reply With Quote
  #1933  
Old 06-03-2009, 05:45 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by obmob View Post
Well... went online with 2.3.0, everything was fine till i bumped into extra attributes added to certain entries.

I used it to add extra wallpaper size for some i had done. So, the attribute "widescreen" was used and it used to appear as a link, and hits to it were also added to the total count.

I had edited links_viewone_entity for that to happen.

Well, i tried the same this time, but no success, now, even if the attribute is a text i see the whole image in the attribute field.

Also a download link and a magnifier lenz.

If i change the attribute to be an image instead of a URL, te result is a thumbnail, but with no download link, just the magnifier.

In the end if i use this method, the hits are not counted.

Question:

Is there a way to show the thumbnail, but also be able to count hits... or, to hide the big image from my linkbit while the attribute is just a URL, would prefer to show the thumb and click on it to download.

Hope I was clear
*Edited*

I think I understand. I've removed the possibility to download images for extra attributes. The fix is straightforward. (Line numbers assume that you have installed version 2.3.0-RC5 - they might be slightly different with earlier versions.)

Edit includes/local_links_entities.php, around line 1159 find:
PHP Code:
    case ENTITY_TYPE_IMAGE :
    case 
ENTITY_TYPE_IMAGEUPLOAD :
        if (
$links_defaults['link_imagesize']) {
        
$entityimgurl $RESIZE_SCRIPT.'.php?'.$vbulletin->session->vars['sessionurl'].'linkid='.$linkid.'&entityid='.$entityid
and add line after:
PHP Code:
        $entitysave ldm_seo_url("jump"$linkcatid$linkid$entityid$pagenumber); 
Edit includes/local_links_main_fetch.php, around line 547 fine:
PHP Code:
    entity.entityvalue AS linkurlentity.entityvalue AS linkfile
and change to:
PHP Code:
    entity.entityvalue AS linkurl'' AS linkfile
(that is two single quotes, not one double quote)
Reply With Quote
  #1934  
Old 06-03-2009, 07:40 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nachtfalkesatul View Post
i have a Question:

Wenn i create a new Category comes this error

Fatal error: Call to undefined function ldm_create_category() in /var/www/satulcvb/htdocs/local_links_actions.php on line 2450
Check that you have uploaded all the files correctly and into the correct directories. The function ldm_create_category() was moved from one file to another in the latest releases, so I suspect that you've got some old and some new code installed


Quote:
Originally Posted by nachtfalkesatul View Post
Question to LDM.

I want the uploadtime behind the Uploader or upload Date!
Is that possible?

Best Regards
I'm not sure I understand. Do you mean that you want entries to indicate the time they were created/edited as well as the date? Or do you mean that you want to tell people how long it took to upload the file?
Reply With Quote
  #1935  
Old 06-03-2009, 07:43 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Leo Brazil View Post
Man, I have to say, fastest support I ever had on here !! You should charge for your mod, I woudn't mind to pay.

Yes, double checking it, you're right, it seems only happens with "&".
This will be corrected in the next upload. If you want a fix now, here's what to do:

Edit includes/local_links_include.php, line 2369, change:
PHP Code:
    while ($rec=$vbulletin->db->fetch_array($asb)) {
        foreach (
$usernames as $k=>$v) {
            if (
$v==$rec['username']) { 
to
PHP Code:
    while ($rec=$vbulletin->db->fetch_array($asb)) {
        foreach (
$usernames as $k=>$v) {
            
$hv htmlspecialchars_uni($v);
            if (
$hv==$rec['username']) { 
Reply With Quote
  #1936  
Old 06-03-2009, 10:15 AM
nachtfalkesatul nachtfalkesatul is offline
 
Join Date: Apr 2009
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andrew,

Thank you for you Answer,

Quote:
Originally Posted by AndrewD View Post
I'm not sure I understand. Do you mean that you want entries to indicate the time they were created/edited as well as the date? Or do you mean that you want to tell people how long it took to upload the file?
I mean the Upload Time and Date to see for Users!
In my Version ist only upload Date to see.
For Users are better to see Uplad Date and Upload Time!



Quote:
Originally Posted by AndrewD View Post
Check that you have uploaded all the files correctly and into the correct directories. The function ldm_create_category() was moved from one file to another in the latest releases, so I suspect that you've got some old and some new code installed
i have only the Version 2.3.0-beta1 installed
Reply With Quote
  #1937  
Old 06-03-2009, 12:56 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nachtfalkesatul View Post
I mean the Upload Time and Date to see for Users!
In my Version ist only upload Date to see.
For Users are better to see Uplad Date and Upload Time!
The easiest way to do this is to create a small plugin. (I will consider making it an admin option in the next release.)

Go to vb/admincp/products and plugins and select Add New Plugin

Create a new plugin as follows:
- Product : Links and Downloads Manager
- Name : Whatever you like
- Plugin PHP Code:
PHP Code:
$linkdate ldm_date('d-M-y h:m'$linkdatebin); 
- Active : Yes

Save, and you should have the change you want. You can change the format ('d-M-y h:m' in the example above) as you wish.


Quote:
Originally Posted by nachtfalkesatul View Post
i have only the Version 2.3.0-beta1 installed
I'm pretty sure that you've got an incomplete includes/local_links_include.php file. It should be 153 K in size, and the function ldm_create_category should begin at line 5134.
Reply With Quote
  #1938  
Old 06-03-2009, 02:06 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD View Post
I think you've enabled LDM's SEO option without configuring your server to handle this. See http://www.eirma.org/wikis/index.php...e_Optimisation.
Yes, you got it. That was the thing. Solved.

Please, let me know when you have an idea with the "&" thing OK ? Even if you want me to test any version for you, no problem.

THX
Reply With Quote
  #1939  
Old 06-03-2009, 02:35 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Leo Brazil View Post
Yes, you got it. That was the thing. Solved.

Please, let me know when you have an idea with the "&" thing OK ? Even if you want me to test any version for you, no problem.

THX
Good

see this post for the other fix.
Reply With Quote
  #1940  
Old 06-03-2009, 03:20 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ops, my bad, I missed this post.

Thanks again
Reply With Quote
  #1941  
Old 06-04-2009, 03:18 AM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD View Post
*Edited*

I think I understand. I've removed the possibility to download images for extra attributes. The fix is straightforward. (Line numbers assume that you have installed version 2.3.0-RC5 - they might be slightly different with earlier versions.)

Edit includes/local_links_entities.php, around line 1159 find:
PHP Code:
    case ENTITY_TYPE_IMAGE :
    case 
ENTITY_TYPE_IMAGEUPLOAD :
        if (
$links_defaults['link_imagesize']) {
        
$entityimgurl $RESIZE_SCRIPT.'.php?'.$vbulletin->session->vars['sessionurl'].'linkid='.$linkid.'&entityid='.$entityid
and add line after:
PHP Code:
        $entitysave ldm_seo_url("jump"$linkcatid$linkid$entityid$pagenumber); 
Edit includes/local_links_main_fetch.php, around line 547 fine:
PHP Code:
    entity.entityvalue AS linkurlentity.entityvalue AS linkfile
and change to:
PHP Code:
    entity.entityvalue AS linkurl'' AS linkfile
(that is two single quotes, not one double quote)
Thanks for the little update Andrew, worked really nice, after that I just needed to edit "links_entitymarkupbit" to make it look different.

Now, it is odd, i put align="center" and it is not in the middle o_O

Either way, it works and that's the most important thing.

Thank you very much!!

Take a look:
http://www.ositobarrigon.com/links.p...d=3&linkid=376
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 02:56 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.07936 seconds
  • Memory Usage 2,365KB
  • Queries Executed 27 (?)
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
  • (11)bbcode_php
  • (11)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
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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