Xrumer School

Xrumer How To, Xrumer Mods, Tutorials, Tips and Tricks.

Elgg Xrumer Mod Creation Tutorial – Final Step 5 Posting

Today we complete Xrumer Elgg Mod Tutorial. We will teach Xrumer to post message on Elgg site.

Open up Firefox, disable java script and login into your account.

We need to find the post link. It’s pretty simple – Blogs tab.

 

image

Click on Blogs tab.

Now take a look at address bar in browser.

image

 

Update rule in xurl.txt

image

AddLinkRule([1,'/blog/all',1,'/view',false,1,'/owner',false],URL_TOFORUM);

Update xmessages.txt FORUM section.

image

Now Xrumer know where to find “Forum”  ;-)

image

image

So, lets click on it !

image

 

Update rule for new post in xurl.txt

image

AddLinkRule([1,'/blog/add/'],URL_TONEWPOST);

 

Almost done, folks.

 

We need to populate form fields.

image

 

Update xas.txt file accordingly.

Title and Description fields default Xrumer can populate without modding. To populate tags and excerpt fields we can reassign existing sections in xas.txt for example INTERESTS for tags and SUBJ2 for excerpt.

Lets do it.

image

image

 

Project will look like this

SNAGHTMLd1734f

Very Important !!!

Project Priority Categories

SNAGHTMLd8ff49

 

Congratulations ! All Done. Now You Xrumer Expert !

Watch video on Youtube.

Ask questions on Xrumer Mods Discussion forum.

Follow me on Twitter @xrumerschool

Download Elgg Xrumer Mod Files Here (registration required for download )

 



Elgg Xrumer Mod Creation Tutorial – Step 4 Profile Editing & Avatar Upload

Today we will learn how to Edit Profile and Upload Avatar.

 

Open up Firefox, disable java script and login into your account.

 

What we see in here. User panel. We are looking for link to our profile page.

 

image

 

Click on it.

 

image

 

Update rule for profile viewing in xurl.txt

 

image

 

Few words about conditions for URL_TO_VIEWPROFILE rule.

There is two links on the page.

First one pointing to view profile page

http://www.xrplay.org/elgg/profile/elggtest

Second one pointing to profile editing page

image

 

Both of them contains substring

/profile/

So, we need to forbid xrumer to go to profile editing page

‘/edit’,false

We apply two conditions for URL_TO_VIEWPROFILE rule.

Let me translate it to human language.

We tell xrumer to find link on the page that contains substring /profile/  AND NOT contains substring /edit .

I hope it’s clear now.

 

Let’s move on.

 

Link to profile editing page

 

SNAGHTML10ac6b86

 

Now we need to add rule for profile editing page.

Very simple. Tell xrumer to find link that contains substring /profile/ AND substring /edit

Update rule for profile editing in xurl.txt

 

image

 

Update you profile manually and see what message Elgg display.

 

image

 

See the code behind

 

image

 

image

 

Update SUCCESS section in xmessages.txt

 

image

And final part of todays lesson is avatar upload. Similar to profile editing and profile viewing rules.

Find the link to avatar upload.

 

image

 

image

 

Update rule for avatar upload in xurl.txt

 

image

That’s it folks.

Time to test our work with Xrumer.

 

Advanced options

SNAGHTML10c3cf76

 

Important ! Priority Categories

 

SNAGHTML10d8e087

 

Congratulations!

 

See video on Youtube.

 

Ask questions on Xrumer Mods Discussion forum.

 

Download files ElggXrumerModStep4



Elgg Xrumer Mod Creation Tutorial – Step 3 Login

I finally moved to Xrumer version 7.09

All modified configuration files Xrumer stores in \LogicFiles\Default\

 

Let’s continue the tutorial.

 

Login Step is easy. It’s similar to registration.

 

We need to find link to Login form.

 

Disable Java Script in browser.

 

Find the Login link

 

image

 

Click on it.

 

image

 

Add new rule in xurl.txt

 

image

 

Go back to the Login form and check Display Form Details

 

image

 

As you can see filed names are standard – “username” and “password”. Xrumer default xas.txt file already have them.

 

image

 

Login into account manually and see what message Elgg display.

 

image

 

See the code behind

 

image

 

image

 

Update LOGGEDIN section in xmessages.txt

 

image

 

Now, test our work with Xrumer.

image

 

image

 

Don’t worry about “no post sending form found”. We just doing login.

 

A little bit of debugging.

 

How we know the Login process was successful. Go in Debug folder and open Associations.txt

image

 

Open GET id2.htm  scroll down

 

image

 

Congratulations!

 

See video on YouTube



Elgg Xrumer Mod Creation Tutorial – Step 2 Email Confirmation

This is easy step :-)

Let’s take a look at confirmation email we received in mail box.

 

image

 

Xrumer process activation links based on rules in file xpop.txt

All we need is just unchangeable part of the activation link

image

 

Add rule under [LINKNEEDS] section of xpop.txt

http://[...]confirm?u=[...]

Now xrumer knows what kind of links need to be extracted from emails.

 

Next we need to catch message of successful account activation.

 

Click on activation link, we will be redirected to Elgg site

 

image

 

Look at the source code

 

image

 

SNAGHTMLfd819f8

 

Update REGISTERED section in xmessages.txt

image

 

Now we need to catch message of unsuccessful account activation.

 

Click on same activation link again, we will be redirected to Elgg site

 

image

 

Copy source code and update WRONGACCOUNT section in xmessages.txt

image

 

It will help us to separate bad activations from good activations.

 

Confirmation Step is Done.

 

See video on Youtube



Xrumer Mods and Services Review Rating: 10 out of 10 based on 9 reviews.