vb.org Archive

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

Zowners 11-26-2006 05:16 PM

Thanks Andrew works great mate.

imranbaig 11-26-2006 05:40 PM

sorry I miss spelled my question I was mean this can DownloadsII and Links and downloads co-exists together?

AndrewD 11-26-2006 06:44 PM

Quote:

Originally Posted by imranbaig (Post 1125710)
sorry I miss spelled my question I was mean this can DownloadsII and Links and downloads co-exists together?

I don't think there's any reason why not - I haven't tried it, but no-one has said otherwise.

Zowners 11-26-2006 07:02 PM

Sorry for being a pain but how can I change messages users get when they cant access downloads etc so I can make the error message more user friendly.

Cheers

AndrewD 11-27-2006 04:04 AM

Quote:

Originally Posted by Zowners (Post 1125772)
Sorry for being a pain but how can I change messages users get when they cant access downloads etc so I can make the error message more user friendly.

Cheers

Most things in LDM - apart from a few 'mission critical failures' - use phrases that are manage inside the VBulletin phrasing system. Do a search in your vb/admincp/languages and phrases/search for the text you want to modify, then edit it as you wish.

If that doesn't give you the results you want, get back to me.

|oR|Greg 11-27-2006 04:08 PM

Permissions, Andrew... is there a better way to control who see's what content?

Currently if I choose not to allow a usergroup to be able to view the content of a link, they get prompted with a Registration window. But I really only wanted that for users that aren't logged in. I would like those that can click on a link, but are logged in, yet are not allowed to view the contents to get a custome per category message.

Also, a category password option would rock.

kompakt 11-28-2006 01:54 AM

As you mentioned, this is the way the links are parsed in the final 2.2.6 release.
Quote:

Originally Posted by AndrewD (Post 1113228)
Code:

        if (HEADER_BEHAVIOUR == "inline") {
                @header("Content-disposition: inline; filename=".str_replace(" ", "_", $dfname)."");
        } else {
                @header("Content-type: application/x-download");
                @header("Content-disposition: attachment; filename=".str_replace(" ", "_", $dfname)."");
        }


This is still giving me problems in Firefox and users end up getting an html page if I have the hit-parade set to 0. My host does not add custom mime types, they are not known by the server and are defined on my .htaccess file. I have to keep the hit parade set to 1 for this to work since the location of the files is revealed, the browser picks up the correct mime-type from my .htacess file.

Is it possible to add them somehow into the mime-types in the local_links.php?

AndrewD 11-28-2006 04:06 AM

Quote:

Originally Posted by kompakt (Post 1126919)
As you mentioned, this is the way the links are parsed in the final 2.2.6 release.

This is still giving me problems in Firefox and users end up getting an html page if I have the hit-parade set to 0. My host does not add custom mime types, they are not known by the server and are defined on my .htaccess file. I have to keep the hit parade set to 1 for this to work since the location of the files is revealed, the browser picks up the correct mime-type from my .htacess file.

Is it possible to add them somehow into the mime-types in the local_links.php?

I'm a little confused - sorry. First, I assume you mean the setting "force_redirect", not "hit_parade".

When force_redirect is set to 0, LDM behaves as follows:

- if the file type exists in the VBulletin attachment table, then the mimetype data set up in that table is used.
- otherwise, LDM issues a simple browser redirect.

So you should create new entries in VBulletin attachments table for each of the filetypes you want to deal with. The .htaccess mimetype data only comes into play when this is not available.

Now, there is a another problem with Firefox: When you do a "right click/save link as", Firefox does not 'pre-fetch' any information before processing the 'save as' command. As a result, you end up downloading a "scriptname.php" file containing html, rather than (e.g.) the correctly named mp3 file. This has been long discussed on the Firefox development forum - it's a deliberate design choice on their part to speed up processing. It's one area where IE does (in my opinion) a better job.

Am I missing something?

AndrewD 11-28-2006 04:08 AM

Quote:

Originally Posted by |oR|Greg (Post 1126482)
Permissions, Andrew... is there a better way to control who see's what content?

Currently if I choose not to allow a usergroup to be able to view the content of a link, they get prompted with a Registration window. But I really only wanted that for users that aren't logged in. I would like those that can click on a link, but are logged in, yet are not allowed to view the contents to get a custome per category message.

Also, a category password option would rock.

I really wish that I had not decided to use forum permissions in the first place. Untangling the consequences has been a real nuisance.

I'll have to think about these suggestions - I agree with you, but need to see how to make this work without breaking something else.

|oR|Greg 11-28-2006 12:25 PM

Ok, thanks for responding. I'm going to post up instructions a little later on how to do the whole YouTube links integration.


All times are GMT. The time now is 07:23 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.03389 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_code_printable
  • (5)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