Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[REQUEST] Download Code
#1
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?
Reply
#2
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
Reply
#3
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] _ _ _ _ _ _ _ _ _ |
Reply
#4
That's a better idea I think, I'll look into it when I have time...
Forum Admin
Reply
#5
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
You are not allowed to see php code.
Reply
Need professional support? PRinguin, the Digital-Agency. For web design and online marketing.
Register (for free) to hide the ads.
#6
Lennart, have you got any time to look into this idea?

Thanks.
Reply
#7
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
Reply
#8
(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.
Reply
#9
It is the solution for the mycode change you posted.
At the bottom you did the following:
You are not allowed to see php code.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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)