Request to update the script manual with the latest variables used in the current engine scripts
sashilover
China
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?