By drupallinux on
hi, I am using the latest version of drupal, and i dont know why a PAYPAL BUY IT NOW button does not want to show up in a node, except until i click the node title or click more information.
i am making a basic shopping cart, and would like this to work.
Comments
re: PayPal button does not show -Teaser mode
When you are not viewing the Full Node, you are seeing the Teaser -an abbreviated version of the text that limits how many characters you can see. Your button is a form and it automatically drops down to the next line under the text, like a new paragraph would. I would guess that the line with the Form falls below the character limits of your Teaser length.
You can set the Teaser length in your Drupal settings; or, if you are using the WYSIWYG API, there is an icon that lets you place the Teaser break exactly where you want it. I am not sure if the Teaser plugin works with just TinyMCE, FCKeditor, or both. I've been working with both editors on different sites lately and cannot remember where I saw it.
Help with Paypal button
On my site I walked through the tutorial of adding a paypal donation button and copied the html into a new block i created and added some wording.
However the wording shows but the button doesnt - any ideas what I've done wrong here??? My site is www.asiansoc.com and I am fairly new to Drupal. Any other helpful comments would be useful.
Also - the theme I bought doesnt seem to allow me to get rid of their advert at the bottom although they claim I am allowed to do so, and also I cant see my copyright message either so any help on that would also be useful.
Many thanks
Uppili
www.asiansoc.com
PayPal button code: use Full HTML or PHP format
When you enter the PayPal code you will need to select the Input Format for either Full HTML or PHP format.
Check your Input Format settings.
Admin >site configurations>Input Formats
Beside each one is a 'configuration' link to see what code filters you have enabled and disabled for each.
If you have disabled the Line Break Filter in your Full HTML, it will work for your PayPal button. This filter is commonly disabled when using a WYSIWYG Editor, like TinyMCE or FCKeditor. Caution: If you already have posted text using the Line Break Filter and disable it now, it will probably mess up the line breaks in your previously entered text.
If you decide not to disable the Line Break Filter in your Full HTML, you will want to use the PHP format.
In your admin module settings page, there is a check box to enable the PHP Filter. This allows you to use PHP code.
In your permissions, be sure only your Roles that you trust to add code have access to the PHP Filter. Most sites limit it to their Admin person.
Go back to your admin settings for Input Filters. I'm not certain if I added it or it was added by the module, but you need an Input Filter called PHP Code and configure it to allow your Admin role and enable the PHP Filter only -no HTML or Line Breaks or any other filters.
Now when you add text to a Block or a text area box on a page , there will be a Format option to select the PHP Code. Watch for instructions. Sometimes you may be instructed to surround the code with the PHP tags.
I wish I knew where to file this suggestion in a Handbook category. It's a snag that almost everyone encounters. I hope it solves your problem. May you continue to learn and help others to learn the Drupal methods.
Paypal donation button
thanks mate
i have done all that but it still doesnt work
is it the code that is wrong somehow or tags that are missing??
I am using following:
Donate to (site)
To help us keep this site running and keeping it free for all users and to help us develop it please make a donation below via paypal. Every little amount helps so please make a donation today!
---inserted code from paypal---
Is this correct - can you help or give me the correct code format?
thanks
re: Paypal donation button
Sorry. Your code for your PayPal button is not showing in your post.
If you select the Full HTML input format, you can copy-paste the PayPal button text with no extra tags. It is an HTML Form.
If you select the PHP Code input format, you must surround your text with the php tags and tell the PHP code what to return.