Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[REQUEST] Download Code
09-28-2009, 04:18 AM
Post: #1
[REQUEST] Download Code
Hi, I would like to request a mycode.

Example:
[dl]http://www.rapidshare.com/download.zip[/dl]

So, it will show an unclickable text url:
http://www.rapidshare.com/download.zip


If this is possible, perhaps a mycode combined with link checker like here:
http://community.mybboard.net/thread-51693-page-1.html

So, the output will show as:
http://www.rapidshare.com/download.zip - file found!

Can you do this?
Find all posts by this user
Quote this message in a reply
09-29-2009, 04:17 AM
Post: #2
RE: [REQUEST] Download Code
Something like that would be possible but it would take a lot of bandwith and time to check rapidshare everytime a user loads a thread.

E.g. - checking 20 files, building 20 connections to a file hoster, recieving the reply and parsing the URL in the right way would take 20 seconds on my server (which is a fast one), also depending on the file hoster (megaupload sucks as far as I remember).

Are you sure you'd like that? It'd slow down the forum heavily in my opinion.

Forum Admin
Visit this user's website Find all posts by this user
Quote this message in a reply
09-30-2009, 05:47 PM (This post was last modified: 09-30-2009 05:56 PM by nyunyu.)
Post: #3
RE: [REQUEST] Download Code
Not just rapidshare, it will check the host that admin can set. It can be 10 hosts or 100 hosts depends on admin preferences.

The linkchecker bot made by someone from warez-bb.org for phpbb looks very nice furthermore the script owner has given permission for his work to be ported to other forum script. This is the best link checker so far as it will check the links the links, any dead link percentage higher than 80% will automatically moved to trash forum and locked. ([Image: external.png]READ HERE ABOUT THE SCRIPT)

Or alternatively you can maybe build something like on-demand link checker?

How about making it on-demand?
Example:

Example:
[dl]http://www.rapidshare.com/download.zip[/dl]

Result:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
| DOWNLOAD: |
| |
| http://community.mybboard.net/thread-51693-page-1.html |
| http://community.mybboard.net/thread-51693-page-1.html |
| http://community.mybboard.net/thread-51693-page-1.html |
| http://community.mybboard.net/thread-51693-page-1.html |
| |
|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [Check Link Health] _|

So, the script will only check links when clicked.

This is shown when checking links
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
| DOWNLOAD: |
| |
| http://community.mybboard.net/thread-51693-page-1.html <loading image> |
| http://community.mybboard.net/thread-51693-page-1.html <loading image> |
| http://community.mybboard.net/thread-51693-page-1.html <loading image> |
| http://community.mybboard.net/thread-51693-page-1.html <loading image> |
| |
|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [Check Link Health] _ _ _ _ _ _ _ _ _ |


This is when link was checked.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
| DOWNLOAD: |
| |
| http://community.mybboard.net/thread-51693-page-1.html <ok image> File is found! |
| http://community.mybboard.net/thread-51693-page-1.html <ok image> File is found! |
| http://community.mybboard.net/thread-51693-page-1.html <not ok image> Link is dead |
| http://community.mybboard.net/thread-51693-page-1.html <ok image> File is found! |
| |
|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [Check Link Health] _ _ _ _ _ _ _ _ _ |
Find all posts by this user
Quote this message in a reply
10-01-2009, 01:27 AM
Post: #4
RE: [REQUEST] Download Code
That's a better idea I think, I'll look into it when I have time...

Forum Admin
Visit this user's website Find all posts by this user
Quote this message in a reply
Today, 00:00 AM
Advertisement
10-10-2009, 03:45 AM
Post: #5
RE: [REQUEST] Download Code
I modify my code MyCode lines in class_parser.php to include link checking. And It does work..well, at least for 1 link.

If I put a single link in code tag, I will get this:
http://filehost.com/file.zip - (file found!)


But if I put several links in code tag, I will get this:
http://filehost.com/file.zip
http://filehost.com/file.zip
http://filehost.com/file.zip
http://filehost.com/file.zip
http://filehost.com/file.zip
http://filehost.com/file.zip - (file found!)

Which is only the last file get checked.


So, how to make it check each link and print "(file found)" at the end of each links?


For reference, here is my code MyCode in class_parser.php
PHP Code:
You cannot view this code until you login or register

[Image: external.png][Image: mystatssig.php]
Find all posts by this user
Quote this message in a reply
01-25-2010, 01:20 PM
Post: #6
RE: [REQUEST] Download Code
Lennart, have you got any time to look into this idea?

Thanks.

[Image: external.png][Image: mystatssig.php]
Find all posts by this user
Quote this message in a reply
01-26-2010, 06:11 AM
Post: #7
RE: [REQUEST] Download Code
You can not return it, you have to save it into a var and lateron echo (output) it.
At the moment the returned value will always overwrite the old returned value.

Forum Admin
Visit this user's website Find all posts by this user
Quote this message in a reply
01-26-2010, 06:39 AM
Post: #8
RE: [REQUEST] Download Code
(01-26-2010 06:11 AM)Lennart Wrote:  You can not return it, you have to save it into a var and lateron echo (output) it.
At the moment the returned value will always overwrite the old returned value.

Is this a reply for post #3?
Sorry, I can't understand.

[Image: external.png][Image: mystatssig.php]
Find all posts by this user
Quote this message in a reply
Today, 00:00 AM
Advertisement
01-26-2010, 09:58 PM
Post: #9
RE: [REQUEST] Download Code
It is the solution for the mycode change you posted.
At the bottom you did the following:
PHP Code:
You cannot view this code until you login or register
If you only return the last value it will show only the last value. Yout should save it to array's or vars or loop through this check.

Forum Admin
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


  • Share
  • heart Add to favourites
  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:


This site is property of Lennart Sauter, powered by Zaiendo.de.