vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=166094)

vbboarder 10-11-2008 05:54 PM

Quote:

Originally Posted by AndrewD (Post 1642786)
I think you would have to recode the url bbcode event handler.

Alternatively, you could add another bbcode, which does a simplified version of the url bbcode without opening a new window, then patch the LDM phrase to use that rather than url

Noted.

Thanks for confirming, I kinda suspected that. I think I'll try the alternative bbcode version. ;)

DJDrew 10-12-2008 09:33 AM

Quote:

Originally Posted by AndrewD (Post 1642669)
I thought this already worked? See attached, which includes two forum links, one to the LDM base and the other to an LDM category

How did you set that up? It didn't work automatically for me so I had to create a redirect. So its not working properly.

Please help

abdelghani68 10-12-2008 11:57 AM

Quote:

Originally Posted by AndrewD (Post 1642745)
I'm a little confused - both those modules already accept a category setting

Sorry I said an error. But the module ldm_cats haven't the option 'Comma-separated list of category ids to search.'

thanks

AndrewD 10-12-2008 02:41 PM

Quote:

Originally Posted by DJDrew (Post 1643201)
How did you set that up? It didn't work automatically for me so I had to create a redirect. So its not working properly.

Please help

I'm happy to help but you have to give me a bit more information or let me have access to your site. (Send me a PM if you like.) I can't debug the statement 'it's not working properly'. What didn't work automatically? Creating an entry into LDM using a forum redirect is one of the standard ways to get access to LDM. When you do this (unless you have changed the name of the main LDM script), the software automatically patches the forum home listing to include the most recent visible entry. I didn't have to do anything to turn this on.

AndrewD 10-12-2008 02:46 PM

Quote:

Originally Posted by abdelghani68 (Post 1643280)
Sorry I said an error. But the module ldm_cats haven't the option 'Comma-separated list of category ids to search.'

thanks

That's right - but it does accept a single category id, and the module then produces a list of categories in that category id down to the specified depth. Are you saying that you want it to accept multiple category ids and produce separate listings for each of them? Or do you want the listings to be merged somehow?

DJDrew 10-12-2008 03:27 PM

Quote:

Originally Posted by AndrewD (Post 1643352)
I'm happy to help but you have to give me a bit more information or let me have access to your site. (Send me a PM if you like.) I can't debug the statement 'it's not working properly'. What didn't work automatically? Creating an entry into LDM using a forum redirect is one of the standard ways to get access to LDM. When you do this (unless you have changed the name of the main LDM script), the software automatically patches the forum home listing to include the most recent visible entry. I didn't have to do anything to turn this on.

Take a look:

http://www.radio1-online.com/forum/index.php

The forum is just a redirect to the LDM script. It just won't display the latest upload for some reason.

AndrewD 10-12-2008 05:18 PM

Quote:

Originally Posted by DJDrew (Post 1643382)
Take a look:

http://www.radio1-online.com/forum/index.php

The forum is just a redirect to the LDM script. It just won't display the latest upload for some reason.

Yes, I'm sure, but I can't solve problems just like that. Do you want me to take a look? - In which case I need full access to your site.

DJDrew 10-12-2008 08:26 PM

Quote:

Originally Posted by AndrewD (Post 1643456)
Yes, I'm sure, but I can't solve problems just like that. Do you want me to take a look? - In which case I need full access to your site.

Is the redirect meant to be going to "local_links.php"?

DJDrew 10-12-2008 08:37 PM

Also, the mod doesn't work with my style by the look of things.

http://www.radio1-online.com/forum/l...?action=search

Its messed up

skokarl 10-13-2008 11:30 AM

Hallo AndrewD ,

i am from german, excuse my bad english.

have anyone a german language file for the great mod ?

AndrewD 10-13-2008 05:18 PM

Quote:

Originally Posted by skokarl (Post 1644013)
Hallo AndrewD ,

i am from german, excuse my bad english.

have anyone a german language file for the great mod ?

Yes, indeed, there is a (fairly complete) German translation included in the release zip. You can either install it directly by using the release/product-eirma_ldm-de.xml file or you can install the English version, then add the German phrases from development/phrases/phrases-de.xml

abdelghani68 10-14-2008 09:08 AM

Quote:

Originally Posted by AndrewD (Post 1643356)
That's right - but it does accept a single category id, and the module then produces a list of categories in that category id down to the specified depth. Are you saying that you want it to accept multiple category ids and produce separate listings for each of them? Or do you want the listings to be merged somehow?

I just want that I can choose the id categories.

Exemple if I have 20 categories in the library, I can to display in the modules vba only 5 categories.

thanks

skokarl 10-14-2008 09:28 AM

Hallo,

uploads > 12 mb fault with a missing security token ?
what is wrong ?

vB 3.73

I know, my english is bad ... sorry.

edit : it's okay ... i have change the php.ini .... timeout etc.

skokarl 10-14-2008 11:58 AM

I have a XAMPP Installation .... can I change the upload path to c:\upload on my server ?

edit : I have found the button ... this is a absolut great mod .... many thanks for the coder

littefire 10-14-2008 01:56 PM

question:
my download directly in under my site ./vbb/dl/, if i type www.mysite.com/vbb/dl/ in browser, it shows every files and directorys.
Is that correct? if someone know the location,he can dowload all files without permisson?
what's wrong with my settings?
please help!

AndrewD 10-14-2008 03:51 PM

Quote:

Originally Posted by littefire (Post 1644892)
question:
my download directly in under my site ./vbb/dl/, if i type www.mysite.com/vbb/dl/ in browser, it shows every files and directorys.
Is that correct? if someone know the location,he can dowload all files without permisson?
what's wrong with my settings?
please help!

Yes, this depends on the security settings on your web server
- if your site is using Apache as web server, this can be configured to prohibit directory browing - see for example http://forums.devshed.com/apache-dev...help-9870.html
- provided you have access to web server directories outside directory root, you can also configure LDM to store files outside the web root (settings local_file_root and local_file_root_prefix). This will prevent the problem in the first place
- you can also create an empty file called index.html in /vbb/dl (the next version of LDM 2.3.0 will do this for you)

It's interesting - no-one had noticed this problem for nearly four years, then I've had two reports in the past month or so:)

vbboarder 10-15-2008 02:36 AM

Hot Media module bugs fixed:
Edited ldm_hot_media.php to fix bugs:
1. The # of entries were not time limited:
Problems: TIMENOW was not in scope and portal_ldm_hot_media_hitssince was undefined
Solutions: used time() and $GLOBALS['links_defaults']['days_seen_on_portal'] to correctly time limit # of entries
2. Problem: inlineJWplayer_mp3_height did not account for mp3?s album art
Solution: set inlineJWplayer_mp3_height to thumbnail size * aspect ratio
3. Added 8 filetypes supported by the JW players: flv|m4a|m4v|mp3|mp4|wma|wmv|xml

New Media module bugs fixed:
Edited ldm_new_media.php: to fix bugs:
1. Fixed 3 incorrectly referenced variables: changed from portal_ldm_hot_media_ to portal_ldm_new_media
2. Problem: inlineJWplayer_mp3_height did not account for mp3?s album art
Solution: set inlineJWplayer_mp3_height to thumbnail size * aspect ratio
3. Added 8 filetypes supported by the JW players: flv|m4a|m4v|mp3|mp4|wma|wmv|xml

New Thumbs module bug fixed:
Edited adv_portal_custom_ldm_new_thumb_one template to fix bug where setting $linkimg = 0 for inline players prevents album art thumbnails to appear in the VBA module ? added $templinkimg variable.

Created Hot thumbnails VBA module:
I took the liberty to create a module for popular entries with thumbnails based on the New thumbnails VBA module. Popular entries are time limited by the ?days_seen_on_portal? LDM setting.

Edited JWPlayer Addons - ldm_linkbit_create plugin:
1. In 2.2.9, plugin only handled flv, mp3, & mp4. Added handling of m4a, m4v, & xml.
2. Made player width & height consistent for uniform layout and to account for mp3, m4a, wma file?s album art.
3. Fixed bug where setting $linkimg = 0 for inline players prevents album art thumbnails to appear in the VBA module ? added $templinkimg variable.
4. Fixed bug where inline players were not aligned in table rows in the media VBA modules.
5. Streamlined and reduced redundant code for easier debugging.

New files included in zip file:
ldm_new_media.xml, ldm_hot_media.xml, ldm_new_thumb.xml, ldm_hot_thumb.xml, JWPlayer Addons ? ldm_linkbit_create.php


To install: in adminCP left column, go to VBA CMPS > Download / Upload Module > select the xml file to upload and the style to apply it to. If you already have these modules installed, you must select ?allow overwrite? after you click ?Submit.?

Required manual edits to use new features of these VBA modules:
1. For JWPlayer Addons ? ldm_linkbit_create.php, go to Plugin Manager, find & click on the LDM link for the JWPlayer Addons plugin hooked to ldm_linkbit_create, remove all of the old code, and paste in all of the new code from the file.

2. Edit JWPlayer Addons - ldm_linkbit_gettypebit plugin:
In the first line, change array(?mp3?, ?flv?, ?mp4?)
TO: array("flv", "mp3", "mp4", "m4v", "m4a", "xml", ?wma?, ?wmv?)

vbboarder 10-15-2008 02:37 AM

Feature Request: My portal page loads slow when I have all 4 VBA media modules enabled (new thumbs, hot thumbs, new media, hot media). On that page, I have a total of 16 thumbnails displayed for the thumb modules and a total of 16 flash videos displayed for the media modules. I disabled other VBA modules on this portal page. Can you provide an option to cache built templates for these 4 modules so that the server only have to build it once during the cache period? It would be much appreciated! Your other VBA modules seem to load fine.

Feature Request: For uploaded images that are smaller than “link_imagesize”, the image remains unchanged. Can you enable your local_resize.php script to enlarge small images to “link_imagesize” (I understand the resolution will be less, that’s fine)? I don’t mind if ImageMagick needs to be installed since there are easy self-installers for many OS and many hosting providers provide it by default. This feature would really help image categories to have a uniform layout.

AndrewD 10-15-2008 02:59 AM

Quote:

Originally Posted by vbboarder (Post 1645323)
Feature Request: My portal page loads slow when I have all 4 VBA media modules enabled (new thumbs, hot thumbs, new media, hot media). On that page, I have a total of 16 thumbnails displayed for the thumb modules and a total of 16 flash videos displayed for the media modules. I disabled other VBA modules on this portal page. Can you provide an option to cache built templates for these 4 modules so that the server only have to build it once during the cache period? It would be much appreciated! Your other VBA modules seem to load fine.

Feature Request: For uploaded images that are smaller than ?link_imagesize?, the image remains unchanged. Can you enable your local_resize.php script to enlarge small images to ?link_imagesize? (I understand the resolution will be less, that?s fine)? I don?t mind if ImageMagick needs to be installed since there are easy self-installers for many OS and many hosting providers provide it by default. This feature would really help image categories to have a uniform layout.

Thanks - and thanks for the fixes to the modules. You are right about the vba page loads when there are multiple modules - in general version 2.2.9 had become inefficient in a number of areas and 2.3.0 was mainly intended to tidy up these things. I will look into the possibilities for caching bits.

obmob 10-15-2008 03:10 AM

Hmm... a lot of stuff has been added since 2.2.8 x.x

Thanks Andrew! :3

littefire 10-15-2008 12:09 PM

Quote:

Originally Posted by AndrewD (Post 1644959)
Yes, this depends on the security settings on your web server
- if your site is using Apache as web server, this can be configured to prohibit directory browing - see for example http://forums.devshed.com/apache-dev...help-9870.html
- provided you have access to web server directories outside directory root, you can also configure LDM to store files outside the web root (settings local_file_root and local_file_root_prefix). This will prevent the problem in the first place
- you can also create an empty file called index.html in /vbb/dl (the next version of LDM 2.3.0 will do this for you)

It's interesting - no-one had noticed this problem for nearly four years, then I've had two reports in the past month or so:)


I chose CHMOD 711 ,problem solved.
thanks.

skokarl 10-16-2008 04:38 AM

Hallo, it's a very great Hack, many thanks.

It is possible to make a extra download button under the file ?

AndrewD 10-16-2008 05:00 AM

Quote:

Originally Posted by skokarl (Post 1646144)
Hallo, it's a very great Hack, many thanks.

It is possible to make a extra download button under the file ?

You need to edit the links_linkbit template (or one of the other linkbit template, if you are not using the 'modern' linkbit), which I am afraid are rather complicated templates.

To add another download button, you need to insert the following code:
Code:

<if condition="$linksavebit">$linkurlsave</if>
where you want the button to be.

littefire 10-16-2008 07:20 AM

Can we support Resume broken downloads ?

AndrewD 10-16-2008 09:10 AM

Quote:

Originally Posted by littefire (Post 1646198)
Can we support Resume broken downloads ?

I'm not sure that it is possible to do this within LDM, because I think it requires privileged access to the user's PC. This is a security risk that is blocked to scripts.

However, LDM does work smoothly with (at least some) third-party download managers, which will handle resumes.

littefire 10-16-2008 11:54 AM

Quote:

Originally Posted by AndrewD (Post 1646222)
I'm not sure that it is possible to do this within LDM, because I think it requires privileged access to the user's PC. This is a security risk that is blocked to scripts.

However, LDM does work smoothly with (at least some) third-party download managers, which will handle resumes.

yes,flashget can handle resumes, but it also show real address of the file.

Can we hide the real address? did we need use local_file_root&local_file_root_prefix ?

abdelghani68 10-16-2008 02:51 PM

If I have an entrie with the link :

www.mysite.com/audio01.mp3

If I woul'd like when a member download the audio, it will be nomme 'vbullletin' ; how to do that ?

When I write 'vbulletin' in the champ 'rename'. I have got a message of error.

can you help me please ? thanks and sorry for my bad english

AndrewD 10-16-2008 03:13 PM

Quote:

Originally Posted by abdelghani68 (Post 1646390)
If I have an entrie with the link :

www.mysite.com/audio01.mp3

If I woul'd like when a member download the audio, it will be nomme 'vbullletin' ; how to do that ?

When I write 'vbulletin' in the champ 'rename'. I have got a message of error.

can you help me please ? thanks and sorry for my bad english

You have to put vbulletin.mp3 in the field - the rename has to include the filetype, and it has to be the same filetype.

DJDrew 10-16-2008 03:18 PM

Does anyone have a module for vbadvanced for this?

AndrewD 10-16-2008 03:59 PM

Quote:

Originally Posted by DJDrew (Post 1646417)
Does anyone have a module for vbadvanced for this?

They are in the release you already have. Also described in the online wiki.

DJDrew 10-16-2008 04:05 PM

Quote:

Originally Posted by AndrewD (Post 1646450)
They are in the release you already have. Also described in the online wiki.

Oh ok thanks! :)

DJDrew 10-16-2008 04:11 PM

I get the error "The file you have uploaded is not a valid module file." when I try to use them?

AndrewD 10-16-2008 05:32 PM

Quote:

Originally Posted by DJDrew (Post 1646458)
I get the error "The file you have uploaded is not a valid module file." when I try to use them?

tell me which one you want to use, and I will install it for you.

DJDrew 10-16-2008 06:06 PM

Quote:

Originally Posted by AndrewD (Post 1646505)
tell me which one you want to use, and I will install it for you.

The ldm_new.module please

If that shows all the newest posts to the downloads?

AndrewD 10-17-2008 03:32 AM

Quote:

Originally Posted by DJDrew (Post 1646527)
The ldm_new.module please

If that shows all the newest posts to the downloads?

I realise what is the problem.

There is a bug in the vbadvanced code when vba is installed on a windows-based server, and this causes the error you report ("this is not a valid module file") with all attempts to upload modules (not just LDM). I have reported this to Brian on vbadvanced.com, but so far I don't think it has been fixed in the official release.

The fix involves a minor change to the file admincp/vba_cmps_admin.php, as attached. If you upload this file, I think you will find that the modules install correctly.

When you have fixed this, be careful to avoid another problem related to the way vbadvanced handles module installation. The vba upload module form asks you which style(s) to add the new module's templates. You have created eight styles, but you have made them all 'top level' styles - i.e. they all have 'no parent style' (admincp/styles/edit style settings), so they cannot inherit templates from their parent. This means that the new vba module templates must be installed to *all* your styles, i.e. you must select all of them when uploading the module.

Again, I'm happy to do the installation for you, but obviously I can't install the code fix.

vbboarder 10-17-2008 05:21 AM

Bug Report & Fix:
The JWPlayer Addons ? ldm_linkbit_create.php file I uploaded a few days ago has a bug where the inline players showed in VBA blocks but not in LDM category listings. Besides fixing that bug, there are other minor code changes so you should edit the JWPlayer Addons plugin hooked to ldm_linkbit_create: remove all of the old code in that plugin, and paste in all of the new code from the file. Make sure you use the right file ? I included both LDM 2.2.9 & 2.3.0 versions since Andrew added some new code/ variables to the 2.3.0 version.

Note: I updated my original post with a new zip file containing the new JWPlayer Addons ? ldm_linkbit_create.php file.

Bug Report & Fix:
I found another alignment problem when both the JWPlayers for Flash & Silverlight appear in the same row:
Fix: in the links_playerbit_JWwmPlayer template, FIND:
Quote:

<div id="ldmplayerdiv$player_id"></div>
.
REPLACE that with:
Quote:

<div style="float:$stylevar[left]"><div id="ldmplayerdiv$player_id"><a href="http://silverlight.net/GetStarted/">Get Silverlight</a> to see this player.</div></div>

MissKalunji 10-17-2008 05:13 PM

got a question how can i use "rss" to display title of the New Songs (click and it brings them to the item itself?) It's to be added to vbadvance

MissKalunji 10-17-2008 07:25 PM

Never mind i found the way by using this : http://www.vbadvanced.com/forum/show...contents+write and your Rss feed :) Thank you!

vbboarder 10-17-2008 09:36 PM

The saved search feature is not working correctly. There's 3 issues:

1. When the search option to find "all words" is selected, it acts the same as "any words." For example, if you put in: mp3 audio, "any words" search would find entries that have either mp3 or audio in its text, "all words" search would find entries that have both mp3 and audio (mp3 & audio do not need to be adjacent) in its text, and "exact phrase" search would find entries that have mp3 audio (mp3 & audio needs to be adjacent to each other) in its text. Well, LDM doesn't do that when "all words" is selected.

2. When I save a search and edit it later, then old settings still remain. For example, I saved a search of "mp3 audio" and selected "exact phrase", then I edited that search to change it to "all words" and marked "update saved search", then I visit the "Saved Searches" link, the search description will read both "exact phrase" and "all words." It might just be a descriptive bug versus a functional bug because when I click on the "mp3 audio" search link, the header states that it's searching "all words" only (though it's searches incorrectly - see bug #1).

3. The saved searches for Profile Searches can not be edited by the user. Though not a functional bug ('cause it works), it results in a logical bug because the search semantics is not correct. For example, if the admin enabled occupation profile searching in LDM settings and the user put in "web developer" in his profile, then when he goes to the LDM Search menu, he gets 2 separate saved searches: "web" and "developer" when it should be "web developer." I think the solution is 2 parts: enable an option to allow profile saved searches to be delimited by commas, and enable the profile saved searches to be edited similar to the self-made saved searches.

AndrewD 10-18-2008 03:09 AM

Quote:

Originally Posted by vbboarder (Post 1647313)
The saved search feature is not working correctly. There's 3 issues:

1. When the search option to find "all words" is selected, it acts the same as "any words." For example, if you put in: mp3 audio, "any words" search would find entries that have either mp3 or audio in its text, "all words" search would find entries that have both mp3 and audio (mp3 & audio do not need to be adjacent) in its text, and "exact phrase" search would find entries that have mp3 audio (mp3 & audio needs to be adjacent to each other) in its text. Well, LDM doesn't do that when "all words" is selected.

2. When I save a search and edit it later, then old settings still remain. For example, I saved a search of "mp3 audio" and selected "exact phrase", then I edited that search to change it to "all words" and marked "update saved search", then I visit the "Saved Searches" link, the search description will read both "exact phrase" and "all words." It might just be a descriptive bug versus a functional bug because when I click on the "mp3 audio" search link, the header states that it's searching "all words" only (though it's searches incorrectly - see bug #1).

3. The saved searches for Profile Searches can not be edited by the user. Though not a functional bug ('cause it works), it results in a logical bug because the search semantics is not correct. For example, if the admin enabled occupation profile searching in LDM settings and the user put in "web developer" in his profile, then when he goes to the LDM Search menu, he gets 2 separate saved searches: "web" and "developer" when it should be "web developer." I think the solution is 2 parts: enable an option to allow profile saved searches to be delimited by commas, and enable the profile saved searches to be edited similar to the self-made saved searches.

I'd noticed the first two problems, and I think I've fixed them in 2.3.0 beta 1. There were bugs particularly in the highlighting code (particularly nasty to fix for languages requiring utf8 character sets) . Thanks.

The third one (profile searches) is a bit more problematic, because, as you say, the feature is working as originally designed. But it's a bit of a fossil and needs rethinking. The inconsistency with other saved searches has only just become apparent, because I only recently made this feature visible - it was there for a couple of years but only to admins.


All times are GMT. The time now is 06:32 AM.

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.03506 seconds
  • Memory Usage 1,894KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete