PDA

View Full Version : Links and Downloads Manager


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

AndrewD
05-02-2006, 05:15 PM
hey andrew!

haven't updated to 2.2 yet (will do this week), but for some reason all New Threads (post to forum plugin) created with new uploads keep showing up as "moderated".

I've been searching FOREVER, looked everywhere, but I can't find the option to turn that off and as far as I can tell... all the permissions are correctly set. ie: shouldn't have to be moderated.

any hints as to what I'm missing? Its gotta be a setting SOMEWHERE.

You seem to be right. From what I can tell, if moderation is turned on, and then turned off again for a given forum, the LDM plugin continues to trigger moderation of its new posts into that forum. I need to sort out why.

AndrewD
05-02-2006, 06:36 PM
hey andrew!

haven't updated to 2.2 yet (will do this week), but for some reason all New Threads (post to forum plugin) created with new uploads keep showing up as "moderated".

I've been searching FOREVER, looked everywhere, but I can't find the option to turn that off and as far as I can tell... all the permissions are correctly set. ie: shouldn't have to be moderated.

any hints as to what I'm missing? Its gotta be a setting SOMEWHERE.

Found it :cross-eyed: Take a look at includes/local_links_misc.php - function create_thread(), down at the end.

$forumperms should be declared as a global. Sorry about that.

Tyegurl
05-02-2006, 06:54 PM
Are you still getting the email messages? I can't see anything wrong, although there are similar reports of lost database connections on the internet.

You can if you want turn off 'hit recording' by setting the LDM admin permission *can_bypass_hit_recording* on for all usergroups.

Yes i am but i turned it off in vbulletin....now they get sent to a folder lol

AndrewD
05-02-2006, 07:25 PM
Yes i am but i turned it off in vbulletin....now they get sent to a folder lol

You said that it was only with the jukebox? Never with a regular link?

aramik
05-02-2006, 08:27 PM
Database error in vBulletin 3.5.4:

Invalid SQL:

UPDATE `user`
SET `` = `` - '15'
WHERE userid='1'
LIMIT 1;

MySQL Error : Unknown column '' in 'field list'
Error Number : 1054
Date : Tuesday, May 2nd 2006 @ 04:18:56 AM
Script : http://oz-anime.com/forums/local_lin...id=445&catid=8
Referrer : http://oz-anime.com/forums/local_lin...d=8&linkid=445
IP Address : .....
Username : .....
Classname : .....



*it use to work*

Tyegurl
05-02-2006, 08:40 PM
mostly jukebox and a few regular but not very often

AndrewD
05-03-2006, 04:07 AM
Database error in vBulletin 3.5.4:

Invalid SQL:

UPDATE `user`
SET `` = `` - '15'
WHERE userid='1'
LIMIT 1;

MySQL Error : Unknown column '' in 'field list'
Error Number : 1054
Date : Tuesday, May 2nd 2006 @ 04:18:56 AM
Script : http://oz-anime.com/forums/local_lin...id=445&catid=8
Referrer : http://oz-anime.com/forums/local_lin...d=8&linkid=445
IP Address : .....
Username : .....
Classname : .....



*it use to work*


Sorry, I need a bit more information to help you. What changed? What were you trying to do? Is this reproducible.

I don't recognise the database error message as being part of LDM, even though the traceback says that it is.

I registered on your board and tried to investigate, but got errors that clearly come from another hack, e.g. 'Could not find phrase 'rpg_itemshop_not_enough_points_item_x''

aramik
05-03-2006, 05:33 AM
ah, we had installed a hack called rpg intergration system... but I don't recall editing any LMD files.

AndrewD
05-03-2006, 05:37 AM
ah, we had installed a hack called rpg intergration system... but I don't recall editing any LMD files.

Perhaps you could take a look at the detailed URL for your link id 445, category 8 (Ninja scroll, the movie). Is this pointing back into another script?

|oR|Greg
05-03-2006, 12:07 PM
Found it :cross-eyed: Take a look at includes/local_links_misc.php - function create_thread(), down at the end.

$forumperms should be declared as a global. Sorry about that.

Andrew, I changed line 813 to read:

global $vbulletin, $vbphrase, $forumperms;

Is that correct? I had someone make an item that wasn't an admin, the thread was auto-created as it should have been, but was moderated.

AndrewD
05-03-2006, 01:29 PM
Andrew, I changed line 813 to read:

global $vbulletin, $vbphrase, $forumperms;

Is that correct? I had someone make an item that wasn't an admin, the thread was auto-created as it should have been, but was moderated.

That's correct.

The way this behaves (is written to behave) is as follows:

- When the new thread is autocreated, it is placed in the forum associated with the entry
- If the main VB board requires moderation of new threads in this forum, then the thread is placed in the moderation queue. Otherwise it is displayed immediately

Moderation of the new entry itself is a separate process, and depends on the settings within LDM.

Is this reasonable, do you think?

|oR|Greg
05-03-2006, 01:35 PM
I'm just confused as to why it happened at all, nothing on my board is moderated anywhere, and poof, this occured today. I added that code, went in as a user with the same rights as the guy that prompted the moderation "error" and posted a link in the same place he did. With the code in place everything is ok again, however people have been posting links prior to this in the same fasion with the auto-thread creation turned on, and it never happened before this morning. That's the strange part. Hopefully that Global var is all that is needed to fix it. Otherwise, things are as smooth as can be.

I think the way you have moderation setup is as good as it can be.

AndrewD
05-03-2006, 03:04 PM
I'm just confused as to why it happened at all, nothing on my board is moderated anywhere, and poof, this occured today. I added that code, went in as a user with the same rights as the guy that prompted the moderation "error" and posted a link in the same place he did. With the code in place everything is ok again, however people have been posting links prior to this in the same fasion with the auto-thread creation turned on, and it never happened before this morning. That's the strange part. Hopefully that Global var is all that is needed to fix it. Otherwise, things are as smooth as can be.

I think the way you have moderation setup is as good as it can be.

Yes, without the 'global' statement, the behaviour was unpredictable but presumably depended on how many other hacks, etc, were loaded on the board, day of the week, etc.

aramik
05-04-2006, 03:51 AM
AndrewD - yeah, I just fixied it, wasn't anything on LDM's end.

Hey LDM is awesome just one thing, usually LDM logs my users out.. not a big deal, but they have to re-login, is this something to do with the script or is that my end?

Akagi
05-04-2006, 03:55 AM
got a question for fellow LDM users and AndrewD, now that LDM is working fine, anyone of you have tried adding adsense to LDM? Just thought of this and would like to seek your opinions regarding the placement of adsense. I feel that perhaps links_main as well as links_linksbit would be good places to put adsense? who have tried? perhaps you wanna share what you have done?

AndrewD
05-04-2006, 04:07 AM
AndrewD - yeah, I just fixied it, wasn't anything on LDM's end.

Hey LDM is awesome just one thing, usually LDM logs my users out.. not a big deal, but they have to re-login, is this something to do with the script or is that my end?

I don't know of anything in LDM that could cause this,but I may be missing something. Is anyone else having this problem?

|oR|Greg
05-04-2006, 12:42 PM
got a question for fellow LDM users and AndrewD, now that LDM is working fine, anyone of you have tried adding adsense to LDM? Just thought of this and would like to seek your opinions regarding the placement of adsense. I feel that perhaps links_main as well as links_linksbit would be good places to put adsense? who have tried? perhaps you wanna share what you have done?
I'll be adding it soon, and my plan was to have it under the navbar, that way it's on all pages.

I don't know of anything in LDM that could cause this,but I may be missing something. Is anyone else having this problem?
Nope.
:banana:

|oR|Greg
05-04-2006, 06:53 PM
Oh Mr. Andrew, I was searching for 2 things and couldn't find them, don't know if they exist or if they're possible, so here we go!

1. Is there a variable to check if the description field is filled out? The purpose of this would be, that if it isn't, have in IF statement in the template(s) that checks and if no description, then to use the title instead.
2. Is there a way to include, IF available, the thumbnail picture of a link in the auto-created thread? Not as an attachment, but with the IMG tags.

AndrewD
05-05-2006, 12:02 PM
Oh Mr. Andrew, I was searching for 2 things and couldn't find them, don't know if they exist or if they're possible, so here we go!

1. Is there a variable to check if the description field is filled out? The purpose of this would be, that if it isn't, have in IF statement in the template(s) that checks and if no description, then to use the title instead.

Ideally this would be a test on $linkdesc, but it's made slightly more complicated because a blank description is actually passed to the template as a non-breaking space to avoid producing a null table cell (which is invalid html). The most reliable approach would be to edit local_links_include.php, find function get_linklistbit, then find the line:

if (!trim($linkdesc)) $linkdesc = " ";

Either add yourself a new variable which you test against, or change the assignment so that $linkdesc is assigned a normal space character and then you can test against that in the template.



2. Is there a way to include, IF available, the thumbnail picture of a link in the auto-created thread? Not as an attachment, but with the IMG tags.

For this, I think you should edit the autothread plugin. After line:

construct_phrase($vbphrase['ldm_thread_create_body'], $linkname, $linkdesc, $gotolink, $master_title);
add the line

if ($imgthumb) $thread_message = ''.$vbulletin->options['homeurl'].$imgthumb.' '.$thread_message;

|oR|Greg
05-05-2006, 03:31 PM
I went for the plugin first. I added it and it works great!

If I do the link_desc I'll let you know.

MimeSong Erk
05-06-2006, 06:02 PM
This mod has singlehandedly changed the face of my forum forever. I've been looking for something exactly like this for months. Thank you ever so much.

Is there anywhere my site can donate to support the designers of this, once our subscription revenue starts coming in? PM me if so, I probably won't check back in this thread, 119 pages intimidates me a tad.

|oR|Greg
05-08-2006, 03:30 PM
I donated at www.eirma.org (http://www.eirma.org/f3/local_showform.php?action=local_donateform&title=Donate) which is the author's site.

louis_chypher
05-08-2006, 03:46 PM
Probabbly missed it but is there a random links module for CMPS?

AndrewD
05-08-2006, 04:12 PM
Probabbly missed it but is there a random links module for CMPS?

No, but it's easy to achieve. Just edit one of the existing ldm modules and change the line
$order = "linkdate DESC "; to
$order = "RAND()";

AndrewD
05-08-2006, 04:17 PM
I've uploaded release 2.2.1 in the first post. This is mainly a bug fix release - see first post.

Appreciate a few tests and reports, please.

Thanks

|oR|Greg
05-08-2006, 06:33 PM
I'm famous!!!!


New linkbit (links_linkbit_greg) added


When i get home I'll try it...

Oh yeah before I forget, does this also do the thumb in the auto-created thread?

AndrewD
05-08-2006, 06:50 PM
I'm famous!!!!



When i get home I'll try it...

Oh yeah before I forget, does this also do the thumb in the auto-created thread?

No, I didn't make this a feature for everyone.

Taylor123
05-08-2006, 10:24 PM
I have two problems, they've probably been addressed at some point but I don't wanna look through 600 pages just in case it hasn't ;)


#1, the daily allowances don't seem to work for me. I set the allowance to one but it's still allowing me to download as often as I want..

#2 I would like to edit below "links and download manager" on the main local_links.php face with some rules, how would I go about doing that?

AndrewD
05-09-2006, 04:23 AM
I have two problems, they've probably been addressed at some point but I don't wanna look through 600 pages just in case it hasn't ;)


#1, the daily allowances don't seem to work for me. I set the allowance to one but it's still allowing me to download as often as I want..

The allowances only apply to 'downloads', i.e. to files which have recognised mimetypes in your main VB attachments table. For entries that are not handled as downloads, then no restrictions are placed on how many times it can accessed.

The reason for the difference lies in how the entry is processed. Transfer of 'downloads' are managed by reading the file on the server and then sending segments to the user. Other entries are handled by browser redirects and do not place any load on the server.

#2 I would like to edit below "links and download manager" on the main local_links.php face with some rules, how would I go about doing that?

You mean, you want to place a section of text that only appears on the opening page of LDM? Surprisingly, this has not been asked so far. There are related ways of achieving something similar:

- set 'force_accept' on the LDM admin settings page to require users to accept some terms and conditions before downloading anything
- set 'use_instructions' on the main LDM admin settings page (for all categories) or in each category edit (for the individual category and its children), so that users adding new material get to see some standard text.

ccoa
05-09-2006, 06:38 PM
This is almost exactly what I've been looking for, thank you! The only thing it is lacking is a way to sort by submitter. I looked through this thread, but can't find anything about it. Is there a way to accomplish this?

AndrewD
05-09-2006, 06:51 PM
This is almost exactly what I've been looking for, thank you! The only thing it is lacking is a way to sort by submitter. I looked through this thread, but can't find anything about it. Is there a way to accomplish this?

This requires a very minor change to the existing code. Bear with me.

MissKalunji
05-09-2006, 08:52 PM
Can anyone show me a demo? and as for downloads doe sthis raise a lot of queries? cause ecdownload uses to raise like 30 queries + the queries for download wich would raise server load....

Thanks!

dinodonk
05-10-2006, 02:39 AM
i want to move all attachment to links and download manager.
is there any way to do that??

TIA

MissKalunji
05-10-2006, 03:05 AM
Can anyone help me install this?
Thx

AndrewD
05-10-2006, 03:34 AM
Can anyone help me install this?
Thx

What help do you need?

Concerning your earlier questions, the main LDM screens require around 16-19 queries depending on how many options are turned on. An actual download requires fewer - will need to check how many.

AndrewD
05-10-2006, 03:36 AM
i want to move all attachment to links and download manager.
is there any way to do that??

TIA

This is not built into the script. It wouldn't be difficult to write a quick script to do the job, but this is not something I currently have time for.

MissKalunji
05-10-2006, 03:48 AM
What help do you need?

Concerning your earlier questions, the main LDM screens require around 16-19 queries depending on how many options are turned on. An actual download requires fewer - will need to check how many.


i was able to manage

Think you have some time to do something like that? custom work perhaps? pm me

just the right part

Taylor123
05-10-2006, 03:57 AM
1) The allowances only apply to 'downloads', i.e. to files which have recognised mimetypes in your main VB attachments table. For entries that are not handled as downloads, then no restrictions are placed on how many times it can accessed.

The reason for the difference lies in how the entry is processed. Transfer of 'downloads' are managed by reading the file on the server and then sending segments to the user. Other entries are handled by browser redirects and do not place any load on the server.



You mean, you want to place a section of text that only appears on the opening page of LDM? Surprisingly, this has not been asked so far. There are related ways of achieving something similar:

- set 'force_accept' on the LDM admin settings page to require users to accept some terms and conditions before downloading anything
- set 'use_instructions' on the main LDM admin settings page (for all categories) or in each category edit (for the individual category and its children), so that users adding new material get to see some standard text.

1. I added rar's to my mimetype table, but it still doesn't appear to be working exactly how I want it. Does it only work for what was on the original mimetype table? Some people link to sites like yousendit.com so I guess I can't do nothing about that....

2. I had the force_accept enabled but I couldn't figure out where to edit the terms. Where could I do that?
I can't find "use_instructions" when clicking on "Change LDM settings" in the admin, am I looking in the wrong spot?

MissKalunji
05-10-2006, 04:00 AM
I have another slight problem i enabled mp3 and whenever i try to uplaod it gives me this error :

Upload error - security breach. Return

Taylor123
05-10-2006, 04:03 AM
I am also having a problem with the image upload option
"Upload error - unable to create a user subdirectory on server."
I have uploads enabled and the upload directory is linked in the admin...

and is there a way for me to completely take off the file upload option when a user adds a link. I only need the image upload (if i can get it to work) :)

I set

blueberry
05-10-2006, 05:52 AM
hi.. i am a newbie.. hope that someone can help me out... i have one question regarding the understanding of this program.. I dont want to upload any files for the time being... but i just want people to be able to download... Is the software already linked to program databases.. or it is empty and i should add everything to it? Thanks :)

MissKalunji
05-10-2006, 05:53 AM
if i understand properly you should have to add everything yourself

Like category etc etc

blueberry
05-10-2006, 08:19 AM
after studying the manual for the LDM, i found out that you can upload an xml files with links to tv stations or music... do you have a file to link to program databse instead?? this should be great... waiting for anyone to answer me!!

|oR|Greg
05-10-2006, 04:00 PM
I am also having a problem with the image upload option
"Upload error - unable to create a user subdirectory on server."
I have uploads enabled and the upload directory is linked in the admin...

and is there a way for me to completely take off the file upload option when a user adds a link. I only need the image upload (if i can get it to work) :)

I set

Did you CHMOD the directory correctly?

|oR|Greg
05-10-2006, 04:14 PM
i was able to manage

Think you have some time to do something like that? custom work perhaps? pm me

just the right part


That should actually be really easy to do. It's just a table with 2 cells, left cell has I'm guessing a nested table with a few rows, and the right cell has the thumbnail if included.

MissKalunji
05-10-2006, 04:16 PM
Well if you could assist me :) would be greatly appreciated

|oR|Greg
05-10-2006, 04:24 PM
Well if you could assist me :) would be greatly appreciated

This is the very BASIC layout code for the formatting of the template. However it's missing all the LDM variable references and associated IF statements as well as the correct width/height formatting. Hopefully it's a start? :banana:

Attached is what this basic code looks like.



<table border="1" width="586" height="255">
<tr>
<td height="41" width="272" align="center">File Information</td>
<td height="41" width="298" align="center">Screenshot</td>
</tr>
<tr>
<td height="204" width="272">
<table border="1" width="294" height="145" id="table1">
<tr>
<td height="23" width="129" align="left">Name:</td>
<td height="23" width="149" align="left">&nbsp;</td>
</tr>
<tr>
<td height="26" width="129" align="left">Author:</td>
<td height="26" width="149" align="left">&nbsp;</td>
</tr>
<tr>
<td height="34" width="129" align="left">Submitted by:</td>
<td height="34" width="149" align="left">&nbsp;</td>
</tr>
<tr>
<td height="25" width="129" align="left">Submitted:</td>
<td height="25" width="149" align="left">&nbsp;</td>
</tr>
<tr>
<td height="3" width="129" align="left">Views:</td>
<td height="3" width="149" align="left"></td>
</tr>
<tr>
<td height="10" width="129" align="left">Downloads:</td>
<td height="10" width="149" align="left"></td>
</tr>
</table>
</td>
<td height="204" width="298">
<p align="center">&nbsp;</td>
</tr>
</table>

|oR|Greg
05-10-2006, 05:06 PM
MissKalunji, looking at the layout in more detail I see there is a whole bottom section I missed. Heh. Additionally, LDM isn't as extensive with tracking views versus downloads, nor can you do file notification, direct linking to a specific forum, etc...

MissKalunji
05-10-2006, 05:09 PM
Thats all i needed :) and the comment can you add the comment at the bottom? and how do i attach it to link?

AndrewD
05-10-2006, 05:34 PM
hi.. i am a newbie.. hope that someone can help me out... i have one question regarding the understanding of this program.. I dont want to upload any files for the time being... but i just want people to be able to download... Is the software already linked to program databases.. or it is empty and i should add everything to it? Thanks :)

LDM gives you and your users the means to create and access downloads. It does not come pre-configured with any databases - that is something you have to sort out. You can limit it so that uploads are possible or prohibited, etc, etc - it's all very flexible.

|oR|Greg
05-10-2006, 05:35 PM
Thats all i needed :) and the comment can you add the comment at the bottom? and how do i attach it to link?

Do you mean the description?

AndrewD
05-10-2006, 05:40 PM
1. I added rar's to my mimetype table, but it still doesn't appear to be working exactly how I want it. Does it only work for what was on the original mimetype table? Some people link to sites like yousendit.com so I guess I can't do nothing about that....

You'll need to explain what you mean by 'doesn't work exactly how you want'. You can add any file types to the attachment table. As far as yousendit.con is concerned, I've no experience with that.

2. I had the force_accept enabled but I couldn't figure out where to edit the terms. Where could I do that?

You edit the ll_agreement phrase, via the main VB admincp

I can't find "use_instructions" when clicking on "Change LDM settings" in the admin, am I looking in the wrong spot? It's towards the bottom of the page, in the Security and User Access Controls section

MissKalunji
05-10-2006, 05:51 PM
Do you mean the description?

yeah description

MissKalunji
05-10-2006, 05:52 PM
I have another slight problem i enabled mp3 and whenever i try to uplaod it gives me this error :

Upload error - security breach. Return


BUMP

AndrewD
05-10-2006, 06:09 PM
BUMP

B**g*r - I should stop adding features. Sorry about that. Will fix as soon as possible. Thanks for reporting.

MissKalunji
05-10-2006, 06:19 PM
:) its cool i have to say that is the best script i've seen! nice work AndrewD:) and barely any queries!!

Thank you so much!

|oR|Greg
05-10-2006, 07:39 PM
More features! More features! More features!

Hey big Andy! How about a template that allows mass uploads! :p

q8-star
05-10-2006, 10:38 PM
I'm having an Internal Server Error ,with the following message :
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@arabic-av.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the reques
It only happens when I try to save any new changes in the LDM setting ONLY .

|oR|Greg
05-10-2006, 11:33 PM
Best I can do on short notice... see attached image.

<tr>
<td colspan="2">
<div style="margin-top:3px">

<table width="100%">
<tr>
<td class="thead" width="50%" align="center" colspan="2"><if condition="$linknew">$linknew </if><span class="smallfont">File Information</span></td>
<td class="thead" width="50%" align="center"><span class="smallfont">Screenshot / Thumbnail</span></td>
</tr>
<tr>
<td width="50%" colspan="2">
<table width="100%">
<tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">Name:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont"><strong>$linkurljump</strong></span></td>
</tr>
<if condition="$linkimg">
<tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">File type:</span></td>
<td class="alt1" width="50%" align="left">$linktypebit</td>
</tr>
</if>
<if condition="$linksize">
<tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">File size:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont">$linksize $vbphrase[ll_kb]</span></td>
</tr>
</if>
<if condition="$links_permissions[can_view_names]">
<tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">Submitted by:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont"><a href="member.php?u=$linkuserid">$linkusername</a></span></td>
</tr>
</if>
<tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">Submitted:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont">$linkdate</span></td>
</tr>
<if condition="$links_permissions[can_view_hits]"><tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">Hits / Downloads:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont">$linkhits</span></td>
</tr></if>
</table>
</td>
<td class="alt2" width="50%"><p align="center">$linkimgjump<br><br><if condition="$linkimg">$linkimgmag</if></td>
</tr>
<tr>
<td class="thead" width="50%"><span class="smallfont">Description:</span></td>
<td class="thead" align="right" width="50%" colspan="2"><span class="smallfont">$linkfavbit $linkeditbit <if condition="$links_permissions[can_send_tofriend]"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkc atid&amp;linkid=$linkid" target="_blank" title="$vbphrase[ll_sendtofriend]">Send To Friend<img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if> <if condition="$links_permissions[can_report_link] and $linkuserid != $bbuserinfo[userid]"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid &amp;catid=$viewcatid&amp;page=$pagenumber" title="$vbphrase[ll_report_bad_link]">Report Bad Link<img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if></span></td>
</tr>
<tr>
<td class="tcat" width="100%" colspan="3"><span class="smallfont">$linkurljump&nbsp;&nbsp;$linkdesc</span></td>
</tr>
</table>

</div>
</td>
</tr>

Taylor123
05-10-2006, 11:52 PM
Did you CHMOD the directory correctly?
yes, i tried them at both 755 then again at 777

|oR|Greg
05-11-2006, 12:08 AM
Sounds like a job for Andrew the mighty.

Taylor123
05-11-2006, 12:12 AM
i thought i just responded again but guess not...

i turned the local_file_root option from no to yes and i did not get the same error but when I tried uploading an image it still didn't upload and went to a cannot find server page.

When i turn local_file_root to yes will i have to link the upload directory differently.....it is not telling me "/upload" (how i have it linked) is wrong

MissKalunji
05-11-2006, 12:26 AM
Best I can do on short notice... see attached image.

<tr>
<td colspan="2">
<div style="margin-top:3px">

<table width="100%">
<tr>
<td class="thead" width="50%" align="center" colspan="2"><if condition="$linknew">$linknew </if><span class="smallfont">File Information</span></td>
<td class="thead" width="50%" align="center"><span class="smallfont">Screenshot / Thumbnail</span></td>
</tr>
<tr>
<td width="50%" colspan="2">
<table width="100%">
<tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">Name:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont"><strong>$linkurljump</strong></span></td>
</tr>
<if condition="$linkimg">
<tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">File type:</span></td>
<td class="alt1" width="50%" align="left">$linktypebit</td>
</tr>
</if>
<if condition="$linksize">
<tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">File size:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont">$linksize $vbphrase[ll_kb]</span></td>
</tr>
</if>
<if condition="$links_permissions[can_view_names]">
<tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">Submitted by:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont"><a href="member.php?u=$linkuserid">$linkusername</a></span></td>
</tr>
</if>
<tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">Submitted:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont">$linkdate</span></td>
</tr>
<if condition="$links_permissions[can_view_hits]"><tr>
<td class="alt2" width="50%" align="left"><span class="smallfont">Hits / Downloads:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont">$linkhits</span></td>
</tr></if>
</table>
</td>
<td class="alt2" width="50%"><p align="center">$linkimgjump<br><br><if condition="$linkimg">$linkimgmag</if></td>
</tr>
<tr>
<td class="thead" width="50%"><span class="smallfont">Description:</span></td>
<td class="thead" align="right" width="50%" colspan="2"><span class="smallfont">$linkfavbit $linkeditbit <if condition="$links_permissions[can_send_tofriend]"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkc atid&amp;linkid=$linkid" target="_blank" title="$vbphrase[ll_sendtofriend]">Send To Friend<img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if> <if condition="$links_permissions[can_report_link] and $linkuserid != $bbuserinfo[userid]"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid &amp;catid=$viewcatid&amp;page=$pagenumber" title="$vbphrase[ll_report_bad_link]">Report Bad Link<img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if></span></td>
</tr>
<tr>
<td class="tcat" width="100%" colspan="3"><span class="smallfont">$linkurljump&nbsp;&nbsp;$linkdesc</span></td>
</tr>
</table>

</div>
</td>
</tr>

Perfect man! thanks! now lol how do i add this? sorry im new to this

MissKalunji
05-11-2006, 12:35 AM
Here's a new version of the file includes/local_links_include.php which I hope fixes the reported security bug when uploading mp3s.

Grateful for confirmation, after which I will update the main release file.

That did the trick!

thank you!

MissKalunji
05-11-2006, 02:22 AM
i figured it |oR|Greg thanks a lot!

AndrewD
05-11-2006, 04:08 AM
i thought i just responded again but guess not...

i turned the local_file_root option from no to yes and i did not get the same error but when I tried uploading an image it still didn't upload and went to a cannot find server page.

When i turn local_file_root to yes will i have to link the upload directory differently.....it is not telling me "/upload" (how i have it linked) is wrong

I think I will need to see your board. Pls can you send me a PM with details of your board's url, plus a username and password that has full VB admin privs.

AndrewD
05-11-2006, 04:22 AM
v2.2.1 re-uploaded, fix to uploads of mp3 and a small correction to the html where it was not fully xhtml compliant

AndrewD
05-11-2006, 04:26 AM
I'm having an Internal Server Error ,with the following message :

It only happens when I try to save any new changes in the LDM setting ONLY .

I need some more information. Does this always happen with LDM admin setting changes - and which values are you trying to change? Does your site use htaccess files or have mod_redirect working, etc?

Am happy to take a look at your site (although the arabic is a bit difficult for me:)( - if you PM me a username/password with admin privs.

AndrewD
05-11-2006, 04:28 AM
More features! More features! More features!

Hey big Andy! How about a template that allows mass uploads! :p

What would you like this to do? Create multiple new entries, one per upload? Or have multiple files with the single entry? etc, etc.

No guarantees, but will add it to the wish list

shiva
05-11-2006, 05:09 AM
hey AndrewD, :)

I just moved to a new host, but because of the differences, i will have to do a new install, as LDM refused to work when I just copied over the database. It's now php 5.1.4 , so if you haven't been able to test with php5, be happy to let you in, as it's not gonna be open for a while.

AndrewD
05-11-2006, 05:12 AM
hey AndrewD, :)

I just moved to a new host, but because of the differences, i will have to do a new install, as LDM refused to work when I just copied over the database. It's now php 5.1.4 , so if you haven't been able to test with php5, be happy to let you in, as it's not gonna be open for a while.

I use php5 on my development machine, so eveything should be ok.

shiva
05-11-2006, 06:13 AM
cool, just wondered. I will keep a list if I get any errors. I will install and then start manually adding the database then...

*** crosses fingers and toes ***

q8-star
05-11-2006, 07:20 AM
I need some more information. Does this always happen with LDM admin setting changes - and which values are you trying to change? Does your site use htaccess files or have mod_redirect working, etc?

Am happy to take a look at your site (although the arabic is a bit difficult for me:)( - if you PM me a username/password with admin privs.

Well I'll PM you shortly .And don't worry you'll see the English version of it ;)

|oR|Greg
05-11-2006, 11:39 AM
have multiple files with the single entry?

No guarantees, but will add it to the wish list

Use the variable for attachments per post, or maybe make a new one if you like. As well as the uploads shown on the upload pop-up.

So on my board, you can have 10 attachments per post, and upload 5 at a time. Same for LDM. How you do it of course is your choice, but I was thinking you could also set a different variable per usergroup for the upload limits, ya know like 1 group can upload 10mb's per user total, another can do 2mb, admins can be set to 0 meaning no limit, etc.

The reason for all of this, in combination with a new template, you've now got a gallery/garage.

AndrewD
05-11-2006, 01:04 PM
Use the variable for attachments per post, or maybe make a new one if you like. As well as the uploads shown on the upload pop-up.

So on my board, you can have 10 attachments per post, and upload 5 at a time. Same for LDM. How you do it of course is your choice, but I was thinking you could also set a different variable per usergroup for the upload limits, ya know like 1 group can upload 10mb's per user total, another can do 2mb, admins can be set to 0 meaning no limit, etc.

The reason for all of this, in combination with a new template, you've now got a gallery/garage.

OK, this ties up with other requests to allow multiple links per entry, e.g. for people who split a video into segments.

MissKalunji
05-11-2006, 01:07 PM
questiion for zip extension the little zip logo shows

how can i do the same for rar?

|oR|Greg
05-11-2006, 01:14 PM
Add a .gif file called rar.gif to the same directory the zip.gif is in.

MimeSong Erk
05-11-2006, 03:11 PM
I've been working more and more with the software and am just getting more impressed; you've done a good job of keeping everything sorted out so that even a novice hacker like me can alter things to suit my needs.

I have some mods I'm working on figuring out right now... one is something my coadmin ccoa already posted here, the ability to sort files by submitter. The others include a top contributors listing based not on #files submitted but on a little bit more complicated equation. That'll tie into some other aspects of my site, like the Badges system I have implemented that show minor accolates in a user's postbit, so the top submitter will have a little icon that says "#1 file contributor" in their name. Anyway.

If I complete these, shall I post them here for interest's sake?

For those interested, my site is www.rmxp.org

|oR|Greg
05-11-2006, 03:40 PM
Sounds like a whole lotta extra queries, no?

MissKalunji
05-11-2006, 05:54 PM
Add a .gif file called rar.gif to the same directory the zip.gif is in.

Thanks dear

|oR|Greg
05-11-2006, 06:21 PM
I saw your site, but not the new style... no love?

MissKalunji
05-11-2006, 07:56 PM
I saw your site, but not the new style... no love?

yeah i applied it to the screen saver / wall paper

look

http://www.dancehallareaz.com/forum/local_links.php?catid=6

http://www.dancehallareaz.com/forum/local_links.php?catid=5

:)

MissKalunji
05-11-2006, 09:02 PM
How can i prevent access to certain usergroup example if they click on the link they see an error page?

Thanks

|oR|Greg
05-11-2006, 10:43 PM
can_access_link setting under permissions

I set mine to go to the register page.

Set that with protected_link under settings.

MissKalunji
05-11-2006, 10:51 PM
But i dont want them to be able to see it at all! you understand what i mean?

|oR|Greg
05-12-2006, 12:50 AM
Well, you have to set the categories to a forum that they cannot see then. For example a regular user cannot see the LIMMAC Downloads section on my site, but LIMMAC Members can, because the category is set for a protected forum that the LIMMAC Members only can access, hence the category is not visible in LDM.

|oR|Greg
05-12-2006, 12:53 AM
You could also wrap your template(s) with an IF statement, and filter usergroups that way. Doing so will result in a member seeing like.. a category has 10 things, but when they look in it, they only see 5 things cause the other 5 are hidden from the usergroup. This way gets more granular results because they might be able to see the category, but not the item.

|oR|Greg
05-12-2006, 01:00 AM
Wrap your template with this from before the <table> and right after the </table>:

Replace what usergroups you want to allow with the numbers.


<if condition="is_member_of($bbuserinfo, 5,6,7,9,10)">

</if>

Example:

<tr>
<td colspan="2">
<div style="margin-top:3px">
<if condition="is_member_of($bbuserinfo, 5,6,7,9,10)">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
...template code...
</table>
</if>
</div>
</td>
</tr>

MissKalunji
05-12-2006, 02:15 AM
Nice thanks lemme try

and how would i wrap up an error message like

<if condition="is_member_of($bbuserinfo, 5,6,7,9,10)">

else

error message
</if>

AndrewD
05-12-2006, 04:03 AM
Nice thanks lemme try

and how would i wrap up an error message like


<if condition="is_member_of($bbuserinfo, 5,6,7,9,10)">

else

error message
</if>

It's not clear to me what you are trying to achieve.

Do you want the existence of the private entries to be visible to the restricted usergroups or not?

If not, when would this error message be triggered?

You can easily make a category visible to everyone but only have certain of its entries visible

You can also easily make the category and all its entries visible but trigger an error message when a user tries to access those which are resticted.

or

You can make the category itself invisible to general users.

Zia
05-12-2006, 05:54 AM
helo...

does it support "mass import" ?

any chance to integtae it with Vbux?

|oR|Greg
05-12-2006, 11:33 AM
It's not clear to me what you are trying to achieve.

Do you want the existence of the private entries to be visible to the restricted usergroups or not?

If not, when would this error message be triggered?

You can easily make a category visible to everyone but only have certain of its entries visible

You can also easily make the category and all its entries visible but trigger an error message when a user tries to access those which are resticted.

or

You can make the category itself invisible to general users.


Yup, I just realized that too, duh, you can set each item to a forum and only the usergroups that have access to that forum will see it.

As for an ERROR, using the protected_links variable gives you 3 choices, no link, a registration dialogue, or... uhhh something else, but I don't think it was an error.

|oR|Greg
05-12-2006, 11:34 AM
helo...

does it support "mass import" ?

any chance to integtae it with Vbux?

No mass import, but we've asked.

MissKalunji
05-12-2006, 12:11 PM
It's not clear to me what you are trying to achieve.

Do you want the existence of the private entries to be visible to the restricted usergroups or not?

If not, when would this error message be triggered?

You can easily make a category visible to everyone but only have certain of its entries visible

You can also easily make the category and all its entries visible but trigger an error message when a user tries to access those which are resticted.

or

You can make the category itself invisible to general users.


What i was trying to say was.....Lets say Newbies i block access to them i dont want them to be able to see the Download section at all! example you click and it gives you the permission error....

I dont want them to be able to see no title no categories nothing.......

|oR|Greg
05-12-2006, 02:19 PM
But do you have multiple user groups 1 for newbies and 1 for non-newbies? If not, and "newbie" is just a new Registered User, verus a more experienced Registered user, then this won't work. If they're in different user groups, then you can set your main access level according to a minimum usergroup they need to be in, then set the permissions accordingly to the Registered user group.

MissKalunji
05-12-2006, 02:59 PM
*chineese* yeah i have a newbie group....

|oR|Greg
05-12-2006, 03:45 PM
Under Settings... default_forumid

Set that to your NON-newbie group.

AndrewD
05-12-2006, 03:53 PM
Under Settings... default_forumid

Set that to your NON-newbie group.

Not quite!!!

Create or choose a forum which is blocked to your newbie group but open to your non-newbie group.

Set default_forum to the id of that forum (if necessary, hover the mouse over the forum listing to see what its id number is).

|oR|Greg
05-12-2006, 04:35 PM
Not quite!!!

Create or choose a forum which is blocked to your newbie group but open to your non-newbie group.

Set default_forum to the id of that forum (if necessary, hover the mouse over the forum listing to see what its id number is).

That's what I said... but I said it in the "short form". :banana:

MissKalunji
05-12-2006, 05:14 PM
But i dont have any of these set to forum :-/

why would i need a forum

* even more lost now *

|oR|Greg
05-12-2006, 05:57 PM
LDM pulls it's permissions per category via your forum permissions. If you never set those accordingly, then you end up in the situation you're in now where anyone can see anything.

MissKalunji
05-12-2006, 06:57 PM
Ok i understand got it!

Thanks

next question lol is there a way to add more text to where it says

Allowances: 0 files/1 used, 0 Mbytes/ 0 MBytes used

AndrewD
05-12-2006, 07:27 PM
Ok i understand got it!

Thanks

next question lol is there a way to add more text to where it says

Allowances: 0 files/1 used, 0 Mbytes/ 0 MBytes used

That line is constructed from several phrases and a template

The phrases are ll_band_bytesuse, ll_band_filesuse and ll_band_consume. They are pulled together in the template links_bandwidthbit. So you can try editing the phrases or the template

civil78
05-12-2006, 10:27 PM
I have a problem in the Links and Download Manager when i change my server into a new one.

When i click into the links it says
"Sorry - link is not currently available"

But the structure works fine except the Last Files list that it don’t work correctly.

I don't know what's going wrong, but I think that if I reset all the properties in default, the problem will be corrected.

How can i set all the properties of the LDM into default?

Thanks

civil78
05-12-2006, 11:39 PM
I found the solution, sorry for that. It was finally a problem into the security system of my server, and of course it's not a problem of the LDM.

Thanks anyway.

MissKalunji
05-13-2006, 03:17 AM
That line is constructed from several phrases and a template

The phrases are ll_band_bytesuse, ll_band_filesuse and ll_band_consume. They are pulled together in the template links_bandwidthbit. So you can try editing the phrases or the template


Thanks!!

Ian Emu-UK
05-14-2006, 03:04 PM
Just got round to updating the LDM on my site for the first time since I requested an auto prune feature, is it possible to make it prune only from a certain category as well as by usergroup?

AndrewD
05-14-2006, 04:59 PM
Just got round to updating the LDM on my site for the first time since I requested an auto prune feature, is it possible to make it prune only from a certain category as well as by usergroup?

See the attached.

Zia
05-15-2006, 05:40 AM
No mass import, but we've asked.


massimport would be a real good feature..

what abt integration with vbux?
pay earned point (earned by posting) for each download..??

AndrewD
05-15-2006, 05:47 AM
massimport would be a real good feature..

what abt integration with vbux?
pay earned point (earned by posting) for each download..??

The framework is there to achieve this - I have provided a 'hook' at the relevant place in the code, so someone who's familiar with vbux should be able to oblige.

Langly
05-15-2006, 09:43 PM
Is LDM using "Delayed Inserts" for SQL? I'm getting several of them according to my host and was trying to narrow down where these are coming from. I'm using v2.2.0 since I have not had to time to upgrade.

AndrewD
05-16-2006, 04:53 AM
Is LDM using "Delayed Inserts" for SQL? I'm getting several of them according to my host and was trying to narrow down where these are coming from. I'm using v2.2.0 since I have not had to time to upgrade.

Not within my code. I've no idea if the underlying vb code ever uses delayed inserts

GrendelKhan{TSU
05-17-2006, 08:55 AM
quick question or suggestion before I forget:


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

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

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

|oR|Greg
05-18-2006, 02:07 PM
You mean like, upload something, and have it show the link they're to copy for their signature?

Benj
05-18-2006, 09:58 PM
woooo ive been away for a bit ..... hows it going andrew benj here...... installs once again :D

obmob
05-19-2006, 03:36 PM
AWW, can't make this to work... ok, here is what i've done so far.

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

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

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

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

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

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

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

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

Hope spmeone can help me, thanks.

Ian Emu-UK
05-19-2006, 07:28 PM
See the attached.
Thanks Andrew, but it doesn't seem to be working, here is my settings from the file

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

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

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

Holidazed
05-19-2006, 10:18 PM
Is there a way to deny access to particular categories and sub-categories based on the usergroup? It would be nice if I can choose to show the category title to a usergroup and then deny them access when they click on it (maybe with a link to purchasing a subscription) or just not showing the category to them.

So far, I have set my forum permissions to now allow unlogged in people to see the forum that links to a particular category, but if they go directly to the link, it lets them in.

Ideas?

pumarjr
05-20-2006, 04:55 AM
i installed this mod, everything works flawlessly, thank you, you should have a donate button!

PS: is there a way when viewing Music/Videos to force the media player local, instead of opening in a new window, so that when the file is played it is played in the vb page?

AndrewD
05-20-2006, 06:31 AM
i installed this mod, everything works flawlessly, thank you, you should have a donate button!

PS: is there a way when viewing Music/Videos to force the media player local, instead of opening in a new window, so that when the file is played it is played in the vb page?

This is possible in principle, but I think it will need more work so that things behave sensibly (i.e. that you can get back to your forums, etc).

The trivial change is to edit includes/local_links_include.php. Find function get_linkslistbit, about 140 lines later, you will find these lines:

if (isset($icon_cache[$urlType])) {
if ($is_musicbox and $links_permissions["can_play_musicbox"]) {
$linktypebit .= '<a href="'.$LINKS_SCRIPT.'.php?action=play&amp;id='.$linkid.'" target="player" onclick="ldmpopup(this.href);return false;">';

and kill the sequence target="player" onclick="ldmpopup(this.href);return false;"

I'll give this some thought to see if there is a better approach.

GrendelKhan{TSU
05-20-2006, 01:08 PM
You mean like, upload something, and have it show the link they're to copy for their signature?

yes. have it be an option in admin to show or hide link.

Holidazed
05-20-2006, 04:03 PM
Is there a way to deny access to particular categories and sub-categories based on the usergroup? It would be nice if I can choose to show the category title to a usergroup and then deny them access when they click on it (maybe with a link to purchasing a subscription) or just not showing the category to them.

So far, I have set my forum permissions to now allow unlogged in people to see the forum that links to a particular category, but if they go directly to the link, it lets them in.

Ideas?
AndrewD, any answer to my question?

arcadian_girl
05-20-2006, 05:01 PM
just installed this, and it seems great, but i'm so confused, i don't even understand how to upload a file, or where to upload it to. :/ can i upload files via ftp? if so, where do i upload them to? i couldn't find the folder where the uploaded files would be stored. i looked at the online manual, but the bit about uploading files didn't make much sense to me :/

AndrewD
05-20-2006, 05:26 PM
just installed this, and it seems great, but i'm so confused, i don't even understand how to upload a file, or where to upload it to. :/ can i upload files via ftp? if so, where do i upload them to? i couldn't find the folder where the uploaded files would be stored. i looked at the online manual, but the bit about uploading files didn't make much sense to me :/

Hi, sorry that you are confused. You can use this hack in several ways - including using it to upload files, or pre-loading them via ftp then using this to make them available to others.

- As installed, it allows admins to give users access to files that have already been pre-uploaded somewhere on your site or somewhere else on the internet.

- If you want to enable uploads, then you have to enable this via the LDM admin/settings page:

- Create a directory (for example, /uploads) in the root of your web site.
- LDM/admin/settings -> controls on file uploads
- Set upload_dir to /uploads
- Set upload_enabled to yes
- Leave the other two upload_* settings as they are for the time being

- Next thing to consider is what filetypes you will allow to be uploaded. By default, LDM will accept uploads of any types that are defined in the main VB/admin/attachments/filetypes table, for files that are no bigger than the maximum size in that table. If you want to allow new filetypes (e.g. mp3), then you need to add these to the vb attachments table. This is explained in the oline manual, section 5.6

- If you want to allow other users to create entries and/or upload files, then you have to given them permission via the LDM admin/permissions page.

If you get stuck, send me a PM with details of your board and an account with admin privs. I'm happy to take a look and set things up for you.

AndrewD
05-20-2006, 05:29 PM
AndrewD, any answer to my question?

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

arcadian_girl
05-20-2006, 06:02 PM
Hi, sorry that you are confused. You can use this hack in several ways - including using it to upload files, or pre-loading them via ftp then using this to make them available to others.

- As installed, it allows admins to give users access to files that have already been pre-uploaded somewhere on your site or somewhere else on the internet.

- If you want to enable uploads, then you have to enable this via the LDM admin/settings page:

- Create a directory (for example, /uploads) in the root of your web site.
- LDM/admin/settings -> controls on file uploads
- Set upload_dir to /uploads
- Set upload_enabled to yes
- Leave the other two upload_* settings as they are for the time being

- Next thing to consider is what filetypes you will allow to be uploaded. By default, LDM will accept uploads of any types that are defined in the main VB/admin/attachments/filetypes table, for files that are no bigger than the maximum size in that table. If you want to allow new filetypes (e.g. mp3), then you need to add these to the vb attachments table. This is explained in the oline manual, section 5.6

- If you want to allow other users to create entries and/or upload files, then you have to given them permission via the LDM admin/permissions page.

If you get stuck, send me a PM with details of your board and an account with admin privs. I'm happy to take a look and set things up for you.


wow...thank you so much for getting back to me so fast, and being so helpful :) i've created the uploads folder, and i uploaded a test file. i added the filetypes that i'll be uploading, too. but now that the file is uploaded, how do i find that file in the download manager, and make it available to people for download? i tried every place in the download manager admin cp, and couldn't find where to find the file and make it available.

AndrewD
05-20-2006, 06:54 PM
wow...thank you so much for getting back to me so fast, and being so helpful :) i've created the uploads folder, and i uploaded a test file. i added the filetypes that i'll be uploading, too. but now that the file is uploaded, how do i find that file in the download manager, and make it available to people for download? i tried every place in the download manager admin cp, and couldn't find where to find the file and make it available.

You go to the main LDM page - http://yoursite/forum/local_links.php and select categories/add category and create the first category group in which your links will appear (for example 'My Downloads') then you select 'Add Link' and you are given a form which allows you to add a link to that directory or to upload a new file.

arcadian_girl
05-20-2006, 07:07 PM
by george, i think i've got it :) i'm probably speaking too soon and will be back in five minutes with another question, but i think i've got the basics now. thanks for being patient with a newbie :)

pumarjr
05-20-2006, 08:09 PM
how do i increase the [PHP Maximum Upload Size] which is set to 2mb in the AdminCP home page? screenshots provided below

https://vborg.vbsupport.ru/ (http://putfile.com/pic.php?pic=5/13917123786.jpg&s=f5)

AndrewD
05-21-2006, 05:40 AM
how do i increase the [PHP Maximum Upload Size] which is set to 2mb in the AdminCP home page? screenshots provided below

http://f5.putfile.com/5/13917123786-thumb.jpg (http://putfile.com/pic.php?pic=5/13917123786.jpg&s=f5)

Not sure what is going on. The VB admincp quickstats and the LDM table of php settings read and display the same value from your php.ini, i.e. upload_max_filesize, so they should be the same.

AndrewD
05-21-2006, 06:12 AM
AWW, can't make this to work... ok, here is what i've done so far.

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

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

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

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

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

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

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

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

Hope spmeone can help me, thanks.


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

AndrewD
05-21-2006, 06:18 AM
Thanks Andrew, but it doesn't seem to be working, here is my settings from the file

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

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

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

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

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

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

I'll send you a message with me email address

Holidazed
05-21-2006, 05:20 PM
Have you 'associated' the category with the protected forum (LDM/edit category/parent forum)?
Yes I did, but it still lets them in.

AndrewD
05-21-2006, 08:14 PM
Yes I did, but it still lets them in.

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

pumarjr
05-21-2006, 08:17 PM
it's funny, my post has been completely ignored

AndrewD
05-22-2006, 04:42 AM
it's funny, my post has been completely ignored

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

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

Latest versions of LDM places the following limits on uploads:

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

pumarjr
05-22-2006, 05:37 AM
i appologize

GrendelKhan{TSU
05-22-2006, 02:08 PM
quick question or suggestion before I forget:


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

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

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

no thoughts on this?

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

obmob
05-22-2006, 02:35 PM
From the URLs that you are showing, you seem to have switched on the seo_friendly option on the LDM admin settings page. Have you also configured apache to work with SEO links? If not, you will get exactly the errors you are mentioning:bunny: you are right, i forgot i set that and didnt check apache...

i'm such a fool :(

thanks Andrew, i'll test once again :)

Benj
05-23-2006, 11:31 PM
has anyone tried to play mp3s using a flash player with this hack ??

obmob
05-24-2006, 02:53 AM
You know, it would be great to be able to determine a folder for each category... and separate one for thumbs.

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

Something like this:

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

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

AndrewD
05-24-2006, 04:48 AM
... i'm translating to spanish, i'll attach it later this week. :)

Thanks!!

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

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

Benj
05-24-2006, 12:55 PM
andrew anyway you could russle up another addon to show a users files in there profile? id be willing to donate (if your accepting them now ;))

cheers mate

obmob
05-25-2006, 02:42 AM
Thanks!!

You realise that there is a 50% translation provided into Mexican Spanish? Take a look in the /development part of the directory tree in the zip file.Yeah, i didn't like it, so i'm also changing some spanish to make it more natural, hope you like it whe it's done. :bunny:

oglsmm
05-26-2006, 09:32 PM
Sorry I did some searches using terms I was able to think of, but was unable to find an answer.

I have two questions;

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

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

obmob
05-26-2006, 09:42 PM
Sorry I did some searches using terms I was able to think of, but was unable to find an answer.

I have two questions;

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

2) Is there a way to force users who have permission to upload to only upload to a specific Catagory?First answer is right here O_o
http://www.eirma.org/devel/LDM

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

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

thanks

Boofo
05-27-2006, 03:03 AM
Can some please help me with the forum of this setting?thumbs_dirDirectory in which thumbnails are stored [relative to webroot]. Ensure writable by webserver. Right now is is set at:/forum/images_fr/ldm_thumbsbut I am still getting a red x next to the link, even after rebuilding the thumbnails. Does anybody have any idea what I am doing wrong?

arcadian_girl
05-27-2006, 03:23 AM
hi Boofo :)

Boofo
05-27-2006, 03:27 AM
hi Boofo :)

Well, hello there, young lady. ;)

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

AndrewD
05-27-2006, 05:31 AM
Can some please help me with the forum of this setting?Right now is is set at:but I am still getting a red x next to the link, even after rebuilding the thumbnails. Does anybody have any idea what I am doing wrong?

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

Boofo
05-27-2006, 05:40 AM
PM with the details is on it's way, sir. ;)

And thank you. ;)

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

thanks

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

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

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

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

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

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

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

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

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

AndrewD
05-27-2006, 07:43 AM
1) Is it possible to just rename local_links.php to another name?
For example files.php, etc

See section 2.2 of the online manual

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

As admin, do the following:

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

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

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

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

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

AndrewD
05-27-2006, 08:34 AM
andrew anyway you could russle up another addon to show a users files in there profile? id be willing to donate (if your accepting them now ;))

cheers mate

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

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

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

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

arcadian_girl
05-27-2006, 09:24 AM
I'm assuming that you've uploaded the autocreate_plugin.xml plugin and you can see from your VB admincp that it is active and tied to ldm_addlink_inserted.

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

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

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

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

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

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

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

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


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

oglsmm
05-27-2006, 12:48 PM
See section 2.2 of the online manual

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

Thanks

As admin, do the following:

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

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

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

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

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

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

Sorry, I've confused you.

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

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

PitchouneN64ngc
05-27-2006, 06:12 PM
Hi there :)

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

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

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

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

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

vitoreis
05-27-2006, 11:23 PM
I want to thank Andrew here in the thread for all his help in fixing my mistake earlier. The support is fantastic and the best I have seen here on the org in a long time. Thank you, sir, and keep up the great work. ;)
I have the same problem! What the resoluction for this?

Thanks,
Vitor Reis

PitchouneN64ngc
05-27-2006, 11:48 PM
Hi there :)

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

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

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

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

And your hack is great, I'll help you with translate your hack in French. For that, I've restarted a free translation. I must to translate each setting and all will be ok for release it ;)
I want to turn back on my post. There is no bug in this part. There is '2097152' (about filesize) if you are an admin, which I don't check before. And for users who aren't admin, it takes the original values of the Attachments Manager.

Sorry for this wrong report.

But for the future translation, all is ok :)

obmob
05-28-2006, 12:47 AM
OK, still testing and translating :p

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

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

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

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

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

Sorry for this wrong report.

But for the future translation, all is ok :)

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

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

AndrewD
05-28-2006, 05:14 AM
I have the same problem! What the resoluction for this?

Thanks,
Vitor Reis

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

AndrewD
05-28-2006, 05:29 AM
OK, still testing and translating :p

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

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


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

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

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

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

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

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

thanks

arcadian_girl
05-28-2006, 10:48 AM
nevermind, figured it out :)

oglsmm
05-28-2006, 12:52 PM
Sorry, I've confused you.

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

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

That did it, thanks a million!

Benj
05-28-2006, 03:59 PM
Benj, the attached plugin will list the user's five most recent entries in her profile.

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

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

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

WICKED once again thanks alot andrew

obmob
05-28-2006, 08:00 PM
Can you explain a bit more - I'm not sure I understand the questionOh, attached an example, site is www.boyis.com. They have more complex structure, but this is what i meant.

In 125.jpg, you can see the details for that picture, in this case it can be the linkbit in LDM. Now, if you click the download button a new page is opened, imagine a regular page, with header, navbar & footer, where the content can be download instructions and the full size file, or only the full size file, like 126.jpg.

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

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

So, i edited links_main template... i figured it where is the header i want to move or change, now, i would love to know what does this do? :surprised:

<if condition="$consumption">
<tr>
<td class="alt1" align="$stylevar[right]">
<span class="smallfont">$consumption</span>
</td>
</tr>
</if>

Thanks for your support AndrewD! :bunny:

AndrewD
05-29-2006, 05:14 PM
now, i would love to know what does this do? :surprised:

<if condition="$consumption">
<tr>
<td class="alt1" align="$stylevar[right]">
<span class="smallfont">$consumption</span>
</td>
</tr>
</if>

Thanks for your support AndrewD! :bunny:

When you enable user download/bandwith allowances (LDM admincp), $consumption contains the actual and allowed daily usage.

I'll look at your other point tomorrow

obmob
05-29-2006, 05:59 PM
Oh, i should test that too. oO

I'll be waiting for your comments on the other question, thanks! ^^

kpr
05-30-2006, 12:14 AM
Warning: Unknown(includes/local_links_init.php): failed to open stream: No such file or directory in /admincp/plugin.php(1232) : eval()'d code on line 3

Fatal error: (null)(): Failed opening required 'includes/local_links_init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ipokiyt/public_html/admincp/plugin.php(1232) : eval()'d code on line 3

Im getting this eeror importing the plugin.

any ideas on this

Thanks

obmob
05-30-2006, 12:31 AM
Warning: Unknown(includes/local_links_init.php): failed to open stream: No such file or directory in /admincp/plugin.php(1232) : eval()'d code on line 3

Fatal error: (null)(): Failed opening required 'includes/local_links_init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ipokiyt/public_html/admincp/plugin.php(1232) : eval()'d code on line 3

Im getting this eeror importing the plugin.

any ideas on this

Thanksdid you upload all files as requested? oO
and created your folders?

AndrewD
05-30-2006, 04:03 AM
Warning: Unknown(includes/local_links_init.php): failed to open stream: No such file or directory in /admincp/plugin.php(1232) : eval()'d code on line 3

Fatal error: (null)(): Failed opening required 'includes/local_links_init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ipokiyt/public_html/admincp/plugin.php(1232) : eval()'d code on line 3

Im getting this eeror importing the plugin.

any ideas on this

Thanks

Which plugin are you trying to import? Have you installed and set up LDM and is it running correctly?

AndrewD
05-30-2006, 04:12 PM
Oh, attached an example, site is www.boyis.com. They have more complex structure, but this is what i meant.

In 125.jpg, you can see the details for that picture, in this case it can be the linkbit in LDM. Now, if you click the download button a new page is opened, imagine a regular page, with header, navbar & footer, where the content can be download instructions and the full size file, or only the full size file, like 126.jpg.



Have you tried setting up the category so that it uses variations of the links_linkbit_short template and the link_cols_display setting. You can do this for all categories on the LDM admin page or per category/children on the edit category/display settings page. You could set up the links_linkbit_short template to give the overview picture, then the links_linkbit template to give the full download.

Let me know if this is not what you're after.

obmob
05-30-2006, 04:27 PM
Oh, im modifying those linkbit templates.

In the end, how can i open the file inside another template?

I want to show my ad banner and below, the full sized image, and if it's a file, just to promt for downloading :)

arcadian_girl
05-30-2006, 07:31 PM
i have a question-i know its been asked before but i can't seem to find the answer

i have an image as my forum background, and that image is also coming up as the background for the text box, which makes it hard to read..is there a way to change it to a solid color?

thanks, and sorry, i know this has been asked before-but i cant find it :/

obmob
05-30-2006, 11:34 PM
I think spanish translation is over... now LDM is "Administrador de Vínculos y Descargas" or AVD ^^

I think i translated everything, but somehow i can't import the file into my board, it says it's an invalid file. ><

EDIT: ¬¬

I forgot the phrases, attached both, product and phrases.

AndrewD
05-31-2006, 04:13 AM
i have a question-i know its been asked before but i can't seem to find the answer

i have an image as my forum background, and that image is also coming up as the background for the text box, which makes it hard to read..is there a way to change it to a solid color?

thanks, and sorry, i know this has been asked before-but i cant find it :/

Which text box are you referring to? I'm sure this will be easy to restyle.

AndrewD
05-31-2006, 04:15 AM
I think spanish translation is over... now LDM is "Administrador de V?nculos y Descargas" or AVD ^^

I think i translated everything, but somehow i can't import the file into my board, it says it's an invalid file. ><

EDIT: ??

I forgot the phrases, attached both, product and phrases.

Thanks - will be included as part of the next release.

arcadian_girl
05-31-2006, 08:41 AM
Which text box are you referring to? I'm sure this will be easy to restyle.

not the box you type in, but the box that recieved messages appear in.

arcadian_girl
06-01-2006, 01:56 AM
anyone?

EasyTarget
06-01-2006, 02:03 AM
has anyone made an addon for the categories with links_linkbit_photo categories where we can display the last X photo submissions or X random images on the forum home from selected LDM categories?

AndrewD
06-01-2006, 05:05 AM
anyone?

Travelling, sorry - but I'm still not clear which text box you are referring to. Which function are you using when this text box is displayed?

Alfa1
06-01-2006, 09:56 AM
I have searched this thread and could not find anything about this:

I would very much like to connect the reputation system of vBulletin to LDM, so that ratings on the file would affect the reputation of the member posting it. This would greatly improve the amount of files posted.

Andrew, thanks again for this great software. I am enjoying this very much.

obmob
06-01-2006, 03:09 PM
You mean the comments box? i see an alt class applied in there, maybe you have an image in your style, that's why the image appears in the background.

Well, i think i found a bug, one of my test folders have 4 entries, i put dates back to 2003, but the folder says it has new entries and that last entrie was in july 2006 not 2003 Oo

:( no luck trying to open image in a new page with my banner and ad on it. Is there a file where i can edit how that works?

AndrewD
06-01-2006, 03:10 PM
I have searched this thread and could not find anything about this:

I would very much like to connect the reputation system of vBulletin to LDM, so that ratings on the file would affect the reputation of the member posting it. This would greatly improve the amount of files posted.

I'll think about a plugin - I'm not sure that this is something that everyone will want?

AndrewD
06-01-2006, 03:13 PM
Well, i think i found a bug, one of my test folders have 4 entries, i put dates back to 2003, but the folder says it has new entries and that last entrie was in july 2006 not 2003 Oo

As far as I recall (without checking the code in detail), the 'something new in category' flag is set when something is either added or edited in the category, not when the code had spotted an entry with a current date.

:( no luck trying to open image in a new page with my banner and ad on it. Is there a file where i can edit how that works?

Will have to wait until the weekend to answer this

EasyTarget
06-01-2006, 03:17 PM
I moved a download link to a different category today and now when people try to access the old link they get a Unfortunately, this entry is only available to our registered users. If you have an account at this site, log in and try again. Otherwise, consider using the register button to obtain one.

Please be aware that some entries on this site may only be available to privileged usergroups, in which case you may still receive a warning message after logging in.
Would it be possible to add a new error message which states the entry has been moved or some sort of auto-forwarding?

Also as far as alfa's suggestion.. seems like a good idea to me, although I don't use the reputation system on my site.

Any thought on supporting some code to display random images/latest images on forumhome or vbacmps index?

AndrewD
06-01-2006, 03:19 PM
I moved a download link to a different category today and now when people try to access the old link they get a
Would it be possible to add a new error message which states the entry has been moved or some sort of auto-forwarding?

Also as far as alfa's suggestion.. seems like a good idea to me, although I don't use the reputation system on my site.

Will add to the 'to do' list - this is a clear bug.

obmob
06-01-2006, 03:32 PM
As far as I recall (without checking the code in detail), the 'something new in category' flag is set when something is either added or edited in the category, not when the code had spotted an entry with a current date.

Will have to wait until the weekend to answer thisOH, ok, but what about the date, it says las added july 2006 not july 2003, that's weird.

Thanks for the other one, i don't want to start directories scanning without setting this.

Any thought on supporting some code to display random images/latest images on forumhome or vbacmps index?Thought there were some modules on the release... o_o

EasyTarget
06-01-2006, 07:19 PM
Thought there were some modules on the release... o_ohmm.. true. I didn't think of using the module to show latest pictures, I thought of it mainly for links/files. does it support showing picture thumbnails?

*edit*
just tested. The module will show a link to the picture but it does not display an actual image.

EasyTarget
06-02-2006, 04:58 AM
is there a way to make submissions in one category subject to moderation but not submissions in another?

EasyTarget
06-02-2006, 05:39 AM
I seem to get a database error after a user submitted a keyword with an apostrophe in it. (actually I'm just assuming that's the error from the message below.. I guess you'd be the one to know for sure)
Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT keyid, keyword
FROM local_linkskeys
WHERE keyword IN ('opengl', 'shatner', 'shatner's', 'ogl');

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 's', 'ogl')' at line 3

EasyTarget
06-02-2006, 05:41 AM
haha dang.. just noticed my sig got editted which had a cool link to make people nominate this as motm :p

obmob
06-02-2006, 03:33 PM
You've been very busy... well, i guess there must be a way to edit modules and add the thumbnail view for them, but i guess it must be resized in some way. At least my thumbs are 200 width... too big :p

obmob
06-02-2006, 05:57 PM
OK, i have a doubt... i want to show something similar to editbit or favbit templates and show an icon to download the files, i tried plain html and added $linkurllink in the URL, but it shows the whole path... then i tried $linkurljump but that one is embedded into a <a></a> tag.

Is there any way to show a "Download Link" besides clicking on the name of the file or the image? Oo

Hope i'm clear, thanks. XD

Alfa1
06-03-2006, 12:48 PM
I'll think about a plugin - I'm not sure that this is something that everyone will want?
Maybe not all people do not realise it yet, but providing this feature will affect the use and popularity of LDM in general:

Those boards which have their member status upgrades dependant upon reputation(Most large boards) will see a firm increase of the use of LDM, as members are eager to get a higher member status and thus contribute new entries to the LDM to get there.

We now manually bump reputation for this and it really gets the LDM going. Because of this, the LDM is growing so rapidly that at this rate, it will become just as important as the forum itself.

AndrewD
06-03-2006, 01:08 PM
is there a way to make submissions in one category subject to moderation but not submissions in another?

Currently no, but it could be changed. However...

Moderation is tied to the entry, independent of its category/ies. So what should happen if someone places the entry into multiple categories, when only one of these categories requires moderation? Presumably, the new entry will require moderation if any of these categories requires moderation?

GrendelKhan{TSU
06-03-2006, 03:24 PM
Hey Andrew...
nothing but continued praise from me, as you know.

few questions
1. I installed teh lightbox add-on... but its either not working or I can't figure out what it does. right now... I don't see any difference when enlarging a thumbnail. it just opens a new window. :/ did I miss something?

2. any chance of getting providing a url (parsed?) to an uploaded file so that people can link it into posts? [*url="uploadedfilevideo url"]myUploadedvideofile[*/url]

3. sorry I think I missed something. I upgraded to latest version 2.2.1... and is it me? or did the jukebox disappear? (mine now just launches windows media player or quicktime... no more window with the speaker and description underneath). or did I forget to turnon some setting (which I can't seem to find). I have the usergroup can_play_musicbox enabled for appropriate User groups. :/
EDIT: ok. I see what happened for number 3. didn't have the icon path set up and was just clickign the link. doh!

anyway...again... aweseom stuff.

GrendelKhan{TSU
06-03-2006, 03:46 PM
different question..
I have two boards. is it possible to import/transfer LDM files/links from one to the other?

AndrewD
06-03-2006, 03:53 PM
1. I installed teh lightbox add-on... but its either not working or I can't figure out what it does. right now... I don't see any difference when enlarging a thumbnail. it just opens a new window. :/ did I miss something?


It's linked to the magnifying glass icon. When you install it, the icon will do something rather interesting with the picture rather than opening a new winodw. Try it - perhaps you didn't have your icons directory set, so didn't have the magnifier

EasyTarget
06-03-2006, 05:21 PM
Currently no, but it could be changed. However...

Moderation is tied to the entry, independent of its category/ies. So what should happen if someone places the entry into multiple categories, when only one of these categories requires moderation? Presumably, the new entry will require moderation if any of these categories requires moderation?I have it set so that one group pretty much handles all the files, links, photos in the LDM. However we would like to have one category which allows for other groups to upload/add entries to a specific category. Since the other categories are controlled by a trusted usergroup there's no need for moderation of their files.

I assume in your example that there would be the general moderation setting as it is now, plus a category moderation setting. If both were set to yes I imagine that new entry would require moderation once for the categories without moderation and another time for the category with moderation. But what would happen if the general moderation setting was set to no and the category moderation were set to yes? I would assume it would work for my purposes so long as the cateogory settings override the general ones so that when the general one is enabled/disabled it doesn't override the category settings.

EasyTarget
06-03-2006, 10:35 PM
I've been tinkering around and comparing with a few other hacks and I think a beneficial change for some people would be the ability to list the most recent additions, most popular links/files and members who have contributed the most, right on the ldm home page (instead of having to click the dropdown link). so like some side modules on the ldm start page or maybe one long module that's split up into sections. and for those that didn't want to display them or only some they could enable/disable it in the settings.

Antivirus
06-04-2006, 12:59 AM
Can users of the LDM upload their files to the db therefore allowing the site to host the file for them?

Nevermind- found answer to my question :)
(all hail the MIGHTY "search this thread" function!)

GrendelKhan{TSU
06-04-2006, 07:01 AM
It's linked to the magnifying glass icon. When you install it, the icon will do something rather interesting with the picture rather than opening a new winodw. Try it - perhaps you didn't have your icons directory set, so didn't have the magnifier

hmm... it says to upload the lightbox icon folder in the forum root folder. is that not right? or was I supposed to add the icons into the LDM icon folder (rather than a new folder - "lightbox-icon")
also, I set the regular icon directory... is that the one you mean?

and did part 2 of my other question make sense? or was it one of those soo silly cause I missed something things that you're waiting for me to just realize that I've been a dork (most likely scenario :p)

AndrewD
06-04-2006, 10:53 AM
hmm... it says to upload the lightbox icon folder in the forum root folder. is that not right? or was I supposed to add the icons into the LDM icon folder (rather than a new folder - "lightbox-icon")
also, I set the regular icon directory... is that the one you mean?

and did part 2 of my other question make sense? or was it one of those soo silly cause I missed something things that you're waiting for me to just realize that I've been a dork (most likely scenario :p)

The files should all be uploaded into exactly the directories supplied in the addon, and then the plugin xml shouold be imported. Once that's done - at least with Firefox and IE6 - the magnifying glass behaves differently. It's a test towards extending the photo album features of LDM.

GrendelKhan{TSU
06-04-2006, 12:51 PM
The files should all be uploaded into exactly the directories supplied in the addon, and then the plugin xml shouold be imported. Once that's done - at least with Firefox and IE6 - the magnifying glass behaves differently. It's a test towards extending the photo album features of LDM.

hmm... did that.

uploaded entire "lightbox-icon" folder to forums root:

so....
www. mysite. com/forums/lightbox-icon

just to be safe I even uploaded to images folder:
www. mysite. com/forums/images/lightbox-icon

I even uploaded the contents of the lightbot folder to icons folder...

but still nothing. or I'm not seeing what its supposed to do. :(

feel free to check....
http://www.clantsu.org/forums/local_links.php?catid=4

AndrewD
06-04-2006, 01:19 PM
different question..
I have two boards. is it possible to import/transfer LDM files/links from one to the other?

Yes - if you want to do a complete transfer - use the xml export facility (LDM/admin/import and export) then the xml import addin

I intended at some stage to modify these to allow partial exports/imports, i.e to allow people to easily integrate sublibraries. I haven't got round to this yet.

AndrewD
06-04-2006, 01:33 PM
feel free to check....
http://www.clantsu.org/forums/local_links.php?catid=4



I see what you mean. Interesting thing is, when I dump the html source for that page onto my server, and point my browser at it, the plugin works fine. Will check further

GrendelKhan{TSU
06-04-2006, 02:04 PM
I see what you mean. Interesting thing is, when I dump the html source for that page onto my server, and point my browser at it, the plugin works fine. Will check further

thanks! let me know what you find out. :) I'm just happy that I wasn't imagining it or doing something totally stupid (entirely likely ;)).

It's a test towards extending the photo album features of LDM.
waitaminute!!

this just sunk in... that would be awesome.

this could take out all the galleries in one swoop! dang it.. now you making me wonder if I shoulda have installed a gallery. :/ grrrr. anyway...sounds very exciting. just remember that all the best photo galleries have bulk upload features. :p

;)

also if you are going for multiple functionality (already acts as a video library, download center, and links directory and now maybe photo gallery? ;))....
we are going to need to be able to choose different postbit displays for each category. (I'd love that NOW.) cause links and files and videos and photos need to be displayed much differently.... what works for one...doesn't really work for the others (again, I have this trouble now. :/)

just my2cents.

keep up the incredible work. :D

Alfa1
06-04-2006, 06:47 PM
My forum has 608 files attached to various threads. I'd like to review them and add those I approve to LDM. Is there an easy way to do this?

EasyTarget
06-04-2006, 10:27 PM
just remember that all the best photo galleries have bulk upload features.you can use ftp to upload and make an excel sheet to add all the info to the database.also if you are going for multiple functionality (already acts as a video library, download center, and links directory and now maybe photo gallery? ;))....we are going to need to be able to choose different postbit displays for each category. (I'd love that NOW.) cause links and files and videos and photos need to be displayed much differently.... what works for one...doesn't really work for the others (again, I have this trouble now. :/) It already acts as a photo gallery and has a template already built in for displaying photos (links_linkbit_photos). It works really well imo.

obmob
06-04-2006, 10:59 PM
you can use ftp to upload and make an excel sheet to add all the info to the database.:surprised: how... can you post an example? ^^

u.u no support for me this weekend, still stucked and can't start uploading.
Help, Andrew, Help! :knockedout:

testing2
06-04-2006, 11:39 PM
Hi, I have installed this mod and it's really useful. I have a problem though - it takes about 20 seconds to load the front page. All the rest of the pages load without any reduction in speed (1-3 seconds). I have about 150 links added so far and no file uploads.

Does anyone know of a way to speed up the page loading speed of the main page? I tried changing settings for number of most popular links and depth of categories shown but that didn't help.

Thank you.

AndrewD
06-05-2006, 04:24 AM
My forum has 608 files attached to various threads. I'd like to review them and add those I approve to LDM. Is there an easy way to do this?

This has been on the wish list for some time - transfer/add attachments to LDM (in fact it was my original reason for starting this project!). When I get more than a few minutes, I will probably do an add on for this.

Question: files can be 'attached' in several ways:
a) as VB attachments, held in the database
b) as VB attachments, held in the filestore
c) using the 'url' BBcode
etc
Which are you referring to?

AndrewD
06-05-2006, 04:27 AM
u.u no support for me this weekend, still stucked and can't start uploading.
Help, Andrew, Help! :knockedout:

Am also knocked out! - I've taken part in eight conferences and several other workshops in eight countries in the last six weeks, so there hasn't been too much time for coding. Things should quieten down reasonably soon.

AndrewD
06-05-2006, 04:36 AM
Hi, I have installed this mod and it's really useful. I have a problem though - it takes about 20 seconds to load the front page. All the rest of the pages load without any reduction in speed (1-3 seconds). I have about 150 links added so far and no file uploads.

Does anyone know of a way to speed up the page loading speed of the main page? I tried changing settings for number of most popular links and depth of categories shown but that didn't help.

Thank you.

This surprises me, as the front page uses the same code as the rest. Couple of suggestions
- try setting LDM/admin *show_hit_parade* to zero
- try loading one of the inner pages in LDM directly from a clean browser launch (e.g. point your browser at http://yoursite/local_links.php?catid=1). Is this slow - in other words, is it the first page that is slow or the home page?
- edit your VB includes/config.php and add the following line:
$config['Misc']['debug'] = true; at the bottom. This adds debugging code to VB, and you will get a timer/database hit record at the bottom of each page, with an 'Explain' link. On your LDM home page, click on 'Explain', and it will tell you where the time is being spent. (On my test board, the home page requires 15 database lookups and 0.1 seconds.)

Send me a PM with your findings and we can try to get to the bottom of this.

GrendelKhan{TSU
06-05-2006, 09:17 AM
you can use ftp to upload and make an excel sheet to add all the info to the database.It already acts as a photo gallery and has a template already built in for displaying photos (links_linkbit_photos). It works really well imo.

I know it already does ... superficially. but andrew mentioned further development to this end so that's why I got pumped. ;)


also, I know you can use the links_linksbit_photos as well.. .but as far as I can tell... you can't use different linkbits for different categories. I don't want to use that for my links category or say, my files categories... only for the section dedicated to photos....

can I request that as a future feature Andrew? (or is it there and I just missed it?)

AndrewD
06-05-2006, 09:42 AM
but as far as I can tell... you can't use different linkbits for different categories. I don't want to use that for my links category or say, my files categories... only for the section dedicated to photos....


Yes you can.

Edit the category (LDM/category/drop down menu)

Three tabs across the top: Category Details, Display Settings, User Group Permissions.

Display Settings and User Group Permissions allow you to override the main admin settings for the current category and by default its children.

So for the category you want to use for photos, go to the Display Settings tab and change template_linkbit

obmob
06-05-2006, 02:45 PM
Am also knocked out! - I've taken part in eight conferences and several other workshops in eight countries in the last six weeks, so there hasn't been too much time for coding. Things should quieten down reasonably soon.oh... very busy, well... i can wait :bunny:
Thanks

EasyTarget
06-05-2006, 03:10 PM
Yes you can.

Edit the category (LDM/category/drop down menu)

Three tabs across the top: Category Details, Display Settings, User Group Permissions.

Display Settings and User Group Permissions allow you to override the main admin settings for the current category and by default its children.

So for the category you want to use for photos, go to the Display Settings tab and change template_linkbityeah, I must say the flexibility of this hack is awesome. I love that I can display the content in category in many different ways. This allows me to have one style for just links, another for downloads/programs which require more detailed information and a whole other style for showing images.

and I must again personally thank andrew for the cURL support, as I appear to be one of the few, if not the only user, that cannot use the fopen php functions (webhost company www.dreamhost.com has it globally disabled for security purposes).

how... can you post an example?if you open up one of the excel examples/csv files provided in the download (provided in the main folder, 2.2.1) you'll see an example of how to set up the information. Then I think you go to administration, then import/export and choose to import a csv file. (someone correct me if I'm wrong)
You can also set up LDM to automatically scan certain folders/directories for new files and it will add the new files to a category of your choosing.

obmob
06-05-2006, 04:01 PM
OO awesome... very useful!!!

BTW... is there any way to rename uploaded files to some sort of chain values... like rename a image from :

imagename.jpg to

sitename.category.imagetitle.by.username.jpg

Where sitename is the site's name :p
category where it will be uploaded
image title, the title of the image
by... lol the word by
username, the username who uploaded the image :)

I mean gathering the info included while it's uploaded and show it this way to be well recognized by those who download the file? OO

boduzapho
06-05-2006, 11:02 PM
Just installed, looks great, 1 issue thoe, the thumbnail i uploaded to my test item does not show.. anyone know why?

AndrewD
06-06-2006, 04:10 AM
Just installed, looks great, 1 issue thoe, the thumbnail i uploaded to my test item does not show.. anyone know why?

This is usually because of a mismatch/error between some parameter settings, e.g. the LDM thumbs_dir and your VB homepage url. Which browser are you using? With Firefox, images don't apper at all when there is a problem, but with IE, you get a red cross.

Couple of things to try in order to pin down the problem

- using IE, go to the page where the thumb has been replaced by a red cross, and use a mouse right click then properties to find out what url the browser is trying to load. Relate this to your settings of thumbs_dir and homepage url.

- try clearing the thumbs_dir setting on the LDM admincp. See if the thumbnail appears

sezmar
06-06-2006, 02:13 PM
This is a great hack I just love it.

I have a strange problem, yesterday I installed it and it worked fine. Just uploaded some images and a file. So today I go to upload mp3 and it went to a blank screen. Now it goes to blank screens with every file I try to upload. The files will not show up in the LDM system, but when I check the ftp folder they are there. The oly thing I did today was to add the media files in the admincp for attachments.

Any suggestions?

obmob
06-06-2006, 03:00 PM
:( Andrew will hate me soon... is it possible to have a thumbnail size to show in linkbit_short, a medium image to show in linkbit and the original file to be downloaded?

Thanks :D

AndrewD
06-06-2006, 03:22 PM
:( Andrew will hate me soon... is it possible to have a thumbnail size to show in linkbit_short, a medium image to show in linkbit and the original file to be downloaded?

Thanks :D

Watch this space and wait ...

All will happen soon.

AndrewD
06-06-2006, 03:23 PM
This is a great hack I just love it.

I have a strange problem, yesterday I installed it and it worked fine. Just uploaded some images and a file. So today I go to upload mp3 and it went to a blank screen. Now it goes to blank screens with every file I try to upload. The files will not show up in the LDM system, but when I check the ftp folder they are there. The oly thing I did today was to add the media files in the admincp for attachments.

Any suggestions?

No suggestions, I'm afraid. Just to be clear, are you uploading files via ftp, or via LDM? And is it only LDM that gives you blank screens, etc?

Am happy to take a look at your site if you want.

sezmar
06-06-2006, 04:07 PM
No suggestions, I'm afraid. Just to be clear, are you uploading files via ftp, or via LDM? And is it only LDM that gives you blank screens, etc?

Am happy to take a look at your site if you want.


Thanks for such a quick reply, I was using the LDM system to upload. Sure please check your PM for the site.

sydude
06-06-2006, 04:08 PM
Hi guys. Andrew, I love this hack more and more every day. Thank you again for your wonderful work.

Can someone please help me change the main linkbit template to make everything within the link bit align to the top? See image of what I have now.

48933

Also, maybe in a future version you can give the user the choice of alignment in the cp? Just a thought.

Thanks!

Sy

Dennis B
06-06-2006, 06:58 PM
Andrew,

I've searched this thread and the manual for "new entry credit" in the daily allowances options but only found 1 answer saying it's "half done". What is this about, after all? Integration with eBux? Since I'm also translating LDM I'd appreciate if you would just briefly describe it's purpose. Thanks. Great hack BTW. :D

obmob
06-06-2006, 08:41 PM
Hi guys. Andrew, I love this hack more and more every day. Thank you again for your wonderful work.

Can someone please help me change the main linkbit template to make everything within the link bit align to the top? See image of what I have now.

Also, maybe in a future version you can give the user the choice of alignment in the cp? Just a thought.

Thanks!

SyHmm... well, i think this is waht you want. Columns with vertical alignment to TOP. :bunny:

OK, i'll wait, thanks Andrew :D

<tr id="linkid$linkid">
<td colspan="2">
<fieldset class="fieldset">
<legend>
<strong>
<if condition="$linknew">$linknew</if>
$linktypebit
$linkurljump
</strong>
</legend>
<div style="margin-top:3px">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<if condition="$linkimg">
<td width="$linkimgsize" align="$stylevar[right]" valign="top">
$linkimgjump
<br />
<div style="margin-top:3px"><span class="smallfont">$linkimgmag</span></div>
</td>
<td width="5">&nbsp;</td>
</if>
<td valign="top">
<span class="smallfont">
$linkdesc
<if condition="$showcatname"><br /><br />$vbphrase[ll_cat] $linkothercatsbit<else />
<if condition="$linkshowothercatbit>0"><br /><br />$vbphrase[ll_seealso] $linkothercatsbit</if>
</if>
</span>
</td>
<td width="5">&nbsp;</td>
<td width="30%">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top">
<fieldset class="fieldset">
<legend>$linkfavbit $linkeditbit
<if condition="$links_permissions[can_send_tofriend]">
<a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkc atid&amp;linkid=$linkid" target="_blank" title="$vbphrase[ll_sendtofriend]"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a>
</if>
<if condition="$links_permissions[can_report_link] and $linkuserid != $bbuserinfo[userid]"> <if condition="$links_permissions[can_report_link] and $linkuserid != $bbuserinfo[userid]"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid &amp;catid=$viewcatid&amp;page=$pagenumber"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if></if>
</legend>
<table width="100%"><tr><td align="$stylevar[right]">
<span class="smallfont">
<if condition="$links_defaults[enable_doi] and $linkdoi">$vbphrase[ll_doi] $linkdoi<br /></if>
<if condition="$links_permissions[can_view_names]">$vbphrase[ll_submitby] <a href="member.php?u=$linkuserid">$linkusername</a><br /></if>
<if condition="$linkmoderate==$LINK_TO_MODERATE and ($links_permissions[can_moderate_links] or $links_permissions[can_moderate_forums])">
[<a href="$LINKS_SCRIPT.php?action=domod&catid=$viewcatid" title="$vbphrase[ll_moderate]">$vbphrase[ll_moderate]</a>]<br />
</if>
$linkdate
<if condition="$links_permissions[can_view_hits]"><br />$vbphrase[ll_hits] $linkhits</if>
<if condition="$linksize"><br />$linksize $vbphrase[ll_kb]</if>
<if condition="!$linkstatus"><br />[$vbphrase[ll_unknown_status]]</if>
<if condition="$links_permissions[can_moderate_links] and $linkstatus==$LINK_HIDDEN"><br />[$vbphrase[ll_hidden]]</if>
<if condition="$links_permissions[can_set_display_order]"><br />$vbphrase[ll_displayorder] $thisorder</if>
<if condition="$linkkeys"><br />$vbphrase[ll_keywords] $linkkeys</if>
</span>
</td>
<if condition="$linkavatar"><td valign="top">$linkavatar</td></if>
</tr></table>
</fieldset>
</td>
</tr>
<if condition="$linkratebit">
<tr>
<td id="ratings$linkid" align="$stylevar[left]">
<if condition="$linkraters"><script type="text/javascript"> vbmenu_register("ratings$linkid"); </script>&nbsp;</if>
<span class="smallfont">
$linkratebit
</span>
</td>
</tr>
</if>
</table>
</td>
</tr>
</table>
</div>
</fieldset>
</td>
</tr>

AndrewD
06-07-2006, 04:11 AM
Andrew,

I've searched this thread and the manual for "new entry credit" in the daily allowances options but only found 1 answer saying it's "half done". What is this about, after all? Integration with eBux? Since I'm also translating LDM I'd appreciate if you would just briefly describe it's purpose. Thanks. Great hack BTW. :D

Currently, the admin can restrict users to a certain maximum number of downloads or bandwidth per day.

The intention is to enable integration of LDM with different points systems and to reward people for providing new files/uploads. So, when complete, the admin will be able to set the number of 'points' a user gets for each addition. This could, e.g, improve their status, give them more download capacity, etc. But it's only half done.

FireFish
06-07-2006, 04:23 AM
This is a HOT download manager!
All others sucked; never got them working.

This one is sweet.

Thanks man!

Dennis B
06-07-2006, 10:40 AM
Thanks for the explanation Andrew. :up:

GrendelKhan{TSU
06-07-2006, 11:10 AM
Yes you can.

Edit the category (LDM/category/drop down menu)
Three tabs across the top: Category Details, Display Settings, User Group Permissions.
Display Settings and User Group Permissions allow you to override the main admin settings for the current category and by default its children.


AHHH HAAA!! thanks! should have known it was in there. :) sorry so many awesome features...its hard to find em sometims. ;) man this hack pwns.

if you open up one of the excel examples/csv files provided in the download (provided in the main folder, 2.2.1) you'll see an example of how to set up the information. Then I think you go to administration, then import/export and choose to import a csv file. (someone correct me if I'm wrong)
You can also set up LDM to automatically scan certain folders/directories for new files and it will add the new files to a category of your choosing.


AHHH HAAA!! thanks! should have known it was in there. :) sorry so many awesome features...its hard to find em sometims. ;) man this hack pwns.

lol

---

ps. AGAIN, I couldn't find this in the hack or in this massive thread (don't kill me!!)...

but is it possible to have people ONLY be able to open the jukebox, but launch the Visit/Download link via the title link and thumbnail? (setting option per category.)

almost no one clicks the launch icon (as first instinct) and keep clicking the thumbnail or link...
after a delay this launches either embedded QTime in the same window or launches standonline real player (on my system and few others). so its really confusing what's goign on for people. esp if they WANT to launch the jukebox but accidently/naturally go for the link or thumbnail first.

is this normal behavior? I figured it was supposed to launch a download file thingy (like right click).

if this is normal, I want to be able to disable the view/download for some of the categories and have them only be able to right-click download or luanch the Jukebox.

This is a great hack I just love it.

I have a strange problem, yesterday I installed it and it worked fine. Just uploaded some images and a file. So today I go to upload mp3 and it went to a blank screen. Now it goes to blank screens with every file I try to upload. The files will not show up in the LDM system, but when I check the ftp folder they are there. The oly thing I did today was to add the media files in the admincp for attachments.

Any suggestions?

I had this problem with mp3 too. I couldn't figure out what was going on. closed reopened browser. cleared cache.
still only my mp3s wouldn't upload.

only thing that made it work was I moved the mp3 file to my desktop and uploaded from there.

It was deep in my harddrive (multiple folders deep) so I thought made LDM was having trouble grabbing it. I konw that is layman non-programmer logic...and no idea if this is "real" solution or ghost in the machine coincedence (probably) but after I moved it. it started working again. dunno. give it a shot.

lexx27
06-07-2006, 11:15 PM
Congratulations for this great code.

I only have two problems:

1. I uploaded a zip file successfully. Then I tried to upload an mp3 file and the browser redirected after a minute to a blank page (http://www.akrovates.com/forums/local_links.php).

2. When I link an mp3, the code adds automatically a thumbnail...

The mimetype is right, and I searched for about an hour this thread.

lexx27
06-08-2006, 12:10 AM
I have news. The problem exists with firefox. IE can upload mp3s.

GrendelKhan{TSU
06-08-2006, 02:22 AM
check my post above. its silly...but see if it works for you.

sydude
06-08-2006, 03:00 AM
Hmm... well, i think this is waht you want. Columns with vertical alignment to TOP. :bunny:

Thank you. That did the trick for the thumbnail picture on the left, but it didn't work with the right column, the one with all the controls (what do we call that thingie anyway?). It was supposed to, right?

S

testing2
06-08-2006, 03:21 AM
This surprises me, as the front page uses the same code as the rest. Couple of suggestions
- try setting LDM/admin *show_hit_parade* to zero
- try loading one of the inner pages in LDM directly from a clean browser launch (e.g. point your browser at http://yoursite/local_links.php?catid=1). Is this slow - in other words, is it the first page that is slow or the home page?
- edit your VB includes/config.php and add the following line:
$config['Misc']['debug'] = true; at the bottom. This adds debugging code to VB, and you will get a timer/database hit record at the bottom of each page, with an 'Explain' link. On your LDM home page, click on 'Explain', and it will tell you where the time is being spent. (On my test board, the home page requires 15 database lookups and 0.1 seconds.)

Send me a PM with your findings and we can try to get to the bottom of this.


Thank you for your help! I changed the LDM_hit_parade to 0 and the page load time went from 17.5 seconds to 0.145 seconds!

AndrewD
06-08-2006, 04:07 AM
Thank you. That did the trick for the thumbnail picture on the left, but it didn't work with the right column, the one with all the controls (what do we call that thingie anyway?). It was supposed to, right?

S

About 30 lines into the linkbit, there are these two lines:

<td width="5">&nbsp;</td>
<td width="30%">

Put an alignment tag into the second td:
<td width="5">&nbsp;</td>
<td width="30%" valign="top">

AndrewD
06-08-2006, 04:13 AM
I have news. The problem exists with firefox. IE can upload mp3s.

There's something deeper going on, and we need to get to the bottom of it. I'd appreciate any reports of blank screens, plus details of attempts to resolve.

With the site that first flagged this problem, attempts to add a new entry to LDM which involves an upload results in a blank screen, with nothing added. It happens (as far as I can tell) with all filetypes, and with both IE and Firefox. However, uploads do work correctly, for example, if I take an existing entry and edit it to replace an existing link with an upload. Furthermore the Jukebox screen is also blank.

Each of these cases works fine on my test system, using identical commands and an identical release, so there must be something in the site configuration that's triggering this.

AndrewD
06-08-2006, 04:14 AM
Thank you for your help! I changed the LDM_hit_parade to 0 and the page load time went from 17.5 seconds to 0.145 seconds!


OK, I'll take a look at the code

lexx27
06-08-2006, 12:15 PM
Another thing I noticed is that a file had 30 downloads yesterday (webalizer report), and only 2 hits inside the manager???

lexx27
06-08-2006, 12:46 PM
2. When I link an mp3, the code adds automatically a thumbnail...

The mimetype is right, and I searched for about an hour this thread.

do you know anything about this