PDA

View Full Version : Major Additions - Links and Downloads Manager


Pages : 1 [2] 3 4 5 6 7 8 9 10 11 12 13

AndrewD
08-23-2006, 04:01 AM
I use the cURL functions and everything has been working great, however I recently added someone else to help with the LDM and he's done something to make it so my thumbs no longer display.. they're all just red x's.

He was remote linking to images on other sites but now not only do those images not work, none of them do. I've tried changing the thumbnail settings (size and create_thumbs_oninsert) and resetting the thumbs but nothing seems to be working.

*edit*
resubmitting them 1 by 1 seems to fix them, is there another way to do this without having to edit each link with a thumbnail image?


I've had steady problems getting the image handling to work well - probably more red cross errors than any other. Each time I think I've got it sorted... Sorry

Really, to get a handle on this, I need to take a look at your site - can you PM me with details + an admin uname and password. Thanks.

rmxs
08-23-2006, 07:42 AM
Greate Installed byt i have one question..


Its possible to mass add files from remote server??i check the scan future byt scan only the local server :(

I have to server one file server and onother one my site server ...

AndrewD
08-23-2006, 07:50 AM
Greate Installed byt i have one question..


Its possible to mass add files from remote server??i check the scan future byt scan only the local server :(

I have to server one file server and onother one my site server ...

Not currently - this would create a potential security problem.

If the two sites are actually running on the same server, you can achieve this effect with the LDM admin setting local_file_root and local_file_root_prefix, so that all LDM files are located based on the server file system rather than the web site root directory.

However, you should understand what you are doing before making this switch.

rmxs
08-23-2006, 07:56 AM
Not currently - this would create a potential security problem.

If the two sites are actually running on the same server, you can achieve this effect with the LDM admin setting local_file_root and local_file_root_prefix, so that all LDM files are located based on the server file system rather than the web site root directory.

However, you should understand what you are doing before making this switch.

Its not on the same server its on two different..

so no way to make mass add from onother server??

if i wont to make an inport from cvs file what is the code to do this...

expamle i have make now one file from my server with all links on it exaple

www.sitename.com/folder/file.ext::www.sitename.com/folder/file2.ext::www.sitename.com/folder/file3.ext

its possible to import that way?

AndrewD
08-23-2006, 07:59 AM
Its not on the same server its on two different..

so no way to make mass add from onother server??

if i wont to make an inport from cvs file what is the code to do this...

expamle i have make now one file from my server with all links on it exaple

www.sitename.com/folder/file.ext::www.sitename.com/folder/file2.ext::www.sitename.com/folder/file3.ext

its possible to import that way?

Take a look here:

http://www.eirma.org/wikis/index.php/LDM_Import_Export

rmxs
08-23-2006, 08:09 AM
:) thanks

Byt i must make a file with 2800 links inside :)

AndrewD
08-23-2006, 08:15 AM
:) thanks

Byt i must make a file with 2800 links inside :)

Sounds like a Sunday afternoon Perl project

jluerken
08-23-2006, 01:16 PM
Hi,

I tried to bring some infos of the system to my CMPS 2.2.0 portal page but it did not work.
I checked the documentation and followed it to bring the latest links to a module but all I get is this:

Fatal error: Cannot redeclare empty_category() (previously declared in /forum/includes/functions_gallery.php:2069) in /forum/includes/local_links_include.php on line 2935

I am using LDM 2.2.5

AndrewD
08-23-2006, 01:21 PM
Hi,

I tried to bring some infos of the system to my CMPS 2.2.0 portal page but it did not work.
I checked the documentation and followed it to bring the latest links to a module but all I get is this:

Fatal error: Cannot redeclare empty_category() (previously declared in /forum/includes/functions_gallery.php:2069) in /forum/includes/local_links_include.php on line 2935

I am using LDM 2.2.5

Yes, sorry about that - I introduced a new function into LDM that has the same name as a function used in VB Gallery.

I'll post new code this evening to fix the problem - there are instructions earlier in this thread but not complete.

Eagle Creek
08-24-2006, 12:51 AM
WOW! INSTALLED!

Would ie be possible to have the user-side interface in DUTCH and the ADMIN-SIDE interface in ENGLISH.

With all respect for the person who translated it but I really have difficulties reading that and I would like to see a ENGLISH settings page.

(and to be honest atm I cant find where to go to a category to uploading files and stuff?)
(:DI dont understand anything of it.. Even when Im reading the manual atm)

AndrewD
08-24-2006, 04:18 AM
WOW! INSTALLED!

Would ie be possible to have the user-side interface in DUTCH and the ADMIN-SIDE interface in ENGLISH.

With all respect for the person who translated it but I really have difficulties reading that and I would like to see a ENGLISH settings page.

(and to be honest atm I cant find where to go to a category to uploading files and stuff?)
(:DI dont understand anything of it.. Even when Im reading the manual atm)

Glad you like the overwhelming complexity...

Most of the phrases for the admin material have names that contain *admin* or *perms*. Here is a quick 'cut and paste product xml beween the English and Dutch which does most of the work. Otherwise, you can manually go through the phrase files in the development phrases directory

Eagle Creek
08-24-2006, 09:23 AM
Glad you like the overwhelming complexity...

Most of the phrases for the admin material have names that contain *admin* or *perms*. Here is a quick 'cut and paste product xml beween the English and Dutch which does most of the work. Otherwise, you can manually go through the phrase files in the development phrases directory
Ok, so I have to do it manual.
Little bit more work to do but I will.

Thank you Andrew!

Jaxel
08-24-2006, 10:48 AM
Okay Andrew, I got another interesting request for you...

Lets say I do a directory scan to add a batch of files. Simple right? However, these files are .AVI files and it is a major pain to edit each and every one to add the thumbnails for them...

Considering one file, when it is added to the database, it has the following info:
$Name: wld.060812.mbac.Matrix.vs.LeoGeo
$Desc: trawled during scan of /matchvids/wld.060812
$URL: /matchvids/wld.060812/wld.060812.mbac.Matrix.vs.LeoGeo.avi

Would it be possible to slightly change all this?
So that when I add a file do the database using the batch method it adds the following:
$Name: wld.060812.mbac.Matrix.vs.LeoGeo
$Desc: /matchvids/wld.060812 (just the $dir)
$URL: /matchvids/wld.060812/wld.060812.mbac.Matrix.vs.LeoGeo.avi
$IMG: /matchvids/wld.060812/wld.060812.mbac.Matrix.vs.LeoGeo.gif (thats $dir/$name.gif)

http://www.crookedjester.com/local_links.php

jluerken
08-24-2006, 01:10 PM
Yes, sorry about that - I introduced a new function into LDM that has the same name as a function used in VB Gallery.

I'll post new code this evening to fix the problem - there are instructions earlier in this thread but not complete.

No problem at all. It would be nice if you could update the package to 2.2.6 with a fix, otherwise we get lost here in all these postings :D

xadoa
08-24-2006, 05:13 PM
Dear AndrewD,

First of all, thank you very much for your updates. the function of the username/password link worked perfectly. thanks again.

another question is that, is there a way we can insert a images into the new create thread using: autocreate-threads plugin? but the image is filled out on the addlink screen. after submit the addlink form it will insert the filled out images into the thread that is created. so when people read the new link is added, the know what movie is added. .. sorry i was mainly do with the movie so i need this part.

(The reason I said attaching the image into the new thread instead of the LDM because the images can be managed under VB db sql or filesystem so LDM doesn't have to bother managing it again)

once again, Thanks AndrewD
XD

AndrewD
08-24-2006, 07:04 PM
Okay Andrew, I got another interesting request for you...

Lets say I do a directory scan to add a batch of files. Simple right? However, these files are .AVI files and it is a major pain to edit each and every one to add the thumbnails for them...

Considering one file, when it is added to the database, it has the following info:
$Name: wld.060812.mbac.Matrix.vs.LeoGeo
$Desc: trawled during scan of /matchvids/wld.060812
$URL: /matchvids/wld.060812/wld.060812.mbac.Matrix.vs.LeoGeo.avi

Would it be possible to slightly change all this?
So that when I add a file do the database using the batch method it adds the following:
$Name: wld.060812.mbac.Matrix.vs.LeoGeo
$Desc: /matchvids/wld.060812 (just the $dir)
$URL: /matchvids/wld.060812/wld.060812.mbac.Matrix.vs.LeoGeo.avi
$IMG: /matchvids/wld.060812/wld.060812.mbac.Matrix.vs.LeoGeo.gif (thats $dir/$name.gif)

http://www.crookedjester.com/local_links.php

Try this plugin. (VB/admin/plugins/download and upload/import)

I'm going away for several weeks, so usual service will be interrupted from Sunday.

AndrewD
08-24-2006, 07:05 PM
Dear AndrewD,

First of all, thank you very much for your updates. the function of the username/password link worked perfectly. thanks again.

another question is that, is there a way we can insert a images into the new create thread using: autocreate-threads plugin? but the image is filled out on the addlink screen. after submit the addlink form it will insert the filled out images into the thread that is created. so when people read the new link is added, the know what movie is added. .. sorry i was mainly do with the movie so i need this part.

(The reason I said attaching the image into the new thread instead of the LDM because the images can be managed under VB db sql or filesystem so LDM doesn't have to bother managing it again)

once again, Thanks AndrewD
XD

I will modify the autocreate plugins and include the change in the next upload, which I hope will be there by the weekend.

dlutt
08-24-2006, 07:47 PM
Andrew, attached you'll find an updated translation for the new LDM 2.2.5.

I've corrected some typos, changed the translation for some phrases etc.

Phrases are translated to "German - formal Sie". If I've time the next days I will perhaps add "German - Du".

Daniel

Jaxel
08-24-2006, 09:27 PM
Andrew, just so you know, the "Reset Thumbs" feature does not work in 2.2.5.. It gives an error of undefined function clear_thumbnails();

As well I have discovered two more errors with 2.2.5...

1. The file size is listed as -999 kbytes (doesn't really matter though, on first click, it automatically fills in the correct information...
2. The date added is WAY off... it automatically lists the date as 12/31/69 instead of the current date. I noticed there ISNT a mass-edit feature to edit the dates for files... so this is a problem.

These two problems only happen using the SCAN based mass addition system.

The sample-avi-image.xml file you gave me works great...

glowinggal
08-24-2006, 09:28 PM
thanks for posting the upgrade so quickly; WORKED flawlessly!

glowinggal
08-24-2006, 09:35 PM
Question/Request:

Reason:
When downloading remotely stored items, the php-script gets terminated after (normally) 30 seconds, and thus giving an incomplete download.

Or is there a way around the PHP script termination cutting the remote download?



This must be the issue on our LDM too - many users will complain somtimes a link is broken and once it's gone through this "30 second timeout" seems that the link is actually broken.

Jaxel
08-24-2006, 11:53 PM
Okay... let me summarize the problems I am having with 2.2.5...

1. clear_thumbnails() does not exist
2. SCAN mass upload feature is broken... all links get default values of:
- file size listed as -999bytes
- date listed as 12/31/69 05:00
- parent forum = 1 (instead of open access none)

AndrewD
08-25-2006, 03:45 AM
Okay... let me summarize the problems I am having with 2.2.5...

1. clear_thumbnails() does not exist
2. SCAN mass upload feature is broken... all links get default values of:
- file size listed as -999bytes
- date listed as 12/31/69 05:00
- parent forum = 1 (instead of open access none)

Not sure about (1) - I can't reproduce the problem with 2.2.5 gold - I recall that problem but thought it was fixed a while ago.

(2) is definitedly a bug in 2.2.5 and is fixed in 2.2.6 - which I keep hoping will be uploaded before this weekend.

AndrewD
08-25-2006, 03:51 AM
This must be the issue on our LDM too - many users will complain somtimes a link is broken and once it's gone through this "30 second timeout" seems that the link is actually broken.

Just to be clear -

If an entry in LDM

a) points to a downloadable file (i.e. has a filetype that appears in the VBulletin Attachments table), and
b) is set up as a full url (i.e. http::/site/dir/file.typ) - NB it doesn't matter if site is actually your own site or somebody else's

then you are likely to have problems with running out of CPU time if the file is bigger than a few MBytes. This is because the work of retrieving the file and then retransmitting it to the user is expensive. There isn't much one can do about that.

LDM is much more efficient if the file is actually stored on your own server and the entry is set up using the local file name rather than as a full url.

Note also that these problems do not occur if the entry points to a filetype that is not in the VBulletin attachment table, because in this situation, LDM itself is not actually managing the transfer - the user's browser and the original site are doing all the work. However, this gain in efficiency is achieved at a loss of secrecy about the location of the file.

AndrewD
08-25-2006, 03:52 AM
Andrew, attached you'll find an updated translation for the new LDM 2.2.5.

I've corrected some typos, changed the translation for some phrases etc.

Phrases are translated to "German - formal Sie". If I've time the next days I will perhaps add "German - Du".

Daniel

Thanks - will update everything soon.

Majed37
08-25-2006, 10:15 AM
The real link to display the entry is always of the form local_links.php?linkid=NN&catid=MM and the real link to access that link id always local_links.php?action=jump&id=NN&catid=MM (sorry about the inconsistency), with local_links.php in your forum directory.

At the time the linkbit is being built inside LDM (i.e. when the display pages are being constructed, NN and MM are held in two variables called $linkid and $catid. So you could modify the linkbit template to display this informatioin if you wish.

thank you Andrew

your hints helped me. But I wana explain why I want to give my users the ability to know the full url. because they need to upload thier images into my server, then can put the link as source of the image :

thats mean : I like to give the user a link after he/she upload an image. so he can i.e. put that link in html tag as <img src="image_link" />
in this case the image will apear directly without need to jump or click.

Jaxel
08-25-2006, 12:45 PM
Hey Andrew, I noticed you fulfilled my request and set the hits grab at the beginning of a download instead of at the end, thus letting the "hits" system work for shared servers that how a low wait_timeout... However, I noticed that the system still holds a sustained connection in which I get an error report after 20 seconds (my wait_timeout setting). If the hits grab is now at the beginning of the file, is there still a need to sustain the connection which is killed off by wait_timeout?

AndrewD
08-25-2006, 12:48 PM
Hey Andrew, I noticed you fulfilled my request and set the hits grab at the beginning of a download instead of at the end, thus letting the "hits" system work for shared servers that how a low wait_timeout... However, I noticed that the system still holds a sustained connection in which I get an error report after 20 seconds (my wait_timeout setting). If the hits grab is now at the beginning of the file, is there still a need to sustain the connection which is killed off by wait_timeout?

I imagine that the connection is being held by VBulletin itself. I don't explicitly let this go. I will take a look at the options.

Jaxel
08-25-2006, 04:02 PM
Hey Andrew... any possibility for an extra profile field for links? Just an extra field where I can store an additional piece of information, but not part of the description? So I can call this extra piece of information in a template somewhere?

AndrewD
08-25-2006, 04:02 PM
thank you Andrew

your hints helped me. But I wana explain why I want to give my users the ability to know the full url. because they need to upload thier images into my server, then can put the link as source of the image :

thats mean : I like to give the user a link after he/she upload an image. so he can i.e. put that link in html tag as <img src="image_link" />
in this case the image will apear directly without need to jump or click.

If I understand you correctly, the url you want is http://yoursite/youforum/local_resize.php?linkid=NN.

obmob
08-26-2006, 01:03 AM
:p can i ask for an additional image field?

I mean, i can enter a url for my thumbnail, and i would like to have also one field for a mid sized image.

This way, i could use smaller thumbs and in case i want to show a file description... well, in that page i'd display the mid sized image.

Pleeeease, please!!! :D

zellvnn
08-26-2006, 01:11 AM
I will wait for the next version.........Thanks for ur hardwork.......

AndrewD
08-26-2006, 06:26 AM
Some good news and some perhaps not so good news for you...

The first beta release of version 2.2.6 is now available. I believe it fixes the reported bugs and problems with 2.2.5 and it also includes a number of relatively obscure changes to deal with special situations that some of you have requested. These changes are described in the first post to this thread, and also in the online wiki.

I have tested this quite thoroughly, but it is certainly possible that there are new bugs...

The not-so-good news is that I am going on vacation tomorrow and will not be back until mid September, when - for a while - I will have only limited time to deal with this hack.

So, if anyone finds anything serious with 2.2.6 beta 1, it would be a good idea to tell me today, ideally before bed time :)

AndrewD
08-26-2006, 06:36 AM
:p can i ask for an additional image field?

I mean, i can enter a url for my thumbnail, and i would like to have also one field for a mid sized image.

This way, i could use smaller thumbs and in case i want to show a file description... well, in that page i'd display the mid sized image.

Pleeeease, please!!! :D


With 2.2.6, you can use urls like this to display the images any size you want (up to the size of the original picture):

http://yoursite/yourforum/local_resize.php?linkid=56&size=250

Inside the linkbit template, the linkid is available in the variable $linkid, so you can easily edit the template to display the image at a different size. Just put in an <img> tag pointing to this url.

AndrewD
08-26-2006, 06:38 AM
Hey Andrew... any possibility for an extra profile field for links? Just an extra field where I can store an additional piece of information, but not part of the description? So I can call this extra piece of information in a template somewhere?

I'll put this on the wish list. I'd like to do this cleanly, so that it doesn't become a problem later on when people start wanting to modify things...

Erwin
08-26-2006, 06:38 AM
I was using vBA 2.1.0 and Links 2.2.1 with no problems.

I upgraded vBA to 2.2.0 and then Links to 2.2.5 - I get this error on vBa index:
=======================================
Unexpected critical failure
Critical Error: Links and Downloads Manager v.2.2.5 requires VBulletin version 3.5
=======================================

Any ideas?

Code Monkey
08-26-2006, 06:39 AM
Enjoy your vacation.

AndrewD
08-26-2006, 06:40 AM
Hey Andrew, I noticed you fulfilled my request and set the hits grab at the beginning of a download instead of at the end, thus letting the "hits" system work for shared servers that how a low wait_timeout... However, I noticed that the system still holds a sustained connection in which I get an error report after 20 seconds (my wait_timeout setting). If the hits grab is now at the beginning of the file, is there still a need to sustain the connection which is killed off by wait_timeout?

Should be corrected in 2.2.6

Erwin
08-26-2006, 06:44 AM
Should I try upgrading to 2.2.6 to see if that helps?

AndrewD
08-26-2006, 06:47 AM
I was using vBA 2.1.0 and Links 2.2.1 with no problems.

I upgraded vBA to 2.2.0 and then Links to 2.2.5 - I get this error on vBa index:
=======================================
Unexpected critical failure
Critical Error: Links and Downloads Manager v.2.2.5 requires VBulletin version 3.5
=======================================

Any ideas?

Check that you've uploaded the latest includes/local_links_init.php. This has the following code to select the VB version:

if (isset($GLOBALS['vbulletin']->db)) {
$vb_version = substr($vbulletin->options['templateversion'], 0, 3);
if ($vb_version == "3.5") {
define('VALID_VB_VERSION', "3.5");
} elseif ($vb_version == "3.6") {
define('VALID_VB_VERSION', "3.6");
}
}


If that's installed correctly, then your site must be behaving differently than mine, and we need to get to the bottom of this.

Erwin
08-26-2006, 06:48 AM
Yup, I upgraded to 2.2.6 and it works. Thanks. All files were upgraded to the latest version at all times - I checked manually. Anyway, it's working now.

AndrewD
08-26-2006, 06:49 AM
Okay Andrew, I got another interesting request for you...

Lets say I do a directory scan to add a batch of files. Simple right? However, these files are .AVI files and it is a major pain to edit each and every one to add the thumbnails for them...

Considering one file, when it is added to the database, it has the following info:
$Name: wld.060812.mbac.Matrix.vs.LeoGeo
$Desc: trawled during scan of /matchvids/wld.060812
$URL: /matchvids/wld.060812/wld.060812.mbac.Matrix.vs.LeoGeo.avi

Would it be possible to slightly change all this?
So that when I add a file do the database using the batch method it adds the following:
$Name: wld.060812.mbac.Matrix.vs.LeoGeo
$Desc: /matchvids/wld.060812 (just the $dir)
$URL: /matchvids/wld.060812/wld.060812.mbac.Matrix.vs.LeoGeo.avi
$IMG: /matchvids/wld.060812/wld.060812.mbac.Matrix.vs.LeoGeo.gif (thats $dir/$name.gif)

http://www.crookedjester.com/local_links.php

There's a new 'extra' sample_avi in the 2.2.6 release which should do the trick

Slave
08-26-2006, 07:09 AM
Downloading the beta now AndrewD .. I'll let you know if i find anything.

Thanks and I hope you have a good holiday :)

Jaxel
08-26-2006, 05:00 PM
Thanks Andrew... heres an idea for when you get back from your vacation...

Ratings and Comments should be seperated. I want to be able to let users rate links, but I dont want to let them be able to comment...

xadoa
08-26-2006, 06:18 PM
Hi AndrewD,

i've upgraded to the 2.2.6B1, but it seem like the attachment into the new thread is not working yet. just want to know if you modified the autocreate-2way-plugin.xml to have the image attached when create the new thread.

thanks
XD

AndrewD
08-26-2006, 06:33 PM
Hi AndrewD,

i've upgraded to the 2.2.6B1, but it seem like the attachment into the new thread is not working yet. just want to know if you modified the autocreate-2way-plugin.xml to have the image attached when create the new thread.

thanks
XD

As far as I can tell, it works fine on my test site for new submissions. It will not retroactively create the image for old submissions. Also, it will not work if you have set local_file_root.

xadoa
08-26-2006, 06:51 PM
Hi AndrewD,

i have set all value as default, there is not local_root file set . the most value i set were those template values.

i only have 1 products and 2 plugin installed, the ldm and limitaccess by hits, and autocreate-2way plugin. and the follow is my 2 attached files.. not sure i've done it the right way.

the link is the file link, and the images that will be attached into the new thread is the image url below ? .. and can we have another prompt so we can browse the image from out local desktop and upload it to attach to the new thread once the link is submited ?

P.S: sorry the images link should be ended with "jpg" not avi ..

thank you
XD

xadoa
08-26-2006, 06:58 PM
sorry, one more thing, the Force to accept, when I set to "Yes" .. the screen does appear, but when people click on "Accept" the screen stay the same on that "Accept" Decline" screen .. only when u click "Decline" then the screen go to the Decline Screen .. "saying.. u've decline to accept .. etc.." ..

I love this feature as well, since don't want people to use download manager to download files in a batch. with this feature i hope that will solve the problem ..

thank you
XD

AndrewD
08-26-2006, 07:00 PM
Hi AndrewD,

i have set all value as default, there is not local_root file set . the most value i set were those template values.

i only have 1 products and 2 plugin installed, the ldm and limitaccess by hits, and autocreate-2way plugin. and the follow is my 2 attached files.. not sure i've done it the right way.

the link is the file link, and the images that will be attached into the new thread is the image url below ? .. and can we have another prompt so we can browse the image from out local desktop and upload it to attach to the new thread once the link is submited ?

P.S: sorry the images link should be ended with "jpg" not avi ..

thank you
XD

Sorry, we're talking at cross purposes. You are trying to get the avi->lpg auto imager to work, I think.

You need to install the extra "sample-avi-image". This will spot when you create a new entry in which:

- the url itself has an avi file type (xxx.avi), and
- the image field is blank

If both conditions apply, it will set the associated image to be (xxx.jpg).

If you've also got the auto thread create plugin, they should cascade smoothly.

Sorry, but I'm out of time now, and am leaving on vacation.

xadoa
08-26-2006, 07:20 PM
Sorry, we're talking at cross purposes. You are trying to get the avi->lpg auto imager to work, I think.

You need to install the extra "sample-avi-image". This will spot when you create a new entry in which:

- the url itself has an avi file type (xxx.avi), and
- the image field is blank

If both conditions apply, it will set the associated image to be (xxx.jpg).

If you've also got the auto thread create plugin, they should cascade smoothly.

Sorry, but I'm out of time now, and am leaving on vacation.

Hi AndrewD,

I will wait till u back from your vacation, thank you for your time.

it's not the sample-avi that work on what we were talking about. it's eaither avi,zip or any type of files. when you submit a new link and create a new thread, an image should be attached to that new thread. the images that you can browse directly from your computer which you haven't got a prompt for it yet on your "Add Entry" form. or a prompt to put in an url of an image that you want to attach (like upload from url)

by using your function of creating new thread once the link is add, normally there is no images attached to that thread (not the link on the ldm) you can also attach a separate image into that new thread by using the same function (in autocreate-2wayplugin.xmL ?) like create a new thread with an attachment.

Hope you got what i meant :)

thanks
XD
PS: what i meant of a newthread should appeared like below image.. one with the image attached.

xd

jluerken
08-26-2006, 11:19 PM
Hi Andrew,

can you fix a small template issue coming up when the description is very long?

In the modern view first and second column should get align="top"

See here
http://www.clanforums.com/gallery/files/3-links226.jpg

lovevn
08-27-2006, 03:12 AM
Hi

I have one question:

I am using LDM in my forum as the following structure

www.mysite.com/forum/local_links.php

Now I want to move my forum to

www.mysite.com/portal/forum

(www.mysite.com/portal/forum/local_links.php)

Is this possible ? Do i have to change settining or do I have to reinstall LDM?

Thanks

Ipuck
08-27-2006, 04:06 PM
Hello Andrew:

I just upgrade to 2.2.6 and every time some one is using the LDM I get a e-mail with the following error:

Database error in vBulletin 3.6.0:

Invalid SQL:

UPDATE vb_session
SET lastactivity = 1156697276, location = '', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0
WHERE sessionhash = '';

The links work but I get the message.

Thanks!

TheHeartSmasher
08-27-2006, 06:31 PM
When I try to save LDM settings I get prompted to download the page instead.

Also when people click on links to download they get a white page and it takes forever to download or they get an error message.

Zia
08-28-2006, 03:32 AM
is there any chane to have LDM ,intigrated with vbux ?

obmob
08-28-2006, 09:46 PM
With 2.2.6, you can use urls like this to display the images any size you want (up to the size of the original picture):

http://yoursite/yourforum/local_resize.php?linkid=56&size=250

Inside the linkbit template, the linkid is available in the variable $linkid, so you can easily edit the template to display the image at a different size. Just put in an <img> tag pointing to this url.OH, sweet, thaks Andrew, i'll try this weekend... well, i wish you have a great vacation... maybe you don't realize, but you have had the best support i've seen in any vB mod, thank you. :bunny:

is there any chane to have LDM ,intigrated with vbux ?Hmm.. i think this was in to do list. :)

EasyTarget
08-29-2006, 01:37 PM
I just upgraded my forums to 3.6 and upgraded the ldm to 2.6. beta1 and I reported this error to vbulletin.comOne of the products which I have installed is called the Links and Downloads manager. The product works fine, however when I am finished downloading a file and click on the forum link on the navbit I get the following error:

Warning: mysql_real_escape_string(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 648

Warning: mysql_real_escape_string(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 648

Warning: mysql_real_escape_string(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 648

Warning: mysql_real_escape_string(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 648

Warning: mysql_real_escape_string(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 648

Warning: mysql_real_escape_string(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 648

Warning: mysql_query(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 354

Warning: mysql_error(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 828

Warning: mysql_errno(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 846

Database error in vBulletin 3.6.0:

Invalid SQL:

UPDATE session
SET lastactivity = 1156835672, location = '', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0, useragent = ''
WHERE sessionhash = '';

MySQL Error :
Error Number :
Date : Tuesday, August 29th 2006 @ 12:14:33 AM
Script : http://www.troc.us/forum/downloads.php?action=jump&id=9&catid=4
Referrer : http://www.troc.us/forum/downloads.php?catid=4&linkid=9
IP Address :
Username : EasyTarget
Classname : vB_Database

HTTP/1.1 200 OK Date: Tue, 29 Aug 2006 07:21:52 GMT Server: Apache/1.3.33 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.2 mod_ssl/2.8.22 OpenSSL/0.9.7e Cache-Control: private Content-Encoding: gzip Pragma: private X-Powered-By: PHP/5.1.2 Content-Length: 8870 Keep-Alive: timeout=5, max=89 Connection: Keep-Alive Content-Type: text/html; charset=ISO-8859-1

I use avant browser and confirmed that I receive this error in Internet Explorer as well (Avant is based on IE), however when using Firefox the error does not occur.I reported it to them because when I searched the thread I found another error based on class_core.php and you asked the person to report it to them as it had something to do with unset array elements in the vB code. The support people said this was more or less correct but that The error is from third party code not correctly using vBulletin classes and functions.

I rolled back to 2.2.5 and it works fine.

maroceve
08-29-2006, 02:53 PM
guys i have this problem :

Fatal error: Cannot redeclare empty_category() (previously declared in /home/maroceve/public_html/forums/includes/functions_gallery.php:2069) in /home/maroceve/public_html/forums/includes/local_links_include.php on line 2935

any ideas ?

Hades-1
08-31-2006, 02:18 AM
did i get the wrong idea of what this does?

i thought it would show users attachments, but so far it does not....

Hades-1
08-31-2006, 04:42 PM
ok so i uploaded an mp3, i clcik on play and the pop up windows opens but nof ile plays, then if i go to download the mp3 it tries to download a php file?

whats wrong with this thing?

also whats the point of linking forums to categories? i posted an mp3 in the audio cat and then went to the forum it was linked to and nothing was there, should there be?

EasyTarget
08-31-2006, 04:54 PM
he's on a business trip right now

Hades-1
08-31-2006, 04:58 PM
ok, well i figure other users might be able to help also.

after setting the correct mime type people can now download the mp3 just fine, but it still does not play

dkny
09-01-2006, 04:54 AM
First of great hack, beautiful job!

I do have 1 problem, when I select force_redirect to 0 (hidden Link) and I try to download (save) am MP3 (didn't try other formats) I get another browser window and garbage on the screen. When I select force_redirect = 1 then I get the mp3 to download with no problem but I dont want the link to be visiable. Would you know what could be the problem? I'm running vb3.6 with LD 2.2.6beta1

obmob
09-02-2006, 02:21 AM
ok, well i figure other users might be able to help also.

after setting the correct mime type people can now download the mp3 just fine, but it still does not playWEll... haven't used the jukebox, but it's strange that you can't download the file, you should try reading the tutorial first, and configure the program as you want it to perform.

Hades-1
09-05-2006, 02:58 PM
when somone goes to add a file it shows alist of forums for them to choose

somethinga bout permissions? an entry doesnt show up in the forum so i guess its just for permissions.

However i dont want this box displayed, then user should nto be able to pick.

Can anyone tell me how to do that?

Hades-1
09-05-2006, 03:04 PM
nevermind i got it :) and i got mp3s to work inthe jukebox

IMHO this is way to advanced it should be made with a simpler interface, however if you have the patients to figure it out its really a nice system.

Hades-1
09-05-2006, 03:08 PM
ok 1 last question i think

i let people upload images, thats the main purpose, however it asays upload file then upload image, i belive image is suppose to be a screenshot of what your uploading but if its an image why do you need a screenshot?

So i want to remove that upload form because its not needed, how can i do this?

sNator
09-07-2006, 06:07 PM
Version 2.1.0 with 3.5.2

I can't deactive the product.

I have tried to disable under "Installed products" and also unchecked "active" under "Plugin System" but I can still use it.

I would like to solve this before I upgrade to the latest.
What could be wrong?

hydrostatic
09-08-2006, 12:33 AM
How did you get the jukebox to work? I've messed around with it for long enough and I cannot get the jukebox to start playing music files >_< It always downloads instead. And when I click on the mp3 icon, it doesn't work and says Sorry - link is not currently available

If someone can help me, that would be greatly appreciated. Thanks.

Neal-UK
09-08-2006, 04:36 PM
When I uninstall it says I must run local_links_kill to remove completely. How do I do this as I can't find the file in any zip....?

Hades-1
09-08-2006, 05:35 PM
How did you get the jukebox to work? I've messed around with it for long enough and I cannot get the jukebox to start playing music files >_< It always downloads instead. And when I click on the mp3 icon, it doesn't work and says Sorry - link is not currently available

If someone can help me, that would be greatly appreciated. Thanks.

go to attachment manager and click on mp3 and for mime type put this Content-type: audio/mp3

thats what i did

MRs2
09-09-2006, 04:41 PM
I have a question: would it be possible to install this two times on one board?
One installation for links, and a second installation for photo-album?

I think when I change the name in the xml, use different directories and change the table it'll work, but I'm not sure if two versions will collide.

At the moment I use this 3.6 add-on on my 3.5.4 board.

I am trying to get a good integrated photo album, but what it there has too many problems, and LDM has proven to work fine for links, so why not as photogallery.

Using one version has the disadvantages that gallery and links categories will be together, plus I would have to use one lay out etc for both.

GrendelKhan{TSU
09-10-2006, 04:15 PM
doth my eye deceive me!?!?!

TAGCLOUD??!! sweeet!! when we gunna see some of that in action?? :D

ps. awesome stuff as usual andrew...been away but now I'm back...so I'd be happy to test stuff ;) :p

Neal-UK
09-10-2006, 05:07 PM
When I uninstall it says I must run local_links_kill to remove completely. How do I do this as I can't find the file in any zip....?

BUMP!

Rouzbeh1
09-10-2006, 05:43 PM
hi,

installed! wunderful hack. thanks

Suggestion: are you planning to add a mirroring system to it? for files which could be downloaded from 2 or 3 different servers

GrendelKhan{TSU
09-11-2006, 03:42 AM
BUMP!

I think that's in the
Release >> Extras
folder of the zip.

Slave
09-11-2006, 12:01 PM
doth my eye deceive me!?!?!

TAGCLOUD??!! Sweet!! when we gunna see some of that in action?? :D

ps. awesome stuff as usual andrew...been away but now I'm back...so I'd be happy to test stuff ;) :p

I'm rather hoping the tag cloud stuff will be in the next release once AndrewD gets back from his travels :)

obmob
09-13-2006, 03:18 PM
oó and what is tag cloud?

well... i haven't upgraded to the latest and new vB is out >.<

WritersBeat
09-13-2006, 07:28 PM
Seems interesting, thanks

WritersBeat
09-13-2006, 08:03 PM
Wow this is amazing, should definitley attempt an easier interface though. :)

|oR|Greg
09-14-2006, 02:06 PM
Andrew, Strange problem...

I use vBA CMPS, and the option to include modules on other vB pages. When I include my standard page now on the local_links.php, it disables my admin ability to change settings in individual categories.

I'm sure you'll need admin on my site to see the issue first hand, just let me know when is good for you?

Thanks.

Rouzbeh1
09-15-2006, 05:40 PM
EDIT:
Question: is it possible to disply images instead of a text link in vBadvanced CMPS hot downloads box?
normally when there is a hot download, a text link will be shown. i want to show the text as title and the thumbnail for that download (linked to entry)....

thanks in advance

dholt
09-15-2006, 10:51 PM
Noob Question but do I have to create folders for all uploads and if so do I enter the fulll path to it or just the URL. were does it store the files.

How should I set it up

root/forums/images/ldm_icons
root/LDM_Uploads
root/forums/images/file_icons_dir
root/forums/images/thumbs_dir

chkmd to 777

Also I am not sure of this sitting/ local_file_root_prefix

I'm not sure what to put in this box even after reading.

Thanks and sorry for being such a noob with this.

zooki
09-16-2006, 04:30 PM
I updated my site and for some reason the CMPS module doesnt update the latest downloads

AndrewD
09-17-2006, 08:34 AM
BUMP!

It's is in the 'extras' subdirectory kill-LDM in the release zip file.

AndrewD
09-17-2006, 08:44 AM
I have a question: would it be possible to install this two times on one board?
One installation for links, and a second installation for photo-album?

I think when I change the name in the xml, use different directories and change the table it'll work, but I'm not sure if two versions will collide.

At the moment I use this 3.6 add-on on my 3.5.4 board.

I am trying to get a good integrated photo album, but what it there has too many problems, and LDM has proven to work fine for links, so why not as photogallery.

Using one version has the disadvantages that gallery and links categories will be together, plus I would have to use one lay out etc for both.

It is possible to install this more than once, but it needs some care and I have not tried the process myself. Basically, you will need to make a copy of each of the php files and give the copy a new name. You will then edit the copy of the file local_links_init.php to set up a new database table prefix and to point all the main control pages at the copied php scripts. Finally, you will need to edit all the copies of the main php scripts and check all the 'include', 'include_once', 'require' and 'require_once' statements.

There is an easier way to achieve what you want...

Most of the layout settings (linkbit, category style, etc) can be set on a per-category basis as well as globally. Basically, these settings are 'inherited' from parent to child, so each category either uses its own settings or looks to its parent.

So set up a new branches in your LDM, e.g. with a top level called 'photos'. On the add/edit category page for 'photos' choose the second tab (Control Settings) and define the layout that you want for this category and its children. E.g. tell LDM to use the photo linkbit.

AndrewD
09-17-2006, 08:56 AM
How did you get the jukebox to work? I've messed around with it for long enough and I cannot get the jukebox to start playing music files >_< It always downloads instead. And when I click on the mp3 icon, it doesn't work and says Sorry - link is not currently available

If someone can help me, that would be greatly appreciated. Thanks.

Did you manage to get this working?

The first step is that each filetype that you want to work in the jukebox must have a 'Content-type' entry in the VB admin attachments table - I think someone else has posted that message.

Then take a look at http://www.eirma.org/wikis/index.php/Using_LDM#The_Jukebox

AndrewD
09-17-2006, 09:01 AM
Hi

I have one question:

I am using LDM in my forum as the following structure

www.mysite.com/forum/local_links.php

Now I want to move my forum to

www.mysite.com/portal/forum

(www.mysite.com/portal/forum/local_links.php)

Is this possible ? Do i have to change settining or do I have to reinstall LDM?

Thanks

You should not need to make any changes to LDM.

If you have any LDM entries that point to files held on the local server (your own or uploads), check that these are still working correctly - there should be no problems.

AndrewD
09-17-2006, 09:06 AM
Version 2.1.0 with 3.5.2

I can't deactive the product.

I have tried to disable under "Installed products" and also unchecked "active" under "Plugin System" but I can still use it.

I would like to solve this before I upgrade to the latest.
What could be wrong?

Nothing's wrong with what you are doing. I had never deal with this possibility, so LDM does not check the VB 'enabled/disabled' setting. Probably it should - I will take a look.

There is no need to disable before upgrading. However, if you want to stop your users from seeing LDM while you do the upgrade, switch off VB (VB admincp).

AndrewD
09-17-2006, 09:11 AM
ok 1 last question i think

i let people upload images, thats the main purpose, however it asays upload file then upload image, i belive image is suppose to be a screenshot of what your uploading but if its an image why do you need a screenshot?

So i want to remove that upload form because its not needed, how can i do this?


Most of the items on the link add/edit form can be disabled by setting/unsetting the various permissions on the LDM/Admin/Permissions page.

I understand your previous points about LDM looking complex at first -- this is a consequence of providing the flexibility that people have asked for. I agree that we now need a 'first time' admin script to set up the basics. It's just a matter of finding the time to provide it.

AndrewD
09-17-2006, 09:15 AM
First of great hack, beautiful job!

I do have 1 problem, when I select force_redirect to 0 (hidden Link) and I try to download (save) am MP3 (didn't try other formats) I get another browser window and garbage on the screen. When I select force_redirect = 1 then I get the mp3 to download with no problem but I dont want the link to be visiable. Would you know what could be the problem? I'm running vb3.6 with LD 2.2.6beta1

I imagine you are having problems with mouse left clicks? I also assume that you are using IE?

Can you check that mouse right click/save as work ok with force_redirect=0.

The problem that you are reporting seems to happen when another piece of software has 'taken control' of your browser's downloads. The garbage you are seeing on the screen is almost certainly the contents of the mp3 file. A usual culprit is QuickTime.

There is a minor change available to LDM to force downloads to work properly, which I can describe if necessary.

AndrewD
09-17-2006, 09:25 AM
guys i have this problem :


Fatal error: Cannot redeclare empty_category() (previously declared in /home/maroceve/public_html/forums/includes/functions_gallery.php:2069) in /home/maroceve/public_html/forums/includes/local_links_include.php on line 2935

any ideas ?

Yes, sorry about this. Recent versions of LDM used the same function names as the gallery hack in some of its code. The problem only appear within the vbadvanced interface. It is fixed in the 2.2.6 code.

AndrewD
09-17-2006, 09:28 AM
is there any chane to have LDM ,intigrated with vbux ?

The vbux author discussed this with me in June, but I haven't heard anything more from him. It isn't a change that I can easily make by myself.

AndrewD
09-17-2006, 09:50 AM
I just upgraded my forums to 3.6 and upgraded the ldm to 2.6. beta1 and I reported this error to vbulletin.comI reported it to them because when I searched the thread I found another error based on class_core.php and you asked the person to report it to them as it had something to do with unset array elements in the vB code. The support people said this was more or less correct but that

I rolled back to 2.2.5 and it works fine.

I think I know where the problem may be, but I will need to see your site to confirm this. If I'm right, it's a case of fixing one problem (people having difficulties with their database connection timing out) but introducing another. Can you reinstall 2.2.6 and send me a PM with details of your site and how to trigger the problem?

Slave
09-17-2006, 06:20 PM
Welcome back AndrewD! .. I hope you had a good trip :)

MRs2
09-17-2006, 07:05 PM
It is possible to install this more than once, but it needs some care and I have not tried the process myself. Basically, you will need to make a copy of each of the php files and give the copy a new name. You will then edit the copy of the file local_links_init.php to set up a new database table prefix and to point all the main control pages at the copied php scripts. Finally, you will need to edit all the copies of the main php scripts and check all the 'include', 'include_once', 'require' and 'require_once' statements.

There is an easier way to achieve what you want...

Most of the layout settings (linkbit, category style, etc) can be set on a per-category basis as well as globally. Basically, these settings are 'inherited' from parent to child, so each category either uses its own settings or looks to its parent.

So set up a new branches in your LDM, e.g. with a top level called 'photos'. On the add/edit category page for 'photos' choose the second tab (Control Settings) and define the layout that you want for this category and its children. E.g. tell LDM to use the photo linkbit.


I hope you had good holidays (if you had holidays). So many questions to answer...

Thanks, I never even saw that possibility :o.
I already had a copy with every script, table and reference renamed, but was waiting for you to return. Glad I did.

I just made two main categories Links and Photoalbum, and changed the navbar template to refer to them from different buttons.

Have to get some photo's in to see if it works, but I don't doubt that at all. I already thought this is a great add-on, but I now even think better of it :)

.

|oR|Greg
09-17-2006, 10:15 PM
Andrew, I searched the code from the 3.5 version. I'm looking for the piece for the autocreate-threads plugin that adds the thumbnail image during the autocreate-threads process?

I have also upgraded to the latest beta, and I'm still having an issue with getting my settings working if I include the vBA CMPS page. It used to work, not with the latest though.

AndrewD
09-18-2006, 04:14 AM
Andrew, I searched the code from the 3.5 version. I'm looking for the piece for the autocreate-threads plugin that adds the thumbnail image during the autocreate-threads process?

Including the thumbnail is built into the autocreate-threads plugin. If the entry has an associated image, the plugin will include this in the new thread. The actual layout of the new thread is defined in the phrase <ldm_thread_create_body>. If you look at that phrase, you'll see that it takes five parameters - these refer to the link name, link description, a url jump that takes the user to the entry, the name of your LDM and the image link.

I have also upgraded to the latest beta, and I'm still having an issue with getting my settings working if I include the vBA CMPS page. It used to work, not with the latest though.

I'm going to need a bit more information on this - I briefly noticed your post - can you send me a PM with fuller informaton, so that IO can work out what is happening/not happening.

zooki
09-18-2006, 12:21 PM
No New Downloads.. for some reason everything new that i add is dated: 01-01-1970

I have recently upgraded vb to 3.6 and i upgraded the LDM 2.2.5 .. i have uninstalled and installed LDM 2.25 twice now.. including removing all files and replacing with new ones and overwriting the product with new installation xml.

So how do i fix this???

xadoa
09-18-2006, 04:19 PM
The vbux author discussed this with me in June, but I haven't heard anything more from him. It isn't a change that I can easily make by myself.

Hi AndrewD,

I hope you had a good trip. and welcome back to the busy ground :)

I don't think joining with vbux is a good idea for LDM, since as my opion vbux is a mess for now, it taking a big part into the VB database, creating the forum slow down, they still need a lot of works done .. For a small forum, i think vbux is doing fine, but for a busy forum, i think it's not a good idea to put vbux into it I've had installed vbux 4 times, and uninstalled it as many times.. if so, LDM will stand as one spot if LDM integrated into vbux .. i think it's much better for LDM to stand alone for now.. the LDM design is much stronger as it is now (such as DBs <-- mainly and codes).. and I don't think it will be if it integrated with vbux.

obmob
09-18-2006, 04:48 PM
:) Welcome Andrew! Hope you had a nice time.

AndrewD
09-18-2006, 05:42 PM
:) Welcome Andrew! Hope you had a nice time.

Thanks! We had a great time, including the pleasure of your country (we were in the Pyrenees for the first week).

zooki
09-18-2006, 06:00 PM
Andrew, I realise you are busy, please help .

The problem is stated few posts above, have been trying to get it to work. My new downloads which are scanned in from local directory are dated 01-01-1970 If i edit the filename and change the date, then it does show up as the latest download!

But, how do i get it to automatically give the file latest date?

Im on latest Vb3.6 and also ldm 2.25
thanks..... :)

AndrewD
09-18-2006, 06:22 PM
Andrew, I realise you are busy, please help .

The problem is stated few posts above, have been trying to get it to work. My new downloads which are scanned in from local directory are dated 01-01-1970 If i edit the filename and change the date, then it does show up as the latest download!

But, how do i get it to automatically give the file latest date?

Im on latest Vb3.6 and also ldm 2.25
thanks..... :)

I thought you had probably used the admin scan function. The date setting is broken in that function in 2.2.5. It's fixed in 2.2.6.

zooki
09-18-2006, 08:53 PM
I thought you had probably used the admin scan function. The date setting is broken in that function in 2.2.5. It's fixed in 2.2.6.

Ok thanks, I really appreciate the mod you have made :cool:

WritersBeat
09-18-2006, 10:27 PM
AndrewD I have a problem when submitting links.

When submitted it says "this page is not meant to be accessed directly" or something by the text of that. Can you help me fix this?

AndrewD
09-19-2006, 03:47 AM
AndrewD I have a problem when submitting links.

When submitted it says "this page is not meant to be accessed directly" or something by the text of that. Can you help me fix this?

I can certainly take a look - send me a PM with details of your board + a username with VB admin privs and I will see what I can find.

chorton
09-19-2006, 04:12 PM
I am trying to get the genres to show in vbadvanced. Everything is working fine on our test board. In the wikis you state
"By default, the ldm_hot and ldm_new modules do not show the name of the category in which the entries appear. If you want to display this, edit the modules and change $show_catname to 1 "

I can not find that code in either file. Is there a certain spot i need to add this too?

AndrewD
09-19-2006, 06:38 PM
I am trying to get the genres to show in vbadvanced. Everything is working fine on our test board. In the wikis you state
"By default, the ldm_hot and ldm_new modules do not show the name of the category in which the entries appear. If you want to display this, edit the modules and change $show_catname to 1 "

I can not find that code in either file. Is there a certain spot i need to add this too?

Sorry about that - this facility was introduced in version 2.2.6, and I suppose you are running 2.2.5.

As far as I can tell, it's straightforward to patch the change back into 2.2.5. I attach the two vba module files from 2.2.6 (the assignment to show_catname is on line 10 of the two files), and give below the modified version of the links_vbalinks template.



<tr>
<td class="alt1">
<div style="float:right"><span class="smallfont">$linkhits</span></div>
<span class="smallfont">$linktypebit<if condition="$show_catname"> $linkcatname </if><if condition="$linkstatus<=0">$linkname<else />$linkurllink</if></span>
</td>
</tr>

WritersBeat
09-19-2006, 06:50 PM
I can certainly take a look - send me a PM with details of your board + a username with VB admin privs and I will see what I can find.

Is it absolutely nessecary for admin access? Sorry a little protective. If so yes, but before I do let me give you more details.

It happens after I click "submit" and the ajax form shows up with please wait or something (the text) then the page local_link_actions.php loads with the text "this page is not supposed to be accessed directly".

And that's what happens.

AndrewD
09-19-2006, 07:13 PM
Is it absolutely nessecary for admin access? Sorry a little protective. If so yes, but before I do let me give you more details.

It happens after I click "submit" and the ajax form shows up with please wait or something (the text) then the page local_link_actions.php loads with the text "this page is not supposed to be accessed directly".

And that's what happens.

I'm sorry, it's quite hard to debug problems without site access. The text you quote <this page is not supposed to be accessed directly> is not (as far as I can see) used in any part of LDM, and I can't see it the the main VB code either.

chorton
09-20-2006, 12:12 AM
Sorry about that - this facility was introduced in version 2.2.6, and I suppose you are running 2.2.5.

As far as I can tell, it's straightforward to patch the change back into 2.2.5. I attach the two vba module files from 2.2.6 (the assignment to show_catname is on line 10 of the two files), and give below the modified version of the links_vbalinks template.




No problem. I did all that and it still did not fix it.
www.versionist.net is the test site
I will be replacing the core engine here if i get it all worked out
www.versionist.com

Ipuck
09-20-2006, 01:28 AM
Hello Andrew welcome back!!

I upgrade to 2.2.6 and since then every time some one is using the LDM I get a e-mail with the following error:


Database error in vBulletin 3.6.1:

Invalid SQL:

UPDATE vb_session
SET lastactivity = 1158718056, location = '', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0
WHERE sessionhash = '';

MySQL Error :
Error Number :
Date : Tuesday, September 19th 2006 @ 10:07:41 PM
Script : http://mysite.com/forums/local_links.php?action=jump&id=80&catid=4
Referrer :
IP Address : xxxxxxx
Username : xxxxxx
Classname : vB_Database


The links work OK but I get the email message every time.

Thanks!

AndrewD
09-20-2006, 04:07 AM
Hello Andrew welcome back!!

I upgrade to 2.2.6 and since then every time some one is using the LDM I get a e-mail with the following error:




The links work OK but I get the email message every time.

Thanks!

Thanks for letting me know, and sorry for this. Three people have now reported this problem. I think I know what is causing it (an attempt to fix another obscure problem), and will post a fix as soon as possible.

AndrewD
09-20-2006, 04:12 AM
No problem. I did all that and it still did not fix it.
www.versionist.net is the test site
I will be replacing the core engine here if i get it all worked out
www.versionist.com

I'll take a look and let you know what I find.

Also, I notice that your test site is trying to wrap the full LDM front page into your vbA home page, which is causing problems with the LDM menus. Other people have gone down that road, and I think have sorted out how to make things work properly. Maybe they can post some advice?

chorton
09-20-2006, 12:48 PM
I'll take a look and let you know what I find.

Also, I notice that your test site is trying to wrap the full LDM front page into your vbA home page, which is causing problems with the LDM menus. Other people have gone down that road, and I think have sorted out how to make things work properly. Maybe they can post some advice?

Not sure what you mean by wrapping the ldm front page.
Its a fresh install of 3.6 with vbadvanced. I then just turned on your 4 modules on the home page.

Thanks for your help.

WritersBeat
09-21-2006, 03:08 AM
AndrewD - I'll try to find it myself if I don't I'll give you an admin thing.

Also - when is the SEO going to be better? i tried to enable it but it was buggy as hell and didn't work correctly to the settings.

AndrewD
09-21-2006, 04:48 AM
AndrewD - I'll try to find it myself if I don't I'll give you an admin thing.

Also - when is the SEO going to be better? i tried to enable it but it was buggy as hell and didn't work correctly to the settings.

Could you explain what you mean 'buggy as hell' ? This feature has been there for quite some time and there are no other reports of problems. You have set up apache to work correctly with this, I assume?

xadoa
09-21-2006, 06:44 PM
Hi AndrewD,

Can I ask you about this problem again?

https://vborg.vbsupport.ru/showpost.php?p=1061189&postcount=300

and also, the "Confirmation Screen", when I click on Accept it stay on the same screen, and when I click on "Decline" then it works which go to other pages.

thank AndrewD

XD

daFish
09-22-2006, 10:22 AM
First, great product. :)

But I have a question and maybe overlooked something. How is it possible to upload an image when you create a new link to an website, e.g. the image is the logo of the linked site?

|oR|Greg
09-22-2006, 10:53 AM
First, great product. :)

But I have a question and maybe overlooked something. How is it possible to upload an image when you create a new link to an website, e.g. the image is the logo of the linked site?

Use the Image or Image Upload section(s).

http://www.amacny.com/vb/local_links.php?catid=6&linkid=148

obmob
09-22-2006, 03:20 PM
Thanks! We had a great time, including the pleasure of your country (we were in the Pyrenees for the first week).Good, though, i'm not spaniard, i'm in Mexico! :)

Well, finally i'll get to work on 2.2.6 hopefully sooner i'll attach new spanish phrases.

Cant wait to look for that image resizing feature you added :laugh:

AndrewD
09-22-2006, 05:11 PM
Good, though, i'm not spaniard, i'm in Mexico! :)


ouch, sorry...

AndrewD
09-24-2006, 09:26 AM
Noob Question but do I have to create folders for all uploads and if so do I enter the fulll path to it or just the URL. were does it store the files.

How should I set it up

root/forums/images/ldm_icons
root/LDM_Uploads
root/forums/images/file_icons_dir
root/forums/images/thumbs_dir

chkmd to 777

Also I am not sure of this sitting/ local_file_root_prefix

I'm not sure what to put in this box even after reading.

Thanks and sorry for being such a noob with this.

I realise that I have not given you an answer. Sorry.

You'll find each of these parameters explained in the on-line wiki - see first post - but you may have to dig around a bit.

You suggest this set up..

root/forums/images/ldm_icons
root/LDM_Uploads
root/forums/images/thumbs_dir

This is fine, except:

- you do not need a directory root/forums/images/file_icons_dir. Assuming you have placed the contents of the /icons directory in /root/forums/images/ldm_icons, you should point the LDM setting file_icons_dir at images/ldm_icons (i.e. omit forums/ from the setting).

- I would be inclined to put the thumbs_dir outside your forums directory.

Uploads are automatically stored in subfolders underneath (in your example) your LDM_uploads directory. You need to create the LDM_Uploads and chmod it to 777; LDM will do the rest.

local_file_root_prefix and local_file_root

These are optional settings, used to increase security. They modify where LDM looks to find entries stored on the web server. It thinks an entry is on the server if the entry you provide in the Add Entry form has no url (i.e. you specify it as /dir/file.typ rather than as http:// site/dir/file.typ)

If local_file_root is off (by default), then LDM assumes that the entry can be found in the web directory, i.e. in the example given, in subdirectory dir immediately underneath the web root.

If local_file_root is on, then LDM assumes that the entry is found in directory /dir in the local file system of the web site. This is usually not the same place as the web site's root.

local_file_root_prefix is used to 'include' a standard prefix in front of all local file names, regardless of the setting of local_file_root. By default, it is blank. If you set it to /dir1/dir2, then (for the example I gave), LDM would look for the entry in directory /dir1/dir2/dir.

By adjusting these two parameters, you can place files on your local server out of reach of prying eyes and you can also limit the parts of the file system that LDM can get at. This is useful for security reasons.

AndrewD
09-24-2006, 09:34 AM
I've only seen one serious problem reported with the beta 2.2.6. Three people have said that email sql error messages are being sent *after* a download is complete, when users then click on the navbar.

I haven't been able to reproduce this problem myself, but I think I know where the problem is.

Please can anyone who has experienced this bug with 2.2.6 test the attached version of the file local_links.php (Just upload it into your main forums directory) and let me know if the problem disappears.

Once this is confirmed, we can make 2.2.6 the official release, and I can start on something else.

zooki
09-24-2006, 10:43 AM
Hi there Andrew, What do you say about someone who wants to let people download 600mb files? Does this differ from say a 5mb or 70mb file with regards to stress on server????

I have had many 70mb movie files for download. Now i need to share larger ones. Just worried it might have some ill effect. (apart from bandwidth, which is not problem)

The file will be on the server.. a local file.

thank you.

AndrewD
09-24-2006, 12:21 PM
Hi there Andrew, What do you say about someone who wants to let people download 600mb files? Does this differ from say a 5mb or 70mb file with regards to stress on server????

I have had many 70mb movie files for download. Now i need to share larger ones. Just worried it might have some ill effect. (apart from bandwidth, which is not problem)

The file will be on the server.. a local file.

thank you.

There seem to me to be two things you should look out for, cpu usage on your server and the possibility of disconnections during transfers.

I just tried an experiment with a 700mb file, held on my PC and 'downloaded' via LDM back onto this PC. It used about 6 seconds cpu time. So you should be ok from that angle.

Concerning dropped connections, the problem is that someone who uses a regular browser interface may get only part of the file. If they are using a download manager, then that should recover. LDM works with download managers, and is able to deliver parts of the download on request (to be technical, it can cope with single range HTTP 206 partial transfer requests).

zooki
09-24-2006, 02:09 PM
There seem to me to be two things you should look out for, cpu usage on your server and the possibility of disconnections during transfers.

I just tried an experiment with a 700mb file, held on my PC and 'downloaded' via LDM back onto this PC. It used about 6 seconds cpu time. So you should be ok from that angle.

Concerning dropped connections, the problem is that someone who uses a regular browser interface may get only part of the file. If they are using a download manager, then that should recover. LDM works with download managers, and is able to deliver parts of the download on request (to be technical, it can cope with single range HTTP 206 partial transfer requests).

THank you, hmm perhaps with the circa 3000 visitors a day its not such a good idea. :(

Ipuck
09-24-2006, 07:32 PM
I've only seen one serious problem reported with the beta 2.2.6. Three people have said that email messages are being sent *after* a download is complete when users click on the navbar.

I haven't been able to reproduce this problem myself, but I think I know where the problem is.

Please can anyone who has experienced this bug with 2.2.6 test the attached version of the file local_links.php (Just upload it into your main forums directory) and let me know if the problem disappears.

Once this is confirmed, we can make 2.2.6 the official release, and I can start on something else.


Thanks! The new file is working OK.

Yorixz
09-25-2006, 04:27 PM
Two things that I couldn't find yet, which I'm really wondering about are; is this hack 'bandwidth-stealing-proof' when you enable guest transfers, and does it allow you to automatically create topics for added downloads (rather than having a comments-like thing.

Hopefully someone can clear these up for me, if those things are also on the features list then I'm definitely a user soon ;)

AndrewD
09-25-2006, 08:03 PM
Two things that I couldn't find yet, which I'm really wondering about are; is this hack 'bandwidth-stealing-proof' when you enable guest transfers

Not sure what you mean. If you enable downloads by guests, then anyone can download. However, there is the possibility to set bandwidth/download limits per usergroup (e.g. 5Mb, 25 files per day). For guest users, consumption is are determined per ip address. For logged in users, it is determined per username.

does it allow you to automatically create topics for added downloads (rather than having a comments-like thing.

There's a plugin provided as an 'extra' that automatically creates a thread when a new entry is added / accepted by the moderator.

ravi
09-25-2006, 11:48 PM
AndrewD you are a MAESTRO PHP CODER
I have seen complex VB modifications before but this is Huh!!
HaTTs Off To You and thank you very much.

I was never inspired by mods to VB and I prefered to use it as it is. But now I love to use your system. You know what this is my first post here in 2+ years :D

Zowners
09-26-2006, 01:56 AM
Is this like the links mod for SMF RC3? If so do you have one for 3.6.1? Thank you. :=)

ravi
09-26-2006, 01:59 AM
I have installed this addon now, I have a small issue with the way links to ldm entry in auto created thread are opening new windows. I am using the autocreate_2way_plugin. Link created to the thread in ldm entry is opening in the parent window itself, I love this link opening in parent window.
Now my request is can we autocreate threads with links to ldm entries that open in same window and not new windows. I think as the links and download system is an in site, in domain thing and there is no need of opening new windows as users can browse through the forum using the links in the navbar itself and also browsers back and forward buttons.
Andrew I really appreciate your help, you have done so much with this addon.

AndrewD
09-26-2006, 05:01 AM
I have installed this addon now, I have a small issue with the way links to ldm entry in auto created thread are opening new windows. I am using the autocreate_2way_plugin. Link created to the thread in ldm entry is opening in the parent window itself, I love this link opening in parent window.
Now my request is can we autocreate threads with links to ldm entries that open in same window and not new windows. I think as the links and download system is an in site, in domain thing and there is no need of opening new windows as users can browse through the forum using the links in the navbar itself and also browsers back and forward buttons.
Andrew I really appreciate your help, you have done so much with this addon.

Thanks for your kind words.

I think the easiest way to have the thread-link open in the same window is as follows:

a) Create a "custom bbcode" (vb/admin) called LURL, with the following as the replacement:
<a href="{option}">{param}</a>

b) Edit (vb/admin) the phrase ldm_thread_create_body and change the sequence
To check it out, visit [ url={3}]{1}[/url ] to
To check it out, visit {1}

ie change the url tag to a lurl tag

One point to note. Standard vbulletin handling of the url tag includes checks to stop hackers putting rogue jumps with javascript, etc, onto your board. A custom bbcode does not include these checks. (There is a way to cope with this, but I haven't time to do this at the moment.)

Yorixz
09-26-2006, 05:15 AM
Not sure what you mean. If you enable downloads by guests, then anyone can download. However, there is the possibility to set bandwidth/download limits per usergroup (e.g. 5Mb, 25 files per day). For guest users, consumption is are determined per ip address. For logged in users, it is determined per username.

I'm sorry, I should have said it somewhat clearer, I was aiming at hotlinking to files, but it seems that this wont work.


There's a plugin provided as an 'extra' that automatically creates a thread when a new entry is added / accepted by the moderator.
Alright, thanks a lot, for both your answer and this superduper mod ;)

ravi
09-26-2006, 08:20 PM
Thank you Andrew for the custom bbcode it works like a charm, regarding the implications I will take a chance till I find some solution or till you comeup with a solution.

I don't know whether I have done right or wrong, I have tried to edit the phrase ldm_thread_create_body, but I could not edit it other than adding a translation it didn't worked even after doing that, changing sequence didn't found that option so I deleted the translation I created from the phrase table ia phpmyadmin. I have edited the original phrase phrase ldm_thread_create_body in database from
A new entry has been added to {4} Description: {2} To check it out, visit {1} ({3})

A new entry has been added to {4} Description: {2} To check it out, visit {1}

Now everything is working as intended and links in auto created threads are opening in same window. I hope no problems arise because of my phrase translation deletion from the database :confused:

|oR|Greg
09-27-2006, 05:52 PM
Something I came up with... In the FORUMDISPLAY template whether or not a certain forum should have links to creating new LDM entries... just like the New Thread button, it's limited to the forums you specify. I have attached my buttons, they're ugly, but they're all I could do in short time.

Place the code right after:

<if condition="$show['newthreadlink']">

You add:


<if condition="in_array($forumid, array(25,0,0))">
<a href="local_links.php?action=addlink&catid=8" rel="nofollow"><img src="$stylevar[imgdir_button]/new_video.gif" alt="Add New Video Entry" border="0" /></a>
&nbsp;<a href="local_links.php?action=addlink&catid=7" rel="nofollow"><img src="$stylevar[imgdir_button]/new_audio.gif" alt="Add New Audio Entry" border="0" /></a>&nbsp;</if>


Where 25 is the number of the forum you want the link(s) to appear in.

LIVE EXAMPLE (http://www.amacny.com/vb/forumdisplay.php?f=25)

There is probably an easier way of doing this without the array piece, but it works... so.

bashy
09-28-2006, 05:47 PM
Hi, I am getting this error when i try to add the image folders

The following setting(s) are invalid
file_icons_dir : http://www.bashys-place.com/forums/images/downloadmanager/
Cannot find http://www.bashys-place.com/forums/images/downloadmanager/

Any advice please, i get the same for the thumbs as well, this is the url ive put
http://www.bashys-place.com/forums/images/downloadmanager its also set to 777

I am also seeing this in the Key Settings, Low value for MySQL wait_timeout, whats this mean and is there a way to sort it please?

AndrewD
09-28-2006, 07:09 PM
Hi, I am getting this error when i try to add the image folders

The following setting(s) are invalid
file_icons_dir : http://www.bashys-place.com/forums/images/downloadmanager/
Cannot find http://www.bashys-place.com/forums/images/downloadmanager/

Any advice please, i get the same for the thumbs as well, this is the url ive put
http://www.bashys-place.com/forums/images/downloadmanager its also set to 777

You don't need the full url. Just give these relative to your forums dir, i.e. /images/downloadmanager

I am also seeing this in the Key Settings, Low value for MySQL wait_timeout, whats this mean and is there a way to sort it please?

wait_timeout is the length of time that MySQL on your web server waits before dropping a connection to the database. If your web server has a very short value for this parameter, then you may experience error messages with large file downloads, because these take longer than wait_timeout seconds to complete. I've tried to overcome this problem in version 2.2.6, but the fix creates new problem. This message is just a warning - you can overcome it by changing the parameters for MySQL, but most people don't have access to these parameters.

bashy
09-28-2006, 07:20 PM
Thanks Andrew although, I had already tried /images/downloadmanager still didnt work, this is what it says

The following setting(s) are invalid
thumbs_dir : /images/downloadmanagerthumbs
Directory /images/downloadmanagerthumbs (/home/bashys/domains/bashys-place.com/public_html/images/downloadmanagerthumbs) doesn't exist and I can't create it

This issue is now witht he thumbs directory...

vfxpro
09-29-2006, 12:41 AM
I'm running vB 3.6.0 with LDM 2.2.5 and I've noticed a strange bug. My download allowances are set in MB per 30 days. But they've all set to -30 (mb I suppose they don't have a value associated with them)

Everytime I try to reset the file size limit to anything above 90M it resets to -30.

What gives? :)

I just noticed that when I set the days to 30 it triggers the glitch, when I set the "allowance period" to 1 day I can crank up the allowed file size.

25 Days seems to be the limit. Anymore days in the Allowance period and the bytes allowance gets set to a negative version of the allowance period digits. strange...

AndrewD
09-29-2006, 04:57 AM
Thanks Andrew although, I had already tried /images/downloadmanager still didnt work, this is what it says

The following setting(s) are invalid
thumbs_dir : /images/downloadmanagerthumbs
Directory /images/downloadmanagerthumbs (/home/bashys/domains/bashys-place.com/public_html/images/downloadmanagerthumbs) doesn't exist and I can't create it

This issue is now witht he thumbs directory...

Sorry if this seems confusing. I really should change those dialogues to drop-down menus pre-populated with the available directories. Also the info text is not the most helpful, I realise.

The thumbs directory is specified relative to the web root but the icons are relative to the forums directory. If your images/downloadmanagerthumbs is sitting in /forums, then you need to set /forums/images/downloadmanagerthumbs.

AndrewD
09-29-2006, 05:00 AM
I'm running vB 3.6.0 with LDM 2.2.5 and I've noticed a strange bug. My download allowances are set in MB per 30 days. But they've all set to -30 (mb I suppose they don't have a value associated with them)

Everytime I try to reset the file size limit to anything above 90M it resets to -30.

What gives? :)

I just noticed that when I set the days to 30 it triggers the glitch, when I set the "allowance period" to 1 day I can crank up the allowed file size.

25 Days seems to be the limit. Anymore days in the Allowance period and the bytes allowance gets set to a negative version of the allowance period digits. strange...

I imagine that this is an integer overflow (25x90M is about 2 billion, which on some hosts is the maximum size of number that is stored). Mea culpa - I'll correct this in the next release. In the meantime, pls use combinations of days time allowance which are less than 2 billion.

arcadian_girl
09-29-2006, 11:04 AM
Hi - I was wondering, how do my members actually upload files? I've set the permissons and everything, but when they click "add entry", they're given a forum to fill out the title and description ect, but there's no browse button to fin d the file and actually upload it. or have I done something wrong?

AndrewD
09-29-2006, 11:32 AM
Hi - I was wondering, how do my members actually upload files? I've set the permissons and everything, but when they click "add entry", they're given a forum to fill out the title and description ect, but there's no browse button to fin d the file and actually upload it. or have I done something wrong?

Have you also set the admin upload settings?

Go to LDM/admin/settings. There's a section towards the bottom - Controls on File Uploads. You have to explicitly enable uploads and you have to give a directory where the uploads will be stored.

When this is done, the "Add Link" data entry form for any user that is authorised to upload will include extra fields with the 'Browse' button.

These fields are only visible under these circumstances.

arcadian_girl
09-29-2006, 12:32 PM
got it now, thanks a lot :)

EasyTarget
10-01-2006, 09:29 AM
just noticed the new beta.. I'll give it a shot tomorrow. Thanks for the work Andrew.

interceptor
10-01-2006, 04:23 PM
I see before many others have that problem
When i go on Links and Download manager i get that
you do not have permission to access

AndrewD
10-01-2006, 04:39 PM
I see before many others have that problem
When i go on Links and Download manager i get that
you do not have permission to access

Sorry, but I'll need more information to help you. Am happy to take a look at your site if you send me a PM with an admin username and password

Hades-1
10-01-2006, 11:59 PM
is there anyway i could make it should the number of comments on each download?

next to where it says rate/comment id like to display the number?

Hades-1
10-02-2006, 12:09 AM
also im trying to install autocreate-threads

but the instructions inside the zip arnt very clear and the wiki doesnt provide install instructions for that, could u help me out?

petersweb
10-02-2006, 12:12 AM
Thanks for a wonderful product! I've installed it on my site and have it up and running already.

Now all I've got to do is upload content :)

Many thanks!

jgommel
10-02-2006, 01:45 AM
* Sorry for the duplicate post (I posted the same question on the 3.5 version of this app accidentally *

I recently installed LDM and really love this app, but I'd like to utilize my own icons instead of the stock ones. My site is dark - It utilizes multiple shades of grey.

I'm currently developing a bunch of 16x16 icons for my website, but I'm using .png instead of .gif. I decided to use PNGs because they render shadows much better than GIFs. I can create an icon with a drop shadow and use the same icon on both a white or a dark colored website.

Can someone tell me whether it's possible to utilize a .png icon with LDM? If I only need to edit a template or two (or more) that's fine - I just need to know which ones.

Thanks!

AndrewD
10-02-2006, 04:40 AM
* Sorry for the duplicate post (I posted the same question on the 3.5 version of this app accidentally *

I recently installed LDM and really love this app, but I'd like to utilize my own icons instead of the stock ones. My site is dark - It utilizes multiple shades of grey.

I'm currently developing a bunch of 16x16 icons for my website, but I'm using .png instead of .gif. I decided to use PNGs because they render shadows much better than GIFs. I can create an icon with a drop shadow and use the same icon on both a white or a dark colored website.

Can someone tell me whether it's possible to utilize a .png icon with LDM? If I only need to edit a template or two (or more) that's fine - I just need to know which ones.

Thanks!

Currently, LDM is 'hard coded' to use gifs. However, it's a minor change to the current version, and I'll make this standard from the next release.

Edit includes/local_links_include.php

Find function get_icons()

Six lines later, edit the line


if (preg_match("/(.*?).gif/", $file, $matches)) {


to read


if (preg_match("/(.*?).(gif|jpg|png)/", $file, $matches)) {


Find the line


$linkfavicon = mk_file_name($links_defaults['file_icons_dir'],'myfav.gif');


and change myfav.gif

Find the line


$linkediticon = mk_file_name($links_defaults['file_icons_dir'],'pencil.gif');


and change pencil.gif

That should do it, I think.

AndrewD
10-02-2006, 05:20 AM
is there anyway i could make it should the number of comments on each download?

next to where it says rate/comment id like to display the number?

When at least one person has made a comment, the rate/comment message changes to indicate this - see attached image. Is this what you want?

AndrewD
10-02-2006, 05:34 AM
also im trying to install autocreate-threads

but the instructions inside the zip arnt very clear and the wiki doesnt provide install instructions for that, could u help me out?

Step 1: Installing the plugin

-> VB/admincp/plugins and products
Download/Upload plugins
Import either autocreate-plugin.xml or autocreate-2way-plugin.xml

The first plugin creates new threads with a message with a link to the new LDM entry. The second plugin does the same, but also modifies the LDM entry description to include a link to the thread.

Once installed, the plugin is active.

Step 2: Using the plugin

The plugin runs automatically whenever a new entry is created in LDM *provided* that entry is "associated" with a forum. Entries are either "associated" with a forum by default (if the admin has set the LDM setting default_forumid), implicitly by picking it up from the category's associated forum (Add/Edit category) or explicitly in the Add Entry form, by users who have the LDM permission *can_set_permissions*.

Forum associations are normally used in LDM to set up access permissions, but this association is picked up by the plugin to decide where to post the new thread.

If an entry is created without an associated forum, the plugin does nothing.


Step 3: Modifying the plugin (Advanced Use!!)

If you want the plugin only to fire in certain LDM categories, you can edit it. There are two lines in each plugin with the php code $limitcats = array(); You need to change the array statement to include a list of the category numbers where the plugin will fire. You can find the category numbers by looking for the "catid" that is shown when you hover the mouse over a link to the category.

Normally, you will not need to worry about this - just install the plugin and let it run.

rasun
10-02-2006, 08:27 AM
Thank you for this great add-on,

Are there any informations when 2.2.6 Final will be released?

I only need the Link Manager of it...is it possible to disable all other funktions (Jukebox, Download Manager)? I also don´t want users to upload or download anything to/from my server. They should only be able to post links and some text there...is this possible?
Couldn´t find any AdminCP Options screenshots...how do you administer all this settings....?

Slave
10-02-2006, 09:08 AM
Hi Andrew :)

Just installed the beta .. I don't seem to get to the 2nd and 3rd page of settings when editing a category again .. have you changed the code that I need to have in the header template? (I'm using the vBa wraparound thing, remember :))

Hades-1
10-02-2006, 02:52 PM
When at least one person has made a comment, the rate/comment message changes to indicate this - see attached image. Is this what you want?


opps yes sorry, so i guess im all set.

Hades-1
10-02-2006, 02:54 PM
Step 1: Installing the plugin

-> VB/admincp/plugins and products
Download/Upload plugins
Import either autocreate-plugin.xml or autocreate-2way-plugin.xml

The first plugin creates new threads with a message with a link to the new LDM entry. The second plugin does the same, but also modifies the LDM entry description to include a link to the thread.

Once installed, the plugin is active.



Main problem, when installing the plugin it ask me abouta hook? which hook do i choose? im not familiar with pluging, i usually use products which this is not.

Installing the plugin itself through the admincp is my main problem.

AndrewD
10-02-2006, 03:07 PM
Main problem, when installing the plugin it ask me abouta hook? which hook do i choose? im not familiar with pluging, i usually use products which this is not.

Installing the plugin itself through the admincp is my main problem.

You use the download/upload part of the plugins admincp. There's a box at the bottom of the page (see attached) where you are prompted for the file. Just browse to the xml file and upload it - VB will work out the rest.

AndrewD
10-02-2006, 03:50 PM
Thank you for this great add-on,

Are there any informations when 2.2.6 Final will be released?

I only need the Link Manager of it...is it possible to disable all other funktions (Jukebox, Download Manager)? I also don?t want users to upload or download anything to/from my server. They should only be able to post links and some text there...is this possible?
Couldn?t find any AdminCP Options screenshots...how do you administer all this settings....?

2.2.6 is nearly ready to go. There has been only one main bug with the beta, which only three people have reported - I posted a fix for this a few days ago, which one person has already reported works, so I expect to finalise this release very soon. 2.2.5 is also a stable release, with one bug in part of the admin page which many users never use.

When you first install LDM, uploads are disabled, and only the administrator can provide items for general use. You use the LDM/admin/permissions page to control which usergroups can do things. Basically, you have to turn things like the Jukebox and uploads on, rather than turn them off.

If you need help getting things going, please feel free to ask.

AndrewD
10-02-2006, 03:53 PM
Hi Andrew :)

Just installed the beta .. I don't seem to get to the 2nd and 3rd page of settings when editing a category again .. have you changed the code that I need to have in the header template? (I'm using the vBa wraparound thing, remember :))

Yes, partly to make things easier for you :):), I moved the LDM Javascript into a file.

So you need the following statement in your wraparound:


<script type="text/javascript" src="clientscript/ldm_global.js"></script>

Hades-1
10-02-2006, 04:09 PM
You use the download/upload part of the plugins admincp. There's a box at the bottom of the page (see attached) where you are prompted for the file. Just browse to the xml file and upload it - VB will work out the rest.

ok great, now 2 last things i swear


how can i remove the comment system for LDM, well disable it.
is there away to create threads for uploads already posted?

AndrewD
10-02-2006, 04:12 PM
how can i remove the comment system for LDM, well disable it.


Take away can_rate_link permission from all usergroups in LDM/admin/permissions

is there away to create threads for uploads already posted?


Not easily

Hades-1
10-02-2006, 04:19 PM
ok i lied another last thing, i already ahd the categories laid out, so i went to settings and choose the forum id i wanted over all.

then i went to each cat and tried to pick a specific sub forum for the threads, but im not able to, why?

AndrewD
10-02-2006, 04:43 PM
ok i lied another last thing, i already ahd the categories laid out, so i went to settings and choose the forum id i wanted over all.

then i went to each cat and tried to pick a specific sub forum for the threads, but im not able to, why?

Are you looking in the right place on the category edit form?

Forum association for categories is on the first tab.

Hades-1
10-02-2006, 04:50 PM
Are you looking in the right place on the category edit form?

Forum association for categories is on the first tab.

my turn to post a screenshot :)

AndrewD
10-02-2006, 04:57 PM
my turn to post a screenshot :)

Have you given yourself *can_set_permissions* permission on the LDM/admin/permissions?

Hades-1
10-02-2006, 05:09 PM
Have you given yourself *can_set_permissions* permission on the LDM/admin/permissions?

ok thanks i got it now

you said i cant make threads for existing uploads already easily.........well whats the hard way then?

obmob
10-02-2006, 05:09 PM
Oh, can't wait for final 2.2.6 :D

Well, i can.. and i will :)

Slave
10-02-2006, 05:17 PM
Yes, partly to make things easier for you :):), I moved the LDM Javascript into a file.

So you need the following statement in your wraparound:


<script type="text/javascript" src="clientscript/ldm_global.js"></script>

That's great .. thanks :) :) .. works like a charm :D

AndrewD
10-02-2006, 05:23 PM
ok thanks i got it now

you said i cant make threads for existing uploads already easily.........well whats the hard way then?

You really want to know??

Use something like phpmyadmin, browse to the local_linkslink table, and change all the linkmoderate fields to -2.

Go into LDM, select moderate, and then accept the entries.

Hades-1
10-02-2006, 05:48 PM
You really want to know??

Use something like phpmyadmin, browse to the local_linkslink table, and change all the linkmoderate fields to -2.

Go into LDM, select moderate, and then accept the entries.

thats quite easy actually, thanks.

i was also thinking that this page looks plain

http://mmamedia.net//local_links.php

is there anyway i can put the most recent comments/rating people made next tot he stats?

ericgtr
10-02-2006, 11:47 PM
Step 1: Installing the plugin

-> VB/admincp/plugins and products
Download/Upload plugins
Import either autocreate-plugin.xml or autocreate-2way-plugin.xml

The first plugin creates new threads with a message with a link to the new LDM entry. The second plugin does the same, but also modifies the LDM entry description to include a link to the thread.

Once installed, the plugin is active.

Step 2: Using the plugin

The plugin runs automatically whenever a new entry is created in LDM *provided* that entry is "associated" with a forum. Entries are either "associated" with a forum by default (if the admin has set the LDM setting default_forumid), implicitly by picking it up from the category's associated forum (Add/Edit category) or explicitly in the Add Entry form, by users who have the LDM permission *can_set_permissions*.

Forum associations are normally used in LDM to set up access permissions, but this association is picked up by the plugin to decide where to post the new thread.

If an entry is created without an associated forum, the plugin does nothing.


Step 3: Modifying the plugin (Advanced Use!!)

If you want the plugin only to fire in certain LDM categories, you can edit it. There are two lines in each plugin with the php code $limitcats = array(); You need to change the array statement to include a list of the category numbers where the plugin will fire. You can find the category numbers by looking for the "catid" that is shown when you hover the mouse over a link to the category.

Normally, you will not need to worry about this - just install the plugin and let it run.
Thanks for this detailed explanation. I have tried to get this to work with the two way plugin but can't get it, I've done everything explained above. Does this work on "scanned" directories?

AndrewD
10-03-2006, 04:03 AM
Thanks for this detailed explanation. I have tried to get this to work with the two way plugin but can't get it, I've done everything explained above. Does this work on "scanned" directories?

It won't work when you do LDM/admincp/categories/scan, as that route through the code does not trigger the plugins.

The plugins fires in these two cases:

a) Normal "Add Entry" when moderation is off
b) Moderate "Accept Entry" when moderation is on

They only fire if the entry has been given an associated forum (explicitly or implicitly) which is open for posting.

ericgtr
10-03-2006, 01:01 PM
It won't work when you do LDM/admincp/categories/scan, as that route through the code does not trigger the plugins.

The plugins fires in these two cases:

a) Normal "Add Entry" when moderation is off
b) Moderate "Accept Entry" when moderation is on

They only fire if the entry has been given an associated forum (explicitly or implicitly) which is open for posting.
Okay, that's what I figured. I have around 250 files that I scanned in, is there a query that I can run to associate these to make my life easier? :)

AndrewD
10-03-2006, 03:54 PM
Okay, that's what I figured. I have around 250 files that I scanned in, is there a query that I can run to associate these to make my life easier? :)

Do I understand you right? You want to create 250 threads, each one pointing to one of your entries in LDM?

Funny thing is, I answered this same question two days ago - take a look at post 424 just above.

|oR|Greg
10-03-2006, 04:24 PM
Made a new _greg template, and altered the _main to fit the various template column headings based on $catid. :D I'm quite proud.

For example, here you'll see that the headings are Download/File Information/Date/Downloads http://www.amacny.com/vb/local_links.php?catid=7

Whereas here you'll see the headings are Follow Link/Link Information/Date/Hits http://www.amacny.com/vb/local_links.php?catid=5

Here is a completely custom template with no column headers http://www.amacny.com/vb/local_links.php?catid=4

Any newly added categories would get the defaul column header that just says "Entries", unless included in the _main array.

ericgtr
10-03-2006, 04:27 PM
Do I understand you right? You want to create 250 threads, each one pointing to one of your entries in LDM?

Funny thing is, I answered this same question two days ago - take a look at post 424 just above.


Yes, you understand it right. I have a lot of files that I would like new threads created out of :)

I tried that and had no luck, I tested with 30 tables, set all of the linkmoderate fields to -2, went into moderation and accepted them all and it still will not show up in the associated forum.

BTW, thanks for the excellent support I have seen throughout this thread.

obmob
10-03-2006, 05:13 PM
Hmm... ok, i'm still struggling with XML a lot :(

I'd really need further explanation about columns and its format.

I want to import over 50 items at once, Andrew told me it's better to use XML for this, so i have my xml file only with the new entries, and this is how i do or don't understand them :D

linkid: well, just follow the last entry in my db
linkname: no problem
linkdoi: i don't use it, it's blank
linkdesc: no prob
linkurl: ok
linkfile: blank
linkimg: it's ok
linkimgthumb to zero
linkhits to zero
linkforum: to -999 i dont use it
linkcheck: No idea :(
linksize: this is built after link validation, right? so, can it be blank?
linkstatus: to 1? what does it mean?
linkstatusimg: also to 1?
linkdate: :( what format is this? i want to put this one after another, if i place the same date and hour, i usually sort them by number or series... so, how do you read this?
linkusername: ok
linkuserid: ok
linkmoderate: i have all to zero
linkreviewfreq: to zero
numrate: zero
totalrate: zero

Hope you can explain this to me, thanks!

ericgtr
10-03-2006, 07:12 PM
I got this to work, thanks again for the help Andrew. Maybe this would be good for a future request :) It's a bummer to have to manually sit and approve each link one at a time, with many links that takes quite a while.

Der Sauger1
10-03-2006, 08:20 PM
Very nice Hack,but have questions!!

What must i do too addet ED2K links or AJ Links and others Link vormates ??:confused:

Thanks for the work :D :D :D :D :D

AndrewD
10-04-2006, 05:09 AM
I got this to work, thanks again for the help Andrew. Maybe this would be good for a future request :) It's a bummer to have to manually sit and approve each link one at a time, with many links that takes quite a while.

Yes, I agree. The alpha code for 2.2.7 has 'select all' options for moderation.

AndrewD
10-04-2006, 05:14 AM
Very nice Hack,but have questions!!

What must i do too addet ED2K links or AJ Links and others Link vormates ??:confused:

Thanks for the work :D :D :D :D :D


LDM is currently hard coded to accept certain protocols. From what I see, ed2k protocol is straightforward to handle. If you are comfortable playing around with the code, take a look in includes/local_links_include.php Find the block


// Protocols supported
define('MODE_HIDE', 0);
define('MODE_REDIRECT', 1);
define('MODE_OPEN', 2);
$protocol_schemes = array(
"http"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
"https"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
"ftp"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
"irc"=> array("mode"=>MODE_OPEN, "validate"=>0, "musicbox"=>0),
"mms"=> array("mode"=>MODE_HIDE, "validate"=>0, "musicbox"=>2),
);


Maybe you just have to add a new row to the protocol_schemes array, e.g.


"ed2k"=> array("mode"=>MODE_HIDE, "validate"=>0, "musicbox"=>0),


I have not tried this.

AndrewD
10-04-2006, 05:23 AM
COLOR=red]linkcheck[/COLOR]: No idea :(
linksize: this is built after link validation, right? so, can it be blank?
linkstatus: to 1? what does it mean?
linkstatusimg: also to 1?
linkdate: :( what format is this? i want to put this one after another, if i place the same date and hour, i usually sort them by number or series... so, how do you read this?


linkcheck and linkdate are both dates, expressed as seconds since 1.1.1970 (there's a nice calculation for you). Easiest way to get these close to correct is just to add an entry to your database and take a look at the value.

linkstatus and linkstatusimg is one of the following:

LINK_BROKEN = 0;
LINK_OK = 1;
LINK_UPLOAD = 2;

Easiest is to set linkstatus to either 0 or 1. If you use 0, then you can subsequently use LDM/admin/statistics/validate broken to check the entries you've added. Leave linkimgstatus as 0 if you have no thumb image.

linksize is always re-built on access, so leave it at 0

I think that's all

Der Sauger1
10-04-2006, 05:59 AM
LDM is currently hard coded to accept certain protocols. From what I see, ed2k protocol is straightforward to handle. If you are comfortable playing around with the code, take a look in includes/local_links_include.php Find the block


// Protocols supported
define('MODE_HIDE', 0);
define('MODE_REDIRECT', 1);
define('MODE_OPEN', 2);
$protocol_schemes = array(
"http"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
"https"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
"ftp"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
"irc"=> array("mode"=>MODE_OPEN, "validate"=>0, "musicbox"=>0),
"mms"=> array("mode"=>MODE_HIDE, "validate"=>0, "musicbox"=>2),
);


Maybe you just have to add a new row to the protocol_schemes array, e.g.


"ed2k"=> array("mode"=>MODE_HIDE, "validate"=>0, "musicbox"=>0),


I have not tried this.


Okey it add the Link,but not Add this in Client :confused:
That search for the file on my Server???
Thx for to do this

2. i want implantet this Links and Downloads Manager - Patch forumhome to display thumbs of new links/hot linksin cmps 2.2.0 Portal,is ther any modul for to do??

obmob
10-04-2006, 03:16 PM
linkcheck and linkdate are both dates, expressed as seconds since 1.1.1970 (there's a nice calculation for you). Easiest way to get these close to correct is just to add an entry to your database and take a look at the value.

linkstatus and linkstatusimg is one of the following:

LINK_BROKEN = 0;
LINK_OK = 1;
LINK_UPLOAD = 2;

Easiest is to set linkstatus to either 0 or 1. If you use 0, then you can subsequently use LDM/admin/statistics/validate broken to check the entries you've added. Leave linkimgstatus as 0 if you have no thumb image.

linksize is always re-built on access, so leave it at 0

I think that's allwow, i had no idea about that... well, i guess now i can calculate them ^^

http://www.onlineconversion.com/days_between_advanced.htm
Thanks

Another question.

You know? in vb 3.6.1 when i click on LDMs config inside control panel... i'm taken out of it and config is open in the whole page... is this supposed to happen? Oo

Still using 2.2.5

ericgtr
10-04-2006, 03:19 PM
Yes, I agree. The alpha code for 2.2.7 has 'select all' options for moderation.
Excellent, and thanks again for this mod! :)

dpkm
10-04-2006, 05:17 PM
I'm having some issues which I only recently discovered. I suspect they started when I updated to vb3.6 a month and a half or so ago.

Previously added links work fine, as do the counters.

However, whenever I (as a forum admin) or someone else tries to add a link, nothing gets inserted. I get the small bit about "processing" after hitting submit, but nothing happens after that. I've checked my permissions (which I hadn't altered from before, I'm fairly sure), so I don't think that's the problem, though I suppose it could be - even if it is a problem though, I can only imagine an error message would be thrown if I didn't have permissions to do this.

Any thoughts?

AndrewD
10-05-2006, 07:47 AM
Another question.

You know? in vb 3.6.1 when i click on LDMs config inside control panel... i'm taken out of it and config is open in the whole page... is this supposed to happen? Oo



I made an early decision (maybe right, maybe wrong) not to do full integration with the vb admincp, so the 'look and feel' is different.

However, I think the problem of vb cp pages taking over the whole screen is actually a 'cookie' or 'cache' problem. I've had this on and off over the years with all parts of the VB admincp, and the only way to solve it is to clear the cache, close the browser and start again.

AndrewD
10-05-2006, 07:58 AM
I'm having some issues which I only recently discovered. I suspect they started when I updated to vb3.6 a month and a half or so ago.

Previously added links work fine, as do the counters.

However, whenever I (as a forum admin) or someone else tries to add a link, nothing gets inserted. I get the small bit about "processing" after hitting submit, but nothing happens after that. I've checked my permissions (which I hadn't altered from before, I'm fairly sure), so I don't think that's the problem, though I suppose it could be - even if it is a problem though, I can only imagine an error message would be thrown if I didn't have permissions to do this.

Any thoughts?

Am sorry to hear this. Should I take a look at your site to check things out? Happy to do so - PM me with an admin username and pwd.

obmob
10-06-2006, 12:03 AM
I made an early decision (maybe right, maybe wrong) not to do full integration with the vb admincp, so the 'look and feel' is different.

However, I think the problem of vb cp pages taking over the whole screen is actually a 'cookie' or 'cache' problem. I've had this on and off over the years with all parts of the VB admincp, and the only way to solve it is to clear the cache, close the browser and start again.:rolleyes: oh... ok, had no idea, thanks Andrew.

The Chief
10-06-2006, 09:43 PM
I will be installing this very soon on a new board, thanks and looking forward to it :D

Der Sauger1
10-07-2006, 08:17 PM
Okey it add the Link,but not Add this in Client :confused:
That search for the file on my Server???
Thx for to do this

2. i want implantet this Links and Downloads Manager - Patch forumhome to display thumbs of new links/hot linksin cmps 2.2.0 Portal,is ther any modul for to do??

Hi can anybody Help ???

obmob
10-08-2006, 12:44 AM
Check your LDM zip package there are several addons in it.

Now... i have a petition for future LDMs!!! ^^

OK, here is the idea, when you are adding a new file manually, there is no option to select keywords... you think it's possible to add a select box for this?

A similar box as the one that allows you to choose a category, but with a multioption. An maybe this could also be useful in mass edit options.

That would save a lot of time ^_^

Thanks Andrew! As Always ^^,

AndrewD
10-08-2006, 04:32 AM
Now... i have a petition for future LDMs!!! ^^

OK, here is the idea, when you are adding a new file manually, there is no option to select keywords... you think it's possible to add a select box for this?

A similar box as the one that allows you to choose a category, but with a multioption. An maybe this could also be useful in mass edit options.

That would save a lot of time ^_^

Thanks Andrew! As Always ^^,

Thanks. Currently, the 'add entry' form includes a text box for associating keywords with the new entry. This text box is 'Ajax' enabled, so you will be shown which matching keywords are already available when you start typing. You can choose to ignore this list, and any new words you specify are 'auto added' to the database.

As I understand, you would prefer a select box which lists the currently available keywords.

So, I have these questions:

a) Is this what you are asking for?

b) What happens if there are a lot of keywords defined - the risk is that the select box will be so long that the page will never finish being displayed.

c) How will you add new words to the list?

AndrewD
10-08-2006, 04:33 AM
Hi can anybody Help ???

pls see my PM

AndrewD
10-08-2006, 04:34 AM
I'm having some issues which I only recently discovered. I suspect they started when I updated to vb3.6 a month and a half or so ago.

Previously added links work fine, as do the counters.

However, whenever I (as a forum admin) or someone else tries to add a link, nothing gets inserted. I get the small bit about "processing" after hitting submit, but nothing happens after that. I've checked my permissions (which I hadn't altered from before, I'm fairly sure), so I don't think that's the problem, though I suppose it could be - even if it is a problem though, I can only imagine an error message would be thrown if I didn't have permissions to do this.

Any thoughts?


pls see my PM - the problem is (I think) that you have an old, modified LDM template stored in your database

Barteken
10-08-2006, 04:19 PM
got a problem with ldm 2.2.5.
When I place an external link to a AVI file (that users can download) ldm shows the url to the external domain. Although this happens only with Internet Explorer. With Firefox everything works fine. But when they click on the link with internet explorer the real path is given and instead of saving/opening the file IE just shows the code of the file (a page full of charachters)
how can I solve this?

AndrewD
10-08-2006, 05:50 PM
got a problem with ldm 2.2.5.
When I place an external link to a AVI file (that users can download) ldm shows the url to the external domain. Although this happens only with Internet Explorer. With Firefox everything works fine. But when they click on the link with internet explorer the real path is given and instead of saving/opening the file IE just shows the code of the file (a page full of charachters)
how can I solve this?

Have you set up mimetype information for avi files (VB/admincp/attachments/attachment manager -> Content-type: video/avi)?

obmob
10-09-2006, 04:06 PM
Thanks. Currently, the 'add entry' form includes a text box for associating keywords with the new entry. This text box is 'Ajax' enabled, so you will be shown which matching keywords are already available when you start typing. You can choose to ignore this list, and any new words you specify are 'auto added' to the database.

As I understand, you would prefer a select box which lists the currently available keywords.

So, I have these questions:

a) Is this what you are asking for?

b) What happens if there are a lot of keywords defined - the risk is that the select box will be so long that the page will never finish being displayed.

c) How will you add new words to the list?Oh... well, you are right, ajax could be a lot better, all i need is to be able to add kewywords while adding a new file or while editing a single entry. :D

Thanks Andrew

amnesia623
10-10-2006, 03:31 AM
gotta love the wimpy integration!!!

I got it workin on my site and it's pretty sweet

dpkm
10-10-2006, 04:31 PM
pls see my PM - the problem is (I think) that you have an old, modified LDM template stored in your database

Thank you very much! This was exactly the problem - not sure why I had that template modified, though.

Sparky_s
10-10-2006, 09:48 PM
I'm not sure if it my settings, but any uploaded WMA or WMV file goes ahead to load the embedded media player, but does not play.

I have the Mimes set properly to
Content-type: video/x-ms-wmv
Content-type: audio/x-ms-wma

Any ideas?

Ophelia
10-10-2006, 11:22 PM
I apologize if this has been posted, I searched, couldn't find anything, but that never means anything.

We are having an issue with our Links & Download manager, but we don't know if it's related to another issue we are having so I went into admin and closed all the categories. I assumed this would shut everything down so that no one could download anything else.

When I go into the actual Links & Download Manager area on the site, on the top it shows:

Allowances: 20 files/1 used
[Closed]

But all the downloads are there to download.

Did I misunderstand what the close feature was, or is it just not working right?

AndrewD
10-11-2006, 04:37 AM
I apologize if this has been posted, I searched, couldn't find anything, but that never means anything.

We are having an issue with our Links & Download manager, but we don't know if it's related to another issue we are having so I went into admin and closed all the categories. I assumed this would shut everything down so that no one could download anything else.

When I go into the actual Links & Download Manager area on the site, on the top it shows:

Allowances: 20 files/1 used
[Closed]

But all the downloads are there to download.

Did I misunderstand what the close feature was, or is it just not working right?


Closed means closed for adding new entries. Everything that is already there remains there and accessible, and admins can also add new entries.

If you want to temporarily prevent downloads from the category, use Edit Category/User Group Permissions. You can set permissions which over-ride the master set. Be aware that these will also apply to any subcategories in the category concerned, unless you re-override them there.

AndrewD
10-11-2006, 04:50 AM
I'm not sure if it my settings, but any uploaded WMA or WMV file goes ahead to load the embedded media player, but does not play.

I have the Mimes set properly to
Content-type: video/x-ms-wmv
Content-type: audio/x-ms-wma

Any ideas?

Will try to think about this

myplacidcasual
10-11-2006, 12:45 PM
I've looked everywhere for this setting but it won't allow me (THE ADMIN) to upload files bigger than 2 megs. Where do I change this.

I have upload space set to unlimited (0) and my understanding is that is just the room on the server.

Ophelia
10-11-2006, 02:45 PM
Closed means closed for adding new entries. Everything that is already there remains there and accessible, and admins can also add new entries.

If you want to temporarily prevent downloads from the category, use Edit Category/User Group Permissions. You can set permissions which over-ride the master set. Be aware that these will also apply to any subcategories in the category concerned, unless you re-override them there.

Thank you so much for clarifying this :) Having a "close entire thing" option would be heaven by the way :) Thank you again for such a wonderful addon to vBulletin. It has been a huge asset to our site.

rasun
10-11-2006, 05:37 PM
Great Addon, thank you!

I have two questions.


First the BBCode for Images doesn?t appear if you create a new entry. allow_images is set to "yes". If you write the bbcode https://vborg.vbsupport.ru/ .... Any ideas? I have created my own spoiler bbcode in my forum, can it be the reason?


If you create or edit an entry the is a option for:

Notification
Email those users who have already accessed this entry?

I want to disable this completely so nobody can choose it. How can I make it?

Ophelia
10-11-2006, 07:55 PM
Stupid question ...

Where/how can I edit the text that appears in the terms of use screen? I tried to search in templates, but it didn't find anything. Would love to fine tune this :)

Also, is there a way to tell it how often to show this term? We have a daily download, and like to remind folks of the rules :)

nighthalk
10-11-2006, 09:42 PM
Is there a way to turn off the downloads side of this manager?
I only wants the links part.

chorton
10-12-2006, 12:04 AM
I've looked everywhere for this setting but it won't allow me (THE ADMIN) to upload files bigger than 2 megs. Where do I change this.

I have upload space set to unlimited (0) and my understanding is that is just the room on the server.

you need to fix this in your php.ini
if you check the key settings at the bottom of the ldm setting page you will see these settings
post_max_size 20M
upload_max_filesize 21M

it is suggested to make the upload max size a bit bigger

Rouzbeh1
10-12-2006, 01:05 AM
hi
i have two problems with LDM.
1 - when forum is turned OFF LDM doesn't work how it should or i may have forgotten to turn on some options. (entry thumb can't be shown in portal and also thread. it can not find the image somehow....)
if you need some more details or access to my site, please let me know.

2 - Bandwidth Usage is not working for me at all ( per file & per size in Bytes)

feature request for new versions:
1 - adding 2 or more links for each entry (mirror choose)

thanks in advance

maroceve
10-12-2006, 09:25 AM
guys here is an error i get when i have both the link manager and the Photopost random cmps block enabled on the same page.

Fatal error: Cannot redeclare empty_category() (previously declared in /home/maroceve/public_html/forums/includes/local_links_include.php:2935) in /home/maroceve/public_html/forums/includes/functions_gallery.php on line 2069

Anyone have a fix ? thanks :)

AndrewD
10-12-2006, 12:06 PM
guys here is an error i get when i have both the link manager and the Photopost random cmps block enabled on the same page.

Fatal error: Cannot redeclare empty_category() (previously declared in /home/maroceve/public_html/forums/includes/local_links_include.php:2935) in /home/maroceve/public_html/forums/includes/functions_gallery.php on line 2069

Anyone have a fix ? thanks :)

Yes, known problem, fixed in the 2.2.6 beta. If you want to get your hands dirty, you need to change definitions of/calls to empty_category() and delete_category() throughout the code. From 2.2.6 these will be named empty_ldm_category, etc.

Sorry for the unintended conflict.

EasyTarget
10-12-2006, 12:28 PM
I have a bit of an odd issue. I just moved domains but I kept the same exact file structure. I had all my files linked to /forum/files/filefolder/filename.ext but now when I click on a download it says link not available.

It then provides a link to the file and asks me to accept or modify. Clicking on the link here will get you to the file.

Is there a way I can mass update all the files or something to get it to accept the new domain?

maroceve
10-12-2006, 01:09 PM
Ah :) Stupid me I didn't have the latest version installed..

Thanks Andrew :)

nighthalk
10-12-2006, 08:19 PM
Is there a way to turn off the downloads side of this manager?
I only wants the links part.
is this question that hard to answer that noone using it can answer?

fringehead
10-13-2006, 12:20 AM
I have vbdrupal installed on my forum and I recently upgraded my LDM. Now I am getting this error when I try to run the program:

Fatal error: Cannot redeclare check_url() (previously declared in /var/www/html/blogs/includes/common.inc:693) in /var/www/html/forums/includes/local_links_include.php on line 1171

What can I do about this?

Thanks,

Sean

EasyTarget
10-13-2006, 01:07 AM
is this question that hard to answer that noone using it can answer?its only been 1 day since your first post has it not?

anyways, maybe set:
can_upload_files
Usergroups [with *can_add_link* permission] that can upload files for storage on the server
to no for all groups. I use this for both links and downloads though so I'm probably not the best person to answer.

AndrewD
10-13-2006, 04:00 AM
is this question that hard to answer that noone using it can answer?

It's not hard to answer. The problem is that I have other things to do, like a full time job :knockedout:

Answer depends partly on what we both mean by "turn off downloads".

Basic behaviour of LDM:

- If an entry has a filetype that appears in your VB/attachments/filetypes table, it is considered a "download". Otherwise it is considered a "link". By default, LDM accesses links by triggering a browser "redirect", and manages downloads by internally reading the contents of the entry and then transmitting the contents to the user, together with the correct control information so that the user's browser does something sensible.

- The entries that LDM manages can be created either by specifying URLs or as uploads. Uploads always turn into downloads. URLs may be links or downloads depending on the filetype. e.g. xxx.html is probably a link, and xxx.pdf is probably a download

So:

- If you do not want your users uploading onto your server, the answer is to turn off uploads. But, by default, these are turned off anyway. Take a look at the LDM/admin/settings/Controls on File Uploads

- If you mean you do not want LDM to internally manage the transfer of 'download' files, then set LDM/admin/settings/force_redirect to 1.

- If you want to 'fine tune' which users can create entries, use the combination of LDM/admin/permissions/can_add_link, can_link_files, can_upload_files

- If you want to limit which file types are treated as 'downloads', take a look at your VB/admincp/attachments/filetypes

AndrewD
10-13-2006, 04:08 AM
I have vbdrupal installed on my forum and I recently upgraded my LDM. Now I am getting this error when I try to run the program:

Fatal error: Cannot redeclare check_url() (previously declared in /var/www/html/blogs/includes/common.inc:693) in /var/www/html/forums/includes/local_links_include.php on line 1171

What can I do about this?

Thanks,

Sean

Sean, you will have to edit one or other piece of code to rename function check_url to something else.

The difficulty is one has no control over the ways users combine pieces of software, and it is not straightorward in php to keep function definitions localised.

I've started working on this problem for 2.2.7 by introducing a new naming scheme, but it will be sometime before I am confident that nothing has been broken in the process.

If you are running v 2.2.5, this is where check_url is defined/used:

check_url (local_links_include.php)
local_links_include.php(1171)
local_links_actions.php(412)
local_links_actions.php(445)
local_links_actions.php(702)
local_links_actions.php(837)
local_links_actions.php(875)
local_links_admin.php(849)

If you are running 2.2.6 beta, these are the locations:

check_url (local_links_include.php)
local_links_include.php(1185)
local_links_actions.php(412)
local_links_actions.php(445)
local_links_actions.php(702)
local_links_actions.php(837)
local_links_actions.php(875)
local_links_admin.php(849)

AndrewD
10-13-2006, 04:14 AM
Stupid question ...

Where/how can I edit the text that appears in the terms of use screen? I tried to search in templates, but it didn't find anything. Would love to fine tune this :)

Also, is there a way to tell it how often to show this term? We have a daily download, and like to remind folks of the rules :)

The text is defined in the phrases, not in the templates. Take a look at the ll_agreement phrase, for example, so do a search/languages for the words of interest.

If the code is working correctly (!!), then acceptance is stored in a cookie and has a lifetime of 1 day plus 1 hour. If you want to change this, I'm afraid it's hard coded at present. Take a look at local_links.php. Early in the code (about line 220), there is this line:

$expires = TIMENOW+86400+3600;

Just change the line to the frequency with which users must confirm acceptance

AndrewD
10-13-2006, 04:17 AM
I have a bit of an odd issue. I just moved domains but I kept the same exact file structure. I had all my files linked to /forum/files/filefolder/filename.ext but now when I click on a download it says link not available.

It then provides a link to the file and asks me to accept or modify. Clicking on the link here will get you to the file.

Is there a way I can mass update all the files or something to get it to accept the new domain?

Off the top of my head, I can't see why this problem exists. I'd like to understand more before suggesting how to fix. Can you PM me board details plus admin u/name and pwd or find a way of sending me a backup of the LDM database tables.

There are mass edit features in LDM/admin/categories and you can use full regular expression edits on the urls

AndrewD
10-13-2006, 04:23 AM
Great Addon, thank you!

I have two questions.


First the BBCode for Images doesn?t appear if you create a new entry. allow_images is set to "yes". If you write the bbcode https://vborg.vbsupport.ru/ .... Any ideas? I have created my own spoiler bbcode in my forum, can it be the reason?


I'll get back to you on this.



If you create or edit an entry the is a option for:

Notification
Email those users who have already accessed this entry?

I want to disable this completely so nobody can choose it. How can I make it?

This is only shown to users who have 'can_moderate_link' LDM permission, so if you don't use moderation, just take away that permission.

Otherwise, edit the links_addnewlink template, and find this sequence:


<if condition="$links_permissions['can_moderate_links']">
<tr>
<td class="alt1" width="20%">
<b>$vbphrase[ll_notify]</b><br />
<span class="smallfont">
$vbphrase[ll_notify_text]
</span>
</td>
<td class="alt1">
<input type="radio" name="notify" value="1" /> $vbphrase[ll_yes]
<input type="radio" name="notify" value="0" checked="checked" /> $vbphrase[ll_no]
</td>
</tr>
<else />
<tr style="display:none;">
<td class="alt1" colspan="2">
<input type="hidden" name="notify" value="0" />
</td>
</tr>
</if>


and change to


<tr style="display:none;">
<td class="alt1" colspan="2">
<input type="hidden" name="notify" value="0" />
</td>
</tr>

AndrewD
10-13-2006, 04:28 AM
I'm not sure if it my settings, but any uploaded WMA or WMV file goes ahead to load the embedded media player, but does not play.

I have the Mimes set properly to
Content-type: video/x-ms-wmv
Content-type: audio/x-ms-wma

Any ideas?


I played around with this and could not make things go wrong with wmas or wmvs. However, I could get WMP to behave the way you say for mp3s (fires the jukebox and then just stalls), but it seemed to be a problem inside the WMP browser control - basically, if I clicked the WMP video window, clicked on 'stop' a few times, then closed all browser windows and restarted, then things would work ok again. Not a very good answer, I know.

AndrewD
10-13-2006, 02:20 PM
First the BBCode for Images doesn?t appear if you create a new entry. allow_images is set to "yes". If you write the bbcode manually it works fine, but you can?t see the icon [IMG]https://vborg.vbsupport.ru/images/editor/insertimage.gif .... Any ideas? I have created my own spoiler bbcode in my forum, can it be the reason?


Thanks for reporting this - it is a bug in 2.2.5 and 2.2.6 beta. It will be fixed soon.

AndrewD
10-13-2006, 02:30 PM
hi
i have two problems with LDM.
1 - when forum is turned OFF LDM doesn't work how it should or i may have forgotten to turn on some options. (entry thumb can't be shown in portal and also thread. it can not find the image somehow....)
if you need some more details or access to my site, please let me know.

2 - Bandwidth Usage is not working for me at all ( per file & per size in Bytes)

feature request for new versions:
1 - adding 2 or more links for each entry (mirror choose)

thanks in advance

I'm sorry, I'm not quite understanding point 1, and I can't help without point 2 without taking a look. Pls send me a pm with site details and an admin u/name and pwd.

Rouzbeh1
10-13-2006, 05:11 PM
I'm sorry, I'm not quite understanding point 1, and I can't help without point 2 without taking a look. Pls send me a pm with site details and an admin u/name and pwd.
thanks
PM sent

fringehead
10-13-2006, 07:48 PM
Thanks for the quick reply Andrew! I will ask the guys over at vbdrupal about changing their function name. How much code modification would it take to get your mod to work? So I just change the name of the function and the code that references that function and it's all good?

I'll check it out!

Thanks,

Sean

Sean, you will have to edit one or other piece of code to rename function check_url to something else.

The difficulty is one has no control over the ways users combine pieces of software, and it is not straightorward in php to keep function definitions localised.

I've started working on this problem for 2.2.7 by introducing a new naming scheme, but it will be sometime before I am confident that nothing has been broken in the process.

If you are running v 2.2.5, this is where check_url is defined/used:

check_url (local_links_include.php)
local_links_include.php(1171)
local_links_actions.php(412)
local_links_actions.php(445)
local_links_actions.php(702)
local_links_actions.php(837)
local_links_actions.php(875)
local_links_admin.php(849)

If you are running 2.2.6 beta, these are the locations:

check_url (local_links_include.php)
local_links_include.php(1185)
local_links_actions.php(412)
local_links_actions.php(445)
local_links_actions.php(702)
local_links_actions.php(837)
local_links_actions.php(875)
local_links_admin.php(849)

fringehead
10-13-2006, 08:06 PM
Andrew, I made the changes and the program is working fine!

Thanks for the quick and very informative reply!

You're doing a great job supporting your awsome FREE program!

Sean

obmob
10-13-2006, 08:25 PM
WOW! Andrew has had a lot of posts this week... :D

Great Job, Great Job!

Already translating spanish phrases... it's the best i can do for LDM! :)

AndrewD
10-14-2006, 04:32 AM
As per PM, just for the record...

hi
i have two problems with LDM.
1 - when forum is turned OFF LDM doesn't work how it should or i may have forgotten to turn on some options. (entry thumb can't be shown in portal and also thread. it can not find the image somehow....)
if you need some more details or access to my site, please let me know.



Boy, the first problem (images not shown when forum turned off) is a bit obscure...

The image that is shown on the portal is actually constructed "on the fly", not read directly from the file. The script that creates it (local_resize.php) is being told that your forums are switched off, so does not run.

The fix is to edit local_resize.php, find the line

define('SKIP_SESSIONCREATE', 1);

and comment it out, i.e.

// define('SKIP_SESSIONCREATE', 1);

I'll fix this in the next release.



2 - Bandwidth Usage is not working for me at all ( per file & per size in Bytes)


As far as I can see this working correctly. I gave your (my) usergroup an allowance of 1 file and 292K per day, downloaded benjamin once, then tried to download it a second time and it told me that I had used up all my allowances.

LDM deliberately allows you to exceed your bandwith allowance with the current transfer, i.e. if downloading the file will take you over the allowance, that's ok, but it will not start the download if the allowance is already exceeded.


Another point - for your sample download (benyamin.zip), you had set up both the entry and the image using a full url to your own site. This works, but it will be *much* more expensive in server load than giving just the filename relative to your site, i.e. just as /downloads/music/albums/benyamin/Benyamin - 85.zip. I've edited the example to show you what I mean. This downloads faster and places less load on your server.




feature request for new versions:
1 - adding 2 or more links for each entry (mirror choose)

thanks in advance

Noted - several people have asked for this - it requires a bit of redesign to do this cleanly, so I will think whether/how to best handle your request.

Let me know that everything is now ok.

Rouzbeh1
10-14-2006, 10:27 AM
thank you Andrew for your time and help
As far as I can see this working correctly. I gave your (my) usergroup an allowance of 1 file and 292K per day, downloaded benjamin once, then tried to download it a second time and it told me that I had used up all my allowances.

LDM deliberately allows you to exceed your bandwith allowance with the current transfer, i.e. if downloading the file will take you over the allowance, that's ok, but it will not start the download if the allowance is already exceeded.

it wasn't working before, so i tried everything and then asked you for help.
could you please tell me what was the reason it wasn't working? (any settings i may have forgotten?!...)


Another point - for your sample download (benyamin.zip), you had set up both the entry and the image using a full url to your own site. This works, but it will be *much* more expensive in server load than giving just the filename relative to your site, i.e. just as /downloads/music/albums/benyamin/Benyamin - 85.zip. I've edited the example to show you what I mean. This downloads faster and places less load on your server.

i have first entered in the same way you explained, but somehow the images were not being shown, so i just done some testings :D


once again i would like to thank you for your support.
everything is working perfect.

AndrewD
10-14-2006, 10:31 AM
thank you Andrew for your time and help

it wasn't working before, so i tried everything and then asked you for help.
could you please tell me what was the reason it wasn't working? (any settings i may have forgotten?!...)




I didn't do anything!! One of the great mysteries of life...

Ophelia
10-14-2006, 06:28 PM
Hi there Andrew.

Thank you for your response earlier.. :)

I have a new issue.

We have the Terms of Use Accept/Decline turned on. I know that when you had it set up so it showed when they downloaded, there was an issue with folks using a download manager.. well we are running into a similiar issue, but most are not using a download manager.

Here is thread where I'm asking them to define their environment.

http://www.gottapixel.net/forum/showthread.php?t=6558

The issue is that when they click Accept, it looks like it's forwarding them, but instead, sends them back to the Accept/Decline page. We *really* want to use this feature on the site as there is a lot of sharing of graphic files and a reminder is always nice ;) Any ideas?

AndrewD
10-15-2006, 05:41 AM
Hi there Andrew.

Thank you for your response earlier.. :)

I have a new issue.

We have the Terms of Use Accept/Decline turned on. I know that when you had it set up so it showed when they downloaded, there was an issue with folks using a download manager.. well we are running into a similiar issue, but most are not using a download manager.

Here is thread where I'm asking them to define their environment.

http://www.gottapixel.net/forum/showthread.php?t=6558

The issue is that when they click Accept, it looks like it's forwarding them, but instead, sends them back to the Accept/Decline page. We *really* want to use this feature on the site as there is a lot of sharing of graphic files and a reminder is always nice ;) Any ideas?

One of your users has remarked that they can prevent the problem by temporarily turning off their firewall. I think this gives a hint.

LDM records that people 'accept' the terms of agreement by storing a cookie on their PC. This cookie lasts for 24 hours. If, for any reason, the PC refuses to create the cookie, or if LDM is not told about it, then I realise that the software will get thrown into this loop and keep asking the same question.

I had missed this possibility - it may be related to the growing concern around the web about security. I will have to find a different approach. In the meantime, it will be very helpful to learn what firewall and what antivirus software people are using who experience this problem.

If

Ophelia
10-15-2006, 02:05 PM
One user did reply back.

eTrust - like this one as it is the simplest to use and update - also cost is quite reasonable - this issue is the only one I have encountered in the 2 or 3 years of using

I will see if I can't get the rest of them to respond on what firewall they have as well.

Ophelia
10-15-2006, 04:57 PM
One more thing.. it seems that bbcodes aren't working. I checked and we have "allow bbcodes" turned on.. but all it does is show the code, and not actually implement them.

AndrewD
10-16-2006, 04:26 AM
One more thing.. it seems that bbcodes aren't working. I checked and we have "allow bbcodes" turned on.. but all it does is show the code, and not actually implement them.

Funny - I don't seem to be able to turn them off on my test site - they always seem t work even when I tell them not to...

I can see at least one example of a failed bbcode on your site, in http://www.gottapixel.net/forum/local_links.php?catid=41

I can't get to the bottom of this with admin access to your site, so if you wish, send me a username and pwd.

On the previous matter, I've made the code changes to cope with difficult firewalls, so it should be easy to fix this problem. Let's get to the bottom of your bbcode problem before we make any changes.

AndrewD
10-16-2006, 03:45 PM
One more thing.. it seems that bbcodes aren't working. I checked and we have "allow bbcodes" turned on.. but all it does is show the code, and not actually implement them.


Have you got BBCodes enabled on your main VB admincp (VB/Admincp/Options/BBCode Settings)?

WebmasterSimds
10-18-2006, 01:50 PM
I have a question for you, don't know if this is the right place to add it or not, but I am wondering if it is possable to add fields to it. specifically the following....

ok specifically, I am looking to add 1 set of fields to the uploads area, this field would be a row of special version icons / or text that would be included in the file view, or posted so that when they go through a catagory of files, they wil be able to see what version it is for. like EPack 1, EPack2 and so on.

Examp.

[ ] Version 1 [ ] Version 2 [ ] Version 3 [ ] Version 4 [ ] Version 5
[ ] Version 6 [ ] Version 7

Is something like this possable to do, to add.? and it dont have to be searchable, just someting to add a litle extra information to the download itself?

Thanks in Advance, and if I posted this in the wrong place, please dont shoot me

obmob
10-18-2006, 02:43 PM
Oh, it would be nice to add something like that... that way i could give my users wallpapers in different sizes... but i guess this is not plausible at the moment... of course, i might be wrong :p

WebmasterSimds
10-18-2006, 03:49 PM
well i know the catagory image mod for VB interacted with LDB perfectly cause when i added that, it went and added the cat images from VB main to the LDB and I changed them to fit my needs there.

Someting, ( as you mentioned) with or for different sizes per say, but mine would be like for diferent versions with either a text message or maybe a small image with a check box next to it those would be for all the files. I would have to make someting on a image to show if the person or persons knowing how to under stand it.

Of just extra fields per say to add to it would even be more helpfull

EasyTarget
10-19-2006, 07:16 AM
Is it possible to make it so uploads can be submitted to another domain? I want to have the file server on one domain on a different machine and the web server on another.

AndrewD
10-19-2006, 07:33 AM
Is it possible to make it so uploads can be submitted to another domain? I want to have the file server on one domain on a different machine and the web server on another.


This is not possible, for security reasons. PHP can only handle uploads onto its own system.

You never got back to me on the last problem - are things working?

AndrewD
10-19-2006, 04:01 PM
I have a question for you, don't know if this is the right place to add it or not, but I am wondering if it is possable to add fields to it. specifically the following....

ok specifically, I am looking to add 1 set of fields to the uploads area, this field would be a row of special version icons / or text that would be included in the file view, or posted so that when they go through a catagory of files, they wil be able to see what version it is for. like EPack 1, EPack2 and so on.

Examp.

[ ] Version 1 [ ] Version 2 [ ] Version 3 [ ] Version 4 [ ] Version 5
[ ] Version 6 [ ] Version 7

Is something like this possable to do, to add.? and it dont have to be searchable, just someting to add a litle extra information to the download itself?

Thanks in Advance, and if I posted this in the wrong place, please dont shoot me

There have been a few other requests for additional user fields. I'll give this some thought, although it will not be until 2.2.7 at the earliest. I want to get 2.2.6 finished - been promising this for a month now...