Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By tonu110 on
Hello,
I want to add a functionality to my drupal site that I want to show a message after a particular no of visits(say 3) of Premium content (or of particular URL with /* as a wild card). Message may be for paid subscriptions.
Please help and tell if there is some useful module for that??
Thanks.
Comments
2 modules
Maybe look at Userpoints and Rules. Add a userpoint each time the registered user visits a premium content page. When they hit the limit, display the message.
A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com
Thanks mcfilms for Quick
Thanks mcfilms for Quick reply, I will try this and update.
but how to add userpoints on
but how to add userpoints on a page visit, there is no solution in userpoints_contrib modules??
rules + userpoints
You're going to have to play around with Rules a bit. Perhaps test out the D7 version of this module: https://drupal.org/project/pathrules
A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com
Thanks Mcfilms
combination of rules, userpoints and path rules worked for me perfectly, thanks
ules, userpoints and path rules
Great! I'd also like to advocate for documenting how you solved it on this thread. It will help the next person searching for this same topic, so it is a great way to "pay it forward."
But it also can serve to remind you how you did it. More than once I have had to do something again from scratch. After a couple years I don't remember the exact steps, but I do remember I documented it. When I return to the thread it's like I left myself a digital post-it reminder. Additionally you get the bonus thanks of all the folks that use your recipe and take a second to say thanks.
So sharing it really is a win-win-win.
A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com