Request: paypal plugin

Creating and modifying plugins.
Post Reply
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Request: paypal plugin

Post by izzlik »

Hello, i wantedto request a plugin. not to advanced at all. insteed of googleads i want to have a "paypal donate button" and i wonder if someone can make a plugin for this? bellow is the code for their donate button

"IHAVE EDITED" the code, removing vital information but i put the rest of it here for plugins makers to look at "if" they wanna help me. basiclly it's not gota be anymore advance then the "powerd by" plugins that followis with serendipity

thanks beforehand.

Code: Select all

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7----ENCRYPTION REMOVED=-----END PKCS7-----
">
</form>
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Why not just make that a sidebar HTML nugget?
=Don=
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

Owen Stubbs wrote:Why not just make that a sidebar HTML nugget?
in what file and where should i place it? i tryed to make a .asp file and include it on index.php but then the page became littery "F***D* up
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

HTML sidebar nuggets can be installed using the serendipity plugin manager. Click on "Plugin Configuration", then click on "Click here to install a new sidebar plugin". Then search for "HTML nugget" and click on the install link. There you can paste your HTML paypal code into.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

thanks! :) a problem occured thou, as i added a google search to the html nugget at first it was shown with not problem. but the click boxes became to large "code bellow" and as seen in this picture. is it someting seredipity is doing?

PICTURE:
http://lunarplejs.brinkster.net/prob.jpg

BOXES:

Code: Select all

<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="Search the Web"><font size="-1" color="#000000">Web</font></label></td>
<td>
<input type="radio" name="sitesearch" value="www.test.net" id="ss1"></input>
<label for="ss1" title="Search www.test.net"><font size="-1" color="#000000">test.net</font></label></td>
FULL CODE

Code: Select all

<form method="get" action="http://www.google.com/custom" target="_top">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<br/>
<input type="hidden" name="domains" value="test.net"></input>
<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="28" maxlength="255" value="" id="sbi"></input>
</td></tr>
<tr>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="Search the Web"><font size="-1" color="#000000">Web</font></label></td>
<td>
<input type="radio" name="sitesearch" value="www.test.net" id="ss1"></input>
<label for="ss1" title="Search www.test.net"><font size="-1" color="#000000">test.net</font></label></td>
</tr>
</table>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Search" id="sbb"></input>
<input type="hidden" name="client" value="pub-0833543129974859"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="4049784745"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="safe" value="active"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:66;L:http://test.net/test.jpg;S:http://test.net;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

I think this is your problem:

Code: Select all

/* *****************************
   SIDEBARS
 * *****************************/

.serendipitySideBarContent input {
    width: 150px;
}
Radio buttons are also "inputs", so this CSS style causes each button to be 150px wide.

This bit of HTML has each button in a single row:

Code: Select all

<tr>
<td>
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="Search the Web"><font size="-1" color="#000000">Web</font></label></td>
<td>
<input type="radio" name="sitesearch" value="www.test.net" id="ss1"></input>
<label for="ss1" title="Search www.test.net"><font size="-1" color="#000000">test.net</font></label></td>
</tr> 
If you want to keep all input widths at 150px, perhaps you could stack the radio buttons into separate rows??

Code: Select all

<tr>
<td>
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="Search the Web"><font size="-1" color="#000000">Web</font></label></td>
</tr> <!-- END THIS ROW -->
<tr>  <!-- START NEW ROW -->
<td>
<input type="radio" name="sitesearch" value="www.test.net" id="ss1"></input>
<label for="ss1" title="Search www.test.net"><font size="-1" color="#000000">test.net</font></label></td>
</tr> <!-- END SECOND ROW -->
=Don=
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

ok, i just tryed what you suggested and this happened :/

http://lunarplejs.brinkster.net/prob2.jpg


EDIT:

while we are on the subject. this is what the HTML nugget did to my paypal button, and setting width and hight on it dosent help at all.

http://lunarplejs.brinkster.net/pp.jpg
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

In your CSS file (style.css) you might want to remove the "width: 150px" stuff.

Or you will need to change all your input fields of the paypal or google button with this:

Code: Select all

<input style="width: auto" ... />
So, you need to add "width:auto" to a style attribute.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

there, now it works perfectly! :D that you both very much for the help.
Post Reply