vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Links and Files Database (https://vborg.vbsupport.ru/showthread.php?t=60403)

Polo 08-12-2004 08:17 PM

Awesome Addon!

Clicks install

AndrewD 08-13-2004 03:31 AM

Quote:

Originally Posted by tteal
First and foremost, thank you for making this modification available! Secondly, I was wondering if I could make a recommendation?

- For each "affiliate", would it be possible to add a feature on for users to be able to post a comment on their experience? I realize that you're rating the affiliate, however, comments help out a lot to discuss what you liked/dis-liked about their service, etc.

Thanks,
Tim

I think this is an excellent idea. I'll think about how easy it is to add on without writing loads of new code - in effect we're looking for a way to tie a new VB discussion thread to a link.

darkmage 08-13-2004 01:50 PM

Quote:

Originally Posted by Natch
Thanks for clarifying - my mistake - I guess my increased bandwidth is jsut cos I'm getting more visitors ;)

I have an idea, I'm not sure if it was discussed in pages before this one but, if you use this script as a downloads page for your website, would it be possible to link to the file directly but make a entry page if coming from an outside website.

Such as if you come from google.com and you request http://forums.blah.com/local_links.php?action=jump&id=1 it would not request the file directly, but it would open up a page that you must first click the download now link before you can continue with the download. Therefore making it 100% (I think) leech proof. However right now I am using the method where users must be logged in before they can download a file.

Meltingfire 08-14-2004 12:35 PM

I love your script and have been using it for a pretty long time now! Great work!

But lately i have noticed a small problem when linking to files at SourceForge, both in v1.10 and still in v1.25 (upgraded today).

Since you link to a zip-file at sourceforge the url ends with ".zip" but when you click on the link you get to a webpage with mirrors.

So when you try to download the file you get a text file (name.zip) that contains the HTML page.

Is it possible for the links & filedatabase to be able to check if its really a zip-file and if its not then the webpage will be shown instead with the mirrors at sourceforge.

(Btw, it can be any file-formats, not only zip)

AndrewD 08-14-2004 07:22 PM

Quote:

Originally Posted by Meltingfire
I love your script and have been using it for a pretty long time now! Great work!

But lately i have noticed a small problem when linking to files at SourceForge, both in v1.10 and still in v1.25 (upgraded today).

Since you link to a zip-file at sourceforge the url ends with ".zip" but when you click on the link you get to a webpage with mirrors.

So when you try to download the file you get a text file (name.zip) that contains the HTML page.

Is it possible for the links & filedatabase to be able to check if its really a zip-file and if its not then the webpage will be shown instead with the mirrors at sourceforge.

(Btw, it can be any file-formats, not only zip)

I see what you mean. There's a signal, which is the parameter after the .zip file name at sourceforge, i.e. ?download. I'll check whether we can do anything about this.

AndrewD 08-15-2004 05:00 AM

Sourceforge provides links that have URLs looking like zip files, etc, but are treated as an instruction to redirect to the mirrors page where you actually choose the mirror you want. Perhaps other sites do the same. Versions of this hack up to 1.25 fail to spot this and give you a download which is actually the html code for the redirect.

To fix this, find the following code in local_links.php (line 1896 in version 1.25)

Code:

$dfname  = basename($urlInfo['path']);
$type        = substr(strrchr($dfname, "."), 1);

$mimetype = get_mimetype($type);

if (!is_array($mimetype)) {

Replace
Code:

if (!is_array($mimetype)) {
with
Code:

if (!is_array($mimetype) or $urlInfo['query'] != "") {
This should fix the problem. Please advise.

AndrewD 08-15-2004 05:17 AM

Quote:

Originally Posted by darkmage
I have an idea, I'm not sure if it was discussed in pages before this one but, if you use this script as a downloads page for your website, would it be possible to link to the file directly but make a entry page if coming from an outside website.

Such as if you come from google.com and you request http://forums.blah.com/local_links.php?action=jump&id=1 it would not request the file directly, but it would open up a page that you must first click the download now link before you can continue with the download. Therefore making it 100% (I think) leech proof. However right now I am using the method where users must be logged in before they can download a file.

I have another thought, which is to put a
Code:

<meta name="robots" content="index, nofollow">
tag in the links_header template. (i.e. the engine can check the page for links but must not follow those links, i.e. trigger a download). Anyone know whether search engines are reliable on this? - years ago, reports were that many did not interpret the tag. Google follows the rules, I think.

Natch 08-16-2004 12:02 AM

Good work on the continued support - this script is gaining in maturity every day :D

darkmage 08-16-2004 04:02 AM

Quote:

Originally Posted by Natch
Good work on the continued support - this script is gaining in maturity every day :D

I was wondering that since you have the categories ordered by their alphabetical order, could you tell me the line of code to change to make it so it orders the categories by their ID?

Thanks.

AndrewD 08-16-2004 06:01 AM

Quote:

Originally Posted by darkmage
I was wondering that since you have the categories ordered by their alphabetical order, could you tell me the line of code to change to make it so it orders the categories by their ID?

Thanks.

Look for the following (about 150+ lines in to local_links.php depending on version)
PHP Code:

function get_linkscat() {
    global 
$DB_site$linkscat$linkscat_set;

    if (!
$linkscat_set) {
        
$asb $DB_site->query("SELECT * FROM ".THIS_TABLE."linkscat ORDER BY catname"); 

Change catname to catid or catdate as you will.

Should this be a configuration option?


All times are GMT. The time now is 12:54 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.02542 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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