May 2, 2012

[iMacros Script] Script Imacro Spin Content,Title,tags for Wordpress Network

 ' ------------------------------ Start Script spinWP.iim----------------------------------------
 'you need to change highlighted in Red

VERSION BUILD=7401110 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !ERRORCONTINUE YES
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_TAG 2
SET !TIMEOUT 30

SET !DATASOURCE D:\iMacros\Datasources\WP\Login_Submit.csv
SET !DATASOURCE_COLUMNS 3
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}

TAB T=1
'Login WP
URL GOTO={{!COL1}}/wp-login.php
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:loginform ATTR=ID:user_login CONTENT={{!COL2}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:loginform ATTR=ID:user_pass CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:loginform ATTR=ID:rememberme CONTENT=YES
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:loginform ATTR=ID:wp-submit

'SpinWP.php
TAB OPEN
TAB T=2
URL GOTO=http://localhost/spinWP.php
SET !EXTRACT NULL
TAG POS=1 TYPE=TEXTAREA FORM=ACTION:spin.php ATTR=ID:title EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
SET !EXTRACT NULL
TAG POS=1 TYPE=TEXTAREA FORM=ACTION:spin.php ATTR=ID:content EXTRACT=TXT
SET !VAR2 {{!EXTRACT}}
SET !EXTRACT NULL
TAG POS=1 TYPE=TEXTAREA FORM=ACTION:spin.php ATTR=ID:tags EXTRACT=TXT
SET !VAR3 {{!EXTRACT}}
SET !EXTRACT NULL
TAB CLOSE

'WordPress Submit
TAB T=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:post ATTR=ID:title CONTENT={{!VAR1}}
TAG POS=1 TYPE=TEXTAREA FORM=NAME:post ATTR=ID:content CONTENT={{!VAR2}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:post ATTR=ID:tags-input CONTENT={{!VAR3}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:quick-press ATTR=ID:publish
'Wait SUBMIT 3 sec
WAIT SECONDS=3
'Check Submited 8 sec
TAB T=1
URL GOTO={{!COL1}}
WAIT SECONDS=8










' ------------------------------------------- End Script spinWP.iim-------------------------------


 ' ------------------------------------ Start Script spinWP.php------------------------------------

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>IMACROS+SPIN WORDPRESS NETWORK BY: MEEN</title>
</head>

<body>
<H1>IMACROS+SPIN WORDPRESS NETWORK BY: MEEN</H1>
<br />
Check <span id="result_box" lang="en" xml:lang="en">Press</span> F5
<br />
</body>
</html>

<?php
//Title Spin
$title ="{Title Spin1:|+-Spin Title2-+:|Spin Title Spin3:|Title Title Spin Spin4:} IMACROS+SPIN WORDPRESS NETWORK BY MEEN";

//Content Spin
$spin_content="<img class='aligncenter' title='title image keyword' src='http://www.xxx.com/img.jpg' alt='image keyword ' width='462' height='280' />
{Content Spin1|Content Spin2|Content Spin3}Content Spin BY MEEN <a title='keyword product' href='http://www.xxx.com/product.html' target='_blank'>'keyword product</a> ";

//Tags Spin
$spin_tags="{tag1,tag1.2,tag1.3|tag2,tag2.1,tag2.3|tag3,tag3.1,tag3.2 }";

function spin($a){
if(preg_match('#\{(.+?)\}#is',$a,$b))
{
if(($i=strpos($b[1],'{'))>-1)$b[1]=substr($b[1],$i+1);$c=explode('|', $b[1]);$a=preg_replace("+\{".preg_quote($b[1])."\}+is", $c[array_rand($c)],$a,1);return spin($a);}return $a;
}

?>
<?php
echo "<form id='form1' name='form1' method='post' action='spin.php'>";

  echo "<label>Title:<br />";
  echo "<textarea name='title' id='title' cols='100' rows='5'>";
  echo spin($title);
  echo "</textarea>";
  echo "</label>";
 echo "<p>";
    echo "<label>Content:<br />";
    echo "<textarea name='content' id='content' cols='100' rows='5'>";
    echo spin($spin_content);
    echo "</textarea>";
    echo "</label>";
 echo "</p>";
 echo "<p>";
    echo "<label>Tags:<br />";
    echo "<textarea name='tags' id='tags' cols='100' rows='5'>";
    echo spin($spin_tags);
    echo "</textarea>";
    echo "</label>";
 echo "</p>";

echo "</form>";
?>








' --------------------------------- End Script spinWP.php----------------------------------------

What needs to change

spinWP.iim
'Login WP
SET !DATASOURCE D:\iMacros\Datasources\WP\Login_Submit.csv

----
'SpinWP.php
URL GOTO=http://localhost/spinWP.php
Url spinWP.php AppServ Or Host
----
Datasources

Login_Submit.csv
{{!COL1}}= URL
{{!COL2}}=user name
{{!COL3}}=password[http://www.xxx1.com,user name,password]
-------
SpinWP.php
//Title Spin //Content Spin //Tags Spin

2 comments:

  1. Hi,

    Could you tell me that ? It is possible to automate by backlink creation with imacros. I mean i have 20 program to create them one by one, but i would like to create script with will be working like schedule for all my program, and add one by one but in automode

    Thanks !

    ReplyDelete

iMacros Script