Request to update the script manual with the latest variables used in the current engine scripts
Hi @sven, I tried to read the engine scripts used in the SER, and found it's a bit difficulty to understand because many of variables are not described in the script manual, so could you please update the script manual to describe all variables, this will help us developer custom engines or refine the current enginues...
Here are a few variables not found in the manual:
------
[LOGIN_STEP1]
Here are a few variables not found in the manual:
------
[LOGIN_STEP1]
pass=%password%
name=%login%
mail=%your e-mail%
pass[pass1]=%password%
pass[pass2]=%password%
files[picture_upload]=%leave%
language=%leave%
timezone=%leave%
captcha_response=%captcha%
edit[name]=%login%
edit[pass]=%password%
*mail*=%your e-mail%
*pass*=%password%
mimemail_textonly=0
files[picture_upload]=%leave%
name=%leave%
timezone=%leave%
language=%leave%
adtype_select=%random_option%
adstatus=%leave%
signature[format]=*html*
------
------
Comments
<input name="pass" type="password">
1). Does this mean I can add custom field in the script if I find a new field in the form?
2). What does the "*html*|1" mean in the script?
---------------
comment_body[und][0][format]=*html*|1
----------------
2) It means it will try to match that field first finding *html* in the options and 1 next.
<select name="comment_body[und][0][format]">
<option value="1">html</option>
<option value="2">plain text</option>
</select>
So SER tries to make the selection based on the mask in that variable, it tries to select the "html" entry and not the "plain text" one.
----------
---------------------
What exactly does [Login_step1][Login_step2][Login_step2] do? why do we need 3 steps?
My understanding is:
1). Login_step1 find the login URL like: /index.php/component/users/?view=login? then download it? fill the fields with specified value, then submit the form? then match the message to check if it's submitted successfully or fail?
2). Why do we need the [Login_step2] and [Login_step3]? will the login_step2 and login_step3 execute no matter successful or failed of [login_step1]?
Please advise, thanks.
LOGIN_STEP1 is performed and then LOGIN_STEP2. On that second step the condition is checked if we are really on the login page, if so, we move to the last step and perform he actual submission, else we try to go to another login page.
This is usually not needed but for K2 you usually have no login link or form. It's hidden and you have to try several login-urls till you find the right one.
In this case, will the [login_step2] be executed?
login_Step2 - check if thats correct, if so...jump to step3 and submit else try another url
login_step3 - fill form and submit
[Login_step1] --- Download the link from the "login_step1".
[Login_step2] --- Check condition on the page from "login_step1", if yes, go to "login_step3", fill form and submit, if the condition doesn't match, download the page in the "login_step2", then go to "login_step3" fill form and submit.
Please correct if I miss something, thanks.
----
[Step2]
Abort post article...
.....
------
Please advise.
modify step condition=*jform[id]" value="[1-9][0-9][0-9][0-9][0-9]*|*task=profile.edit&user_id=[1-9][0-9][0-9][0-9][0-9]*|*task=profile.edit&user_id=[1-9][0-9][0-9][0-9][0-9]*|*view=profile&user_id=*|*view=profile&user_id=[1-9][0-9][0-9][0-9][0-9]*|*task=user&id=[1-9][0-9][0-9][0-9][0-9]*
----
.....
[STEP2]
just download=1
------
I tested a few sites and checked the debug log, the [Step2] never executed no matter whether the condition meets or not...
Please advise.
Thanks.
---------
THis is the script I modified, it still doesn't work, NO posts are submitted at all, I don't understand the concepts of [Extra_step*], what's it, when would be used? why don't just use [step1,2,3....x] instead?
Please advise.
-----
-------------
PLEASE share me more detailed info about how to get it work, thanks in advance.
The finial post URL is like:
http://www.xxxx.com/component/k2/itemlist/user/109110332
The edit profile url is:
http://www.xxx.com/component/users/?task=profile.edit&user_id=109110332
----
----
It is supposed to jump to [Step3], but it never does.
Could you please help me make it right..
Thanks.
[find_alt_url]
-----------
How is this string " */add/?* !image !add/agenda !add/poll !add/offer !add/order !add/album !add/gallery !add/apply-jobs" being interpreted?
Try to find a URL with "*/add/?*" AND page doesn't have the elements "image" AND "add/agenda ......" ?
What does the BLANK mean?
"try to continue without verification"
I want to extract first folder from a given URL as following:
----
Original url: http://www.example.com/subfolder/page-name.hmtl
I need to exact the first folder's name "subfolder" in this case.
The script doesn't work, please advise, thanks.
type=extract
input=%original_targeturl%
front2=/
back=/
1). What exactly does the "input" variable mean? I can't find any info in the script document.
2). Are the "front1", "front2".... similar with the "AND" operator, which mean ALL the conditions that specified in "front1", "front2"... should meet during the extraction?
Thanks again.
---
docu was updated as well.
--------
[Unsuccessful_Submission_step1]
write file=c:\failed_sitelist.txt
--------
This step will be executed when the submission was detected as either failure or unknow status.
Alternatively, if there is a way to save the sites with failure or unknow submission status, that will be fine.
Please advise.
-----
submit success=Regardez dans votre courrier pour activer votre compte|Inregistrare completa!|Sign Up Complete!|You have successfully created your account!|To begin using this site you will need to activate your account via the email we have just sent to your address.|/members/%login%/|/members-2/%login%|>Log Out<|/my-profile/">My Profile<|egistro completado!|Rejestracja (krok 2 z 3)|Registration complete. You may now log in.|Comprueba tu correo para activar tu cuenta|Hai creato con successo il tuo account
-------
Those are the string for a successful submission, how to exclude them in the "modify step condition".
I can't seem to use:
--------
modify step condition1=!Regardez dans votre courrier pour activer votre compte
modify step condition2=!Inregistrare completa!
....
--------
Please advise.
Thanks.
Is it possible to add the regular expression supporting for the "modify step condition" in the near future? that will be really helpful.
Thanks.
--------
http://xxx.com:userID:password|PR
-------
Then I can resuse those accounts in different tier projects with PR filter enabled.
Please advise how can i do this.
Thanks.
the format would be
URL|PR:login:password
Please advise, I attached a sample site here.
Any tips?
--
---
Is it possible show me a sample of URL/site which the value of variable is not empty?
1). How to handle a page with different forms that matches the same "form url" condition, the two forms have different "form name" and "form ID", but It seems SER use the "form URL" to search the forms, and use the first found one...
Is it possible to assign the priority for the "form name/form ID/form URL" when searching a form?
Ideally, SER should search "form name" first, then "form ID", then "form URL" to locate a form.
Please advise.
1) SER uses all of it, "form url", "form id" "form name" and even "form class". If all match, it is best, but not everything has to match. You can define multiple masks on it using "|". The first gets you a better ranking than later masks.