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)

RikiB 06-12-2008 01:48 AM

I think I may have found a bug. It seems everyone can see the "hidden" links. Ive double checked the usergroup permissions, they should not be able to view hidden, but alas they can.
Can someone confirm this?

Riki

AndrewD 06-12-2008 05:04 AM

Quote:

Originally Posted by RikiB (Post 1547202)
I think I may have found a bug. It seems everyone can see the "hidden" links. Ive double checked the usergroup permissions, they should not be able to view hidden, but alas they can.
Can someone confirm this?

Riki

Riki, from a quick check, things seem to be working as they should - this doesn't mean 'no problem' - just 'I can't reproduce'. Do you want me to take a look?

AndrewD 06-12-2008 05:06 AM

Quote:

Originally Posted by maroceve (Post 1546637)
Actually it keeps adding a slash at the end of the adress : So when i enter /images/ldmicons

it transforms it to images/ldmicons/

If it's doing that, then it's finding the directory correctly. So it should be working correctly if the icons are there and the directory is accessible to php.

Send me a pm if you want me to take a look.

AndrewD 06-12-2008 05:08 AM

Quote:

Originally Posted by glowinggal (Post 1546658)
we just moved our server to a new host and now for some reason all the thumbnails that were originally associated with each download is not showing. It's still showing as "linked" and the files are there as i checked that already; but they aren't actually coming up in LDM?

Try going to one of the LDM admin pages and look down the left of the page for the Statistics box. There should be a mention of the number of thumbs that it thinks are cached. Click on the hyperlink on 'cached' to reset and see if that fixes the problem

stwilson 06-12-2008 05:16 AM

Andrew,

Is there a way to configure this MOD to add an item in the directory where the original contributor can attach multiple attachments, while allowing other members to add additional attachments to the item? Naturally, I would like all the submissions to be moderated.

What I am trying to do is allow my members to add a resource (new link) and attach more than one GPS file to the resource. As other members review the resource they may want to add additional GPS files to the already posted resource. Is this possible with this MOD?

RikiB 06-12-2008 05:21 AM

Thanks, PM sent!

AndrewD 06-12-2008 09:56 AM

Quote:

Originally Posted by stwilson (Post 1547298)
Andrew,

Is there a way to configure this MOD to add an item in the directory where the original contributor can attach multiple attachments, while allowing other members to add additional attachments to the item? Naturally, I would like all the submissions to be moderated.

What I am trying to do is allow my members to add a resource (new link) and attach more than one GPS file to the resource. As other members review the resource they may want to add additional GPS files to the already posted resource. Is this possible with this MOD?

I don't think I will ever finish this hack...

I think the permissions system is not currently set up to allow what you are wanting - entry attributes/attachments were only introduced in this version, and the possibility that different people would add them to someone else's entry did not occur to me. I will give this some thought for a subsequent version if you feel this is justified.

josiespencer 06-13-2008 02:32 PM

My ultimate goal is that all file downloads are done via hard coded URL links posted in posts that look like this "http://uber-goober.com/forums/local_links.php?action=jump&linkid=931". This makes a popup box appear and the user can download just that one file.

However...

(1) When I new user signs on for the first time he finds a file he wants to download:

http://uber-goober.com/myPictures/LDM1.png

(2) So he clicks the hyperlink and gets the prompt for accepting the download terms:

http://uber-goober.com/myPictures/LDM2.png

(3) He clicks Continue and gets:

http://uber-goober.com/myPictures/LDM3.png

(4) He clicks Go and sees:

http://uber-goober.com/myPictures/LDM4.png

(5) OK, first of all he isn't supposed to see this screen ever, he is just supposed to get a popup box asking him where he wants to save the file. Regardless, now he can do/see things he shouldn't be able to see. So he clicks on Categories to get a list of those:

http://uber-goober.com/myPictures/LDM5.png

(6) And then clicks on the LDM hyperlink and gets a list of all files in the LDM category:

http://uber-goober.com/myPictures/LDM8.png

(7) And now he can search for any file he wants including hidden files:

http://uber-goober.com/myPictures/LDM6.png

If I switch "off" the can_view_category for that users usergroup, he never gets the download acceptance terms in (3), instead he gets this:

http://uber-goober.com/myPictures/LDM7.png

I have messed around with and tweaked these settings about a million times - what am I missing here?

kencasanova 06-13-2008 06:58 PM

when i upgrade to 3.7.1 and i also use CPMs 3.0.1. my index page appear like this

Fatal error: Call to undefined function lookup_ldm_forum_protections() in /home/khmerlor/public_html/modules/ldm_new.php on line 13

please help!

AndrewD 06-13-2008 08:28 PM

Quote:

Originally Posted by kencasanova (Post 1548643)
when i upgrade to 3.7.1 and i also use CPMs 3.0.1. my index page appear like this

Fatal error: Call to undefined function lookup_ldm_forum_protections() in /home/khmerlor/public_html/modules/ldm_new.php on line 13

please help!

You've got inconsistent versions of LDM files installed. That function changed its name between release 2.2.8 and 2.2.9. Just uninstall and reinstall the relevant vba modules.

delibakis 06-13-2008 08:39 PM

Thx! *installed*

animehawk 06-14-2008 12:59 AM

Hi Andrew,

I'm having the following problem with 2.2.9.

Quote:

Entry is not available because site parameters force_redirect and local_file_root are inconsistent - please contact administrator
Force_redirect=1
Local_file_root=no

I can use 0 for force_redirect, but it eats up a ton of memory, equal to the size of the file.

I don't have a local file prefix set either, and all of the files are located in the web dir.

Any thoughts?

AndrewD 06-14-2008 05:43 AM

Quote:

Originally Posted by animehawk (Post 1548848)
Hi Andrew,

I'm having the following problem with 2.2.9.



Force_redirect=1
Local_file_root=no

I can use 0 for force_redirect, but it eats up a ton of memory, equal to the size of the file.

I don't have a local file prefix set either, and all of the files are located in the web dir.

Any thoughts?

I think this is my fault. I put in a check to stop use of force direct when files are outside the web dir, and the check is too rigid. Will provide a fix today.

AndrewD 06-14-2008 08:06 AM

Quote:

Originally Posted by josiespencer (Post 1548454)
My ultimate goal is that all file downloads are done via hard coded URL links posted in posts that look like this "http://uber-goober.com/forums/local_links.php?action=jump&linkid=931". This makes a popup box appear and the user can download just that one file.

OK, understood

Quote:

Originally Posted by josiespencer (Post 1548454)
(1) When I new user signs on for the first time he finds a file he wants to download:

(2) So he clicks the hyperlink and gets the prompt for accepting the download terms:

(3) He clicks Continue and gets:

(4) He clicks Go and sees:

I understand.

Quote:

Originally Posted by josiespencer (Post 1548454)
(5) OK, first of all he isn't supposed to see this screen ever, he is just supposed to get a popup box asking him where he wants to save the file. Regardless, now he can do/see things he shouldn't be able to see. So he clicks on Categories to get a list of those:
(6) And then clicks on the LDM hyperlink and gets a list of all files in the LDM category:
(7) And now he can search for any file he wants including hidden files:

I understand that you don't want people to go via the main LDM pages but I am surprised that they can see entries that you don't want them to see, particularly hidden entries.

If you don't want people to see hidden entries, then you should take away *can_view_hidden* permission from their usergroups.

Quote:

Originally Posted by josiespencer (Post 1548454)
If I switch "off" the can_view_category for that users usergroup, he never gets the download acceptance terms in (3), instead he gets this:

This is true, and correct behaviour.

The basic problem is that the "accept rule" forms were not designed with your route through LDM in mind. I think it's easy enough to change. I will see what I can do.

animehawk 06-14-2008 12:24 PM

Quote:

Originally Posted by AndrewD (Post 1548938)
I think this is my fault. I put in a check to stop use of force direct when files are outside the web dir, and the check is too rigid. Will provide a fix today.

Thanks!

josiespencer 06-14-2008 05:18 PM

Quote:

Originally Posted by AndrewD (Post 1549001)
OK, understood



I understand.



I understand that you don't want people to go via the main LDM pages but I am surprised that they can see entries that you don't want them to see, particularly hidden entries.

If you don't want people to see hidden entries, then you should take away *can_view_hidden* permission from their usergroups.



This is true, and correct behaviour.

The basic problem is that the "accept rule" forms were not designed with your route through LDM in mind. I think it's easy enough to change. I will see what I can do.

They do not have can_view_hidden.

OK, looking at it another way, is there a way to allow one group of people to see only things in directory PUBLIC and another group of people to see things in both PUBLIC and PRIVATE? Is there a loophole around that maybe? Or maybe with two different forums? Because the hook to permissions for forums for a file doesn't seem to restrict this either. Once you get in that post-acceptance screen, it is like you are an admin or something.

I want to work within in the rules to do what I need to get done, without you having to code anything.

obmob 06-14-2008 05:20 PM

OK... i think it is finally done. :D

Spanish phrases were added to 2.2.9 :up:

AndrewD 06-14-2008 06:06 PM

Quote:

Originally Posted by josiespencer (Post 1549317)
They do not have can_view_hidden.

OK, looking at it another way, is there a way to allow one group of people to see only things in directory PUBLIC and another group of people to see things in both PUBLIC and PRIVATE? Is there a loophole around that maybe? Or maybe with two different forums? Because the hook to permissions for forums for a file doesn't seem to restrict this either. Once you get in that post-acceptance screen, it is like you are an admin or something.

I want to work within in the rules to do what I need to get done, without you having to code anything.

It's quite possible there's a bug, but without further information, I can't help you. There's nothing special about being 'post-acceptance'.

There are two ways to let one usergroup see PUBLIC and another see PUBLIC + PRIVATE.

a) you go to PRIVATE, edit category/user permissions, and take away can_view_category from the first usergroup *in that category*

b) you go to PRIVATE, edit category and associate the category and all its entries with a forum to which only the second usergroup has vbulletin *can_view_forum* permissions.

Do you want me to take a look at your site? Send me a PM if so.

AndrewD 06-14-2008 06:07 PM

Quote:

Originally Posted by obmob (Post 1549320)
OK... i think it is finally done. :D

Spanish phrases were added to 2.2.9 :up:

Thanks very much!!

AndrewD 06-14-2008 06:38 PM

post deleted - code updated and moved to starter post of thread

josiespencer 06-14-2008 07:58 PM

Quote:

Originally Posted by AndrewD (Post 1549373)
I've made a number of bug fixes and added some requested minor extensions, but also made a fairly significant change to the logic for the 'accept rules' form, so would appreciate some tests before replacing the official release.

'Accept Site Terms'
Modified logic to make it more rational for direct links to entries

Extras
Added 'hide-magnifier' extra to remove magnifier icon when image is smaller than icon size
Added 'tab-ldm-search' code for Ajax tabs

vba modules
Added 'show random entries' module
Extended 'list categories' module with configuration params

Styles
Form buttons consistently use 'button' class

Bug fixes
Fixed bug in entrybits code miscounting entries with different display_orders
Fixed bug in local_stream.php + WMP which logged out users who had not checked 'remember me' box
Fixed bug blocking downloads when force_redirect=1/local_file_root=0
Cached templates properly when moderating

Translations
Included complete Chinese and Spanish translations (thanks folks)

Thanks Andrew. I have PMed you the information. I tried setting up a test case for a category called HCC and attached a file to it called PLM150-EngineeringChangeAndConfigurationManagement. I attached the HCC category to a forums that is restricted to only a specific usergroup. But my test user could still see all the files in both categories.

animehawk 06-15-2008 01:03 AM

Thanks much Andrew. that update seems to have fixed the problem I was having.

On another note, I have file type MKV setup as Content-type: application/octet-stream in the attachments manager, same as AVI. When I click to download an avi file a download prompt comes up, not so with the mkv file type. MKV files just open another windows filled with junk.

So, I changed the category's that have mkv files in them, to force-redirect=0. That seems to force the download prompt.

Is there anyway to change that? I thought that content type should have fixed that.

AndrewD 06-15-2008 05:40 AM

Quote:

Originally Posted by animehawk (Post 1549560)
Thanks much Andrew. that update seems to have fixed the problem I was having.

good!

Quote:

Originally Posted by animehawk (Post 1549560)
On another note, I have file type MKV setup as Content-type: application/octet-stream in the attachments manager, same as AVI. When I click to download an avi file a download prompt comes up, not so with the mkv file type. MKV files just open another windows filled with junk.

So, I changed the category's that have mkv files in them, to force-redirect=0. That seems to force the download prompt.

Is there anyway to change that? I thought that content type should have fixed that.

If force_redirect is set to 1 or 2, then the vbulletin mimetype data is not used at all. LDM simply tells the browser to grab the file. How the file is handled depends on the browser configuration and any browser plugins. I imagine on your system, mkv's are being recognised by a browser plugin. I ran a test on my PC (where I have not installed tools to view mkvs) - both firefox and IE show a run/save as dialogue.

With force_redirect=0, application/force-download is a good content-type to force the open/save dialogue

animehawk 06-15-2008 11:40 AM

Ahh, Ok. I t understand now. thanks much!

Darkstarproject 06-15-2008 05:13 PM

Just have 1 question,
I uploaded some photo's and it didnt do 2 things.
1 - create a thumbnail of the image
2 - post a new thread in the section i had defined. The user in question has rights to add threads to that section of the forum. Any idea's why it wouldnt create thumbnails?

I do have the thumbnail directory created, it is writeable and it's configured within LDM.

AndrewD 06-16-2008 06:40 AM

Quote:

Originally Posted by Darkstarproject (Post 1550143)
Just have 1 question,
I uploaded some photo's and it didnt do 2 things.
1 - create a thumbnail of the image
Any idea's why it wouldnt create thumbnails?

I do have the thumbnail directory created, it is writeable and it's configured within LDM

Check on ldm/admin/settings that you have given a non-zero size for the thumbnail size

Quote:

Originally Posted by Darkstarproject (Post 1550143)
2 - post a new thread in the section i had defined. The user in question has rights to add threads to that section of the forum..

Are thread announcements working at all or is the problem just with the photos? And, when submitting the photo, do you get a message saying that it could not create the thread or do you just get an 'accepted' message?

Darkstarproject 06-17-2008 12:12 AM

Answer to 1 - I assume I set it at - link_imagesize ? If so, I did not have a value set, but I set a value now.

2 - Thread annoucements are working fine, when I uploaded the photo, it created a thread. when the user uploaded a photo, it did not create the thread.

obmob 06-17-2008 12:40 AM

Hello Andrew, as always, it is great to be part of this mod, there is no other around i enjoy the most.

It is exiting to see the developments... you can't have enough LDM! :3

I was wondering about a random module in vbA, thanks!


OK... now my add to the wishlist XD

One of my forums have asian characters or kanji in the files description, when i export and reimported the LDM class, every kanji was a "?"

Is there a way to allow strange characters be exported and reimported, of course, just in case :p

AndrewD 06-17-2008 04:11 AM

Quote:

Originally Posted by obmob (Post 1551231)
Hello Andrew, as always, it is great to be part of this mod, there is no other around i enjoy the most.

It is exiting to see the developments... you can't have enough LDM! :3

I was wondering about a random module in vbA, thanks!

OK, I hope that it works as you wanted


Quote:

Originally Posted by obmob (Post 1551231)
One of my forums have asian characters or kanji in the files description, when i export and reimported the LDM class, every kanji was a "?"

Is there a way to allow strange characters be exported and reimported, of course, just in case :p

You mean with the LDM export/import - I will check - this will be a character set handling problem.

RikiB 06-17-2008 04:17 AM

Quote:

Originally Posted by AndrewD (Post 1543732)
I can't see how that could work reliably - domestic users tend to have dynamic IP addresses so are likely to show up on different addresses in any case.

Perhaps there could be a way to display a warning that the admin can view when someone downloads with multiple IPs.
I can then quickly check the IPs geolocaion and make a judgment. If I check the IPs and one is from UK while the other is from Austrailia, then I know that the user is sharing their user info, or someone stole it.

What would be even better is if ldlm could figure out the aprox location of the IP, but that is wishful thinking.

Just wondering, this isnt a huge deal but I have caught a few people abusing the system.

Riki

AndrewD 06-17-2008 04:33 AM

Quote:

Originally Posted by Darkstarproject (Post 1551221)
Answer to 1 - I assume I set it at - link_imagesize ? If so, I did not have a value set, but I set a value now.

2 - Thread annoucements are working fine, when I uploaded the photo, it created a thread. when the user uploaded a photo, it did not create the thread.

I took a quick look at your site. I can see one problem which should be fixed first - I'm not sure if this is the cause of your problem or not.

I think you've got different base urls set for your site and your forum on your vb/admincp/options/site settings. One is set to www.sitename.xxx and the other just to sitename.xxx. You should make these consistent.

LDM uses full urls to avoid problems at the interface between vbulletin and vbadvanced.

Because vBulletin login cookies are (by default) url specific, someone who has logged on at www.sitename.xxx is not logged on when taken to sitename.xxx. This might be causing your difficulties.

If this is not the problem, I'm glad to take a look but will need full admin privs. Send me a pm if you want.

Yes, link_imagesize was correct - from what I see, this is now working correctly.

AndrewD 06-17-2008 04:42 AM

Quote:

Originally Posted by RikiB (Post 1551323)
Perhaps there could be a way to display a warning that the admin can view when someone downloads with multiple IPs.
I can then quickly check the IPs geolocaion and make a judgment. If I check the IPs and one is from UK while the other is from Austrailia, then I know that the user is sharing their user info, or someone stole it.

What would be even better is if ldlm could figure out the aprox location of the IP, but that is wishful thinking.

Just wondering, this isnt a huge deal but I have caught a few people abusing the system.

Riki

Take a look at the LDM/admin/hits information page - the default listing shows you how many IP addresses each recorded user has 'hit' from. I imagine that we could provide a plugin extra which links this page to a geolocation facility.

RikiB 06-17-2008 04:56 AM

Thanks Andrew yeah currently I check that page when I think about it to see how many people are using multiple IPs, and its fairly rare. What I was thinking is if there could be some sort of notification when this happens without having to manually check. The problem is buy the time I realize 2 people downloaded a purchased file, it is too late.

derfelix 06-17-2008 05:36 AM

Great version... very happy..

One little thing.. the german language file has a little problem.. it is UTF-8 which is OK but the xml-encoding is also UTF-8 which is a problem unless you use the vbulletin from vbulletin-china.cn.
In that version the core files have been modified to accept that encoding..

Most people use the language files (also for vbulletin and blog) following way:
Load lang file in texteditor.
Save as UTF8
Then only load into vbulletin.
in Vbulletin language settings make sure ALL charsets are set to UTF-8

But the first line in the languagefile should be:
<?xml version="1.0" encoding="ISO-8859-1"?>
and NOT:
<?xml version="1.0" encoding="UTF-8"?>
(otherwise each line gets truncated at the first special character -- at least in the vbulletin versions purchased from vbulletin.com)

just wanted to let people know, if someone runs into the same problem..
-----------

BTW.. has anybody seen a russian language file out there??
(I read in an older version - 3.6 or 3.5 - that someone was working on it)
I would very much appreciate

Thanks for the great work, andrew

Felix

AndrewD 06-17-2008 05:43 AM

Quote:

Originally Posted by RikiB (Post 1551338)
Thanks Andrew yeah currently I check that page when I think about it to see how many people are using multiple IPs, and its fairly rare. What I was thinking is if there could be some sort of notification when this happens without having to manually check. The problem is buy the time I realize 2 people downloaded a purchased file, it is too late.

OK, understood

kevinh 06-17-2008 06:06 AM

Hi Andrew (or anyone else who may be able to help),

I'm building a replacement for an existing vB 3.6/vBaCMPS site which uses LDM 2.2.7

The replacement site uses vB 3.7.1 and LDM 2.2.9-RC2

What is the best way to transfer all the LDM content from the old site to the new one?

Thanks,
Kevin

AndrewD 06-17-2008 07:48 AM

Quote:

Originally Posted by kevinh (Post 1551360)
Hi Andrew (or anyone else who may be able to help),

I'm building a replacement for an existing vB 3.6/vBaCMPS site which uses LDM 2.2.7

The replacement site uses vB 3.7.1 and LDM 2.2.9-RC2

What is the best way to transfer all the LDM content from the old site to the new one?

Thanks,
Kevin

I assume that you are either installing on a new server, or creating a new instance of VB/LDM with new database tables. If you are simply upgrading an existing site, the sequence is straightforward: upgrade vbulletin and LDM (in either order), and everything's done.

There are two things you need to think about in moving server/database:

Database: The best approach is to copy the database (or at least the LDM SQL tables, which normally have names starting "local_links") to the new site, then install LDM 2.2.9. Alternatively, you can use the LDM/admin/export and import commands to upload the tables into an empty new installation.

Content: If you are moving to a new server, and your content consists of files on your own site (rather than urls pointing to another site), then you need to copy these files over to the new server. They need to be in the same place relative to the LDM settings local_file_root and local_file_root_prefix (if necessary, you can change those parameters).

Darkstarproject 06-17-2008 12:41 PM

AndrewD. I'll get a PM off to you with the admin rights info.

vidan 06-18-2008 08:21 PM

mr andrew pls check your email, i sent email to you thanks.

obmob 06-19-2008 02:54 PM

Quote:

Originally Posted by AndrewD (Post 1551321)
You mean with the LDM export/import - I will check - this will be a character set handling problem.

Yeah, using the LDM import/export features :D


All times are GMT. The time now is 08:08 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.02749 seconds
  • Memory Usage 1,895KB
  • 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
  • (28)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