vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

AndrewD 05-21-2006 06:12 AM

Quote:

Originally Posted by obmob
AWW, can't make this to work... ok, here is what i've done so far.

Uploaded files as indicated :p -was planning to rename, but i'll do that later-

Now i scanned a folder and was able to add a couple of files, just to test.

It says file is ok... but when i try to download link appears this way and a 404 error is displayed.

http://www. site. com/local_links/jump/2/1 <-- that location doesn't exist, files are stored in a different folder, i thought i enabled some sort of protection in LDM settings to avoid hotlinkin in my files. :(

No broken links shown in admin... so i tried a different way and uploaded directly a different file... no luck, the same result.

Also, if i go to LDM home page i see new category, if i try to browse i see this when clicking category, also 404 error:

http://www. site .com/local_links/links/1

Have i done something wrong? Did i missed something? Files are placed correctly :(

Hope spmeone can help me, thanks.


From the URLs that you are showing, you seem to have switched on the seo_friendly option on the LDM admin settings page. Have you also configured apache to work with SEO links? If not, you will get exactly the errors you are mentioning

AndrewD 05-21-2006 06:18 AM

Quote:

Originally Posted by Ian Emu-UK
Thanks Andrew, but it doesn't seem to be working, here is my settings from the file

PHP Code:

$expireusergroups = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);  // use this array to specify which usergroups' entries trigger an autodeletion
$expirecategories = array(18);  // use this array to specify which categories can be pruned, default all categories
$expiredays 3// number of days after which an entry is removed from the database 

I want it to delete everything uploaded by all usergroups in cat 18, but after 5 days the file has still not been deleted.

I have setup the sheduled task and uploaded the file into the cron directory (I can see those questions popping into your head ;) )

Ian, I feel rather scared advising you with this, in case I tell you something wrong which kills the whole LDM database. So pls take a backup of all the LDM tables!!!

Have you tried going to the VB admincp and *forcing* the cron job to run?

If so and it still doesn't work, I'd like you to send me an email with these two items:
- a database backup of the LDM tables, and
- the modified version of the cron task php file

I'll send you a message with me email address

Holidazed 05-21-2006 05:20 PM

Quote:

Originally Posted by AndrewD
Have you 'associated' the category with the protected forum (LDM/edit category/parent forum)?

Yes I did, but it still lets them in.

AndrewD 05-21-2006 08:14 PM

Quote:

Originally Posted by bitg
Yes I did, but it still lets them in.

Then I don't understand - would you send me a pm with detals of your board + an admin account?

pumarjr 05-21-2006 08:17 PM

it's funny, my post has been completely ignored

AndrewD 05-22-2006 04:42 AM

Quote:

Originally Posted by pumarjr
it's funny, my post has been completely ignored

I didn't ignore it - see reply at 08:40 yesterday - I said that I cannot understand how it is possible for VB and LDM to display these different values when the code is using identiocal code to read the same settings from the php.ini files. Maybe I'm overlooking something obvious. See for example these attachments which show the same value from my test board.

How big an upload will your implementation of LDM allow? What limits are set in your main VB admin/attachments table?

Latest versions of LDM places the following limits on uploads:

a) for admins, all allowed filetypes, maxsize = smaller of upload_max_filesize and post_max_size
b) for all other users, maxsize is read from the VB admin attachments table for the corresponding filetype, with an upper limit of smaller of upload_max_filesize and post_max_size

pumarjr 05-22-2006 05:37 AM

i appologize

GrendelKhan{TSU 05-22-2006 02:08 PM

Quote:

Originally Posted by GrendelKhan{TSU
quick question or suggestion before I forget:


is there a way to make a PERMALINK? or have it show a copiable link so people can use this like Online Image Storage or FILE HOST source?

all the elements are there...just need a copiable link to the download.
(eg: this would be VERY useful for people who want to upload say... a signature image and link it into their signature).

again, doing so would in effect covers thses hacks and more..
https://vborg.vbsupport.ru/showthread.php?t=113583
https://vborg.vbsupport.ru/showthread.php?t=106127

no thoughts on this?

I thought more ppl would be interested in having show a convenient link so one could use this as online file/image storage.

obmob 05-22-2006 02:35 PM

Quote:

Originally Posted by AndrewD
From the URLs that you are showing, you seem to have switched on the seo_friendly option on the LDM admin settings page. Have you also configured apache to work with SEO links? If not, you will get exactly the errors you are mentioning

:bunny: you are right, i forgot i set that and didnt check apache...

i'm such a fool :(

thanks Andrew, i'll test once again :)

Benj 05-23-2006 11:31 PM

has anyone tried to play mp3s using a flash player with this hack ??

obmob 05-24-2006 02:53 AM

You know, it would be great to be able to determine a folder for each category... and separate one for thumbs.

Also a temporal folder for uploads... oh well, i think that's already here... :D

Something like this:

data
--- media
------cat1
------cat2
------cat3
--- thumbs
------cat1
------cat2
------cat3
--- temp_uploads
--- temp_thumbs

This is a great mod, with a lot of potential... i'm translating to spanish, i'll attach it later this week. :)

AndrewD 05-24-2006 04:48 AM

Quote:

Originally Posted by obmob
... i'm translating to spanish, i'll attach it later this week. :)

Thanks!!

You realise that there is a 50% translation provided into Mexican Spanish? Take a look in the /development part of the directory tree in the zip file.

Boofo 05-24-2006 05:52 AM

Andrew, sorry to bother you here again, but do you remember how we got the images to display in the links last time? I had to reinstall this after a server HD crash (I lost everything) and the image shows a red x now instead of the image. ;)

Benj 05-24-2006 12:55 PM

andrew anyway you could russle up another addon to show a users files in there profile? id be willing to donate (if your accepting them now ;))

cheers mate

obmob 05-25-2006 02:42 AM

Quote:

Originally Posted by AndrewD
Thanks!!

You realise that there is a 50% translation provided into Mexican Spanish? Take a look in the /development part of the directory tree in the zip file.

Yeah, i didn't like it, so i'm also changing some spanish to make it more natural, hope you like it whe it's done. :bunny:

oglsmm 05-26-2006 09:32 PM

Sorry I did some searches using terms I was able to think of, but was unable to find an answer.

I have two questions;

1) Is it possible to just rename local_links.php to another name?
For example files.php, etc

2) Is there a way to force users who have permission to upload to only upload to a specific Catagory?

obmob 05-26-2006 09:42 PM

Quote:

Originally Posted by oglsmm
Sorry I did some searches using terms I was able to think of, but was unable to find an answer.

I have two questions;

1) Is it possible to just rename local_links.php to another name?
For example files.php, etc

2) Is there a way to force users who have permission to upload to only upload to a specific Catagory?

First answer is right here O_o
http://www.eirma.org/devel/LDM

Second one... i'd love to know the answer too ^_^

arcadian_girl 05-26-2006 11:03 PM

i'm having trouble with the extra to auto-create a thread when a new file is uploaded. i uploaded the plugin, but nothing's happening-it's still not creating the thread. i was kind of confused as to the instructions-was i supposed to do something other than just install the plugin?

thanks

Boofo 05-27-2006 03:03 AM

Can some please help me with the forum of this setting?
Quote:

thumbs_dirDirectory in which thumbnails are stored [relative to webroot]. Ensure writable by webserver.
Right now is is set at:
Quote:

/forum/images_fr/ldm_thumbs
but I am still getting a red x next to the link, even after rebuilding the thumbnails. Does anybody have any idea what I am doing wrong?

arcadian_girl 05-27-2006 03:23 AM

hi Boofo :)

Boofo 05-27-2006 03:27 AM

Quote:

Originally Posted by arcadian_girl
hi Boofo :)

Well, hello there, young lady. ;)

Any idea how to fix my problem posted above? ;)

AndrewD 05-27-2006 05:31 AM

Quote:

Originally Posted by Boofo
Can some please help me with the forum of this setting?Right now is is set at:but I am still getting a red x next to the link, even after rebuilding the thumbnails. Does anybody have any idea what I am doing wrong?

Bob, sorry to learn that you haven't got this sorted out. Quite honestly, easiest approach is to me have admin access to your site.

Boofo 05-27-2006 05:40 AM

PM with the details is on it's way, sir. ;)

And thank you. ;)

AndrewD 05-27-2006 05:58 AM

Quote:

Originally Posted by arcadian_girl
i'm having trouble with the extra to auto-create a thread when a new file is uploaded. i uploaded the plugin, but nothing's happening-it's still not creating the thread. i was kind of confused as to the instructions-was i supposed to do something other than just install the plugin?

thanks

I'm assuming that you've uploaded the autocreate_plugin.xml plugin and you can see from your VB admincp that it is active and tied to ldm_addlink_inserted.

The thread creation is *only* triggered if these conditions are met:

1) The new entry is given (explicitly or automatically) an "associated forum".
2) The forum is real and open (i.e. you've not set it up as a *category* forum or a *linked* forum* in the VB admin/forum pages)
3) The user who is creating the new LDM entry has permission to post in that forum

By default, LDM does not automatically associate new links with one of your forums, so by default, this *extra* will not do anything.

Further, by default, only admins can assign an associated forum - for them, the *Add Link* form will include a selection list titled "Parent Forum".

If you want to change this so that new entries from all users will have a default associated forum, you can do one of the following:

- Set *default_forumid* on the LDM admin/settings page to one of your forums. By itself, this will associate all new entries in all categories with the selected forum. So if this is all that you do, everytime a user creates a new entry in LDM, there will be a new thread in that forum.

- Edit one or all of your categories and set its *Parent Forum*. This will ensure that all new entries added to that category will be associated with the selected forum. So if this is all you do, each time a user creates a new entry in LDM, the new thread will be created in the forum that you've just associated with the category

- Give one or more of your usergroups *can_set_permissions* permission, on the LDM Admin/Permissions page. This will allow users in these groups to decide for themselves the forum with which to associate the new entry, an dtherefore which forum will contain the new thread. (This permission allows users to do a couple of other things too, so take care if you don' trust your users.)

AndrewD 05-27-2006 07:43 AM

Quote:

Originally Posted by oglsmm
1) Is it possible to just rename local_links.php to another name?
For example files.php, etc

See section 2.2 of the online manual

Quote:

Originally Posted by oglsmm
2) Is there a way to force users who have permission to upload to only upload to a specific Catagory?

As admin, do the following:

- On the main LDM permissions page, *deny* all/selected usergroups permisison to upload files, i.e. take away *can_upload_files* permission, Also take away *can_select_category* permission

- In the category/categories where you want them to be able to upload, Edit Category, select third tab (User Group Permissions), and give them back *Can_upload_files* permission.

This permission will apply to the chosen category and *by default* to its subcategories. If you don't want it to apply to the subcategories, repeat the process in the subcategories and take the permission away again.

The basic point is that many of the permissions are inherited from the base level down through the tree structure.

Boofo 05-27-2006 08:03 AM

I want to thank Andrew here in the thread for all his help in fixing my mistake earlier. The support is fantastic and the best I have seen here on the org in a long time. Thank you, sir, and keep up the great work. ;)

AndrewD 05-27-2006 08:34 AM

Quote:

Originally Posted by Benj_1
andrew anyway you could russle up another addon to show a users files in there profile? id be willing to donate (if your accepting them now ;))

cheers mate

Benj, the attached plugin will list the user's five most recent entries in her profile.

To use it, you need to do the following:
a) Create a new single line text profile field called "My Recent LDM Entries"
b) Import the attached xml as a new plugin

You will see the latest entries from users who leave the My Recent LDM Entries profile field blank

I'll integrate it properly into LDM with the next release.

arcadian_girl 05-27-2006 09:24 AM

Quote:

Originally Posted by AndrewD
I'm assuming that you've uploaded the autocreate_plugin.xml plugin and you can see from your VB admincp that it is active and tied to ldm_addlink_inserted.

The thread creation is *only* triggered if these conditions are met:

1) The new entry is given (explicitly or automatically) an "associated forum".
2) The forum is real and open (i.e. you've not set it up as a *category* forum or a *linked* forum* in the VB admin/forum pages)
3) The user who is creating the new LDM entry has permission to post in that forum

By default, LDM does not automatically associate new links with one of your forums, so by default, this *extra* will not do anything.

Further, by default, only admins can assign an associated forum - for them, the *Add Link* form will include a selection list titled "Parent Forum".

If you want to change this so that new entries from all users will have a default associated forum, you can do one of the following:

- Set *default_forumid* on the LDM admin/settings page to one of your forums. By itself, this will associate all new entries in all categories with the selected forum. So if this is all that you do, everytime a user creates a new entry in LDM, there will be a new thread in that forum.

- Edit one or all of your categories and set its *Parent Forum*. This will ensure that all new entries added to that category will be associated with the selected forum. So if this is all you do, each time a user creates a new entry in LDM, the new thread will be created in the forum that you've just associated with the category

- Give one or more of your usergroups *can_set_permissions* permission, on the LDM Admin/Permissions page. This will allow users in these groups to decide for themselves the forum with which to associate the new entry, an dtherefore which forum will contain the new thread. (This permission allows users to do a couple of other things too, so take care if you don' trust your users.)


got it to work, thank you!! i wish all hack authors were as good with support as you are :)

oglsmm 05-27-2006 12:48 PM

Quote:

Originally Posted by AndrewD
See section 2.2 of the online manual

I fixed that now. My problem was I had also Installed ecdownloads and I did not like it, so I removed the plugin but not the files. I had two dowloads.php and thats why following the instructions did not work.

Thanks
Quote:

Originally Posted by AndrewD
As admin, do the following:

- On the main LDM permissions page, *deny* all/selected usergroups permisison to upload files, i.e. take away *can_upload_files* permission, Also take away *can_select_category* permission

- In the category/categories where you want them to be able to upload, Edit Category, select third tab (User Group Permissions), and give them back *Can_upload_files* permission.

This permission will apply to the chosen category and *by default* to its subcategories. If you don't want it to apply to the subcategories, repeat the process in the subcategories and take the permission away again.

The basic point is that many of the permissions are inherited from the base level down through the tree structure.

I'm sorry I am just not seeing the 3rd step. I go to Admin Cpanel, choose catagories and the 3rd panel down is access permissions, but when I click edit it takes me to the forum permission editing (part of vb) not the LDM permission(s) editing.

AndrewD 05-27-2006 01:09 PM

Quote:

Originally Posted by oglsmm
I'm sorry I am just not seeing the 3rd step. I go to Admin Cpanel, choose catagories and the 3rd panel down is access permissions, but when I click edit it takes me to the forum permission editing (part of vb) not the LDM permission(s) editing.

Sorry, I've confused you.

These inherited permissions are set in the individual category edits, not in the admincp.

In LDM itself (not the LDM admin), go to the category of interest, then Edit Category, then you'll find that there are three tabs across the top. The third, at the far right of the screen is 'User Group Permissions'

PitchouneN64ngc 05-27-2006 06:12 PM

Hi there :)

I see a little bug with the max filesize for upload files.

For example: the 'bmp' extension. The filesize in the Attachments Manager for this extension is '20000'. And in the little vbmenu (when you want to add a link), it says '2097152'.

In fact, it takes only the highest filesize of all extensions, not for each extension (I've set the mp3 extension to '2000000').

So, I think the 'fetch_uploadinfo' function must to have a patch for this :)

And your hack is great, I'll help you with translate your hack in French. For that, I've restarted a free translation. I must to translate each setting and all will be ok for release it ;)

vitoreis 05-27-2006 11:23 PM

Quote:

Originally Posted by Boofo
I want to thank Andrew here in the thread for all his help in fixing my mistake earlier. The support is fantastic and the best I have seen here on the org in a long time. Thank you, sir, and keep up the great work. ;)

I have the same problem! What the resoluction for this?

Thanks,
Vitor Reis

PitchouneN64ngc 05-27-2006 11:48 PM

Quote:

Originally Posted by PitchouneN64ngc
Hi there :)

I see a little bug with the max filesize for upload files.

For example: the 'bmp' extension. The filesize in the Attachments Manager for this extension is '20000'. And in the little vbmenu (when you want to add a link), it says '2097152'.

In fact, it takes only the highest filesize of all extensions, not for each extension (I've set the mp3 extension to '2000000').

So, I think the 'fetch_uploadinfo' function must to have a patch for this :)

And your hack is great, I'll help you with translate your hack in French. For that, I've restarted a free translation. I must to translate each setting and all will be ok for release it ;)

I want to turn back on my post. There is no bug in this part. There is '2097152' (about filesize) if you are an admin, which I don't check before. And for users who aren't admin, it takes the original values of the Attachments Manager.

Sorry for this wrong report.

But for the future translation, all is ok :)

obmob 05-28-2006 12:47 AM

OK, still testing and translating :p

I have a couple of questions, first, is it possible to open original image inside a html page... i want to show my logo and manybe add some instructions on how to download or set a wallpaper.

Now, second issue is related to templates, i've been searching to merge the title bar to that category bar -please see 123.jpg- So in other words, to show "Links and Downloads Manager: Categories" and to take one table out of the code. :( haven't been able to find the top table template, as you can see i foud the categories one :)

Now, in 124.jpg, Simiar problem, haven't been able to find the description header template. I want to use that info to show "Entries: Category, Description" in the same TD? And, where do i turn off that header? :confused:

Well, thank you for reading this :D
And thank you if some help is available ;)

AndrewD 05-28-2006 05:12 AM

Quote:

Originally Posted by PitchouneN64ngc
I want to turn back on my post. There is no bug in this part. There is '2097152' (about filesize) if you are an admin, which I don't check before. And for users who aren't admin, it takes the original values of the Attachments Manager.

Sorry for this wrong report.

But for the future translation, all is ok :)

Thanks - indeed LDM behaves differently for admins and other users. This was a request from another user some time ago. So the rules are as follows:

a) For 'normal' users, max upload size is taken from the VB admin attachments table and depends on the filetype
b) For admins, the limit is taken from the php.ini variables that define the maximum upload that the site will allow ('post_max_size' and 'upload_max_filesize')

AndrewD 05-28-2006 05:14 AM

Quote:

Originally Posted by vitoreis
I have the same problem! What the resoluction for this?

Thanks,
Vitor Reis

Vitor, send me a PM with more details of your problem, and I'll try to help.

AndrewD 05-28-2006 05:29 AM

Quote:

Originally Posted by obmob
OK, still testing and translating :p

I have a couple of questions, first, is it possible to open original image inside a html page... i want to show my logo and manybe add some instructions on how to download or set a wallpaper.

Can you explain a bit more - I'm not sure I understand the question


Quote:

Originally Posted by obmob
Now, second issue is related to templates, i've been searching to merge the title bar to that category bar -please see 123.jpg- So in other words, to show "Links and Downloads Manager: Categories" and to take one table out of the code. :( haven't been able to find the top table template, as you can see i foud the categories one :)

Now, in 124.jpg, Simiar problem, haven't been able to find the description header template. I want to use that info to show "Entries: Category, Description" in the same TD? And, where do i turn off that header? :confused:

Well, thank you for reading this :D
And thank you if some help is available ;)

All these tables and their title bars are created in the links_main template. The contents of the category and entry tables is build up in a series of other templates.

Easiest way to find out which template is doing what is to turn on display of template names in the main VB admincp - General Settings.

arcadian_girl 05-28-2006 10:24 AM

hi-i was wondering if there's any way to edit subcategories? for example, ive got the category "audio/gigs" and then i've got subcategories for each gig "brussels", "london", ect, and under those are the actual links..but i noticed that once i make the "brussels" subcategory, there's no way to go back afterwards and edit it...or is there and i'm just not seeing it?

thanks

arcadian_girl 05-28-2006 10:48 AM

nevermind, figured it out :)

oglsmm 05-28-2006 12:52 PM

Quote:

Originally Posted by AndrewD
Sorry, I've confused you.

These inherited permissions are set in the individual category edits, not in the admincp.

In LDM itself (not the LDM admin), go to the category of interest, then Edit Category, then you'll find that there are three tabs across the top. The third, at the far right of the screen is 'User Group Permissions'

That did it, thanks a million!


All times are GMT. The time now is 01:53 PM.

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.03757 seconds
  • Memory Usage 1,880KB
  • 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_php_printable
  • (29)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