vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=166094)

skooby 09-15-2008 05:54 PM

Hi,
is it possible to have one uploaded file be accessible to everyone? I guess what 'm asking is, can you set one upload to override the default settings?

I have 1 file that I want guests and registered users both to be able to see and download.

dranet 09-15-2008 06:41 PM

I have this installed and am having problems with uploads. We have the max file size set to 30meg (in both vbulletin and in php.ini). I have been able to successfully upload 4 meg files, but the larger ones don't upload. I'm not getting any error at all. All it does is take the uploader back to the categories screen and the file is not there.

Help? I'm using 2.2.9 post 3, vb 1.3.7

Thanks!
Tracy

AndrewD 09-15-2008 06:53 PM

Quote:

Originally Posted by skooby (Post 1622759)
Hi,
is it possible to have one uploaded file be accessible to everyone? I guess what 'm asking is, can you set one upload to override the default settings?

I have 1 file that I want guests and registered users both to be able to see and download.

LDM has two different permissions systems available - its own, which is category based, and a forum-based mechanism. The first is easier to apply, but the second is more flexible, because it can be applied right down to individual entries.

Do you want to place the special upload in the same category as other entries, or not? If you are happy to have the open entry in its own category, then it's easy - you just give that category different access permissions (ldm/edit category/user group permissions).

Otherwise, you need to use the forums-based permissions system.

These are explained in the wiki - get back to me if it's not clear.

AndrewD 09-15-2008 06:57 PM

Quote:

Originally Posted by dranet (Post 1622797)
I have this installed and am having problems with uploads. We have the max file size set to 30meg (in both vbulletin and in php.ini). I have been able to successfully upload 4 meg files, but the larger ones don't upload. I'm not getting any error at all. All it does is take the uploader back to the categories screen and the file is not there.

Help? I'm using 2.2.9 post 3, vb 1.3.7

Thanks!
Tracy

Possibly, the script is timing out before the upload completes. Are you using the standard file upload, or have you tried installing the swfupload 'extra', which gives you a progress bar?

AndrewD 09-15-2008 07:14 PM

Quote:

Originally Posted by sparklywater (Post 1622722)
If you look at this preview of an entry of a pdf file:

Do you see in the red circle the extended description of a category is displayed?
If this is a preview of an entry, then why is the description of a category displayed here?

The logic is that you are looking at an entry within its category. In the standard links_main template (which I think you've modified), it makes sense to show the extended description within the category title box.

You can always hide the extended description by including a text on $viewcatid in the template. In the standard links_main template, you have this sequence:
Code:

<if condition="$viewcattext or $viewcatextra">
<tr>
        <td class="alt1">
        $viewcattext
        <div class="smallfont alt1" style="float:$stylevar[right]" align="$stylevar[right]">$viewcatextra</div>
        </td>
</tr>
</if>

which you could change to

Code:

<if condition="($viewcattext or $viewcatextra) and !$viewlinkid">
<tr>
        <td class="alt1">
        $viewcattext
        <div class="smallfont alt1" style="float:$stylevar[right]" align="$stylevar[right]">$viewcatextra</div>
        </td>
</tr>
</if>


dranet 09-15-2008 07:22 PM

That is what it looks like. Our information panel on the left says 60 seconds. Do you know how to change that setting? Is it done in the program or is that something in mysql?

I'm using the standard file upload. I'm not familiar with swfupload - do you think it will help? How do I find it?

Thanks again!
Tracy

Quote:

Originally Posted by AndrewD (Post 1622807)
Possibly, the script is timing out before the upload completes. Are you using the standard file upload, or have you tried installing the swfupload 'extra', which gives you a progress bar?


skooby 09-15-2008 07:30 PM

Quote:

Originally Posted by AndrewD (Post 1622805)
LDM has two different permissions systems available - its own, which is category based, and a forum-based mechanism. The first is easier to apply, but the second is more flexible, because it can be applied right down to individual entries.

Do you want to place the special upload in the same category as other entries, or not? If you are happy to have the open entry in its own category, then it's easy - you just give that category different access permissions (ldm/edit category/user group permissions).

Otherwise, you need to use the forums-based permissions system.

These are explained in the wiki - get back to me if it's not clear.

Thanks for the response. I read the wiki and understand how both work, but from what I'm reading in the Wiki, I don't understand how to actually give individual permissions to one entry.

The default permission for the category is to deny access to unregistered users, but I want unregistered users to be able to download one entry within that category, and not sure how to go about doing that (without giving unregistered users access to everything in that

Do I have to create a special usergroup that has read permissions for guests, but then I'm not sure how I would apply the permissions to that one specific entry (and not the entire category).

dranet 09-15-2008 07:39 PM

Quote:

Originally Posted by skooby (Post 1622829)
Thanks for the response. I read the wiki and understand how both work, but from what I'm reading in the Wiki, I don't understand how to actually give individual permissions to one entry.

The default permission for the category is to deny access to unregistered users, but I want unregistered users to be able to download one entry within that category, and not sure how to go about doing that (without giving unregistered users access to everything in that

Do I have to create a special usergroup that has read permissions for guests, but then I'm not sure how I would apply the permissions to that one specific entry (and not the entire category).

I think the easiest thing would be to create a category specifically for the file and unregistered users. If you want the file in a specific category, you can upload it twice.

obmob 09-15-2008 09:43 PM

So many posts to read x.x

Thanks for the update Andrew :D

Saint_I_Am 09-15-2008 10:40 PM

Quote:

Originally Posted by AndrewD (Post 1622696)
Edit includes/local_links_flashsites.php, find the lines:

PHP Code:

"YouTube" => array(
    
"pattern" => "#http://(www.youtube|youtube)\.com/watch\?v=([\w-]+)#i",
    
"urlreplace" => "http://www.youtube.com/v/$2"

and replace by

PHP Code:

"YouTube" => array(
    
"pattern" => "#http://([a-z]+.youtube|youtube)\.com/watch\?v=([\w-]+)#i",
    
"urlreplace" => "http://$1.com/v/$2"

This will work with any alphabetical alternative to www.youtube

Please note that a number of the video sites originally coded in that 'extra' may not work any longer - I don't have time to keep checking them an dthe sites do tend to change the formats of their urls.

Works great, thank you


All times are GMT. The time now is 09:08 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02237 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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