Jump to content

HTML


EOMA

Recommended Posts

Posted

Ok - Please dont shout at me if this has been covered before

I am trying to post a paypal link into a post - I have done it beforee and it worked great - I have now changed some of the figures and want to put it back in

 

So I open a new page and press "source" and paste in the link (as I done before)

It thinks about it for a while and then it (the paypal logo) stares at me - Click the paypal logo and "Split" flashes at me (a mod permission?) and thats it - Go to Edit the post and the code looks very different from what I put in?

 

Also I have an issue with copy and paste text that I have changed thte colout of (formulated?) - I get a warning to "unformulate" - I dont want this - Are these connected?

 

Regards as always

 

Bacman

Posted

Ok so when I post

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="LKN3CJEV4G63U">
<table>
<tr><td><input type="hidden" name="on0" value=""></td></tr><tr><td><select name="os0">
    <option value="Option 1">Option 1 : $10.00 USD - monthly</option>
    <option value="Option 2">Option 2 : $15.00 USD - monthly</option>
    <option value="Option 3">Option 3 : $20.00 USD - monthly</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

Into source, it will not work

When I go back in to edit I get this

<p>
	<input name="cmd" type="hidden" value="_s-xclick"><input name="hosted_button_id" type="hidden" value="LKN3CJEV4G63U">
</p>

<table>
	<tbody>
		<tr>
			<td>
				<input name="on0" type="hidden" value="">
			</td>
		</tr>
		<tr>
			<td>
				<select name="os0"><option value="Option 1">Option 1 : $10.00 USD - monthly</option><option value="Option 2">Option 2 : $15.00 USD - monthly</option><option value="Option 3">Option 3 : $20.00 USD - monthly</option></select>
			</td>
		</tr>
	</tbody>
</table>

<p>
	<input name="currency_code" type="hidden" value="USD"><input alt="PayPal – The safer, easier way to pay online." border="0" name="submit" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_subscribeCC_LG.gif" type="image"><img alt="pixel.gif" border="0" height="1" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1">
</p>

So It would appear to my very untrained eye some sort of formating is going on?

As I said I have no idea about formatting but it used to work, thats for sure

I put a support ticket in yeaterday but no joy yet and I am due to open on 1st April - Early Aprils fool perhaps

Regards

 

Bacman

Posted
1 hour ago, Lyonharted said:

I tried it on my site and a Paypal link to send money to my account worked just fine. Did support get it handled? I imagine it's being automatically parsed out.

@Lyonharted0

Thanks for your reply

I did get a reply but was told basically they could not help me :(

In not sure what automatically parsed out means - Sorry

Yeah the link is sound (it works in the footer) Its just that when I press source>paste it in> release source > then press souce again the code has changed - I am sure it is something to do with formatting but I know nothing about this - I cant believe no one else has had this issue

Furthermore I have pasted it with and without format (ctrl Right click) and it still will not work correctly (with mouse/Ctrl c and v/ctrl c and ctrl faeces v/ pressing the Remove format button at various stages/ turning on and off paste formatting) - No luck

Help is needed lol

Posted

I think a temporary fix would be to download the image of it (like the Paypal "Pay with Paypal" or "Subscribe with Paypal" or whatever button) and then put a link on that image to the page you want it to take it to. It's not the way it's meant to be, but it works!

Posted
4 minutes ago, Lyonharted said:

I think a temporary fix would be to download the image of it (like the Paypal "Pay with Paypal" or "Subscribe with Paypal" or whatever button) and then put a link on that image to the page you want it to take it to. It's not the way it's meant to be, but it works!

@Lyonharted

 

I would not know how to attach the link to my button........

Posted

1. Grab the image. ie this one:

PayPal.PNG

2. Then go ahead and double click that image. Make sure you're doing this in the editor.

3. In the dialog pop up, enter any link you want. 

4. Profit! Quite literally in this case.

Posted

@Lyonharted

Ok - I have done the button and put the code mentioned above (the correct one) and I get this back

http://%3Cform%20action%3D%22https//www.paypal.com/cgi-bin/webscr%22%20method=%22post%22%20target=%22_top%22%3E%20%3Cinput%20type=%22hidden%22%20name=%22cmd%22%20value=%22_s-xclick%22%3E%20%3Cinput%20type=%22hidden%22%20name=%22hosted_button_id%22%20value=%226B8H2GB374UCJ%22%3E%20%3Ctable%3E%20%3Ctr%3E%3Ctd%3E%3Cinput%20type=%22hidden%22%20name=%22on0%22%20value=%22Subscription%20Options%22%3ESubscription%20Options%3C/td%3E%3C/tr%3E%3Ctr%3E%3Ctd%3E%3Cselect%20name=%22os0%22%3E%20%3Coption%20value=%22Option%201%22%3EOption%201%20:%20$10.00%20USD%20-%20monthly%3C/option%3E%20%3Coption%20value=%22Option%202%22%3EOption%202%20:%20$30.00%20USD%20-%20monthly%3C/option%3E%20%3Coption%20value=%22Option%203%22%3EOption%203%20:%20$50.00%20USD%20-%20monthly%3C/option%3E%20%3C/select%3E%20%3C/td%3E%3C/tr%3E%20%3C/table%3E%20%3Cinput%20type=%22hidden%22%20name=%22currency_code%22%20value=%22USD%22%3E%20%3Cinput%20type=%22image%22%20src=%22https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif%22%20border=%220%22%20name=%22submit%22%20alt=%22PayPal%20-%20The%20safer,%20easier%20way%20to%20pay%20online!%22%3E%20%3Cimg%20alt=%22%22%20border=%220%22%20src=%22https://www.paypalobjects.com/en_GB/i/scr/pixel.gif%22%20width=%221%22%20height=%221%22%3E%20%3C/form%3E

This means very little to me - Lots of % '

Posted

Hmmm. I see the code has a few different links, the 3 different options. If you want to replicate that, you'll have to make each one individually. 

So what you could do is something like this:

Option 1! $10.00 USD [Monthly]

PayPal – The safer, easier way to pay online.  [Link this image to something you generate on your Paypal that would begin a transaction for $10 / month.]

 

Option 2! $15.00 USD [Monthly]

PayPal – The safer, easier way to pay online.  [Link this image to something you generate on your Paypal that would begin a transaction for $15 / month.]

You could do it like that. It seems like it's the actual drop-down menu that you're having a problem with. The editor doesn't know how to display that, probably. So you're going to have do it manually. The code won't work for one reason or another on your site.

Posted

@Lyonharted

Many thanks for this I will be inserting this shortly

My html issues are still there:

Is it right the "spilt" action should be showing when admin reads a post?

 

Split.png

It is not like this in the mods screen or in any other of the user group

Maybe it is supposed to be like that? - It is using any theme

Regards

 

Bacman

Posted

@Lyonharted

I know what it does, its just I dont know why it is there in Admin view and not Mod view - I am sure this has something to do with the editor issues I am having with pasting paypal button onto a post

 

Regards

Posted

Another thingI have noticed is in certain areasis that If I write  a post and submit, the post is accepted but does not show until I refresh my page

Posted

Odd. I'd suggest using a gif recording software such as Gyazo GIF to record that happening, then submitting a support ticket. It may take some time while waiting for the next release but IPS staff will work on it ASAP if they can identify the problem!

Posted

Guys....before you open cases to look at this, step back and see why it happens.....

@Lyonharted you gave good advice. Insert image, double click and add in a url.

The problem is that @Bacman hasn't put a url in to the image....he has literally pasted the following code in to the url (he states this, in this post and the resulting code line he posted is an encapsulated version of that code....which is not going to work for this purpose, so I suggest you don't use it)

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="LKN3CJEV4G63U">
<table>
<tr><td><input type="hidden" name="on0" value=""></td></tr><tr><td><select name="os0">
    <option value="Option 1">Option 1 : $10.00 USD - monthly</option>
    <option value="Option 2">Option 2 : $15.00 USD - monthly</option>
    <option value="Option 3">Option 3 : $20.00 USD - monthly</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

That is the cause of that split appearing outside of the flow of the topic.....easily reproducible and the likely reason for it is the fact that you are sticking a <form></form> inside IPS's already existing <form>

@Bacman - you're trying to create paypal button links within a topic. Would it be better if you used a block on the site (forum etc) instead? If you have pages, create a custom html block and paste in that above code, then position it as you wish on the site. If you don't have pages then use this plugin and create a block using it instead....and paste the code in, then position it etc etc.

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...