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™

Is there a way to disable the use of tinyurl?

s2Member Plugin. A Membership plugin for WordPress®.

Is there a way to disable the use of tinyurl?

Postby lewayotte » June 22nd, 2010, 1:36 pm

In my testing of s2member I noticed that the email it sent for user registration was a tinyurl. Frankly, I'd prefer it just be a link directly to my site.

Is there a reason why it is set to tinyurl by default? and is there a way to disable this? (I didn't see it in the options page.

btw, I noticed that includes/functions/sp-access.inc.php and includes/functions/register-access.inc.php have functions, that set $shrink to TRUE by default.

line 21: ws_plugin__s2member_sp_access_link_gen
and
line 244: ws_plugin__s2member_register_link_gen

I think the subscriber would feel more comfortable clicking a registration link, if they saw the actual domain they just subscribed too.

Thank you.
Lew

P.S. I bought s2member Pro this past weekend. I'm not using the pro features yet, but I wanted to support your development. You've created a really great product here. I'm glad I found the free version to get me started.
User avatar
lewayotte
Experienced User
Experienced User
 
Posts: 33
Joined: June 22, 2010
Location: Athens, GA

Re: Is there a way to disable the use of tinyurl?

Postby Jason Caldwell » June 22nd, 2010, 1:44 pm

Hi there. Thanks for your support!
— and for the great question.

Yes, you can disable tinyURL, but you'll need to use a WordPress Hook.

Inside the functions.php file for your theme, you can add these lines.
Code: Select all
add_action("ws_plugin__s2member_before_sp_access_link_gen", "disable_s2member_tinyURL");
add_action("ws_plugin__s2member_before_register_link_gen", "disable_s2member_tinyURL");

function disable_s2member_tinyURL($vars)
    {
        $vars["__refs"]["shrink"] = false;
    }

Now, I do NOT recommend this though :-). The reason tinyURL is being used, is because these URLs tend to be very long. They contain authorization codes in the URL. So shrinking them with tinyURL prevents broken links due to long lines in some email applications.
~ 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: Is there a way to disable the use of tinyurl?

Postby lewayotte » June 22nd, 2010, 2:51 pm

Cool, thanks for the reply.

I figured it was because the registration URLs would be massive.

A good "feature" to add would be something like Twitter Friendly Links (http://wordpress.org/extend/plugins/twi ... dly-links/). It basically creates a URL shortener for the domain it's installed on.

I'll keep the tinyurls for now :). I assume you haven't heard any clients complain that they weren't trusted.

Thanks again.
Lew
User avatar
lewayotte
Experienced User
Experienced User
 
Posts: 33
Joined: June 22, 2010
Location: Athens, GA

Re: Is there a way to disable the use of tinyurl?

Postby Jason Caldwell » June 23rd, 2010, 2:10 pm

Hi Lew. Yes, thanks for that suggestion. I'm adding this to my TODO list. I do agree, this would a nice extra feature. It's not high on my priority list, but it's definitely on my radar.

Yes, with all of the Tweets flying around, and other shortening services popping up, my opinion is that most visitors would not think twice about clicking a tinyURL. However, better is better, and a customized URL is better than a tinyURL. So again, this IS on the radar. ~Thanks.
~ 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: Is there a way to disable the use of tinyurl?

Postby Brian Hatano » July 18th, 2010, 2:47 am

Jason Caldwell wrote: better is better, and a customized URL is better than a tinyURL. So again, this IS on the radar


second that :D
User avatar
Brian Hatano
Registered User
Registered User
 
Posts: 20
Joined: May 11, 2010

Re: Is there a way to disable the use of tinyurl?

Postby Jason Caldwell » July 18th, 2010, 3:28 am

@TODO :: URL Shortening options.
~ 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: Is there a way to disable the use of tinyurl?

Postby Cristián Lávaque » March 2nd, 2011, 5:47 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


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 3 guests

cron