magzmedia 6 Posted April 18, 2010 Report Share Posted April 18, 2010 If I have a url eg http://www.twitter.com/ and I want to include a variable from a list how do I do it? eg. http://www.twitter.com/variable1 http://www.twitter.com/variable2 etc Any help appreciated Quote Link to post Share on other sites
alcr 135 Posted April 18, 2010 Report Share Posted April 18, 2010 nav -> $next list iten 1 $next list item 2 Quote Link to post Share on other sites
magzmedia 6 Posted April 18, 2010 Author Report Share Posted April 18, 2010 nav -> $next list iten 1 $next list item 2 Thanks Alcr...but the problem I have is that I have a list of twitter users in a text file and I simply want to append http://www.twitter.com/ to the beginning of the line. For example in the text file at the moment I have: user1user2user3and so on... but I want to have:http://www.twitter.com/user1http://www.twitter.com/user2http://www.twitter.com/user3 I assume that there is a way using add to list where I can append the data? See what I mean? Many thanks Rob Quote Link to post Share on other sites
alcr 135 Posted April 18, 2010 Report Share Posted April 18, 2010 Ahh, now I see your problem. Yeah just write www.twitter.com/{1} where {1} is a subparameter which says $next list item Quote Link to post Share on other sites
magzmedia 6 Posted April 18, 2010 Author Report Share Posted April 18, 2010 Ahh, now I see your problem. Yeah just write www.twitter.com/{1} where {1} is a subparameter which says $next list item Thanks alcr, Now as soon as the trojan problem is sorted out. I'll be very happy indeed. Quote Link to post Share on other sites
JohnB 255 Posted May 17, 2010 Report Share Posted May 17, 2010 To add to this question, is it possible to append a random string of characters to input data? In other words, If my bot creates accounts at social bookmarking sites, etc, I would have the user input a desired username. To ensure the username is unique, could I have the bot append, say, a random 5 character string to the end of the username prior to submitting it? Thanks. John Quote Link to post Share on other sites
Net66 54 Posted May 17, 2010 Report Share Posted May 17, 2010 To add to this question, is it possible to append a random string of characters to input data? In other words, If my bot creates accounts at social bookmarking sites, etc, I would have the user input a desired username. To ensure the username is unique, could I have the bot append, say, a random 5 character string to the end of the username prior to submitting it? Thanks. John The easy way would be to use the create account $password system parameter. And put that on the end. Or even easier if you don't mind the random string being all numbers then use the $rand function to generate a number between 10000 and 99999 (if you want it 5 characters long). Andy Quote Link to post Share on other sites
JohnB 255 Posted May 17, 2010 Report Share Posted May 17, 2010 The easy way would be to use the create account $password system parameter. And put that on the end. Or even easier if you don't mind the random string being all numbers then use the $rand function to generate a number between 10000 and 99999 (if you want it 5 characters long). Andy Thank you Andy! So if I had a "Desired Username" UI text box I would insert the variable, for example, #username$rand? (I understand what you're saying, I'm just not sure how i would "construct" it). Thanks again John Quote Link to post Share on other sites
alcr 135 Posted May 18, 2010 Report Share Posted May 18, 2010 set #variable {1}{2} where 1 points at $username and 2 at $rand And then use the variable Quote Link to post Share on other sites
JohnB 255 Posted May 18, 2010 Report Share Posted May 18, 2010 Very cool, thank you! Quote Link to post Share on other sites
JohnB 255 Posted May 18, 2010 Report Share Posted May 18, 2010 set #variable {1}{2} where 1 points at $username and 2 at $rand And then use the variable Ok, that worked perfectly, Now is it possible to add the username (with its appended digits) to a list and save it to a file for future use? I keep trying but can only get the username without the random numbers saved. Thanks. Quote Link to post Share on other sites
alcr 135 Posted May 18, 2010 Report Share Posted May 18, 2010 add to list and in the content field {1} where the 1 points at #variable Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.