PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

URL Shortener WP Filter (DIFF Attached)

s2Member Plugin. A Membership plugin for WordPress®.

Re: URL Shortener WP Filter (DIFF Attached)

Postby Jason Caldwell » August 10th, 2011, 8:57 pm

Exactly!
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: URL Shortener WP Filter (DIFF Attached)

Postby Cristián Lávaque » August 10th, 2011, 10:07 pm

:)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: URL Shortener WP Filter (DIFF Attached)

Postby Cristián Lávaque » August 24th, 2011, 5:40 am

For some odd reason, $_POST['txn_id'] comes out incomplete in the URL. If the value is 46YBNENJ, only the 46 comes out in the URL. This is a problem because it's not the full order ID, but also because several orders will start with that and duplicate URLs with the shortener won't work.

What do you think could be causing this?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: URL Shortener WP Filter (DIFF Attached)

Postby Cristián Lávaque » August 24th, 2011, 5:56 am

Found the problem: the URL shortner didn't like uppercase, so a strtolower($_POST['txn_id']) fixed that.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Previous

Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests

cron