jasnon
Member
Posted 2 months ago #
Hello,
I've been searching around everywhere for a solution to this and unfortunately have not found one yet. It seems a number of other people are also trying to get the paid content module to work on a specific piece of content within a post/page rather then the whole post/page itself. Oddly I havn't come across the idea of using a shortcode to satisfy this. Would it be possible to create a shortcode to wrap around whatever content you wanted users to pay for? It would go something like this...
[paid-content] You're paid content would go here. [/paid-content]
It would behave exactly the same way as it does now but offer much more flexibility on what content could be paid for. Please somebody can you help with this??
Thanks
http://wordpress.org/extend/plugins/cubepoints/
jasnon
Member
Posted 2 months ago #
I should also add that I'm looking for a short code parameter of "amount" to be filled in depending on how much you want the paid content to be for. So it would go:
[paid-content amount="10"] You're paid content would go here. [/paid-content]
This would cost the user 10 points to access the enclosed content.
Thanks
J.D. Grimes
Member
Posted 2 months ago #
I have a module that works exactly like you want. Here is a link to download it.
jasnon
Member
Posted 2 months ago #
J.D. -
Amazing! Thanks for the module, this is indeed exactly what I was looking for! When I was testing out the shortcode I did however notice a problem when using it on my Home Page. Once I clicked the button to spend points and show the protected content it changed my home page to all my recent posts from my blog. I am using a static Home page instead of my latest posts so maybe there is an issue with this. Oddly this only happened when I was on my admin account (it also removed all my buttons on the admin bar), when I tried the same thing on another subscriber account this did not happen.
Also, I was hoping to use this in some cases within a Contact Form 7 form - such that a user would need to spend points to access the submit button in order to submit their form. When I tried this, clicking the button to spend points for the protected content actually submitted the CF7 form. Is there a way for this to work?
Thanks again for posting the module though, this feature is really awesome.
J.D. Grimes
Member
Posted 2 months ago #
Sorry, I accidentally left out an ending form tag. I fixed it and it should work for you now, just re-download it. :)
magonicolas
Member
Posted 1 month ago #
J.D Grimes, How Do I Install your Code?
Thanks
J.D. Grimes
Member
Posted 1 month ago #
You need to unzip the file and upload it to /wp-content/cubepoints/modules folder on the server. You can use FTP, or if you aren't familiar with that and you have cPanel hosting you can use the file manager to upload it to the right directory. Then you need to activate the module on the CubePoints > Modules page in the admin dashboard. You can configure the defaults on the CubePoints > Configure page.