vb.org Archive

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

|oR|Greg 05-10-2006 05:35 PM

Quote:

Originally Posted by MissKalunji
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

Quote:

Originally Posted by Taylor123
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.

Quote:

Originally Posted by Taylor123
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

Quote:

Originally Posted by Taylor123
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

Quote:

Originally Posted by |oR|Greg
Do you mean the description?

yeah description

MissKalunji 05-10-2006 05:52 PM

Quote:

Originally Posted by MissKalunji
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

Quote:

Originally Posted by MissKalunji
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 :
Quote:

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.

Code:

<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=$linkcatid&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

Quote:

Originally Posted by |oR|Greg
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

Quote:

Originally Posted by |oR|Greg
Best I can do on short notice... see attached image.

Code:

<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=$linkcatid&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

Quote:

Originally Posted by AndrewD
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

Quote:

Originally Posted by Taylor123
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

Quote:

Originally Posted by q8-star
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

Quote:

Originally Posted by |oR|Greg
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

Quote:

Originally Posted by shiva
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

Quote:

Originally Posted by AndrewD
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

Quote:

Originally Posted by AndrewD
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

Quote:

Originally Posted by |oR|Greg
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

Quote:

Originally Posted by |oR|Greg
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

Quote:

Originally Posted by |oR|Greg
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/...ks.php?catid=6

http://www.dancehallareaz.com/forum/...ks.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.

Code:

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

</if>

Example:
Code:

<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

Quote:

Originally Posted by MissKalunji
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.


All times are GMT. The time now is 02:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04455 seconds
  • Memory Usage 1,883KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete