MyBB Hacks

Full Version: XThread field for JDownloader Links?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

can be that you have a solution for me. i try to create a field where you can put in some links. for example:

http://www.rapidshare.com/files/407970280/...link1
http://www.rapidshare.com/files/407970280/...link2
http://www.rapidshare.com/files/407970280/...link3 etc. (only example, not working links!)

at first, please visit this site:
http://jdownloader.org/knowledge/wiki/glossary/cnl2
and scroll down to Plain CNL2

you can read there: "You can pass multiple urls and passwords by seperating them with \r\n"
And this is my problem ->  \r\n after every link.

i need a field, where you can post many links, and these links are automatically added to the jdownloader if you click on a button. the button is not the problem, but i have only the value-field in xthreads and i donĀ“t know how to add "\r\n" after each link. is it possiple to solve this problem with XTHreads or has somebody another solution for me?
As expected of them to have crappy methods to do things...
\r\n is a newline - Windows newline to be specific.  If they knew what they were doing, they would accept both \n and \r\n as seperators...
You can do something like this in Display Format:

Code:
<?= str_replace("\n","\r\n", str_replace("\r",'', {VALUE})) ?>

Display Parsing needs to be set to Plaintext (without newlines).

Thank you.
ZiNgA BuRgA Wrote:As expected of them to have crappy methods to do things...
Biggrin yes

this works, but need between every link a space:
Display Format
Quote:<FORM ACTION="http://127.0.0.1:9666/flash/add" target="hidden" METHOD="POST">
   <INPUT TYPE="hidden" NAME="passwords" VALUE="myPassword">
   <INPUT TYPE="hidden" NAME="source" VALUE="http://jdownloader.org/spielwiese">    
   <INPUT TYPE="hidden" NAME="urls" VALUE="<?= str_replace("\n","\r\n", str_replace("\r",'', {VALUE})) ?>">
   <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Link to JDownloader">
</FORM>

Link1(Space)Link2(Space)Link3(Space)Link4 etc.

is there any way that i can use multiline textbox? all links under each other? or otherwise using a MyCode with the code above? i test it as a MyCode, but not working. i am not so super professional with coding.
No, it should be:
link1(newline)link2(newline ...
Unless I'm missing something in my code...
Reference URL's