Skip to content

New Engine script help

I am trying to get another engine working have been having trouble before and this is my second i am tryig on..

the problem is that the script does not seem to verify /activate the link in email. before trying to log in, am I missing some setting?


[setup]
enabled=1
default checked=0


engine type=My Test
description=Registers pr7 profile link to bibsonomy.com
dofollow=1
anchor text=0
creates own page=1
uses pages=0



add keyword to search=0
use blog search=0
extract keywords=0

skip ext links on=0
skip content on=0
skip url content on=0
posted domain check=1

        
[Login]
type=login
must be filled=1
hint=The login for websites that need an account. Use numbers and letters only.
min length=4
static=1

[Password]
type=password
must be filled=1
hint=A password used for websites that need an account. Use numbers and letters only.
min length=8
static=1

[Your E-Mail]
type=email
static=1

[URL]
type=url

[email_link]
type=extract
find url=*activate/*
;default=/login
static=2


[get_recaptcha_challenge]
type=extract
search url=*challenge?k=*
front=challenge : '
back='
static=2

[REGISTER_STEP1]
submit success=Welcome to BibSonomy
submit failed=<h2 class="header">error</h2>
submit failed retry=span id="recaptcha_response_field.errors">
;try to continue without verification=1


;form id=command
form url=*/register*
;variable must be used=your e-mail
set unknown variable=%leave%

add fixed data=dummy=1;recaptcha_challenge_field=%get_recaptcha_challenge%;recaptcha_response_field=%captcha% http://www.google.com/recaptcha/api/image?c=%get_recaptcha_challenge%
add fixed data condition=recaptcha_widget

registerUser.name=%login%
registerUser.password=%password%
passwordCheck=%password%
registerUser.email=%your e-mail%
registerUser.homepage=%url%
registerUser.realname=%spinfile-lnames.dat% %spinfile-names.dat%
acceptPrivacy=1

verify submission=1
verify by=email
verify interval=10
verify timeout=30
verify on unknown status=1


[LOGIN_STEP1]
submit success=logged in as|href="/logout"
submit failed=The password and username you entered do not match or the username is not registered

;find link=Sign In
;find url=*/login_internal/*
;alternative url=/login


form name=sign in
form id=login_internal
form url=*/login_internal*


;verify on unknown status=1

set unknown variable=%leave%

password=%password%
username=%login%
;remember_me1=1

[STEP1]
modify url=/postBookmark

form url=/editBookmark
url=%url%


[STEP2]

add fixed data=dummy=1;recaptcha_challenge_field=%get_recaptcha_challenge%;recaptcha_response_field=%captcha% http://www.google.com/recaptcha/api/image?c=%get_recaptcha_challenge%
add fixed data condition=recaptcha_widget


Step 1 and 2 are not ready yet.. will be when I can manage to get it to do the proper steps /i.e register, verify, login, step1(submit url), extra ste submit article

Am i missing something? I am trying to learn / contribute


Tagged:

Comments

  • SvenSven www.GSA-Online.de
    Did you test it with latest version? Because in 7.08 there was a small bug with email verification.
  • yes I am trying with 7.09
  • SvenSven www.GSA-Online.de
    OK than what URL is shown in "Show submitted urls" after registration and what verification URL is expected in the email?
  • Hello again, 

    I duplicated my test project and created new emails and now it worked. Now just need to get step1 and 2 in order..

    thanks for your help.. will send it when it is done.

    /M
  • Sven, 

    I'm struggling with step 1 / 2 and it needs recaptcha as well. but SER does have problems with re captcha challenge and response...

    ---------

    [setup]
    enabled=1
    default checked=0


    engine type=My Test
    description=Registers pr7 profile link to bibsonomy.com
    dofollow=1
    anchor text=0
    creates own page=1
    uses pages=0



    add keyword to search=0
    use blog search=0
    extract keywords=0

    skip ext links on=0
    skip content on=0
    skip url content on=0
    posted domain check=1

            
    [Login]
    type=login
    must be filled=1
    hint=The login for websites that need an account. Use numbers and letters only.
    min length=4
    static=1

    [Password]
    type=password
    must be filled=1
    hint=A password used for websites that need an account. Use numbers and letters only.
    min length=8
    static=1

    [Your E-Mail]
    type=email
    static=1

    [URL]
    type=url

    [email_link]
    type=extract
    find url=*activate/*
    ;default=/login
    static=2

    [Anchor_Text]
    type=text
    allow html=0
    must be filled=1
    hint=Use the keyword that you would like your page getting ranked for. Also use spin syntax here for more than one anchor text.

    [get_recaptcha_challenge]
    type=extract
    search url=*challenge?k=*
    front=challenge : '
    back='
    static=2


    [REGISTER_STEP1]
    submit success=Welcome to BibSonomy|You successfully registered as user|Congratulations
    submit failed=<h2 class="header">error</h2>
    submit failed retry=span id="recaptcha_response_field.errors">
    ;try to continue without verification=1


    ;form id=command
    form url=*/register*
    ;variable must be used=your e-mail
    set unknown variable=%leave%

    add fixed data=dummy=1;recaptcha_challenge_field=%get_recaptcha_challenge%;recaptcha_response_field=%captcha% http://www.google.com/recaptcha/api/image?c=%get_recaptcha_challenge%
    add fixed data condition=recaptcha_widget

    registerUser.name=%login%
    registerUser.password=%password%
    passwordCheck=%password%
    registerUser.email=%your e-mail%
    registerUser.homepage=%url%
    registerUser.realname=%spinfile-lnames.dat% %spinfile-names.dat%
    acceptPrivacy=1

    verify submission=1
    verify by=email
    verify interval=10
    verify timeout=30
    verify on unknown status=1


    [LOGIN_STEP1]
    submit success=logged in as|href="/logout"
    submit failed=The password and username you entered do not match or the username is not registered

    ;find link=Sign In
    ;find url=*/login_internal/*
    ;alternative url=/login


    form name=sign in
    form id=login_internal
    form url=*/login_internal*


    ;verify on unknown status=1

    set unknown variable=%leave%

    password=%password%
    username=%login%
    ;remember_me1=1

    [STEP1]
    submit success=href="%url%|href='%url%|href=%url%
    submit failed=<h2 class="header">error</h2>
    just download=1

    [STEP2]
    form url=/editBookmark*
    form name=save
    form id=postForm

    post.resource.url=%url%
    post.resource.title=%Website_title%
    tags=%tag% %tag% %tag%

    add fixed data=dummy=1;recaptcha_challenge_field=%get_recaptcha_challenge%;recaptcha_response_field=%captcha% http://www.google.com/recaptcha/api/image?c=%get_recaptcha_challenge%
    ;add fixed data condition=recaptcha_widget

    ---------

    commented out ficed data because i got a capcha error (and a resolve error). but if I remove them the post does not contain the response and captcha...
    what did i do wrong here then?

    (hopefully i will be getting there....)



  • SvenSven www.GSA-Online.de
    Usually you don't need to add data for recaptcha. It's handled automatically. Just leave it out.
  • ok but if I do it does not fill it out (is not in the submit post as variables) / send for manual input neither I will see it in CB.

    the only way I got it to work was with the add post data, and that works fine for the registration, but not for the post of the bookmark/url

    any other ideas?

    /M
  • SvenSven www.GSA-Online.de
    sorry not really without debugging myself
  • Ok, would you have time to take a look?
  • SvenSven www.GSA-Online.de
    Im sorry, not right now as Im not in office. Though send it to me and I do asap.
Sign In or Register to comment.