MyBB Central

Full Version: buying the rights to see a link
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to the users to buy the rights to follow a link? Easy as if you click the link, you are disccounted 5 points... so this way I could avoid "free riders", and make them post topics with links to gain points.

If is not implemented I would like to know how to:

1. know the number of points the the current user have (using a php variable)

2. a function to decrease the user points in X points...

I think I could manage hidding the link someway.

I know php but I don't know this scripts (nor mybb) way of working.
I want a cost to download feature but I want to make it seperate from MYPS core.

Your suggestion is interesting but it's very low priority.
well is high priority for me so any guidances on how I can achieve the two points I ask help would be very useful! thanks
$mybb->user['myps']

That's the user myps called via the $mybb object.

You can view the myps code in order to see examples of how I removed or added myps for certain actions.


What you are asking about is the 2 easy parts...the hard part is hooking into the system properly. Knowing php probably won't help you if you don't take the time to learn the mybb plugin system.
and how about substracting points for only viewing the threads in some forums? Maybe that's easier to do?
I can only support existing functions in myps. I can't create custom work for you without payment. Currently myps is not setup for settings per forum id. It may be something I do in the future but I prefer not to do that. I actually just don't like your idea of charging to view a thread. If it's not something I would use myself then I see no point in building it into myps.

Goodluck.
Reference URL's