How to use the paid() function effectively



Hire Us!Download Video(0)Comments


If you are one of the many using the subscription module then you know this tutorial is for you. It will show you how to use the paid() function to hide parts of your page from non subscribers. You can also use it to hide links, images just about anything.

Steps :
The first thing is to understand how the function works. The following is a full view of the codes.

That's it! Easy. Wasn't it? Basically what you are doing is checking to see if the member is a subscriber, they get the "goodies", if not then they get nothing :( . Let's put this to better use. In the example below we have a link [Western Studios Cool Animation] we want hidden from non subscribers. We first check if the member is a subscriber using the paid() function already defined in the mainfile.php

If the member is a subscriber we want them to see the link so we show it in following codes.

Done! You may ask, why didn't I use the else{ part as in the first example. Well you only need the else{ if you want to show something to non subscibers like in the following codes

This should give you a better idea of how to use this important function. You can use it to protect anything on your website. Visit the forums if you need more help.

 

Hire Us!Download Video(0)Comments