![]() |
I have moved over to using vBa CMPS - here is my new module for tha tportal to show the last month's most popular links: Link to original posting of this module on vBa homepage
My members requested a different count of the hits - one that "reset" every month to show the current most popular links, not just the All time most popular links... So I did it. Replace your current hotlinks.php / install a hotlinks.php module with the following contents: Code:
<? |
is there anyway to get this nice system to handle ftp protocol for public ftp's?
|
Quote:
|
Quote:
|
Quote:
|
Thanks very much.. hope you had a good vacation!
Another question: When linking to an external file, it appears the file is using twice the bandwidth I would expect.. First when its pulled from the external host, and then again when it goes through local_links on my host... is this by design? |
Quote:
On your earlier question, it's straightfoward to have alternating "alt1" and "alt2" bands in the link and category displays. A few lines of code (in get_linklistbit, etc) keep a variable in even/odd sequence, and the link and category templates have to be modified to use that variable when setting the style. |
Could you post the modification (or add it as an option) to provide the anti-leech facade but without the passthru (if possible)?
|
Quote:
|
Quote:
|
Thanks buddy :)
|
Those concerned about bandwidth and not about file theft might try the following patch. Edit local_links.php and find line: (about line 1900, depending on version)
PHP Code:
PHP Code:
PHP Code:
PHP Code:
The change will have no effect for filetypes that do not have recognised filetypes, and I suspect that it will have little if any effect for files held on your own server (but I may be wrong). However, this improvement is at the cost of potentially making visible where the files are stored and it also causes one or two changes in the way windows are opened. Appreciate feedback. Cheers. |
So there is no way to have leech-protection on but without the doubled bandwidth use?
|
Quote:
But I may be wrong :rolleyes: and would be delighted to learn :squareeyed: |
You should be able to cause your PHP script to redirect to a second PHP script designed just to mask the location - it would contain just a
Code:
Header: mime-type yadda yadda |
Quote:
|
Forgive the stupid question, but I'm going crazy with this...
I want to restrict access to this page to registered members only. I tried creating a forum with a link to local_links.php using permissions in the Vb Admin, but that prevents unregistered members from seeing the list only. I want them to see the forum (or sub-forum, etc.), but if they try and acess it, they get redirected to the "Sorry, you are not logged in or registered" page. Hoping someone here can help!! Thanks!!!!! |
Quote:
I think this will work: Edit local_links.php Find lines (about line 600 or so) PHP Code:
PHP Code:
|
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 |
Quote:
|
Awesome Addon!
Clicks install |
Quote:
|
Quote:
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 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) |
Quote:
|
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']); Code:
if (!is_array($mimetype)) { Code:
if (!is_array($mimetype) or $urlInfo['query'] != "") { |
Quote:
Code:
<meta name="robots" content="index, nofollow"> |
Good work on the continued support - this script is gaining in maturity every day :D
|
Quote:
Thanks. |
Quote:
PHP Code:
Should this be a configuration option? |
Quote:
|
<a href="http://www.hl2insider.net/forums/local_links.php" target="_blank">http://www.hl2insider.net/forums/local_links.php</a>
ive set it up, im in admin area, now how do i add categories? ive tried everything to add categories/files, help ;p |
Quote:
|
thanks alot mate, also this is members only access right?
|
Quote:
|
ooops, sorry i meant for downloading the files.
also is it possible to mask the download link for example: download link: www.sitename.com/video/file.rar to http://www.sitename.com/forums/local....php?getfile=3 if u understand what i mean =) |
Quote:
|
so the forum id is for example: http://www.hl2insider.net/forums/forumdisplay.php?f=17
17? because i added a members only section that members can only see (forum) and i entered the forum id 27 because the ending was 27 am i correct? becausei tried it , still didnt work |
Quote:
|
aye i pmed u details and minutes later i knew what u meant, im kinda slow.. lol thanks!!!!!!!!!!!!
|
All times are GMT. The time now is 03:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|