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
03-29-2007, 06:12 PM
Hi there :)

2 BUGs : When i try to upload with a basic registered user it tells me that i the DATE IS WRONG ?

and also. The basic registered users don't have the option to change date when uploading the folder.

I am using the french translation.

Please test the basic account here are the login pass animal/animal

http://www.maroceve.com/forums/local_links.php

Thanks for the report. I thought I'd dealt with this problem, but obviously not. There's some code deep inside vb that catches and modifies time and date conversions.

Users can modify the time/date in LDM if you give them can_moderate_link permission.

AndrewD
03-29-2007, 06:46 PM
Little support request in addition to the other 100 pages of this topic; Where would I need to alter the plugin code of automatic topic generation?

On my forum I don't want users to be able to manually post in the board I'm using for the automatically generated topics (spam related issues), but this is currently required for the plugin to work. I can't find where to alter this in order to remove this functionality though.

includes/local_links_misc.php, around line 1330, function ldm_create_thread

there's a sequence

$forumperms = fetch_permissions($forumid);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostnew'])) {
return;
}


If you want to post in a blocked forum, I suspect that you'll have to modify this code to temporarily give the current user permission to post, otherwise the subsequent call to build_new_post will probably fail

Demon fox
03-29-2007, 06:49 PM
Any news on my prob?

Alfa1
03-29-2007, 07:02 PM
Andrew,

I asked you this by PM as well, but I think the answer to this question will be usefull to others:

I am very thrilled about the new video features in LDM. How do I change the video entries that I have in my LDM so that they'll be played in LDM, instead of linking to youtube, etc?

Edit: I did install the Flash-Sites plug in BTW. And a few work.

AndrewD
03-29-2007, 07:06 PM
Hang on guys :) I can only sort out one thing at a time.... There's a little problem with French date and time settings which is driving me crazy at the moment.

obmob
03-29-2007, 10:40 PM
Hey is it possible to make it so that categorys have there own upload folder, so when a user uploads a file in a category it uploads into the folder set for it?Sounds neat... i run something similar, of course i only allow my users to upload to one category, they i move everything one by one to the desired folder, not the best, but is working for me. :p

Hang on guys :) I can only sort out one thing at a time.... There's a little problem with French date and time settings which is driving me crazy at the moment.Don't give up! :D

PitchouneN64ngc
03-29-2007, 10:53 PM
Hang on guys :) I can only sort out one thing at a time.... There's a little problem with French date and time settings which is driving me crazy at the moment.It's a problem with my translation or about your code Andrew? :)

For the date, the only thing I can give to you is the date function used. The locale is set to "french", and it use the strftime() PHP function. ( http://php.net/strftime ).

Maybe this can help you to understand the problem ;)

AndrewD
03-30-2007, 04:16 AM
It's a problem with my translation or about your code Andrew? :)

For the date, the only thing I can give to you is the date function used. The locale is set to "french", and it use the strftime() PHP function. ( http://php.net/strftime ).

Maybe this can help you to understand the problem ;)

It's not a problem with your translation - the difficulty has been to get my code to work correctly with the vb code for all combinations of timezone, language settings and daylight savings time. This has only just become an issue, because some boards want to be able to guarantee to the hour when an item will become visible, with submitting users working in different timezones. I've been relying too much on vbdate() to sort things out - I think I've got it sorted out in my mind now.

Yorixz
03-30-2007, 06:56 AM
includes/local_links_misc.php, around line 1330, function ldm_create_thread

there's a sequence

$forumperms = fetch_permissions($forumid);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostnew'])) {
return;
}


If you want to post in a blocked forum, I suspect that you'll have to modify this code to temporarily give the current user permission to post, otherwise the subsequent call to build_new_post will probably fail
Thanks a lot for this help AndrewD, however, I'm still having one problem. Right now the threads are only generated when an administrator also fills in a valid forum. The feature I'm looking for is topic generation for everyone who submits a file (permissions should be handled now, but where can I find the code that handles what board to select (I want to change it to the one used for the view permissions). Thanks in advance.

AndrewD
03-30-2007, 07:01 AM
Thanks a lot for this help AndrewD, however, I'm still having one problem. Right now the threads are only generated when an administrator also fills in a valid forum. The feature I'm looking for is topic generation for everyone who submits a file (permissions should be handled now, but where can I find the code that handles what board to select (I want to change it to the one used for the view permissions). Thanks in advance.


includes/local_links_misc.php

function announce_link_in_forum

First parameter is the forumid of the forum in which to create the thread.

PitchouneN64ngc
03-30-2007, 10:32 AM
I've been relying too much on vbdate() to sort things out - I think I've got it sorted out in my mind now.With vbdate(), you can't have problems with dates and hours normally ;)

AndrewD
03-30-2007, 10:56 AM
With vbdate(), you can't have problems with dates and hours normally ;)

Actually, you can - that's the cause of the problem. vbdate's behaviour depends on which format it's asked to use.

PitchouneN64ngc
03-30-2007, 01:35 PM
Actually, you can - that's the cause of the problem. vbdate's behaviour depends on which format it's asked to use.Ok :)

Yorixz
03-30-2007, 07:08 PM
includes/local_links_misc.php

function announce_link_in_forum

First parameter is the forumid of the forum in which to create the thread.
You're my hero, I've got one last question though; how can I manage to get the already set 'Parent Forum' data into the announce_link_in_forum function - I've been hacking my way around some, but I haven't managed to get it working. Thanks in advance, hopefully the last time ;)

Blackhat
03-30-2007, 08:27 PM
how can I attach a thumbnail to a link ?

When Im doing that now the link diappears and the image is not visible

AndrewD
03-31-2007, 09:46 AM
Hi there :)

2 BUGs : When i try to upload with a basic registered user it tells me that i the DATE IS WRONG ?

and also. The basic registered users don't have the option to change date when uploading the folder.

I am using the french translation.

Please test the basic account here are the login pass animal/animal

http://www.maroceve.com/forums/local_links.php

Hi, I wonder if you can upload and test this file - it goes in the includes directory.

AndrewD
03-31-2007, 11:17 AM
how can I attach a thumbnail to a link ?

When Im doing that now the link diappears and the image is not visible

Not sure I understand your problem - do you want me to take a look?

AndrewD
03-31-2007, 11:19 AM
You're my hero, I've got one last question though; how can I manage to get the already set 'Parent Forum' data into the announce_link_in_forum function - I've been hacking my way around some, but I haven't managed to get it working. Thanks in advance, hopefully the last time ;)

Have you set default_forumid on the LDM admin page?

AndrewD
03-31-2007, 11:22 AM
Any news on my prob?

Well, I've tried using Free Download Manager with an offsite url and it works fine for me.

Can you give me some more information?

AndrewD
03-31-2007, 11:27 AM
Andrew,

I asked you this by PM as well, but I think the answer to this question will be usefull to others:

I am very thrilled about the new video features in LDM. How do I change the video entries that I have in my LDM so that they'll be played in LDM, instead of linking to youtube, etc?

Edit: I did install the Flash-Sites plug in BTW. And a few work.

The plugin is coded to require a certain form of url, as explained in the 'readme.txt'. Usually, these are the url's for the main pages in which the flash video plays - the plugin's job is to patch these so that the correct player is constructed. This is the format expected for each of the sites:

- DailyMotion (url's of the form http://www.dailymotion.com/swf/XXXXX )
- Google video (url's of the form http://video.google.com/videoplay?docid=NNNNN )
- IFilm (url's of the form http://www.ifilm.com/video/NNNNN )
- MetaCafe (url's of the form http://www.metacafe.com/watch/NNNNN )
- MySpace (url's of the form http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=NNNNNN )
- PutFile (url's of the form http://media.putfile.com/XXX )
- Sharkle (url's of the form http://www.sharkle.com/video/NNNNNN )
- StreetFire (url's of the form http://videos.streetfire.net/video/XXXXXXXXXXXXXXXXXXX.htm )
- ThatVideoSite (url's of the form http://www.thatvideosite.com/video/NNNN )
- Veoh (url's of the form http://www.veoh.com/videos/NNNNNN )
- Vidiac (url's of the form http://www.vidiac.com/.../XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.htm )
- VSocial (url's of the form http://www.vsocial.com/video/?d=NNNNN )
- YouTube (url's of the form http://www.youtube.com/watch?v=NNNNN )

So to convert your existing links, just rewrite them in the appropriate form

Yorixz
03-31-2007, 01:51 PM
Have you set default_forumid on the LDM admin page?

Yes, I've got it set for the main category that holds the subboards, which on their turn should contain the autogenerated topics.

I'm trying to get the setting 'Parent Forum - Defines viewing permissions', set on the category edit page, to work as standard forum to generate automated topics for files upload to that category, rather than asking the user what forum to post it in (which is the default, and only visible to admins while I want it to work without question and for regular users as well).

Hopefully I've explained it clear enough, thanks for your time and fantastic work so far.

AndrewD
03-31-2007, 02:47 PM
Yes, I've got it set for the main category that holds the subboards, which on their turn should contain the autogenerated topics.

I'm trying to get the setting 'Parent Forum - Defines viewing permissions', set on the category edit page, to work as standard forum to generate automated topics for files upload to that category, rather than asking the user what forum to post it in (which is the default, and only visible to admins while I want it to work without question and for regular users as well).

Hopefully I've explained it clear enough, thanks for your time and fantastic work so far.

If you have a default_forumid set, then all new entries will, by default, be associated with that forumid. If things are working properly (!!), the autocreate will also post its thread into that forum.

The difference between admins and others (actually between users with and without *can_set_permissions* permission) is that the first group gets presented with a full forum list with the default_forumid selected whereas the rest are forced to accept it (it becomes a hidden field in the template instead of a select list). So your normal users' posts will automatically be associated with the forum you want. Admins will have to be careful not to change the forumid - and if you want, you can edit the links_addnewlink template to change that. Look for the sequence:

<if condition="$links_permissions['can_set_permissions']">
<tr>
<td class="alt1">
<strong>$vbphrase[ll_forumparent]</strong><br />
<span class="smallfont">
$curforumtitle<br />
$vbphrase[ll_forumparent_text]
</span>
</td>
<td class="alt1">
<table><tr>
<td valign="top">
<select class="select" name="pforum" size="6" style="width:400px; height:100px;" id="linkforum">
<optgroup label="$vbphrase[ll_forumparent]">
<option value="$DEFAULT_FORUMID" <if condition="$curforumid==$DEFAULT_FORUMID">selected="selected"</if>>$vbphrase[ll_none]</option>
$jumpforumbits
</optgroup>
</select>
</td>
<td valign="top" width="20">
<table><tr>
<td><a href="#" onclick="return ldm_size_style('100px', '400px', 'linkforum')"><img src="$stylevar[imgdir_editor]/resize_0.gif" border="0" alt="$vbphrase[decrease_size]" /></a></td>
</tr><tr>
<td><a href="#" onclick="return ldm_size_style('400px', '400px', 'linkforum')"><img src="$stylevar[imgdir_editor]/resize_1.gif" border="0" alt="$vbphrase[increase_size]" /></a></td>
</tr>
</table>
</td>
</tr></table>
</td>
</tr>
<else />
<tr style="display:none;">
<td class="alt1" colspan="2">
<input type="hidden" name="pforum" value="$curforumid" />
</td>
</tr>
</if>



The problem you described is to get the threads created in a forum where these users doin't have permission?

AndrewD
03-31-2007, 03:15 PM
Hi all,

Just got an new laptop with Vista. However, LDM video's are not streaming anymore. In XP they do though. I also have a problem with internetradio. Does anyone know the solution?

I just read a magazine article that describes something similar - users with IE7 unable to view embedded video files in the browser.

Solution is apparently IE7/Tools/Internet Options/Security/Custom Level/enable Display video and animation on a web page that doesn't use an external player.

Haven't found this to be a problem myself, but for what it's worth...

Yorixz
03-31-2007, 06:58 PM
If you have a default_forumid set, then all new entries will, by default, be associated with that forumid. If things are working properly (!!), the autocreate will also post its thread into that forum.

[..]cut[..]


The problem you described is to get the threads created in a forum where these users don't have permission?

You're indeed right, it should work like that. I've looked into the generated sourcecode for both administrators and regular users; the correct forum is in the hidden form (and selected for the admins), but yet no thread is generated for any usergroup but the admins - something that is odd, considering the fact I've given both exactly the same permissions on that particular forum, I'm completely clueless.

I've found the bug; threads are only generated when the selected usergroup is able to bypass the moderation queue (can_moderate_links); when this is selected no problems occur. Sadly this option isn't much of a solution, hopefully you can come up with a solution, I'd be grateful.

AndrewD
04-01-2007, 06:26 AM
You're indeed right, it should work like that. I've looked into the generated sourcecode for both administrators and regular users; the correct forum is in the hidden form (and selected for the admins), but yet no thread is generated for any usergroup but the admins - something that is odd, considering the fact I've given both exactly the same permissions on that particular forum, I'm completely clueless.

I've found the bug; threads are only generated when the selected usergroup is able to bypass the moderation queue (can_moderate_links); when this is selected no problems occur. Sadly this option isn't much of a solution, hopefully you can come up with a solution, I'd be grateful.

OK, now I understand. When moderation is on, the thread create is (I hope!) delayed until the moderator accepts it. This was deliberate.

The solution, I think, is for you to duplicate the plugin that is tied to the ldm_addlink_inserted hook and tie it to the ldm_addlink_inserted_tomoderate hook.

itsblack
04-01-2007, 06:41 AM
Hi Andrew, again, I have a suggestion about create thread.
As you know, when a new entry is submitted, it will check the url, when the url is invalid, then I must edit it or bypass it. The problem is, in this situation, a new thread will not be auto created. So, can you add a little function that can force the entry create a new thread when I edit it?
Thank you in advance.

Yorixz
04-01-2007, 09:40 AM
OK, now I understand. When moderation is on, the thread create is (I hope!) delayed until the moderator accepts it. This was deliberate.

The solution, I think, is for you to duplicate the plugin that is tied to the ldm_addlink_inserted hook and tie it to the ldm_addlink_inserted_tomoderate hook.
Sir, you're a genious ;) Doing so indeed fixed it on the first sight, you're my hero.

Little addition; combined with the two lines of '$vbulletin->bf_ugp_forumpermissions['canpostnew']' removed from the code (handling that with LDM) it's working perfectly as I want it to, thanks once again.

Addition two; one drawback has been spotted though; the creation of the thread isn't delayed until the link/file has been approved but is generated instantly. And the last addition; when a user hits 'Add entry' in a certain category but decides to pick another one before submitting, the topic is still generated in the category first chosen, again a minor issue that I've fixed by removing the forum selector but perhaps it could be fixed in a new version later on - if you plan on having one.

The final edit, a little bug report; when you choose to moderate entries in the queue, select them and choose to delete an error occurs (or at least for me); 'Fatal error: Call to undefined function delete_ldm_entry() in /home/user/html/local_links_actions.php on line 584'.

AndrewD
04-01-2007, 12:08 PM
Sir, you're a genious ;) Doing so indeed fixed it on the first sight, you're my hero.

Little addition; combined with the two lines of '$vbulletin->bf_ugp_forumpermissions['canpostnew']' removed from the code (handling that with LDM) it's working perfectly as I want it to, thanks once again.

Addition two; one drawback has been spotted though; the creation of the thread isn't delayed until the link/file has been approved but is generated instantly. And the last addition; when a user hits 'Add entry' in a certain category but decides to pick another one before submitting, the topic is still generated in the category first chosen, again a minor issue that I've fixed by removing the forum selector but perhaps it could be fixed in a new version later on - if you plan on having one.

The final edit, a little bug report; when you choose to moderate entries in the queue, select them and choose to delete an error occurs (or at least for me); 'Fatal error: Call to undefined function delete_ldm_entry() in /home/user/html/local_links_actions.php on line 584'.

I'll note the suggestions for improvement - the logic may need rethinking in order to address these points.

As far as the bug is concerned, the call to delete_ldm_entry() should be a call to delete_link(). I'm gradually renaming all the functions to avoid clashes with other hacks - delete_ldm_entry will be the new name in due course and it somehow got included in one place in this release.

AndrewD
04-01-2007, 12:10 PM
Hi Andrew, again, I have a suggestion about create thread.
As you know, when a new entry is submitted, it will check the url, when the url is invalid, then I must edit it or bypass it. The problem is, in this situation, a new thread will not be auto created. So, can you add a little function that can force the entry create a new thread when I edit it?
Thank you in advance.

Thanks, I'll deal with this in the next release (see also the post immediately after yours).

Streicher
04-01-2007, 07:59 PM
I have upgraded to the new version 2.2.7 with the fixes. I use the german version, but when i want to save the setting, i only get a blank page.

|Jordan|
04-01-2007, 09:42 PM
I upgraded to the new version and now when i go to the page i get the following error:

Database error in vBulletin 3.6.5:

Invalid SQL:

SELECT
link.linkid AS linkid, link.linkname AS linkname, link.linkdoi AS linkdoi,
link.linkuserid AS linkuserid, link.linkusername AS linkusername,
link.linkurl AS linkurl, link.linkimg AS linkimg,
link.linkimgthumb AS linkimgthumb, link.linkimgthumbsize AS linkimgthumbsize, link.linkforum AS linkforum,
link.linkdesc AS linkdesc, link.numrate AS numrate, link.totrate AS totrate,
link.linkhits AS linkhits, link.linksize AS linksize, link.linkstatus AS linkstatus,
link.linkdate AS linkdate, link.linkmoderate AS linkmoderate, link.linkmoddate AS linkmoddate,
link.linkreviewfreq AS linkreviewfreq,
ltoc.catid AS linkcatid, ltoc.displayorder AS linkdorder


Why's it doing this?

AndrewD
04-02-2007, 04:18 AM
I upgraded to the new version and now when i go to the page i get the following error:



Why's it doing this?

Well, your error lists about three quarters of the main sql statement used to extract entries from the LDM database. Is that all you are seeing? And is this happening with every attempt to use LDM?

Am happy to take a look at your site - contact me by PM if you wish.

AndrewD
04-02-2007, 04:25 AM
I have upgraded to the new version 2.2.7 with the fixes. I use the german version, but when i want to save the setting, i only get a blank page.

It doesn't do that for me (german version, 2.2.7 + fixes). It sounds to me like one of the php files has only been partially uploaded. I may be wrong. Can I take a look at your site?

adrianus
04-02-2007, 08:41 AM
Excuse me for asking:

Is this some kind of gallery mod? Because it looks like a gallery to me (and I'm looking for a gallery mod now).

What is the advantages and disadvantages compared to gallery like photopost, photoplog, and vb Image Gallery?

thanks

efil
04-02-2007, 01:29 PM
Hi,
In http://www.eirma.org/wikis/index.php/Links_and_Downloads_Manager

I saw that there is a standard LDM functions: Who's Online - Shows which users are viewing LDM.

Where can i find it?

|Jordan|
04-02-2007, 05:11 PM
Well, your error lists about three quarters of the main sql statement used to extract entries from the LDM database. Is that all you are seeing? And is this happening with every attempt to use LDM?

Am happy to take a look at your site - contact me by PM if you wish.

I figured it out, the version i had installed was 2.2.6 and i had installed the 2.2.7 fixes over it (thinking i had 2.2.7 already installed). It works now though with 2.2.7 installed over and plugin reimported.

Streicher
04-02-2007, 05:17 PM
It doesn't do that for me (german version, 2.2.7 + fixes). It sounds to me like one of the php files has only been partially uploaded. I may be wrong.

The files are all completely uploaded. I checked this more than twice, but my error.log said: PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 76 bytes) in forum/includes/functions_file.php on line 50

That is strange. Does a simple saving of a setting page needs so much memory?

AndrewD
04-02-2007, 05:18 PM
Hi,
In http://www.eirma.org/wikis/index.php/Links_and_Downloads_Manager

I saw that there is a standard LDM functions: Who's Online - Shows which users are viewing LDM.

Where can i find it?

Go to your forums home page and down the bottom, you see 'What's Going On'. Select the 'Currently Active Users' link immediately underneath, and you get a list of what everyone is doing. If someone is using LDM, you'll see a listing like this:

AndrewD
04-02-2007, 05:21 PM
The files are all completely uploaded. I checked this more than twice, but my error.log said: PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 76 bytes) in forum/includes/functions_file.php on line 50

That is strange. Does a simple saving of a setting page needs so much memory?

You're the second person who has reported a memory problem in the past few weeks. I wonder if there is a memory leak somewhere. It should certainly not need 67M. (The previous problem was solved by increasing from 8M to 12M).

Do you have a very large set of categories, or is there anything else unusual about your LDM database - or do you have a lot of other hacks installed?

Streicher
04-02-2007, 05:31 PM
You're the second person who has reported a memory problem in the past few weeks. I wonder if there is a memory leak somewhere. It should certainly not need 67M. (The previous problem was solved by increasing from 8M to 12M).

Do you have a very large set of categories, or is there anything else unusual about your LDM database - or do you have a lot of other hacks installed?

No, i have only two categories, because we are at the beginning of installing LDM. But now i know, what was wrong. My installation was an old one. In the LDM database was an old local_file_root_prefix from my old server. On the new server this directory don't exists, but i was not able to chance it, because than the error (blank page) appears. After changing the path directly in the database, the error has gone and everything is fine.

AndrewD
04-02-2007, 05:43 PM
Excuse me for asking:

Is this some kind of gallery mod? Because it looks like a gallery to me (and I'm looking for a gallery mod now).

What is the advantages and disadvantages compared to gallery like photopost, photoplog, and vb Image Gallery?

thanks

You can certainly use this as a gallery mod, but it hasn't been tweaked for that purpose. I don't use the photo hacks you mention - they may well have photo-friendly features that this one does not. The virtue of LDM is that it is very configurable and you can use the one hack for all different types of upload/download - so you could combine a photo library with a music library.

efil
04-02-2007, 07:52 PM
Go to your forums home page and down the bottom, you see 'What's Going On'. Select the 'Currently Active Users' link immediately underneath, and you get a list of what everyone is doing. If someone is using LDM, you'll see a listing like this:

Ok.

I thought that there is an option to see Who's Online in LDM page.

I think it might be very useful.

Ophelia
04-03-2007, 03:24 AM
Hi Andrew.. found a possible bug, not sure if it's been mentioned.

I hope I can explain okay.

I go into the main permissions of the download manager and set up the permissions. For can_access_link I set it so that everyone but COPPA can access links.

I then go into a category and edit it's user group permissions. I don't do anything different with can_access_link, but I do change other things in this area.

Now when I go into either the main permissions or back into that categories usergroup permissions, the can_access_link states that it's been customised (US spelling of this word by the way is customized) in this category and are highlighted yellow, but it hasn't. When you compare, both are set up so that the only one who can't access is COPPA. It's doing this on several different fields:

can_see_protected_links_on_portal
can_rate_link
can_mark_link
can_report_link
can_send_tofriend
can_view_hits
can_view_names

None of these were altered in any way and are the exact same when compared to the main permissions.

Phalynx
04-03-2007, 07:47 AM
I'm also very interested in custom fields, waiting for 2.2.8

AndrewD
04-03-2007, 01:46 PM
Hi Andrew.. found a possible bug, not sure if it's been mentioned.

I hope I can explain okay.

I go into the main permissions of the download manager and set up the permissions. For can_access_link I set it so that everyone but COPPA can access links.

I then go into a category and edit it's user group permissions. I don't do anything different with can_access_link, but I do change other things in this area.

Now when I go into either the main permissions or back into that categories usergroup permissions, the can_access_link states that it's been customised (US spelling of this word by the way is customized) in this category and are highlighted yellow, but it hasn't. When you compare, both are set up so that the only one who can't access is COPPA. It's doing this on several different fields:

can_see_protected_links_on_portal
can_rate_link
can_mark_link
can_report_link
can_send_tofriend
can_view_hits
can_view_names

None of these were altered in any way and are the exact same when compared to the main permissions.

Thanks, Ophelia. I've half suspected that this bug existed in the customisation logic for some time, but have not been able to prove it one way or another. Now you give me an incentive to look more carefully.

Edited - bug confirmed. Will fix, provided you accept that the spelling of customised is customised :)

esck
04-03-2007, 02:53 PM
I've tried the .module files you kindly provided, but for some reason they don't appear even though they are active, and I have some categories and test files uploaded :S

Can you tell me what I'm doing wrong? I'm using vb 3.6.5 and vbadvanced 2.2.1

AndrewD
04-03-2007, 05:37 PM
I've tried the .module files you kindly provided, but for some reason they don't appear even though they are active, and I have some categories and test files uploaded :S

Can you tell me what I'm doing wrong? I'm using vb 3.6.5 and vbadvanced 2.2.1

I can take a look if you like - it isn't easy to suggest a solution otherwise. Send me a PM if you wish.

benjaminkramer
04-03-2007, 07:49 PM
Hi,
my web server only supports to upload files up to 8MB, How can I upload larger files?
How can I create local file downloads?
I uploaded the files to /mnt/jd2/05/985/00000000/htdocs/new/upload/ana_lpz

My settings for:

upload_dir:
/mnt/jd2/05/985/00000000/htdocs/new/upload

When I set

local_file_root : yes
local_file_root_prefix: upload

I get an error that the links are temporaly not available...

please help me....

Thx

AndrewD
04-04-2007, 04:28 AM
Hi,
my web server only supports to upload files up to 8MB, How can I upload larger files?

LDM's 'upload' feature can only work within the limits set by your web server. So, if you want to use it to handle the uploads, then you have to get the web server configured to accept larger files. Beware that this is not always reliable.

If your server is running Apache, then the parameters are:
* upload_max_filesize
* post_max_size
Check that post_max_size has a larger value than upload_max_filesize.

If you can't get these parameters changed, then large file uploads have to be handled using (e.g.) an FTP client, and this is separate from LDM.



How can I create local file downloads?
I uploaded the files to /mnt/jd2/05/985/00000000/htdocs/new/upload/ana_lpz

My settings for:

upload_dir:
/mnt/jd2/05/985/00000000/htdocs/new/upload


When I set

local_file_root : yes
local_file_root_prefix: upload

I get an error that the links are temporaly not available...


please help me....

Thx

Your combination of local_file_root and local_file_root_prefix are telling LDM that all the files it will handle will be stored in the directory tree /upload.

I assume that you manually uploaded the file to /mnt/jd2/05/985/00000000/htdocs/new/upload/ana_lpz? This not part of the directory structure.

Also, your setting for upload_dir means that LDM will place uploads in subdirectories of /upload/mnt/jd2/05/985/00000000/htdocs/new/upload


I suggest you set:

local_file_root : yes
local_file_root_prefix: /mnt/jd2/05/985/00000000/htdocs/new/
upload_dir: upload

and start again

AndrewD
04-04-2007, 04:34 AM
Please keep an eye on the second post in this thread for details on known bugs.

Currently, these bugs have been confirmed in 2.2.7 (and probably existed in 2.2.6 also):
- Wimpy WASP player doesn't work
- There is a problem with icon display with some vbadvanced modules when the vbadvanced cmps_index file is not in the forum directory
- There is a problem with extra category setting/permission configurations erroneously being reported when you edit a category after previously adjusting some of its control settings/permissions

esck
04-04-2007, 04:36 PM
Hello

Is there an option to group the vbavanced modules, so I can show the hot, new and stats in one module?

AndrewD
04-04-2007, 06:08 PM
Hello

Is there an option to group the vbavanced modules, so I can show the hot, new and stats in one module?

Not currently.

Ophelia
04-05-2007, 04:10 AM
Edited - bug confirmed. Will fix, provided you accept that the spelling of customised is customised :)

Next you're going to tell me that I have to accept "colour" as well! ;)

Here is something that driving me kinda bonkers. Okay two things.

When you have forced accept turned on, and you go to the local_links.php, it resizes your window, like it would on a popup. It does this both in Firefox and IE. Can that be changed?

Last thing.

In the area where you assign the time....

How to explain this.

I am in the CST. Our server is in the CST. We have daylight savings time.

When everything is set correctly, the time stamp on everything says -5. The good folks over at vb.com explained this (http://www.vbulletin.com/forum/showpost.php?p=1334143&postcount=11)... I'm taking their word for it at this point.

Okay... so right now, if you go into the download manager to assign a time, it shows the correct current time, but after it, it's reading the "false" -5 and stating "(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima " but this isn't true. It's showing CST with daylight savings time applied to it.

How can this be made to be less confusing for folks?

AndrewD
04-05-2007, 05:06 AM
Next you're going to tell me that I have to accept "colour" as well! ;)

Just so - Last week, I spoke at an international meeting concerned with the mobility of scientists between countries. Several delegates, the US included, mentioned the problem of poor education systems. Just as I thought - if u cannt spel korectcly, hwo kan u hope to suckseed?

Here is something that driving me kinda bonkers. Okay two things.

When you have forced accept turned on, and you go to the local_links.php, it resizes your window, like it would on a popup. It does this both in Firefox and IE. Can that be changed?

I hadn't noticed that, but I always have my browser maximised. Will take a look.

In the area where you assign the time....

How to explain this.

I am in the CST. Our server is in the CST. We have daylight savings time.

When everything is set correctly, the time stamp on everything says -5. The good folks over at vb.com explained this (http://www.vbulletin.com/forum/showpost.php?p=1334143&postcount=11)... I'm taking their word for it at this point.

Okay... so right now, if you go into the download manager to assign a time, it shows the correct current time, but after it, it's reading the "false" -5 and stating "(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima " but this isn't true. It's showing CST with daylight savings time applied to it.

How can this be made to be less confusing for folks?

Yes, I spotted this as well. Geographical space warp when summer time begins. I think this is corrected with the 'fixes' file at the start of this thread. Perhaps you can give that a try.

itsblack
04-05-2007, 07:54 AM
Hi Andrew, I have a problem with the vba_module "ldm_new_thumb.module".
I installed it and it worked great at first. But some days late... now I have problem with it.
I set it display 8 entries and 4 thubs per row. But it only display 6 entries (for 1 day ago, it display 7 entries). I'm sure there are enough enties to display and every entry has thumbnail.

AndrewD
04-05-2007, 06:18 PM
When you have forced accept turned on, and you go to the local_links.php, it resizes your window, like it would on a popup. It does this both in Firefox and IE. Can that be changed?


Edit the links_agreement and the links_agreement_declined templates. In each case, find this sequence:


<script language="JavaScript">
<!--

if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
winW = window.innerWidth;
winH = window.innerHeight;
}
if (navigator.appName.indexOf("Microsoft")!=-1) {
winW = document.body.offsetWidth;
winH = document.body.offsetHeight;
}
}

if ((winW<$links_defaults[musicbox_standalone_width]) || (winH<$links_defaults[musicbox_standalone_height])) {
self.resizeTo($links_defaults[musicbox_standalone_width], $links_defaults[musicbox_standalone_height]);
}

-->
</script>


and delete it.

I must have put that there for a reason - I can't recall why now.

EasyTarget
04-06-2007, 10:58 PM
thanks for the update.

Alfa1
04-08-2007, 05:17 PM
Does anyone know how to create a VBadvanced module, so that it'll show the latest video from a category (ready to play)?

Andrew, after upgrading, my vbadvanced modules do not work. What do I have to do to get them working again?

itsblack
04-08-2007, 08:40 PM
Andrew, after upgrading, my vbadvanced modules do not work. What do I have to do to get them working again?
Maybe I can answer your question.

The new vba_modules are not same like the old php format modules. You should install the module per "download/upload module" but not "add module". And before you upload the new one, you should delete the old php format module files first, or the system can't creat the new one.

Alfa1
04-08-2007, 08:44 PM
Thanks. That's great info. Can this be added to the wiki?

Edit: If I want multiple modules in there, do I need to add the same module several times?

The ldm_new.module doesn't show pdf icons anymore.

itsblack
04-09-2007, 02:36 AM
In "edit module" section there are options you can copy the module. You can try it.

AndrewD
04-09-2007, 05:20 AM
Edit: If I want multiple modules in there, do I need to add the same module several times?

Yes you can - I believe that ItsBlack's approach works, as does importing the module a second time and, when the system warns you about a filename conflict for the code, just adding another character to the filename.

The ldm_new.module doesn't show pdf icons anymore.

I assume that your cmps_index.php file is not in your forums directory. This is a bug on my side - will be fixed in code to be uploaded later today.

efil
04-09-2007, 08:24 AM
Hi,
I'm using the auto-thread-create plugin , and i get this Discussion Thread instead of a real link.

efil
04-09-2007, 08:44 AM
Sorry i fixed it.
General Settings>Controls on Category and Entry Text and URLs>allow_bbcode

I have another question,
How can i make a larger Jukebox screen?

AndrewD
04-09-2007, 08:47 AM
Hi,
I'm using the auto-thread-create plugin , and i get this instead of a real link.

Are you using a translation of the phrases?

Take a look at the ldm_thread_create_relink phrase (vbulletin/languages). I think you'll find ann extra "x" has crept in.

efil
04-09-2007, 08:54 AM
Are you using a translation of the phrases?

Take a look at the ldm_thread_create_relink phrase (vbulletin/languages). I think you'll find ann extra "x" has crept in.

I did it in purpose. if not that what you get: Discussion Thread


Can you help me with the second question?

AndrewD
04-09-2007, 09:48 AM
Sorry i fixed it.
General Settings>Controls on Category and Entry Text and URLs>allow_bbcode



I have another question,
How can i make a larger Jukebox screen?

The parameters on
ldm/admin/settings/Controls on Media Files and Jukebox control the overall window sizes.

The Jukebox sreen can be adjusted by going to ldm/admin/mediaplayers. For each of the players, you'll see items like:

player_width="320", player_height="240",


Edit these - be careful to keep the syntax right (these are php array element definitions).

efil
04-09-2007, 09:59 AM
Thank you!

AndrewD
04-09-2007, 03:02 PM
I've uploaded a bug fix release to correct the irritating bugs reported in version 2.2.7. I'd appreciate a few tests before making this the new official code. The bug fixes relate to:

- Date/time fixes for languages that use different formatting routines
- Fixed geographical space warp when DST is in force
- "Accept me" forms no longer resize screen
- Wimpy Wasp Flash Player works again
- vbAdvanced modules fixed to work when vba home page is not in forums directory and to show correct number of 'What's Hot/New'
- Fix for unintended and erroneous 'category permission over-rides' after category settings edit
- Fix for Add category/update display order in this category only
- Fix for illegal function calls in moderate/delete entry
- Fix for sql error with admin/debug
- Advanced Search text and user boxes are now standard text inputs rather than textboxes

esck
04-09-2007, 03:33 PM
Thanks i'll check the update :D

obmob
04-09-2007, 04:02 PM
Oh, thanls Andrew, i'll test them this week. :)

Slave
04-10-2007, 07:47 AM
Update now installed :)

No problems with the upgrade and no bugs found so far .. this could change ;)

Suggestions:

If admin, allow to enter comments as other forum users. This is handy if someone has entered a link and written "war and peace" about the link. It would be cool to enter this extra info as a comment by the user on the link instead.

Quick link adding. If you enter a link LDM goes off and finds the meta-data and fills in the rest of the details from this info. (editable if required of course :))

I hope you had a good Easter Andrew!! :)

itsblack
04-11-2007, 02:15 AM
Hi Andrew, today I try to use the allowance system to control the downloads. I let the registered user download 1 item every 1 day.
62938

And I make a test myself. But I can download different item one after another! Right under the category descritption show that "Allowances: 1 files/ 2 used". That makes me confuse. I also disabled the option "can_bypass_bandwidth_limits ", so I can't figure it out, what's happened.

AndrewD
04-11-2007, 04:23 AM
Hi Andrew, today I try to use the allowance system to control the downloads. I let the registered user download 1 item every 1 day.
62938

And I make a test myself. But I can download different item one after another! Right under the category descritption show that "Allowances: 1 files/ 2 used". That makes me confuse. I also disabled the option "can_bypass_bandwidth_limits ", so I can't figure it out, what's happened.

Are you 'downloading' or are you hitting 'links' - i.e do the entries that you are selecting have filetypes that are defined as downloads (i.e. with mimetype data in the VB attachments table).

The test for sufficient file/bandwidth allowances is only applied when you try to make a 'download'. For 'links', the allowances don't apply, because LDM doesn't manage the transfer.

However, you've found a bug in the reporting system ("Allowances: 1 files/ 2 used"), because the figure "2 used" is counting the links you have hit as well as your downloads. I'm surprised that this hasn't been noticed before, because the code in question hasn't changed for quite some time. (There's a piece missing in the sql query that I use to produce that report.) Sorry about that.

itsblack
04-11-2007, 01:51 PM
Actually the most filetypes on my site is rar file. It is defined as "Content-type: unknown/unknown" in vb attachments table. Now I have changed it to "Content-type: application/rar". I think both ways are handled as download. But the problem remains.

Maybe, as you said, the LDM is always treat my rar download as hits. Because in the total LDM stastics (as VBA module) there is always "reserved: 0 Kbytes", though there are 1130 Hits. But I am sure, the most hits are rar-downloads from my own site.

Btw, when I submitt the new entry, the LDM can determine the file size.

AndrewD
04-11-2007, 01:54 PM
Actually the most filetypes on my site is rar file. It is defined as "Content-type: unknown/unknown" in vb attachments table. Now I have changed it to "Content-type: application/rar". I think both ways are handled as download. But the problem remains.

Maybe, as you said, the LDM is always treat my rar download as hits. Because in the total LDM stastics (as VBA module) there is always "reserved: 0 Kbytes", though there are 1130 Hits. But I am sure, the most hits are rar-downloads from my own site.

Btw, when I submitt the new entry, the LDM can determine the file size.

OK, then there's something wrong. I'll dig and report what I find.

AndrewD
04-11-2007, 05:46 PM
Actually the most filetypes on my site is rar file. It is defined as "Content-type: unknown/unknown" in vb attachments table. Now I have changed it to "Content-type: application/rar". I think both ways are handled as download. But the problem remains.

Maybe, as you said, the LDM is always treat my rar download as hits. Because in the total LDM stastics (as VBA module) there is always "reserved: 0 Kbytes", though there are 1130 Hits. But I am sure, the most hits are rar-downloads from my own site.

Btw, when I submitt the new entry, the LDM can determine the file size.

Have you got force_redirect set to 1?

I took a look through the database dump you sent me last week, and LDM is indeed serving these files as 'links' even though it's clear from your site (because the filesize is shown) that it knows that there is mimetype infomation available.

It's difficult for me to debug your site directly - Chinese is not one of my skills... - I'm impressed though by the range of philosophy you're making available.

itsblack
04-11-2007, 06:37 PM
Yes, I set force_redirect = 1. Because when I set force_redirect = 0, there will be download error (download not completely), and I thought it will also take more server resource, So I prefer to set it to 1.

Is it possible, just let LDM judge the hit allowance has reached or not, when reached, then reject more hit.

btw, I have changed LDM to english version. And I've also move you to the registered usergroup, so you can directly vist my site. You can per LDM/Show menu get the eitries, there are also many entries used englisch. If you nedd admin account, just tell me.

Thanks again for your help.

AndrewD
04-11-2007, 07:30 PM
Yes, I set force_redirect = 1. Because when I set force_redirect = 0, there will be download error (download not completely), and I thought it will also take more server resource, So I prefer to set it to 1.

Is it possible, just let LDM judge the hit allowance has reached or not, when reached, then reject more hit.

btw, I have changed LDM to english version.

OK, now I understand. When force_redirect=1, the hit/bandwidth allowances don't currently come into effect. As LDM is not handling the transfer, I assumed that sites wouldn't want to restrict hits.

This can probably be changed, but it needs some thought.

With force_redirect=0, probably you are seeing transfers fail to complete for large files (I saw some very big files on your site), particularly if identified with a full url.

With the latest versions of LDM, you can set force_redirect on a per-category basis.

itsblack
04-11-2007, 08:44 PM
With force_redirect=0, probably you are seeing transfers fail to complete for large files (I saw some very big files on your site), particularly if identified with a full url.

With the latest versions of LDM, you can set force_redirect on a per-category basis.
I need an overall downloads control, so set force_redirect on a per-category basis make no use for me.

For those links which link to other sites, I have created a single category to put them in, and I set this category bypass the allowance setting.

vuiveclub_net
04-11-2007, 09:19 PM
can we integrate this with Points systems so we can allow members to buy more memories from the points system if they went over limit.

AndrewD
04-12-2007, 03:47 AM
I need an overall downloads control, so set force_redirect on a per-category basis make no use for me.

For those links which link to other sites, I have created a single category to put them in, and I set this category bypass the allowance setting.


OK, then I'll add to the 'to do' list to modify the allowances system so that it still works when force_redirect is set to 1. Can't promise how quickly this will get coded.

AndrewD
04-12-2007, 03:48 AM
can we integrate this with Points systems so we can allow members to buy more memories from the points system if they went over limit.

Not currently. I discussed this with the author of that hack sone months ago, but we never got anywhere.

vuiveclub_net
04-12-2007, 05:27 AM
I don't get it. If we let the categories act as forums and sub-categories become sub forums, then how come when i Upload something in the Sub-categories , it's not display that new post in the home forume, but it is in the sub-categories. I hope you know what i mean.

AndrewD
04-12-2007, 05:32 AM
I don't get it. If we let the categories act as forums and sub-categories become sub forums, then how come when i Upload something in the Sub-categories , it's not display that new post in the home forume, but it is in the sub-categories. I hope you know what i mean.

I'm sorry, I don't understand. LDM's categories and subcategories are not forums and posts?

unknowngiver
04-12-2007, 01:33 PM
hey
i just added a new theme..and the download thing at the main page [vbadvanced] doesnt show :( anyway of adding it back in?

Rouzbeh1
04-12-2007, 03:55 PM
hi Andrew,
i have tried Wimpy Wasp Player with the new LDM fixes. it's still not working for me.
what should i do to get it working?
PS: it shows up but video doesn't start to play

vuiveclub_net
04-12-2007, 08:51 PM
I'm sorry, I don't understand. LDM's categories and subcategories are not forums and posts?

I mean like when i upload a file in a subcategories, then why it;s not shows in the forum homepage that there is a new post. but when i post a file at a regular categorie it shows in forum homepage there is a new post. I hope you know what i mean. I want that when we Upload a file in subcategories, it will be show in the forum homepage.

vuiveclub_net
04-13-2007, 04:02 AM
I mean that how we make the entries we just post become a real post in the Forum and show up in the FOrum home as well as add 1 post to the member that post it.

Ophelia
04-13-2007, 01:17 PM
Andrew, I had to come over here and give you a huge KUDO!

I just saw that you added the ability to see individual hits on individual downloads by clicking on that little button!!! And to look at the person who uploaded the download. This is WONDERFUL!!! Thank you so much for creating such a wonderful product.

Ophelia
04-13-2007, 09:26 PM
Very small bug.. I almost am embarrassed to post it.

Using the most current version: links-2.2.7-post2.zip

Add Entry (it was 5:22 my time)
Set time for 5:25
Submit the entry and it shows "Not yet visible"
Refresh the screen... at 5:24, instead of 5:25, it makes the file visible.

Ophelia
04-13-2007, 10:06 PM
Hi Andrew.

I'm having some pretty big problems with upgrading from 2.2.6 to 2.2.7.

I uploaded everything to the server.
I then go into Plugin & Products > Manage Products > Add/Import Product

I bring in product-eirma_ldm.xml and mark for it to overwrite and press import.

The next screen starts with the "please wait".. it then prints out this info

Links and Downloads Manager
Checking installation status...
Currently installed version: 2.2.6
Checking environment...
Environment checked
Creating LDM database tables
Step 1 - Verifying database tables
Patching (1) LDM database tables
Initialising admin table
Patching (2) LDM database tables
Recording version number 2.2.6 in database
Cleaning templates

And stops... it does nothing else. I let it sit for 10 minutes just in case it was because of the size of our database, but it doesn't do anything. Our database, zipped is only around 6 MB.

Any ideas?

AndrewD
04-14-2007, 05:49 AM
Hi Andrew.

I'm having some pretty big problems with upgrading from 2.2.6 to 2.2.7.

I uploaded everything to the server.
I then go into Plugin & Products > Manage Products > Add/Import Product

I bring in product-eirma_ldm.xml and mark for it to overwrite and press import.

The next screen starts with the "please wait".. it then prints out this info

Links and Downloads Manager
Checking installation status...
Currently installed version: 2.2.6
Checking environment...
Environment checked
Creating LDM database tables
Step 1 - Verifying database tables
Patching (1) LDM database tables
Initialising admin table
Patching (2) LDM database tables
Recording version number 2.2.6 in database
Cleaning templates

And stops... it does nothing else. I let it sit for 10 minutes just in case it was because of the size of our database, but it doesn't do anything. Our database, zipped is only around 6 MB.

Any ideas?

A few thoughts.

First, if you've reported accurately the sequence of messages, then you've still got at least one of the version 2.2.6 files sitting on your server (the local_links_init.php) file, which produces the message "Recording version number 2.2.6 in database".

I've seen a number of reports over the last few months where the ftp code upload hasn't worked correctly, and one then gets very unpredicable behaviour which is essentially impossible to code safeguards against.

Second point is that the LDM installer has printed out all its messages - the 'Cleaning templates' message is the final message before passing control back to vbulletin. So it looks to me as if the installer has done its job and then vb itself is going to sleep. I don't know why that should be.

Do you guys periodically reoptimise your VB database? It's a good idea from time to time to go to vb/admin/maintenance/repair and optimise tables and do a couple of cycles of repair/optimisation. MySQL can slow down quite a bit after heavy use.

If none of this helps, let me know - am, as always, very happy to take a look.

AndrewD
04-14-2007, 05:59 AM
Very small bug.. I almost am embarrassed to post it.

Using the most current version: links-2.2.7-post2.zip

Add Entry (it was 5:22 my time)
Set time for 5:25
Submit the entry and it shows "Not yet visible"
Refresh the screen... at 5:24, instead of 5:25, it makes the file visible.

It's not a bug, it was deliberate.

The timestamp that's provided to a vb script records when the script starts running rather than when a particular piece of code is executed. So one has to build in a margin of error into time calculations so that when the user actually gets to see the page. In the case of pre-dated entries, I gave a 60 second margin, to avoid the situation where the page is presented at (5.25) but was requested at (5.24).

If this is serious for you, it's a very trivial change to the code of local_links_include.php, about line 2861, depending on version


$linkexpired = 0;
if ($expire) {
if ($linkdatebin>TIMENOW+60) {
$linkexpired = -1; // post-dated, so just invisible
}


Just change the 60 to something smaller.

AndrewD
04-14-2007, 06:05 AM
hi Andrew,
i have tried Wimpy Wasp Player with the new LDM fixes. it's still not working for me.
what should i do to get it working?
PS: it shows up but video doesn't start to play

Do you by any chance have local_file_root set to 1 and is the flash video stored outside your web site?

The wasp player is picky about what it will play. It has to be given a full url to the file, so the file has to sit within the web site. The wimpy mp3 player is less sensitive and will work properly with php code that streams mp3 content to it.

If this isn't the situation, pls can you do a 'view source' on the wimpy wasp window, save the html to file and then email it to me (ad_rodin at noos.fr)

AndrewD
04-14-2007, 06:20 AM
I mean like when i upload a file in a subcategories, then why it;s not shows in the forum homepage that there is a new post. but when i post a file at a regular categorie it shows in forum homepage there is a new post. I hope you know what i mean. I want that when we Upload a file in subcategories, it will be show in the forum homepage.

Are you using the 'autocreate_threads' plugin for LDM (it's in the extras directory of the release)?

This 'autocreates' a post in a forum whenever new entries are added to LDM. For this to work, LDM has to know which forum to post into. It uses the 'associated forum' which you (as admin) tell it to use by default - for all categories/entries, in some categories, or on an entry-by-entry basis.

I've just tested this - created a three level forum structure (base, main forum, child forum) and a two level category structure (cat1/cat2). I installed the 'autothread' plugin, and added a new entry to the child category (cat2), associating it with the child forum. The attached images show what my LDM category and forum home look like.

AndrewD
04-14-2007, 06:21 AM
hey
i just added a new theme..and the download thing at the main page [vbadvanced] doesnt show :( anyway of adding it back in?

Am not an expert on vbadvanced - will try to take a look into this.

Rouzbeh1
04-14-2007, 10:53 AM
Do you by any chance have local_file_root set to 1 and is the flash video stored outside your web site?

The wasp player is picky about what it will play. It has to be given a full url to the file, so the file has to sit within the web site. The wimpy mp3 player is less sensitive and will work properly with php code that streams mp3 content to it.

If this isn't the situation, pls can you do a 'view source' on the wimpy wasp window, save the html to file and then email it to me (ad_rodin at noos.fr)

local_file_root is set to no, flv file is on a separate server (accessible with apache)

email sent
thanks

AndrewD
04-14-2007, 01:52 PM
local_file_root is set to no, flv file is on a separate server (accessible with apache)

email sent
thanks

See email reply - my bug.

Ophelia
04-14-2007, 03:17 PM
Install issue:

My apologies.. I honestly thought I had overwritten everything! However, I've reuploaded again and it installed just perfectly this time.

It's not a bug, it was deliberate.

The timestamp that's provided to a vb script records when the script starts running rather than when a particular piece of code is executed. So one has to build in a margin of error into time calculations so that when the user actually gets to see the page. In the case of pre-dated entries, I gave a 60 second margin, to avoid the situation where the page is presented at (5.25) but was requested at (5.24).

If this is serious for you, it's a very trivial change to the code of local_links_include.php, about line 2861, depending on version


$linkexpired = 0;
if ($expire) {
if ($linkdatebin>TIMENOW+60) {
$linkexpired = -1; // post-dated, so just invisible
}


Just change the 60 to something smaller.

No, it wasn't a big issue :) Just something I noticed. Teach you to have me looking at your stuff! ;)

Okay, off to finish the install.

obmob
04-14-2007, 03:35 PM
AHA! Time to make noise XD

Well, i have a doubt, when accesing a file, link and see the details, is there a way to show the current comments as default? o.o

And also... is there a way to show some sort of filmstrip like the one available in vbgallery?

This is, a section where you can see the previous entry thumb, then the current one and finally the next entry available. I posted a screenshot ^^

I think this might be a template an one could easilly call for it adding a code in the linkbits.

Ophelia
04-14-2007, 03:44 PM
- There are currently 160914 records in the LDM Download 'Hits' table. You are likely to see reduced performance when using the LDM show_hit_parade setting to show overall statistics, and when analysing hits with LDM/Admin/Hits. Consider setting prune_downloads or use LDM/Admin/Hits to manually delete some of these records.

Andrew, the above isn't a bug, I just have a question. The above records accounts for 90 days worth of records. How badly will it affect our performance?

Also, is there a way to export this as something other than an excel sheet? Because of the amount of things that are put in, the excel sheet is to big and won't load all the way.

Ophelia
04-14-2007, 03:46 PM
Also, it appears that when you tidy up the table > delete, you have to run this twice in order for it to visually show that it's deleted something.

I've dumped ours down to 30 days, and leads "There are currently 59613 records in the LDM Download 'Hits' table." Folks seriously need to stop downloading stuff! ;)

Ophelia
04-14-2007, 04:00 PM
Looking at our download manager now...

04-05-2007 (expires 12-31-1969)

links_expiry_days is set to 9999999999999999

But on the other site, I have it set to 999999
and it reads 04-13-2007 (expires 04-20-2007)

---> Fix. This must have had something to do with the fact that we had the expire thing installed in the 2.2.6 beta testing it. I set the number to 0, then back to 999999 and it's showing up correctly now.

Alfa1
04-14-2007, 06:06 PM
Does LDM have the option to broadcast a RSS feed?

Rouzbeh1
04-14-2007, 08:01 PM
See email reply - my bug.
thank you Andrew, it worked!

btw. does LDM also work with Wimpy AV?

AndrewD
04-15-2007, 04:52 AM
Does LDM have the option to broadcast a RSS feed?

Yes. Take a look at extras/rss2/local_links_rss.php, which goes in your forum directory. It's hasn't been worked on for some months, but still seems to work properly. See image.

AndrewD
04-15-2007, 09:58 AM
Also, it appears that when you tidy up the table > delete, you have to run this twice in order for it to visually show that it's deleted something.

I've dumped ours down to 30 days, and leads "There are currently 59613 records in the LDM Download 'Hits' table." Folks seriously need to stop downloading stuff! ;)

The main routine overhead is when you enable the 'hit parade' on the LDM home page. On my test PC with an LDM database with 33,000 hits, the sql statement required to select the hit parade entries requires 0.12 seconds CPU, an overhead that is required each time the page is displayed.

I've already taken steps to improve the efficiency of this step, and at some stage, I may make it much better (by keeping a 'day table' of hits).

Concerning the 'delete hits' page, it works correctly the first time you select it, but there's no page refresh, I realise.

Alfa1
04-15-2007, 12:16 PM
Yes. Take a look at extras/rss2/local_links_rss.php, which goes in your forum directory. It's hasn't been worked on for some months, but still seems to work properly. See image.
Where do I place local_links_rss2.php ? Do I need to modify it in any way? Can I set it only to allow files within a certain time frame?
Is there a way to merge this RSS feed with vbulletin's rss feed?

AndrewD
04-15-2007, 01:18 PM
Where do I place local_links_rss2.php ? Do I need to modify it in any way? Can I set it only to allow files within a certain time frame?
Is there a way to merge this RSS feed with vbulletin's rss feed?

You place it in your forums directory.

If you point an RSS browser at this, it will by default show you the ten most recent entries added to your database.

If you point instead at local_links_rss2.php?hot=1, it will show the top ten hits

If you add parameter count=N, it will show N enties

If you add catid=N1,N2, it will restrict the list to entries in category ids N1 and N2.

It does not integrate with the vb feed, it's a separate feed.

Alfa1
04-15-2007, 01:41 PM
Thanks.
If you add catid=N1,N2, it will restrict the list to entries in category ids N1 and N2.
Where exactly should I add this?

AndrewD
04-15-2007, 01:49 PM
Thanks.

Where exactly should I add this?

As command arguments, at the end of the URL, in the usual way...

A call to

http://yoursite/yourforums/local_links_rss2.php?catid=1&count=5 will show the five most recent entries in category 1, and so on.

Alfa1
04-15-2007, 02:00 PM
I see. So if I don't use the Nx command, then LDM will broadcast entries from categories which are restricted to certain member groups?

Strange. When going to the url http://yoursite/yourforums/local_links_rss2.php
It shows the 5 last entries, not the 10 last entries.

AndrewD
04-15-2007, 02:18 PM
I see. So if I don't use the Nx command, then LDM will broadcast entries from categories which are restricted to certain member groups?

Strange. When going to the url http://yoursite/yourforums/local_links_rss2.php
It shows the 5 last entries, not the 10 last entries.

Probably you've got the ldm setting links_seen_on_portal set to 5.

I'm not quite sure what it will do - whether it broadcasts them all or only those that are visible to the user who is looking at the stream. In any event, unauthorised users should not be able to access the entries, even if broadcast.

As I say, it hasn't had any work for some time.

Alfa1
04-15-2007, 02:21 PM
Probably you've got the ldm setting links_seen_on_portal set to 5.
Yes, I have.

Edit: It indeed broadcasts restricted files. Can this be resolved?

AndrewD
04-15-2007, 02:34 PM
Yes, I have.

Edit: It indeed broadcasts restricted files. Can this be resolved?

As I said, it hasn't had work for some time - that was a gentle hint :) I'm trying to get some other things done. The code can certainly be patched but I haven't got much time at the moment.

Alfa1
04-15-2007, 02:57 PM
Which would you say are the main features that are missing? I'm not one for masochism, but I'd quite like to have a good photo album system myself.

These features: http://www.photopost.com/featuresphp.html

A few nice functions off the top of my head, that I have with Photopost now:

Special lay out features for the image gallery.
The option to have it seem separate from the rest of LDM.
Recent & most popular photo's (is already possible but would need a different lay out as well.
Slide show.
User galleries.
Show thumbs of other pics in dir/member gallery
Watermark.
Comments with a more forum like appearance.



One thing I totally forgot to mention here, is forum integration of the gallery with the forum's attachment function. When a members adds pictures as an attachment they will not show up in the gallery. This way a massive amount of pictures gets lost. Several thousands in my case. At the same time it seems like madness to have 2 different ways to store images.

AndrewD
04-15-2007, 02:58 PM
One thing I totally forgot to mention here, is forum integration of the gallery with the forum's attachment function. When a members adds pictures as an attachment they will not show up in the gallery. This way a massive amount of pictures gets lost. Several thousands in my case. At the same time it seems like madness to have 2 different ways to store images.

That's something I've had on my own list for some time - smooth integration of vb attachments into LDM

AndrewD
04-15-2007, 03:16 PM
hey
i just added a new theme..and the download thing at the main page [vbadvanced] doesnt show :( anyway of adding it back in?

If you create a new theme after installing vbadvanced modules, you have to make the new style a child of the style into which you did the installation (I think). Otherwise, the required templates don't exist.

obmob
04-15-2007, 04:05 PM
AHA! Time to make noise XD

Well, i have a doubt, when accesing a file, link and see the details, is there a way to show the current comments as default? o.o

And also... is there a way to show some sort of filmstrip like the one available in vbgallery?

This is, a section where you can see the previous entry thumb, then the current one and finally the next entry available. I posted a screenshot ^^

I think this might be a template an one could easilly call for it adding a code in the linkbits.Please, some help for me? :(

AndrewD
04-15-2007, 04:24 PM
Please, some help for me? :(

Of course....

pscyhosis
04-15-2007, 05:26 PM
Hi AndrewD,

Great product! It works fine for me.
There are some problems after upgraded to the newest version. And there are some questions.
1. Cannot play media files such as mp3 and video..."cannot create directshow player"
2. It is good to have a integration of web player (wimply). If it would be possible to make a plugin for "Wimpy AV", since it would be cheaper to buy only one product to have all the functions.
3. is it possible to add a new application to open media files?

AndrewD
04-15-2007, 06:24 PM
Hi AndrewD,

Great product! It works fine for me.
There are some problems after upgraded to the newest version. And there are some questions.
1. Cannot play media files such as mp3 and video..."cannot create directshow player"

Seems to be a common problem with embedded windows media player - see http://www.opentechsupport.net/forums/archive/topic/37021-1.html

quote -

Posted by: ~MagicNinja~

everytime i try to view a video file online a message comes up saying, Cannot Create DirectShow Player, i use firefox if that has anything to do with it. I don't know what could be wrong with it.

Posted by: Psychotic001

Ok guys I had this problem too even posted on the Microsoft newsgroups about it got no help at all so I figured it out myself.. You have to completely uninstall Windows Media Player and than Reinstall it.. really simple made me feel dumb after I figured it out and now everythings great.

unquote
2. It is good to have a integration of web player (wimply). If it would be possible to make a plugin for "Wimpy AV", since it would be cheaper to buy only one product to have all the functions.

I'll take a look at this - someone else has suggested the same

3. is it possible to add a new application to open media files?

Yes, the media player functionality is encapsulated to make this as straightforward as possible. What do you want to do?

pscyhosis
04-15-2007, 06:45 PM
AndrewD,

Thanks you very much for your fast response.:)
I guess that the "can not create..." is the problems of the windows media player.
I think the ultimate solution is to have a web media player (e.g. wimply), since it would be easier for the members.

I am looking forwards to a free or cheaper plugin for the Jukebox.:D

Poag
04-16-2007, 10:20 AM
Hi there.

I have a relativly minor problem thats stopping me setting the mod active.

I use a seperate webserver to host my file downloads, this uses a seperate port, not matter how i try however I cannot get the mod to accept the seperate port as a "correct" host. It keeps trying to go through my file system and make new folders under :81

I upload files to /home/bob/downloads/uploads which goes to www.example.com/downloads/uploads
however i would like it to point to www.example.com:81/downloads/uploads

Any help greatly apprietiated :(

AndrewD
04-16-2007, 10:54 AM
Hi there.

I have a relativly minor problem thats stopping me setting the mod active.

I use a seperate webserver to host my file downloads, this uses a seperate port, not matter how i try however I cannot get the mod to accept the seperate port as a "correct" host. It keeps trying to go through my file system and make new folders under :81

I upload files to /home/bob/downloads/uploads which goes to www.example.com/downloads/uploads
however i would like it to point to www.example.com:81/downloads/uploads

Any help greatly apprietiated :(

OK, will take a look and reply soon. Thanks for the question.

mattcaswell
04-17-2007, 12:58 AM
Okay.. I guess I'm gonna win the prize for Village Idiot of the day, but I have spent all day trying to get LDM to install with the program manager. I select it just like I do any other program, but it never gets past a blue screen with
"Importing Product...please wait"


It just sits there and won't do anything. I installed a few other programs and then uninstalled them to try and eliminate that part as an issue.

Why won't it get past this point? I'm on a Mac Pro. I tried with WinXP and had the same issue so I'm sure it's not OS related. Unless it's browser related.. but I've tried Explorer, Safari, FireFox etc.

Any help is greatly appreciated,
Matt Caswell
http://www.thesabrehood.org

AndrewD
04-17-2007, 03:55 AM
Okay.. I guess I'm gonna win the prize for Village Idiot of the day, but I have spent all day trying to get LDM to install with the program manager. I select it just like I do any other program, but it never gets past a blue screen with
"Importing Product...please wait"


It just sits there and won't do anything. I installed a few other programs and then uninstalled them to try and eliminate that part as an issue.

Why won't it get past this point? I'm on a Mac Pro. I tried with WinXP and had the same issue so I'm sure it's not OS related. Unless it's browser related.. but I've tried Explorer, Safari, FireFox etc.

Any help is greatly appreciated,
Matt Caswell
http://www.thesabrehood.org

When very weird things happen, it often turns out that one of the code files hasn't been fully uploaded onto the server, or that there's a mix of files from different releases.

If that isn't the case, am happy to try to help if you contact me by PM with site details.

obmob
04-17-2007, 08:47 PM
Of course....O_o lol

mattcaswell
04-18-2007, 12:19 AM
When very weird things happen, it often turns out that one of the code files hasn't been fully uploaded onto the server, or that there's a mix of files from different releases.

If that isn't the case, am happy to try to help if you contact me by PM with site details.

I am the weakest link! Didn't have a file where it was supposed to be. It's installed and I guess its working. Gotta figure out how to get a link on the navbar. I'll search!

Thanks for the help,
Matt

3Dx
04-18-2007, 12:22 AM
v-nice work Great product! It works fine for me ;)

AndrewD
04-18-2007, 04:07 AM
I am the weakest link! Didn't have a file where it was supposed to be. It's installed and I guess its working. Gotta figure out how to get a link on the navbar. I'll search!

Thanks for the help,
Matt

Take a look at the on-line manual:

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

Simplest approach is to edit the navbar template

AndrewD
04-18-2007, 04:16 PM
Hi there.

I have a relativly minor problem thats stopping me setting the mod active.

I use a seperate webserver to host my file downloads, this uses a seperate port, not matter how i try however I cannot get the mod to accept the seperate port as a "correct" host. It keeps trying to go through my file system and make new folders under :81

I upload files to /home/bob/downloads/uploads which goes to www.example.com/downloads/uploads
however i would like it to point to www.example.com:81/downloads/uploads

Any help greatly apprietiated :(

Hello again. Can I ask for some more information on how you are trying to make this work?

I tested the following:

- I set up a trial server on port 81, and constructed an entry in LDM on another server pointing to http://trial_server:81/myfile.pdf. This is accessed and downloaded correctly via LDM.

- However, I don't understand why you are running two servers on the same machine. When LDM accesses files via a full url, the access is *much* less efficient than a direct filestore link, even if it is on the same machine. There is an overhead in http access which does not exist when you do a direct file read

- If you want LDM to get at files that are on the same computer but in a different part of the filestore, the easiest way to deal with this is via the LDM *local_file_root* and *local_file_root_prefix* parameters, e.g.
- set local_file_root = yes
- set local_file_root_prefix to /home/bob/dowloads
- set upload_dir to /uploads

I'm missing something important, I'm sure.

itsblack
04-18-2007, 05:04 PM
Hi Andrew, I find a new problem: the LDM search can't deal with unicode words.
When I search with english words, everything goes well. But when I search with chinese words, I got mysql error, like this
Database error in vBulletin 3.6.5:

Invalid SQL:
SELECT link.linkid AS linkid
FROM local_linkslink AS link
WHERE;

MySQL error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
Error Code : 1064
Date : Wednesday, April 18th 2007 @ 05:59:55 PM
Script : http://xxx.xxx.xxx/forum/local_links_search.php?action=show&literal=1&search=%E4%BA%BA%E6%96%87&desc=1&keys=1
...

MotMann
04-18-2007, 06:41 PM
Witch file i must use for a fresh install?

AndrewD
04-18-2007, 06:48 PM
Hi Andrew, I find a new problem: the LDM search can't deal with unicode words.
When I search with english words, everything goes well. But when I search with chinese words, I got mysql error, like this

OK, will try to investigate.

Does the regular vb search work with unicode?

AndrewD
04-18-2007, 06:56 PM
Witch file i must use for a fresh install?

This is explained in the online documentation, see http://www.eirma.org/wikis/index.php/Links_and_Downloads_Manager

If you want to completely remove an existing installation:

- first, deinstall via the vb admin/product page
- then, upload the file local_links_kill.php into your forums/admincp directory, and point your browser at it.

You'll find this file in the release/extras/kill-LDM subdirectory of the release

MotMann
04-18-2007, 07:16 PM
Look at the top of these post. There are two files to download. ;)

Witch one ist the last one? Or i must use all two files?

itsblack
04-18-2007, 11:18 PM
Does the regular vb search work with unicode?
Yes, it works.

itsblack
04-18-2007, 11:21 PM
Look at the top of these post. There are two files to download. ;)

Witch one ist the last one? Or i must use all two files?
You should use "links 2.2.7 post2.zip", it's the newest one.

ezpassage
04-19-2007, 02:10 PM
Hi

I installed this once and couldn't get it to work and then went looking for another program, but none seem to measure up and most don't seem to be still offering support. So I am back with some questions.:D

I think I've followed the install instructions correctly, I've even uninstalled and reinstalled. But the issues I am having are:

1. I uploaded a .jpg file from the admin account and also a test account. Everything goes smoothly until I go to the "gallery" and click an image to view. First, I go to the main page which show the list of categories (I have two categories with some subcategories) and then I click the category I uploaded to. Then, under "Entries" I click the image's name that I wish to view. It takes me to the next page which shows the name of the file, also a camera to the left, the date and hits amount are underneath. Now, when I click the link from there to view the file, I don't go anywhere. It seems like the page just reloads.

2. I installed the new thumbnail module by following your instructions. My cmps index page is called index and my forums have another name, so I put the code in the header template (I'm not sure where to put it exactly though). Now when I view my index page I get a database error that say there was an error in the where clause "Video" which is one of my category names.

Any suggestions? Thank you for the wonderful mod!

AndrewD
04-19-2007, 02:23 PM
Hi

I installed this once and couldn't get it to work and then went looking for another program, but none seem to measure up and most don't seem to be still offering support. So I am back with some questions.:D

I think I've followed the install instructions correctly, I've even uninstalled and reinstalled. But the issues I am having are:

1. I uploaded a .jpg file from the admin account and also a test account. Everything goes smoothly until I go to the "gallery" and click an image to view. First, I go to the main page which show the list of categories (I have two categories with some subcategories) and then I click the category I uploaded to. Then, under "Entries" I click the image's name that I wish to view. It takes me to the next page which shows the name of the file, also a camera to the left, the date and hits amount are underneath. Now, when I click the link from there to view the file, I don't go anywhere. It seems like the page just reloads.

2. I installed the new thumbnail module by following your instructions. My cmps index page is called index and my forums have another name, so I put the code in the header template (I'm not sure where to put it exactly though). Now when I view my index page I get a database error that say there was an error in the where clause "Video" which is one of my category names.

Any suggestions? Thank you for the wonderful mod!

Sorry that you are having difficulties.

I find it easiest to help with these problems if I can see for myself what is going wrong. Can you send me a PM with site details, and (ideally) an account with admin privileges? Will be happy to help you get things working.

ezpassage
04-19-2007, 03:33 PM
Thank you for the great support!

Wanted to make sure I put something to show that you took care of the problem
which was my own fault anyways:D

AndrewD
04-19-2007, 04:43 PM
Hi Andrew, I find a new problem: the LDM search can't deal with unicode words.
When I search with english words, everything goes well. But when I search with chinese words, I got mysql error, like this

Can you try the attached file, which goes in the forums dir. It no longer bombs on chinese characters, but I've no idea (being an ignorant Englishman) if it actually works.

itsblack
04-19-2007, 08:22 PM
Can you try the attached file, which goes in the forums dir. It no longer bombs on chinese characters, but I've no idea (being an ignorant Englishman) if it actually works.
Great! Thank you Andrew, it works!
But there's no highlight effect with those search words. Anyway, it's not a big deal.

obmob
04-19-2007, 10:55 PM
Help? T.T

Is there a way to show the current ratings and comments as default? o.o

AndrewD
04-20-2007, 04:01 AM
Help? T.T

Is there a way to show the current ratings and comments as default? o.o

I haven't forgotten... It's a modest change to the code/templates.

Ophelia
04-20-2007, 11:08 AM
Morning Andrew,

My team has put in a request for a feature, so here I am!

They would like to be able to upload more than one thing at a time. Something like Photopost does. I'll explain.

When you first hit "Upload Entry" in Photopost, it creates a page with (you can set the number) 10 boxes. You browse and find your 10 things, so in this case, perhaps it could be just the image, or just the zip file. You press submit and it brings you to a second page where you fine tune each entry. You put in a title, description, etc.

The other option they would like is to assign more than one zip file to one entry.

I'm not asking for much now am I :) :)

Have a wonderful weekend and thank you!

AndrewD
04-20-2007, 03:49 PM
Morning Andrew,

My team has put in a request for a feature, so here I am!

They would like to be able to upload more than one thing at a time. Something like Photopost does. I'll explain.

When you first hit "Upload Entry" in Photopost, it creates a page with (you can set the number) 10 boxes. You browse and find your 10 things, so in this case, perhaps it could be just the image, or just the zip file. You press submit and it brings you to a second page where you fine tune each entry. You put in a title, description, etc.

The other option they would like is to assign more than one zip file to one entry.

I'm not asking for much now am I :) :)

Have a wonderful weekend and thank you!

As these are both features that several others have asked for, I think they will have to form part of the next version. (Maybe I will take a world cruise first ;))

Saviour
04-20-2007, 04:54 PM
AndrewD...

Instead of reading over 100 pages of posts, I just thought I'd ask you through the board instead of just searching. I hope that's okay with you.

I recently started using vbulletin 3.6.5 and have installed the following plugins and/or mods:

SmilieCategory...YAAS 2.1.4...and ibProArcade 2.6.1+

I'm using the following styles:

Default Style...Hexcell Fluid...and Smooth Fluid

Two questions:

1) Does LDM interfere with any of the above?
2) You've listed two zipped files at the start of this thread...which do I use???

Your help is greatly appreciated...oh...one last thing...

I'm not that great when it comes to making modifications, but I have muddled through the above listings and got them installed. If I'm not comfortable adding LDM, is there anyone who can help me with the installation?

Again...thanks in advance for your help.

AndrewD
04-20-2007, 06:05 PM
AndrewD...

Instead of reading over 100 pages of posts, I just thought I'd ask you through the board instead of just searching. I hope that's okay with you.

I recently started using vbulletin 3.6.5 and have installed the following plugins and/or mods:

SmilieCategory...YAAS 2.1.4...and ibProArcade 2.6.1+

I'm using the following styles:

Default Style...Hexcell Fluid...and Smooth Fluid

Two questions:

1) Does LDM interfere with any of the above?
2) You've listed two zipped files at the start of this thread...which do I use???

Your help is greatly appreciated...oh...one last thing...

I'm not that great when it comes to making modifications, but I have muddled through the above listings and got them installed. If I'm not comfortable adding LDM, is there anyone who can help me with the installation?

Again...thanks in advance for your help.

There have been no reports of problems with those two hacks

You can use either one, but I suggest that you use the second. It has a few bugs fixed that are in the first, and there have been no reports of new bugs

If you have big problems, I will try to help, but I'll need full access to your site.

Good luck...

Edit: There is one point to think about. As your site installs more hacks, the amount of memory needed to run the php scripts increases. You can reach a stage where there is not enough memory available. It is not possible to say when/if this will happen (it depends on quite a number of factors, including the setting of memory_limit in phhp.ini, version of php/web server, which hacks, how integrated into vb, etc). The symptoms in LDM are blank screens during some operations, e.g. after editing enties. The fix is easy: increase the php.ini parameter meory_limit.

obmob
04-21-2007, 03:10 AM
I haven't forgotten... It's a modest change to the code/templates.This has been answered before? OO

Is this in the wiki? ^^,

AndrewD
04-21-2007, 04:24 AM
This has been answered before? OO

Is this in the wiki? ^^,

What I meant was 'I know how to do it and it's a straightforward task (I think ;))'

obmob
04-21-2007, 09:28 PM
But I don't know how to do it, that's why i'm asking. XD

LOL, now i'm confused ?.?

odinzu
04-21-2007, 10:10 PM
I am getting this error when I try to import or install the xml.... Please help me.

Warning: Unknown(/home/content/o/d/i/odinzu/html/forums/includes/local_links_init.php): failed to open stream: No such file or directory in /admincp/plugin.php(1941) : eval()'d code on line 3

Fatal error: (null)(): Failed opening required '/home/content/o/d/i/odinzu/html/forums/includes/local_links_init.php' (include_path='.:/usr/local/lib/php') in /home/content/o/d/i/odinzu/html/forums/admincp/plugin.php(1941) : eval()'d code on line 3

AndrewD
04-22-2007, 04:05 AM
I am getting this error when I try to import or install the xml.... Please help me.

It means that you have not uploaded the php code into the correct directories. In particular, it's not finding the local_link_init.php file in your forums/includes directory.

Make sure that all the files in the release/forums directories and subdirectories in the zip file have been put in the same place on your board.

AndrewD
04-22-2007, 04:07 AM
But I don't know how to do it, that's why i'm asking. XD

LOL, now i'm confused ?.?

I'm sorry if I've not been clear.

You made a couple of requests - for a gallery type of linkbit and for a different display of comments and ratings (to show the most recent directly rather than have the three most recent on a drop down menu).

Both of these need some fairly minor changes to the code/template, so I've got them on the list for 2.2.8.

obmob
04-23-2007, 12:03 AM
OHHH!!! geez, i thought somewhere, somehow this was already done, at least the comments one.

WOW, thanks Andrew, now it's clear and i'll wait patiently as a good kid. XD

Poag
04-24-2007, 01:05 PM
Hello again. Can I ask for some more information on how you are trying to make this work?

I tested the following:

- I set up a trial server on port 81, and constructed an entry in LDM on another server pointing to http://trial_server:81/myfile.pdf. This is accessed and downloaded correctly via LDM.

- However, I don't understand why you are running two servers on the same machine. When LDM accesses files via a full url, the access is *much* less efficient than a direct filestore link, even if it is on the same machine. There is an overhead in http access which does not exist when you do a direct file read

- If you want LDM to get at files that are on the same computer but in a different part of the filestore, the easiest way to deal with this is via the LDM *local_file_root* and *local_file_root_prefix* parameters, e.g.
- set local_file_root = yes
- set local_file_root_prefix to /home/bob/dowloads
- set upload_dir to /uploads

I'm missing something important, I'm sure.


Hi Andrew, the reason I have to run them on seperate ports is down to user load, whena file goes up there are generally 100s of downloads started straight away and these continue for some hours before dieing down to a few per hour.

The problem I have is not bandwidth, but instead memory, to prevent the machine from disk caching I used lighttpd for downloads [it doesn't spawn extra servers] but has less functionality, and apache for web pages.


Thus what I would like is for client to upload to say http://www.example.net/downloads [/home/bob/downloads] but there download to be served from http://www.example.net:81/downloads [/home/bob/downloads]

What I am looking for LDM to do is automatically add the :81 into the download url so they are served from the correct process, instead of having to edit them by hand after using the built in file uploader you have supplied.


So we are using the same physical machine, same file system, simply a seperate process ona different port to serve the files. Keeping downloads and webpages seperate as much as I can :)

I hope this clears up what I am trying to do :)

I am sorry for not responding sooner, work has had me tied up recently.

Thanks

-Alex

Ophelia
04-26-2007, 01:03 PM
Hello Andrew.

We moved to a new server yesterday, and now all the thumbs are no longer working.

In shell I went and typed in chmod -R 777 thumbs

This set the directory in forum/thumbs where our thumbs are stored to 777.

I also 777'ed team uploads

I verified that they are indeed 777.

I then went in to settings to make sure everything was the same there.

upload_dir
/forum/teamuploads
thumbs_dir
/forum/thumbs/
file_icons_dir

This is all correct.

I then went in and reset the thumbnails.

Nothing.

I even cleared my cache :lol to make sure it wasn't that.

Any ideas on what I'm doing wrong?

AndrewD
04-26-2007, 01:55 PM
Hello Andrew.

We moved to a new server yesterday, and now all the thumbs are no longer working.

In shell I went and typed in chmod -R 777 thumbs

This set the directory in forum/thumbs where our thumbs are stored to 777.

I also 777'ed team uploads

I verified that they are indeed 777.

I then went in to settings to make sure everything was the same there.

upload_dir
/forum/teamuploads
thumbs_dir
/forum/thumbs/
file_icons_dir

This is all correct.

I then went in and reset the thumbnails.

Nothing.

I even cleared my cache :lol to make sure it wasn't that.

Any ideas on what I'm doing wrong?

I took a look at your site and can't see anything obvious. Pls can you upgrade AndrewD's account so that I can get at the LDM admin page and your main admincp page (I need the maintenance section).

Ophelia
04-26-2007, 02:01 PM
Andrew, you have access now through the AndrewD account. Thank you!!

AndrewD
04-26-2007, 02:39 PM
Andrew, you have access now through the AndrewD account. Thank you!!

Your new server doesn't have the php GD2 library installed. So LDM is creating null images.

Ophelia
04-26-2007, 02:54 PM
Thank you Andrew, just put a ticket in to get it installed.

Ophelia
04-26-2007, 03:41 PM
We're good to go now Andrew! Thank you for your help!!

aryapsh
04-26-2007, 04:26 PM
I've checked the file, as I use the link directly in my navegation it works but when I enter them into the download center I recieved a message says : "Link check failed. For a url pointing to a remote site, this may not be a cause for concern, as not all sites reply to the check. For a local file, something is wrong." and I can't download the file

AndrewD
04-26-2007, 04:35 PM
I've checked the file, as I use the link directly in my navegation it works but when I enter them into the download center I recieved a message says : "Link check failed. For a url pointing to a remote site, this may not be a cause for concern, as not all sites reply to the check. For a local file, something is wrong." and I can't download the file

Do you want to send me a PM with the full url to this file?

aryapsh
04-26-2007, 04:45 PM
Do you want to send me a PM with the full url to this file?
yes sure

aryapsh
04-26-2007, 04:59 PM
i have sent you

AndrewD
04-26-2007, 05:38 PM
Hi Andrew, the reason I have to run them on seperate ports is down to user load, whena file goes up there are generally 100s of downloads started straight away and these continue for some hours before dieing down to a few per hour.

The problem I have is not bandwidth, but instead memory, to prevent the machine from disk caching I used lighttpd for downloads [it doesn't spawn extra servers] but has less functionality, and apache for web pages.


Thus what I would like is for client to upload to say http://www.example.net/downloads [/home/bob/downloads] but there download to be served from http://www.example.net:81/downloads [/home/bob/downloads]

What I am looking for LDM to do is automatically add the :81 into the download url so they are served from the correct process, instead of having to edit them by hand after using the built in file uploader you have supplied.


So we are using the same physical machine, same file system, simply a seperate process ona different port to serve the files. Keeping downloads and webpages seperate as much as I can :)

I hope this clears up what I am trying to do :)

I am sorry for not responding sooner, work has had me tied up recently.

Thanks

-Alex


Alex, you should be able to do this with LDM's pseudo 'mod_rewrite', see http://www.eirma.org/wikis/index.php/Hacking_LDM

LDM has a feature which does simple rewrites on urls at the very last stage before attempting to deliver them. If you combine this with setting force_redirect to 1, then you should be able to get LDM to manage the upload and have lighttpd handle the download.

Try creating a rewrite.txt file something like the following (change to match your site)

RewriteRule /downloads http://www.example.net:81/downloads

Upload it onto your site and use ldm/admin/settings to point mod_rewrite at it.

Poag
04-27-2007, 12:24 PM
Fantastic, that worked perfectly andrew, some minor playing about with folder and file permissions but I have it all working self suffiantly now.

Thanks for you helpa nd the great mod!

digitalSite
04-27-2007, 09:27 PM
Hello:

I have installed this mod, however, I need help please. I am confused as to how to confure it. I created a forum on my vb and set the permissions I want. I have added a category, set permissions on that, and added an entry. When I log into my vb, I only see an empty forum. Where is the category and the entry? I don't get it :( Can someone help me please?

digitalSite
04-27-2007, 09:45 PM
Okay it's showing up now...

Under LDM Admin, under Settings, edit category, I checked the checkbox that says "Also make this forum the parent of all links currently in the category" and also I checked the checkbox to create a subforum for the links.

I logged into my vB and now I see the forum with the subforum and there is my link. I think this is how it should work :)

AndrewD
04-28-2007, 05:36 AM
Okay it's showing up now...

Under LDM Admin, under Settings, edit category, I checked the checkbox that says "Also make this forum the parent of all links currently in the category" and also I checked the checkbox to create a subforum for the links.

I logged into my vB and now I see the forum with the subforum and there is my link. I think this is how it should work :)

I'm concerned that you may be misunderstanding something.

Normally, the LDM library is completely separate from your forums. You do not see the entries apperaing inside your forums unless you have also installed the "autocreate_threads" extra.

The connection with the forums that you are describing concerns access rights. To simplify matters, LDM can "pick up" the access permissions from a specified forum and associate these permissions with all, or with specified, categories and entries. That's the process you have just described. But it doesn't 'place' the entry in the forum.

Ophelia
04-28-2007, 01:57 PM
Good day Andrew!

Here is what I needed to do today.

I created a new sub-category in LDM and clicked the "Create a sub forum" for that LDM category.

The only problem was that where I wanted it .. it was set up like this...

Forum Category
- Sub Category
-- Sub-Sub Category

I needed the new forum placed inside an existing sub-category in the forums. Is this an option that can be added at some time or would that make it way to confusing?

efil
04-28-2007, 06:10 PM
Hi,
Is there an option for watermark like in YouTube?

Slave
04-29-2007, 01:18 AM
Good day Andrew!

Here is what I needed to do today.

I created a new sub-category in LDM and clicked the "Create a sub forum" for that LDM category.

The only problem was that where I wanted it .. it was set up like this...

Forum Category
- Sub Category
-- Sub-Sub Category

I needed the new forum placed inside an existing sub-category in the forums. Is this an option that can be added at some time or would that make it way to confusing?
As long as you have picked the Sub Category from the list of available forums it should create the Sub Sub Category link forum fine .. unless I have miss understood you and you mean that the Sub Category is already a link back to the LDM, in which case I don't think LDM can do it.

If you pick the same Forums Category for 2 different Categories you'll get 2 linked Sub Categories within the same Forum if that is any good?

nanaimobar
04-30-2007, 09:21 PM
Is there a way to add an expiration date to files in admin?

When a new file is added to a category the "When submitted" date is available. Is it possible to add an expiry date so that a file is either automatically deleted or not displayed after a set date?

There is the "Review frequency" box which one could set for x-number of days. If this could function as an expiration date, how could I add a button or whatever next to it for automatic deletion after the x-number of days?

Ophelia
04-30-2007, 09:28 PM
Is there a way to add an expiration date to files in admin?

When a new file is added to a category the "When submitted" date is available. Is it possible to add an expiry date so that a file is either automatically deleted or not displayed after a set date?

There is the "Review frequency" box which one could set for x-number of days. If this could function as an expiration date, how could I add a button or whatever next to it for automatic deletion after the x-number of days?

Are you running the most version? If so, then yes, there is this option. We are utilizing it on our site and it works perfectly. You can set the expiration date by category or whole manager. We have it set up for a category.

Admin > Categories > Edit Category > Control Settings (there are 3 buttons to the right top.. this is in there)

Find links_expiry_days and input how long you want visible files to stay active.. so if you want things to expire after 1 day of being visible, put in 1.

Find links_expired_catid and pick what folder you would like the file to be moved to after it's expired.

Andrew maybe can fill in more options, but this is what we use it for, and like I said, it works perfectly.

AndrewD
05-01-2007, 04:43 AM
Are you running the most version? If so, then yes, there is this option. We are utilizing it on our site and it works perfectly. You can set the expiration date by category or whole manager. We have it set up for a category.

Admin > Categories > Edit Category > Control Settings (there are 3 buttons to the right top.. this is in there)

Find links_expiry_days and input how long you want visible files to stay active.. so if you want things to expire after 1 day of being visible, put in 1.

Find links_expired_catid and pick what folder you would like the file to be moved to after it's expired.

Andrew maybe can fill in more options, but this is what we use it for, and like I said, it works perfectly.


Just to add a little more info..

1) If you enable links_expiry_days, then LDM handles post-dating as well as expiry, in other words entries will not become visible until the entry's specified creation date and will then disappear/be moved to another category after the specified period.

2) To set this value globally rather than per category, visit the LDM/admin/settings page and change link_expiry_days etc there

3) If you set the value in a category, remember that this value will also apply in its subcategories unless you give a new value there.

AndrewD
05-01-2007, 06:50 AM
Hi,
Is there an option for watermark like in YouTube?

Am afraid not. This would require (I think) to be able to process the contents of the file, which is well outside the capabilities of this hack.

AndrewD
05-01-2007, 07:35 AM
Good day Andrew!

Here is what I needed to do today.

I created a new sub-category in LDM and clicked the "Create a sub forum" for that LDM category.

The only problem was that where I wanted it .. it was set up like this...

Forum Category
- Sub Category
-- Sub-Sub Category

I needed the new forum placed inside an existing sub-category in the forums. Is this an option that can be added at some time or would that make it way to confusing?


I think I understand you - if so, the situation is basically as Slave has explained.

Am I right in the following:

You want to 'autocreate' forums/subforums which have the same structure as your categories/subcategories? So if you create this structure in LDM:

category 1
-- subcategory 2
------ subsubcategory 3

you want to create forums as follows:

forum 1 linked to category 1
-- subforum 2 linked to subcategory 2
------ subsubforum 3 linked to subsubcategory 3

Currently, when LDM creates a linked subforum, it turns off the "Show this Forum and Child Forums on the Forum Jump Menu" option for this subforum. So you don't the chance to select it as the parent the next time round (or to use it to give the access permissions for other categories/entries). Actually, this is by chance, not design - I think it's one of the changes in vbulletin that I missed in going from vb3.5 to 3.6.

If you go into vb/admin/forums and switch on "Show this Forum and Child Forums on the Forum Jump Menu" for the new linked forum, you should be ok.

Even though vBulletin will allow this nested structure to exist, because the subforums are 'links', it may be difficult for the user to drill down on the forumdisplay pages to get past the first linked subforum. I played around with the vb forumlistings display options - Depth of Sub-Forums - one can get an indefinite depth of linked subforums to show up in the forumdisplay, but only as a straight list.

I am changing this behaviour in v2.2.8 so that the 'autocreated' forums appear by default on the forumselect menus.

nanaimobar
05-01-2007, 05:47 PM
Just to add a little more info..

1) If you enable links_expiry_days, then LDM handles post-dating as well as expiry, in other words entries will not become visible until the entry's specified creation date and will then disappear/be moved to another category after the specified period.

2) To set this value globally rather than per category, visit the LDM/admin/settings page and change link_expiry_days etc there

3) If you set the value in a category, remember that this value will also apply in its subcategories unless you give a new value there.

Thanks Andrew, Ophelia. I'll update from 2.2.6 to 2.2.7 post2.

Update: Yikes! Incredible. Works like a charm. No problems updating. No problems finding way around Admin sections. Much complexity presented in an easy to follow design, even for a relatively new user such as I. Grrrrrrrrr-r-r-reat.

wolfe
05-01-2007, 08:06 PM
problem all my cats are adding this local_links/links/1 in the url and the 1 is the cat id how do i stop this happening i keep getting page not found.

Gurilla
05-01-2007, 08:48 PM
I am your 500th install.

Love the mod!

RedGTiVR6
05-01-2007, 10:18 PM
Can someone tell me what the difference is between this hack and DownloadsII?

This hack seems to be way more active and more supported, which is a plus.

Are the two even comparable? Am I just overlooking something obvious here?

Thanks in advance!

AndrewD
05-02-2007, 02:58 AM
problem all my cats are adding this local_links/links/1 in the url and the 1 is the cat id how do i stop this happening i keep getting page not found.

I think you've enabled the seo_friendly option on the LDM admin pages but you haven't configured your web werver to recognise this.

Mupetz
05-02-2007, 07:46 AM
Hello AndrewD,
I cannot use the rewrite rules because of my server.
Instead of that i would like to rename /local_links.php to /subtitles.php. If you allow me to do so, what do i have to modify ?
Thank you very much.

AndrewD
05-02-2007, 10:35 AM
Can someone tell me what the difference is between this hack and DownloadsII?

This hack seems to be way more active and more supported, which is a plus.

Are the two even comparable? Am I just overlooking something obvious here?

Thanks in advance!

Far be it for me to comment...

The two hacks developed along similar lines for quite a while, but there's not been much discussion here about Downloads II for over a year.

I try to give LDM good support, and it's still under development as new needs arise. That's about all I can say.

AndrewD
05-02-2007, 10:37 AM
Hello AndrewD,
I cannot use the rewrite rules because of my server.
Instead of that i would like to rename /local_links.php to /subtitles.php. If you allow me to do so, what do i have to modify ?
Thank you very much.

Indeed, this is straightforward. The instructions are in the wiki, see http://www.eirma.org/wikis/index.php/Hacking_LDM. Let me know if you have problems.

RedGTiVR6
05-02-2007, 12:29 PM
Far be it for me to comment...

The two hacks developed along similar lines for quite a while, but there's not been much discussion here about Downloads II for over a year.

I try to give LDM good support, and it's still under development as new needs arise. That's about all I can say.


Thanks for the reply!

*goes off to download and install!*

RedGTiVR6
05-02-2007, 12:45 PM
man - there are a ton of options here.

One suggestion if I may. Some of us are not completely savy when it comes to some of these terms. Might it be possible to make the instructions a bit easier for those of us? I'm having a bit of a hard time knowing what I should do with all of these settings.

AndrewD
05-02-2007, 07:10 PM
man - there are a ton of options here.

One suggestion if I may. Some of us are not completely savy when it comes to some of these terms. Might it be possible to make the instructions a bit easier for those of us? I'm having a bit of a hard time knowing what I should do with all of these settings.

I'm sympathetic but...

Maybe others could also lend a hand?

obmob
05-03-2007, 02:48 AM
Can someone tell me what the difference is between this hack and DownloadsII?

This hack seems to be way more active and more supported, which is a plus.

Are the two even comparable? Am I just overlooking something obvious here?

Thanks in advance!It's good to say there is no support like Andrew's! ^^

GrendelKhan{TSU
05-03-2007, 04:40 PM
Can someone tell me what the difference is between this hack and DownloadsII?

This hack seems to be way more active and more supported, which is a plus.

Are the two even comparable? Am I just overlooking something obvious here?

Thanks in advance!

since Andrew is being humble...
no, they are not even comparable, imo...as LDM pwns DownloadsII hard in functionality and support. lol. Its true, but to be more serious... here's an easy answer:

LINKS and Downloads Manager
vs
(just) DownloadsII

So everything download directories have PLUS everything and more that a LINKS directory does. and that would just be the tip of the iceberg. ;)

man - there are a ton of options here.

One suggestion if I may. Some of us are not completely savy when it comes to some of these terms. Might it be possible to make the instructions a bit easier for those of us? I'm having a bit of a hard time knowing what I should do with all of these settings.

if you could be more specific...
I'm sure many here would be happy to lend a hand and explanations. :)

plus, the wiki has a lot more information than one might think...definitely look through that carefully as well. the explanation you seek... might just be in there already.

ps. Howdy And!!! :)

RedGTiVR6
05-03-2007, 06:20 PM
i was going through the wiki at the same time.

TheHeartSmasher
05-03-2007, 09:19 PM
This is a really good mod the only problems I have had with it are.
When saving settings in the admin page I would get prompted to download the php file
When users download a file let's say I direct link it from one of my other websites the link is shown in the url and instead of the file downloading (a save as prompt is shown) the page loading progress bar in the bottom of the browser fills up slowly (takes place of downloading).

Also wondering is there a way for my other direct linked files from my other website can be somewhat masked?

Slave
05-04-2007, 12:14 AM
I am changing this behaviour in v2.2.8 so that the 'autocreated' forums appear by default on the forumselect menus.

I think you'll find it's like that Andrew because I requested it not to show in the forums list .. many, many .... many months ago :)

Perhaps make it an admin setting?

AndrewD
05-04-2007, 03:58 AM
I think you'll find it's like that Andrew because I requested it not to show in the forums list .. many, many .... many months ago :)

Perhaps make it an admin setting?

Thanks for reminding me. I'd forgotten that, and you're right - this should be an option.

AndrewD
05-04-2007, 04:12 AM
This is a really good mod the only problems I have had with it are.
When saving settings in the admin page I would get prompted to download the php file
When users download a file let's say I direct link it from one of my other websites the link is shown in the url and instead of the file downloading (a save as prompt is shown) the page loading progress bar in the bottom of the browser fills up slowly (takes place of downloading).

Also wondering is there a way for my other direct linked files from my other website can be somewhat masked?

The first problem sounds like a configuration issue within your web server. I'm not sure exactly what.

For the other questions, I'm a little unclear how you are setting up these entries on your site. I've registered an account on your site (AndrewD) - if you want me to take a look, am happy to do so, but will need that account upgrading to be an admin.

Philipaclayton
05-07-2007, 11:05 AM
this works for 3.6.5 right?

AndrewD
05-07-2007, 11:16 AM
this works for 3.6.5 right?

Right

benjaminkramer
05-07-2007, 03:41 PM
Hi I use vb 3.6.5 and the latest version of "Links and Downloads", when I upload a zip file with 159,31 MB via FTP and link with Links and Downloads Manager it shows me the size 159.31 MBytes.
All seems correct but when I download it I only get a filesize of 87,2 MB (but the Download Manager of Firefox shows me the correct filesize).

What is wrong?

Thx

P.S. When I download it via sftp from my server I get the right size and I can open the file.

AndrewD
05-07-2007, 04:28 PM
Hi I use vb 3.6.5 and the latest version of "Links and Downloads", when I upload a zip file with 159,31 MB via FTP and link with Links and Downloads Manager it shows me the size 159.31 MBytes.
All seems correct but when I download it I only get a filesize of 87,2 MB (but the Download Manager of Firefox shows me the correct filesize).

What is wrong?


Thx

P.S. When I download it via sftp from my server I get the right size and I can open the file.

I take it that LDM's download is corrupt?

I imagine that your server is using all its allowed cpu time, typically 30 seconds. How have you got the entry set up in LDM? - as a full url or as a local filename - if the first, then the cpu usage is *much* greater.

benjaminkramer
05-07-2007, 04:41 PM
as local link. It looks like this:

/upload/ana_lpz/filename.zip

=>I can download the whole file, but it is not completly saved. I do not understand it.
Do I have to set preferences?

Settings in LDM:
local_file_root Server
local_file_root_prefix
upload
Datei-Uploads Enabled
upload_dir
upload
thumbs_dir
links_downloads/thumbs
file_icons_dir
links_downloads/icon/
PHP 5.1.5
allow_url_fopen Ja
cURL Nein
GD2 Ja
open_basedir (nicht bestimmt)
post_max_size 5M
upload_max_filesize 4M
MySQL 5.0.21
wait_timeout 28800

By the way: Why can't the users download files which are in the statisik or when they search for one file. They cannot click on it...but when they go direct in the categorie to the same file they can access the Link. What do I have to set for this usergroup?

AndrewD
05-07-2007, 06:35 PM
as local link. It looks like this:

/upload/ana_lpz/filename.zip

=>I can download the whole file, but it is not completly saved. I do not understand it.
Do I have to set preferences?

Settings in LDM:
local_file_root Server
local_file_root_prefix
upload
Datei-Uploads Enabled
upload_dir
upload
thumbs_dir
links_downloads/thumbs
file_icons_dir
links_downloads/icon/
PHP 5.1.5
allow_url_fopen Ja
cURL Nein
GD2 Ja
open_basedir (nicht bestimmt)
post_max_size 5M
upload_max_filesize 4M
MySQL 5.0.21
wait_timeout 28800

By the way: Why can't the users download files which are in the statisik or when they search for one file. They cannot click on it...but when they go direct in the categorie to the same file they can access the Link. What do I have to set for this usergroup?

I don't know. Do you want me to take a look at your board? Send me a PM if so, with an account that has admin privs.

Alfa1
05-07-2007, 10:30 PM
How does the thread created by autothread look like? Can you show an example?
Does it contain the description of the link/file?
Do I understand correctly that the comments/ratings are also posted in the thread or is this only the notification of comments being placed?

To add the fix to 2.2.7 do I need to upgrade the whole thing or only replace certain php files?

AndrewD
05-08-2007, 04:13 AM
How does the thread created by autothread look like? Can you show an example?
Does it contain the description of the link/file?
Do I understand correctly that the comments/ratings are also posted in the thread or is this only the notification of comments being placed?

To add the fix to 2.2.7 do I need to upgrade the whole thing or only replace certain php files?

See attached images, which show the entry in LDM + the autocreated thread and post for the entry and a comment.

The first post in the thread is constructed by wrapping the description in the the ldm_thread_create_body phrase. Other parts come from the ldm_thread_create_title and ldm_thread_create_relink phrases. The text for new comments comes from the ldm_post_addrating_body phrase.

To install it, you simply go to vb/admin/products and plugins/download upload plugins and import extras/autocreate-threads/autocreate-plugin.xml

The thread is only created when the entry has an associated forum, either chosen explicitly or by default_forumid

rickyreter
05-08-2007, 08:56 AM
wOULD LOVE TO HAVE THIS INSTALLED BUT FIND IT A LITTLE DIFFICULT,SO IF ANYONE WOULD LIKE TO IN STALL 4 FREE I WOULD BE GRATEFUL.:D

pETER

Alfa1
05-08-2007, 02:31 PM
Thanks Andrew.

You missed this:
To add the fix to 2.2.7 do I need to upgrade the whole thing or only replace certain php files?



I have installed the create autothread feature. Where do I set the forum to place threads in?
Where do I find the phrases?

AndrewD
05-08-2007, 03:52 PM
Thanks Andrew.

You missed this:




I have installed the create autothread feature. Where do I set the forum to place threads in?
Where do I find the phrases?

I didn't miss anything - I don't think :)

I assume you're running version 2.2.7. The plugin installation does everything - there are no more files to change.

You set the forum in one of three ways, exactly as with the forums-based access permissions.

a) LDM admin setting default_forumid creates a default for all new entries
b) Create/edit category, and choose the associated forum on that menu. If you wish, retro-apply it to all existing entries. That forum will be the default for all new entries in the category
c) Create/edit entry, choose the associated forum.

All vbulletin phrases are accessed by vb/admin/languages and phrases. Search for the phrase names I mentioned. Alternatively, edit the LDM installation .xml file.

Alfa1
05-08-2007, 05:06 PM
I didn't miss anything - I don't think :)

I assume you're running version 2.2.7. The plugin installation does everything - there are no more files to change.
You are talking about upgrading LDM 2.2.7 to the 2.2.7 fix right? Not about the autocreate threads plugin.
As far as I can see 2.2.7 has a product, not a plug in: product-eirma_ldm.xml
I am not refering to the autocreate threads extra, but to LDM in general and the fix you released for 2.2.7.

b) Create/edit category, and choose the associated forum on that menu. If you wish, retro-apply it to all existing entries. That forum will be the default for all new entries in the category
If I go to the category in my LDM -> 'edit category'-> Parent Forum -> select appropriate forum
then nothing happens with new entries. What am I doing wrong?

AndrewD
05-09-2007, 03:57 AM
You are talking about upgrading LDM 2.2.7 to the 2.2.7 fix right? Not about the autocreate threads plugin.
As far as I can see 2.2.7 has a product, not a plug in: product-eirma_ldm.xml
I am not refering to the autocreate threads extra, but to LDM in general and the fix you released for 2.2.7.

Sorry, we were talking at cross purposes.

There are minor changes in quite a lot of files between 2.2.7 and the 2.2.7-post2. So it's best to re-upload all the php files and then reinstall the product xml.

If I go to the category in my LDM -> 'edit category'-> Parent Forum -> select appropriate forum
then nothing happens with new entries. What am I doing wrong?

I've done a test run on your board, and left the results for you to see.
You'll find that the autothread has been created and the link set up.

Alfa1
05-09-2007, 12:47 PM
Thanks. I have been able to recreate this, by following your option C:
c) Create/edit entry, choose the associated forum.

But not with option B, which I would like to use, since it doesn't require members to select a forum:
b) Create/edit category, and choose the associated forum on that menu. If you wish, retro-apply it to all existing entries. That forum will be the default for all new entries in the category


Edit: for some reason members can now only see 4 categories, instead of all. Some categories do not show all files. Moderators and admins see all categories and files without problems. Can this have to do with permissions of a forum getting applied to my total LDM? With trying to use option B above, I set the Parent forum, which in turn applies forum permissions to that category.

Rouzbeh1
05-09-2007, 05:27 PM
hi Andrew
i have installed the ldm_new_thumb, but it's covering only one style.
what do i do to use the same module for one other style?(without having one module for each style)
thanks in advance

AndrewD
05-10-2007, 04:16 AM
Edit: for some reason members can now only see 4 categories, instead of all. Some categories do not show all files. Moderators and admins see all categories and files without problems. Can this have to do with permissions of a forum getting applied to my total LDM? With trying to use option B above, I set the Parent forum, which in turn applies forum permissions to that category.


This is probably related to forum permissions. Easiest way to see what is going on is to visit LDM/admin/categories. Down the bottom of the page, you will find a tabulation of the forums associated with categories and with entries.

You can also use the links on that page (if you are brave) to carry out 'mass edits' of the asociated forums (and many other things) on large groups of entries.

Thing to note: Forum is associated with an entry or category at the moment the entry/category is created. By default, the category picks up default_forumid, and the entry picks up the category's forum. If you change the default forum or you change the category forum, this does not automatically get reapplied unless you tell LDM to do so.

AndrewD
05-10-2007, 04:19 AM
hi Andrew
i have installed the ldm_new_thumb, but it's covering only one style.
what do i do to use the same module for one other style?(without having one module for each style)
thanks in advance

I don't know that much about vbadvanced. When you install a vba module, you have to specify the style into which the templates are placed. Isn't this about getting the style hierarchy correct, so that you choose a style which is a parent of all the styles of interest?

Anyone else know the answer?

Rouzbeh1
05-10-2007, 08:35 AM
hmm, no idea
i've done this with REimporting the module for the other style and then deleted it again.
thanks anyway

this module is exactly what i needed. :)

Alfa1
05-10-2007, 01:00 PM
This is probably related to forum permissions. Easiest way to see what is going on is to visit LDM/admin/categories. Down the bottom of the page, you will find a tabulation of the forums associated with categories and with entries.
Yes, that showed the problem. I had assigned all categories to a forum that had limited user rights using method A you described. This works as well. LDM entries caused threads in that forum.
I don't know why, but method C now works as well. I guess method A was overriding method C.

Can it be that entries with titles above 85 characters don't get added to New threads?

Thing to note: Forum is associated with an entry or category at the moment the entry/category is created. By default, the category picks up default_forumid, and the entry picks up the category's forum. If you change the default forum or you change the category forum, this does not automatically get reapplied unless you tell LDM to do so.
I reapplied the association off all files within the Law LDM section with the Law forum category. Then posted a test comment on one of the LDM entries(Law), but nothing happened. No thread showed up. What do I do now?

efil
05-10-2007, 02:51 PM
Hi,
I get this error.

see attach,

specmav
05-11-2007, 03:13 AM
I have installed it, set up all the settings and made sure the permissions were correct but I am getting an error when trying to view an entry i created.

I made a test category and threw a entry in to see how it all works. When I add the entry it shows up in the category with the (1 new) but when I click on the category it gives me an error:

Sorry - there is nothing to show you (no permissions, all entries hidden, etc...)

I made sure all the permissions were correct and I am logged in as an admin. Can someone help me fix this issue?

Thanks!

AndrewD
05-11-2007, 04:16 AM
Hi,
I get this error.

see attach,

You've got an old version of the ll_recent phrase. This used to read (in English)


{2} new entries {4}since {1}


and now reads


{2} new entries {3}since {1}


Edit the phrase by going to VB/admin/languages and phrases

AndrewD
05-11-2007, 04:17 AM
I have installed it, set up all the settings and made sure the permissions were correct but I am getting an error when trying to view an entry i created.

I made a test category and threw a entry in to see how it all works. When I add the entry it shows up in the category with the (1 new) but when I click on the category it gives me an error:

Sorry - there is nothing to show you (no permissions, all entries hidden, etc...)

I made sure all the permissions were correct and I am logged in as an admin. Can someone help me fix this issue?

Thanks!

Yes, happy to help if I can. This will be something to do with conflicting permissions.

Send me a PM with details to your board and a userid with admin privs and I'll gladly take a look.

AndrewD
05-11-2007, 04:30 AM
Yes, that showed the problem. I had assigned all categories to a forum that had limited user rights using method A you described. This works as well. LDM entries caused threads in that forum.
I don't know why, but method C now works as well. I guess method A was overriding method B.

Can it be that entries with titles above 85 characters don't get added to New threads?

Sorry you're having problems getting this working the way you want. When you add the new entry, the Parent Forum section on the form shows you which forum will be used as the 'Associated Forum' (see picture). For admins, the left side of the form (under the words Parent Forum) show which forum is going to be used by default, and the menu iteslef allows you to change that forum.

I don't think there's any limitation on the length of the title - not that I've included, but there are checked to ensure that the forum is open for new posts, etc.


I reapplied the association off all files within the Law LDM section with the Law forum category. Then posted a test comment on one of the LDM entries(Law), but nothing happened. No thread showed up. What do I do now?

With the current version of the plugins, comments are only displayed as posts if a thread has already been created when the LDM entry was added. It doesn't have to work that way, but that seemed the most sensible approach to me.

obmob
05-11-2007, 03:11 PM
hi Andrew
i have installed the ldm_new_thumb, but it's covering only one style.
what do i do to use the same module for one other style?(without having one module for each style)
thanks in advance

I don't know that much about vbadvanced. When you install a vba module, you have to specify the style into which the templates are placed. Isn't this about getting the style hierarchy correct, so that you choose a style which is a parent of all the styles of interest?

Anyone else know the answer?Well, you need to create a new template inside your styles, each style will need a new template, unless you have parent styles. :D

digital3
05-11-2007, 04:50 PM
When attempting to stream a linked file from the jukebox I am having an issue. I have some files stored on another domain on my server and the LDM, when trying to stream, is combining both URLs together and can't locate the file.

example: http://www.domainoftheldm.com/http://www.domainthefileison.com/directory/filename.avi

Above is how the LDM jukebox is seeing this file. I can download it but not stream it. Even downloading it though opens a new IE window and then the download selection box appears whereas downloading local files immediately gives me a download selection box without opening a new browser window.

I am using remote linking to prevent having to upload all these files one at a time through the LDM interface. Any help would be appreciated.

AndrewD
05-11-2007, 07:51 PM
When attempting to stream a linked file from the jukebox I am having an issue. I have some files stored on another domain on my server and the LDM, when trying to stream, is combining both URLs together and can't locate the file.

example: http://www.domainoftheldm.com/http://www.domainthefileison.com/directory/filename.avi

Above is how the LDM jukebox is seeing this file. I can download it but not stream it. Even downloading it though opens a new IE window and then the download selection box appears whereas downloading local files immediately gives me a download selection box without opening a new browser window.

I am using remote linking to prevent having to upload all these files one at a time through the LDM interface. Any help would be appreciated.

Which version and which media player? I think I've fixed this quite recently.

digital3
05-12-2007, 12:11 AM
Which version and which media player? I think I've fixed this quite recently.
2.2.7 It was doing it with all media players.

digital3
05-12-2007, 12:21 AM
I upgraded to the post2 release of 2.2.7. The issue is persisting. I will PM you with a link to look at it.

AndrewD
05-12-2007, 06:22 AM
I upgraded to the post2 release of 2.2.7. The issue is persisting. I will PM you with a link to look at it.

Interesting site...

I think the fix is in the 2.2.8 code - can you try uploading this file into your includes directory.

If this doesn't fix it, can you send me a PM pointing at a particular entry which creates the problem.

thanks

Alfa1
05-12-2007, 01:19 PM
Andrew, I've been testing this in various ways, but still cant get this to work:b) Create/edit category, and choose the associated forum on that menu. If you wish, retro-apply it to all existing entries. That forum will be the default for all new entries in the category
Can you please take a look?

digital3
05-12-2007, 01:41 PM
Interesting site...

I think the fix is in the 2.2.8 code - can you try uploading this file into your includes directory.

If this doesn't fix it, can you send me a PM pointing at a particular entry which creates the problem.

thanks

It *is* interesting, isn't it? :D

The code fix doesn't seem to be working, unfortunately. I will PM you a direct link to a file that is hosted on another domain on my server. You already have my admin login.

digital3
05-12-2007, 01:53 PM
Update: The files do stream but not until they are 100% downloaded. I will test this with the divX player and see if it suffers from the same issue as windows media.

digital3
05-12-2007, 01:56 PM
OK. The divX player starts them to streaming instantly. I wonder if the windows media issue could be a problem with my local settings. Normally my windows media streams instantly too so I don't think it is. I have it set to a 5 second buffer.

AndrewD
05-12-2007, 02:21 PM
OK. The divX player starts them to streaming instantly. I wonder if the windows media issue could be a problem with my local settings. Normally my windows media streams instantly too so I don't think it is. I have it set to a 5 second buffer.

There are a number of problems with windows media player, one of which is that it insists on fetching files more than once. I'll take a look again and see if I can make any suggestions.

edenx
05-13-2007, 12:35 PM
Hello AndrewD, thanks for this hack.

Question:
I want to Force Accept Termns & Conditions every time a member access Links and Downloads Manager, actually it seems it stores a cookie for 20 hours or something, but I want it to appear every time a user enters the LDM

Can you help me?

Thanks

RFC

Alfa1
05-13-2007, 12:51 PM
New threads are not created if the file title length is above the allowed thread tittle length. With my files this is almost always the case. This is why it is not working. How can this be solved?

AndrewD
05-13-2007, 04:02 PM
Hello AndrewD, thanks for this hack.

Question:
I want to Force Accept Termns & Conditions every time a member access Links and Downloads Manager, actually it seems it stores a cookie for 20 hours or something, but I want it to appear every time a user enters the LDM

Can you help me?

Thanks

RFC

Take a look at the code of local_links.php. Around line 317, you'll find a sequence that reads


if ($vbulletin->db->num_rows($asb)) {
$ldm_accept_timeout = 24*60*60; // one day
$rec = $vbulletin->db->fetch_array($asb);
if (($rec['usertime']+$ldm_accept_timeout)>TIMENOW) {
$ldm_accept = 1;
}
}


Change the line

$ldm_accept_timeout = 24*60*60; // one day


to something like

$ldm_accept_timeout = 3600; // one hour


You'll need a value greater than zero, otherwise you're going to irritate your members greatly as they try to look around your site and keep being asked the same question.

AndrewD
05-13-2007, 04:30 PM
New threads are not created if the file title length is above the allowed thread tittle length. With my files this is almost always the case. This is why it is not working. How can this be solved?

Take a backup copy of includes/local_links_misc.php, and then upload the attached file. That should do the job.

Conagher
05-13-2007, 05:31 PM
=======================================
Unexpected critical failure
Critical Error: Links and Downloads Manager v.2.2.1 requires VBulletin version 3.5
=======================================

Anyone want to guide me in the right direct to fix this?

AndrewD
05-13-2007, 06:56 PM
=======================================
Unexpected critical failure
Critical Error: Links and Downloads Manager v.2.2.1 requires VBulletin version 3.5
=======================================

Anyone want to guide me in the right direct to fix this?

Are you trying to install version 2.2.1 on VB 3.6?

Version 2.2.1 only works with vb 3.5. The version 2.2.7 in this thread works with both vb3.5 and 3.6.

TheHeartSmasher
05-14-2007, 10:15 AM
When I try to save anything from the admin settings page I am prompted to download "local_links_admin.php"

Also for my open_basedir is a very long url that I cannot change how would I hide this in the admin settings so I do not have to scroll to the right to edit my settings?

Thank You in advance

AndrewD
05-14-2007, 07:58 PM
When I try to save anything from the admin settings page I am prompted to download "local_links_admin.php"

Also for my open_basedir is a very long url that I cannot change how would I hide this in the admin settings so I do not have to scroll to the right to edit my settings?

Thank You in advance

The st problem sound like a problem with the configuration of your server or with a caching problem with your browser. Am happy totake a look if you want - send me a PM with details.

For the second question, you need to edit the links_admin_environment template. You'll find where it displays open_basedir.

TheHeartSmasher
05-16-2007, 05:33 AM
I got curious and it seems that this only happens with Firefox.
If you have the Jukebox disabled and access a video (wmv) it will either stream download (load in the status progress bar of Firefox) or show a blank page.

Opened IE and it worked fine. So I enabled the Jukebox for everyone so they could view videos.

AndrewD
05-16-2007, 05:54 AM
I got curious and it seems that this only happens with Firefox.
If you have the Jukebox disabled and access a video (wmv) it will either stream download (load in the status progress bar of Firefox) or show a blank page.

Opened IE and it worked fine. So I enabled the Jukebox for everyone so they could view videos.

There are quite a few of us who have problems with wmv plugins into browsers and IE and Firefox work differently. I haven't the detailed technical skills to understand exactly what is going on the depths of ActiveX and non-ActiveX solutions ;)

TheHeartSmasher
05-16-2007, 04:10 PM
Not many that do maybe it is something built in that forces it to act this way :D
Now I am wondering if there is a way to incorporate limited the download rate for users.
Example Administrators get unlimited download rate
Guest get 100kbs with 1 Parallel Downloads
Registered users get 500kbs with 3 Parallel Downloads (Drops down to 166.66kbs if they download three at a time for each download)
Premium or Long Time Members get Unlimited

If this was possible this would be even better.

As I have seen dedicated software but they are really buggy and don't integrate with vbulletin very well.

[EDIT] Also a flv player

Ophelia
05-17-2007, 04:06 PM
Hello Andrew!

We want to create an area that is password protected so that only those we pm w/ the password can access it. Is this possible?

freewhiteeagle
05-18-2007, 04:16 PM
Hi,

I'm very new to the whole forum world so please bear with me here...

I'm having trouble with the installation of the mod as I'm not sure where to upload into 'the corresponding forum directories.'

Here's what I did:

- I put the content of the includes and the clientscript folders in the appropriate forum directories.

- I wasn't sure where to put the release/forums/local php files, though, so I put them under the main forum directory. (?)

- I did the same with the release/vba_modules folder.

Not sure where to upload the release/extras folder and the tests folder.

When I tried to install the xml files via vB, I got the following messages:

Warning: Unknown(/home/rawfree/public_html/forum/includes/local_links_init.php): failed to open stream: No such file or directory in /admincp/plugin.php(1941) : eval()'d code on line 3

Fatal error: (null)() [function.require]: Failed opening required '/home/rawfree/public_html/forum/includes/local_links_init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rawfree/public_html/forum/admincp/plugin.php(1941) : eval()'d code on line 3

Please advice!

Thanks,

Carmella

obmob
05-18-2007, 04:20 PM
=======================================
Unexpected critical failure
Critical Error: Links and Downloads Manager v.2.2.1 requires VBulletin version 3.5
=======================================

Anyone want to guide me in the right direct to fix this?Wrong thread? O.o

butty
05-19-2007, 06:27 AM
hello. i currently have my ldm in my public_html/media folder.

i have found out that it is possible for people to find out that the contents are there and download the files when i dont have this option available under the settings

what i want to know is can i move the media folder below the public_html folder and will it still work. would this then stop people being able to download the files andhow would i go about moving it?

many thanks for your time