| | #1 |
| Marketing Since 1996 War Room Member Join Date: 2008 Location: , , .
Posts: 317
Thanks: 57
Thanked 10 Times in 10 Posts
|
I would like to run some standalone online tools inside WordPress page. For example I'm having online page-rank checker script and i want to give an access only to my blog subscribers. How to do that? In other words; The Script works as stands alone with an independent database which is not related to WordPress, WordPress + s2member plugin is using to create a members area ( payment wall / subscription access ) . Actually there is no interaction between the wordpress and these tools . if you having other option then s2member / Amember & wordpress that help me to build a solid member site i'll be happy to hearing * The member Area act as pay wall and intended to protect online tools no video or content ... Thanks Yossi |
| |
| | #2 |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
You can convert the script to a plugin and display it, I would recommend that. A quick shortcut will be to display the script on the page in an iframe.
|
| | |
| |
| The Following User Says Thank You to shahriyar For This Useful Post: |
| | #3 | |
| Marketing Since 1996 War Room Member Join Date: 2008 Location: , , .
Posts: 317
Thanks: 57
Thanked 10 Times in 10 Posts
|
I just wanted to wrote that using Iframe might explore the tool's url when someone is looking inside the page source and then i realize that only payment subscriber have the ability to access that page ..... :-) Another question -- does Iframe "eating" the server resources ? | |
| |
| | #4 |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
"does Iframe "eating" the server resources ? " iframe or without iframe, if the script is hosted on your server, its will use your server's resources.iframe is not significant in terms of using resources. If you want to use user's or member's resources you will need a Javascript (preferably ajax basd) based script so it will the user's resources (IP address, memory etc.) |
| | |
| |
| The Following User Says Thank You to shahriyar For This Useful Post: |
| | #5 | |
| Marketing Since 1996 War Room Member Join Date: 2008 Location: , , .
Posts: 317
Thanks: 57
Thanked 10 Times in 10 Posts
|
Someone that paid could see the source and then copy these links and using them directly after his subscription had finish So its not solve the problem unless the code / iframe source is Encrypted | |
| |
| | #6 |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
Yes, correct. So, you should integrate the script with the WP membership feature. Basically, at the top of your script you should check if the user has a valid membership or not.
|
| | |
| |
| | #7 | |
| Marketing Since 1996 War Room Member Join Date: 2008 Location: , , .
Posts: 317
Thanks: 57
Thanked 10 Times in 10 Posts
|
| |
| |
| | #8 |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
Encrypting page source won't help, because the user is not seeing the PHP source, he is getting the HTML page where he can use the tool. So whether you encrypt PHP or anything else, he will be able to use the tool unless you validate the membership. |
| | |
| |
| | #9 |
| Marketing Since 1996 War Room Member Join Date: 2008 Location: , , .
Posts: 317
Thanks: 57
Thanked 10 Times in 10 Posts
|
BUT when i need to "validate the membership" its converting the concept from independing tools into "part of the site" related tools
|
| |
| | #10 | |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
Another trick would be to use something like this, whenever user logs into the member's area, set a special cookie e.g inmemberarea = 1. Since the iframe tool is in the same domain, that script will be able to access it as well. So, in the tool's script check if the cookie is set (which means the user has logged in the members area), if set load the tool, if not, do not load the tool. This is much simpler solution, but not fully fool-proof. | |
| | ||
| |
| The Following User Says Thank You to shahriyar For This Useful Post: |
| | #11 | |
| Marketing Since 1996 War Room Member Join Date: 2008 Location: , , .
Posts: 317
Thanks: 57
Thanked 10 Times in 10 Posts
|
Using internal redirect to mask the actual url So then if someone want to copy the iframe url - its actually copy the redirect url - that url is part of the site and therefore protected ... | |
| |
| The Following User Says Thank You to clalit For This Useful Post: |
| | #12 |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
If the redirect URL is protected (i.e. part of the membership area), it should work as well.
|
| | |
| |
|
| Bookmarks |
| Tags |
| inside, online, page, run, standalone, tools, wordpress |
| |