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™

Different graphics for Paypal button?

s2Member Plugin. A Membership plugin for WordPress®.

Different graphics for Paypal button?

Postby cassel » April 23rd, 2011, 1:20 pm

As i am working on generating shortcodes for Paypal buttons, i notice that they always look the same. I am wondering if there is something that can be edited so that the button looks different: different size? different wording on it? I can create a button with "Buy now" or something like that, but how do i replace the graphic given in the shortcode?

I can do the graphic part, not the coding... yet. :)
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Different graphics for Paypal button?

Postby psdesign » April 23rd, 2011, 1:45 pm

Yes I am wondering the same thing. I would like to have a different graphic for each membership level in my site. Is there a way to edit this in the CSS?
User avatar
psdesign
Registered User
Registered User
 
Posts: 10
Joined: April 23, 2011

Re: Different graphics for Paypal button?

Postby Cristián Lávaque » April 23rd, 2011, 2:07 pm

Hi guys. :)

In the shortcode you can specify what image to use for the button. WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes (Explained)

image="default" Button Image Location. Possible values: default = use the default PayPal® Button, http://... = location of your custom Image.


Let me know if that helps.
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: Different graphics for Paypal button?

Postby cassel » April 23rd, 2011, 2:17 pm

AH!!!! so simple. Thank you!
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Different graphics for Paypal button?

Postby Cristián Lávaque » April 23rd, 2011, 3:55 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: Different graphics for Paypal button?

Postby cassel » April 23rd, 2011, 4:00 pm

Well, if anyone wants to use some free graphics to start their own, i found these:
http://www.doubleplus.com/add-to-cart-b ... -free.html
http://www.freedesign4.me/vectors/free- ... tag-icons/
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Different graphics for Paypal button?

Postby rbranson » April 23rd, 2011, 11:12 pm

OK I tried several variations of inserting the Paypal subscription button.

[s2Member-PayPal-Button image="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_subscribeCC_LG.gif" ...

[s2Member-PayPal-Button level="1" ccaps="" desc="Starter ... image="default" output="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_subscribeCC_LG.gif" /]

[s2Member-PayPal-Button level="1" ccaps="" desc="Starter ... image="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_subscribeCC_LG.gif" output="button" /]

[s2Member-PayPal-Button level="1" ccaps="" desc="Starter ... image="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_subscribeCC_LG.gif" output="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_subscribeCC_LG.gif" /]

None of the above worked.
User avatar
rbranson
Registered User
Registered User
 
Posts: 6
Joined: April 23, 2011

Re: Different graphics for Paypal button?

Postby Cristián Lávaque » April 23rd, 2011, 11:37 pm

Thanks for sharing that, Cassel! :)

rbranson, 2 and 4 have an invalid value for output, 1 and 3 should work, it worked for me with that image's URL you tried. Could you post your full button shortcode to see if something else is wrong with it?
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: Different graphics for Paypal button?

Postby rbranson » April 24th, 2011, 12:11 am

OK. Thanks I got it working. I had indented the shortcode. Don't know if that made a difference.
Btw, Wordpress keeps adding "span style" tags. Is that a problem?
User avatar
rbranson
Registered User
Registered User
 
Posts: 6
Joined: April 23, 2011

Re: Different graphics for Paypal button?

Postby Cristián Lávaque » April 24th, 2011, 12:34 am

I'm glad you got it working. :)

I don't know if the indentation was causing the trouble. I tried indenting the shortcode in a test I did and the button still looked fine.

Could you show me the span style added by WordPress? I don't think it'll cause trouble, but am curious now that you mentioned it.
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: Different graphics for Paypal button?

Postby rbranson » April 24th, 2011, 11:09 am

You are right, the indentation wasn't a problem. There was a typo caused when I was editing.

Here is an example of the span style that is being added. It doesn't seem to be causing problems, except that it is also making the font small.

Code: Select all
<span style="font-family: Arial,Helvetica,sans-serif; font-size: small;">To register for FREE <a href="http://bewell.vrcities.net/wp-login.php?action=register">click here</a> - <span style="color: #cc0000;">Value</span></span>


I can edit, I think, but it is a hassle. As I thought about it, perhaps it is the theme I am using that is adding the span.

Thanks for your help.

Ralph
Last edited by Cristián Lávaque on April 24th, 2011, 11:15 am, edited 1 time in total.
Reason: Improve code readability. http://www.primothemes.com/forums/viewtopic.php?f=36&t=2780
User avatar
rbranson
Registered User
Registered User
 
Posts: 6
Joined: April 23, 2011

Re: Different graphics for Paypal button?

Postby Cristián Lávaque » April 24th, 2011, 11:17 am

Yeah, maybe the theme. :|

Where is it being added? To the button's code? (I was under that impression earlier because this thread is about the button image and you were talking about the shortcode earlier, but I'm guessing now that it may be somewhere else.)
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: Different graphics for Paypal button?

Postby mmoore » April 29th, 2011, 12:26 am

What if I want to skip the whole short-code process. How can I get the generated URL for each level?

My buttons aren't made from graphics, they are pure css.

Thanks,

Mike
User avatar
mmoore
Registered User
Registered User
 
Posts: 3
Joined: April 21, 2011

Re: Different graphics for Paypal button?

Postby Cristián Lávaque » April 29th, 2011, 12:57 am

mmoore wrote:What if I want to skip the whole short-code process. How can I get the generated URL for each level?


Hi Mike.

The button generators give you the full HTML too. WP Admin -> s2Member -> PayPal Buttons
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: Different graphics for Paypal button?

Postby mmoore » May 2nd, 2011, 8:01 pm

The HTML view is a form without an address. How in the world am I going to link this to text? I want to replace the Paypal Button with "Buy Now" text.

Thanks,

Mike
User avatar
mmoore
Registered User
Registered User
 
Posts: 3
Joined: April 21, 2011

Re: Different graphics for Paypal button?

Postby Cristián Lávaque » May 3rd, 2011, 2:01 am

I am really sorry, Mike, I had not understood correctly what you are trying to achieve.

I suggest you look at the output attribute of the shortcode. WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes (Explained)

I hope that helps. :)
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: No registered users and 2 guests

cron