Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-01T11:26:25-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14252 2011-08-01T11:26:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29571#p29571 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]>
When added within the php tags, I see the /?p= at the top of my page...

Statistics: Posted by rwilki — August 1st, 2011, 11:26 am


]]>
2011-08-01T11:19:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29570#p29570 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]>
Code:
$post = preg_split('/-/', $_GET['s2member_seeking']);
echo "/?p=" . $post[1];               


Image:
http://d.pr/1PWx

Statistics: Posted by joeboydston — August 1st, 2011, 11:19 am


]]>
2011-07-29T13:18:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29450#p29450 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]>
So when the returning user logs in, the javascript redirects the URL to the S2member variable from the URL. In this example post_id=86665

Feel free to PM me if you'd like to see a live example.

Statistics: Posted by joeboydston — July 29th, 2011, 1:18 pm


]]>
2011-07-28T16:54:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29419#p29419 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]>
Thanks,
Bob

Statistics: Posted by rwilki — July 28th, 2011, 4:54 pm


]]>
2011-07-28T16:41:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29418#p29418 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]>
[url]http://wordpress.org/extend/plugins/shortcode-exec-php/
[/url]

Then copy this javascript code into the bottom of the HTML view of your membership options page:

Code:
<script type="text/javascript">
/* <![CDATA[ */
    jQuery.noConflict();
    jQuery(document).ready(function($){
       $(".redirect_to").val("[s2_redirect]");
    });
/* ]]> */
</script>


So far it's working perfectly for us. Hope this helps somebody else out there, it increases S2's value for us tremendously. Much more professional presentation to the reader.

Statistics: Posted by joeboydston — July 28th, 2011, 4:41 pm


]]>
2011-07-28T15:30:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29411#p29411 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]>
joeboydston wrote:
Cristián, are you suggesting that WP has an "on_login" type of hook that we could use to redirect based on the MOT variables?


For example, you could use something like this hack viewtopic.php?f=4&t=14211#p29101

rwilki wrote:
Cristian, I see your point, that a good welcome message with benefits, etc... is a good sales technique and makes good business sense. I think where the application leaves them short, is that like Joeboydston said, we're asking them to click more than necessary with no "continue" link anywhere.

If I'm subscribing to a news based or article/content-based website, I really want the content more than a welcome. I could always put a nice message with welome information in a confirmation email, plus they always have their MY Page to go to.


Yeah, I see your point guys, I guess it makes sense in some models/flows.

What do you mean by My Page? The profile page?

rwilki wrote:
Your program is so strong with that exception and the lack of filtering a specific level to a specific login or registration. I can't wait for more enhancements!


What do you mean? Content specific for each user?

Statistics: Posted by Cristián Lávaque — July 28th, 2011, 3:30 pm


]]>
2011-07-28T13:56:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29403#p29403 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]>
If I'm subscribing to a news based or article/content-based website, I really want the content more than a welcome. I could always put a nice message with welome information in a confirmation email, plus they always have their MY Page to go to.

Your program is so strong with that exception and the lack of filtering a specific level to a specific login or registration. I can't wait for more enhancements!

Thanks,
Bob

Statistics: Posted by rwilki — July 28th, 2011, 1:56 pm


]]>
2011-07-28T11:53:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29395#p29395 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]>
We bait them with a compelling post title, then ask them to login, then force them to start over again trying to find the post they clicked in the first place.

Cristián, are you suggesting that WP has an "on_login" type of hook that we could use to redirect based on the MOT variables?

Statistics: Posted by joeboydston — July 28th, 2011, 11:53 am


]]>
2011-07-27T22:46:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29373#p29373 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]>
That's why in the other threads Bob and Candy posted about this, I mentioned that you'd need to create this customization yourselves, probably storing the Membership Options Page Variables in the session or a cookie to use them after registration.

Now, in my opinion, if the person paid for the access and just registered, it makes sense to give him a good welcome rather than just send them to the page that bounced them. If they got there in the first place, they very probably either have the link at hand to try again, or will get to it again eventually browsing the website.

Statistics: Posted by Cristián Lávaque — July 27th, 2011, 10:46 pm


]]>
2011-07-27T20:21:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29364#p29364 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]> Statistics: Posted by candy — July 27th, 2011, 8:21 pm


]]>
2011-07-27T18:01:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29356#p29356 <![CDATA[Re: Is there a way to grab a post variable in the url and...]]> Statistics: Posted by joeboydston — July 27th, 2011, 6:01 pm


]]>
2011-07-26T23:13:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14252&p=29231#p29231 <![CDATA[Is there a way to grab a post variable in the url and...]]>
I know that the program is set to redirect to My Login Page, but it would be so much more effective if it would just continue to the content the visitor REALLY wants. Or at the least, if I could put a dynamic link on My Login Page, that would redirect the visitor to the protected post.

Statistics: Posted by rwilki — July 26th, 2011, 11:13 pm


]]>