Hi, was wondering if rules had the ability to do this below:

1. User come to a webpage and clicks on link on that page
2. Link directs them to a page that has some pre-determined action such as it will give the user a new badge.

Can rules check to do the following:

1. Only give badge if user came from a predetermined link
2. Only give the badge once unless coming from another predetermined link so the user would need to move up the ranking scale on the site

Thanks for any support

Comments

itangalo’s picture

Component: Rules Core » Rules Engine
Status: Active » Fixed

Check out the Rules Link project – it provides nifty tools for adding links to entities. You can provide each link with conditions and stuff, that are checked before any actions are carried out.

You might also want to check out using custom pages from Page manager to trigger rules.

However: Unless the previoius page is stored in a cookie or something, Rules won't have a chance of checking where the user came from. Usually there are better solutions for this, though (such as only allowing access for particular types of users and in particular circumstances).

Some screencasts that may help on the way:
* Rules Link: http://nodeone.se/node/1067
* Rules + Page manager: http://nodeone.se/node/1069

Good luck!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Balbo’s picture

Status: Closed (fixed) » Active

As far as I can see, those solutions from Itangalo won't work with Drupal 6.

itangalo’s picture

Component: Rules Engine » Rules Core

Balbo: True – I was thinking of Drupal 7. Thanks for noticing.

tr’s picture

Issue summary: View changes
Status: Active » Closed (outdated)