<< Home

Edit Attributes

Use this forum for issues related to TriniTronic's Nice PayPal Button Plugin.

Moderator: jamesSBT

Edit Attributes

Postby bkmtt » Wed May 02, 2012 9:23 am

Hi,

Did a search on the forum with no luck.

Looking for a suggestion to modify the alt attribute, add width, height, etc...without editing the php file. Is this possible?

Thanks in advance for the help.
bkmtt
Tropos
Tropos
 
Posts: 6
Joined: Wed May 02, 2012 8:46 am

Re: Edit Attributes

Postby Michael » Wed May 02, 2012 7:19 pm

Hi,

As far as the alt attribute, you will need to change that in the PHP file.

However, in Nice PayPal Button version 2.90, we added some layout controls. You can find the layout controls in the plugins parameters (Administrator>>Extensions>>Plugin Manager>>System - Nice PayPal Button) under the tab labelled "Layout" in the lower right hand column.

Here is a video that demonstrates this new feature and how to use it.

http://trinitronic.com/index.php/Video- ... tions.html

~ Best regards
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2473
Joined: Thu Aug 14, 2008 12:30 am

Re: Edit Attributes

Postby bkmtt » Thu May 03, 2012 8:27 am

Hi,

Thanks for the help, much appreciated.

Had seen that video before, nice features addition.

Along a similar line, I was checking for html validation, and ran across some issues. There is a consistent three error pattern, which follows:


Line 195, Column 37: end tag for "select" which is not finished
<select name="os0" /><option value="Product Name">Prod…

Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.


The above error info is repeated again.


Line 195, Column 63: document type does not allow element "option" here; assuming missing "select" start-tag
…name="os0" /><option value="Product Name">Product Name - 00.00 USD</option><option …


Any suggestions on how to resolve these errors?

Thanks again for the help.
bkmtt
Tropos
Tropos
 
Posts: 6
Joined: Wed May 02, 2012 8:46 am

Re: Edit Attributes

Postby Michael » Mon May 07, 2012 3:22 pm

Hi,

Thanks for the update. The button code is generated in the plugin script. You can find it at the following location.

Joomla 1.5
plugins/system/nicepayaplbtn.php

Joomla 1.6
plugins/system/nicepayaplbtn/nicepayaplbtn.php

No doubt the syntax errors will be found in that script. You can simply download it. Make the changes that you want. Save the altered file and then re-upload it to its original location.

~ Best regards
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2473
Joined: Thu Aug 14, 2008 12:30 am

Re: Edit Attributes

Postby bkmtt » Tue May 08, 2012 8:39 pm

Thank you, that fixed it.
bkmtt
Tropos
Tropos
 
Posts: 6
Joined: Wed May 02, 2012 8:46 am

Re: Edit Attributes

Postby Michael » Wed May 09, 2012 9:32 am

You're welcome! I will try to add the syntax corrections to the next release of the extension.

~ Enjoy
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2473
Joined: Thu Aug 14, 2008 12:30 am


Return to Joomla: Nice PayPal Button

Who is online

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