Previous Thread
Next Thread
Print Thread
Hop To
#262382 02/20/2019 2:07 PM
Joined: Jan 2019
Posts: 12
Stranger
Stranger
Joined: Jan 2019
Posts: 12
I'm trying to set up a custom island for a paypal button for donations. I can't get it to show up. Feeling stupid. I definitely Have a lot more to learn. I get the iland name showing up but the paypal button isn't there. I know I'm lacking some thing here but can't seem to find anything telling me what. frown

?><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="C5N2AZSRKYZ4L" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>

?>



I know a lot of stuff about a lot of things BUT I still have a lot to learn, Like computer lingo.
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Looks like you stripped out some required code (you have no $body); your island should look like:
Code
/* PHP CODE HERE, IF NECESSARY */

/* DO NOT CHANGE THE LINE BELOW */
$body = <<<EOF

<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="C5N2AZSRKYZ4L" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>

EOF;
/* DO NOT CHANGE THE LINE ABOVE */


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jan 2019
Posts: 12
Stranger
Stranger
Joined: Jan 2019
Posts: 12
OK This is what I find if I open another un edited Body box. I didn't have all the do not edit stuff. I copied and pasted from your reply and it works fine.. I really am trying to learn this stuff I hate to bother people but I don't want to mess up my forum Again. (did it once already) Greatly appreciate all your help. Is there some thing different I would do with what I have here? Where would i insert the paypal code Just after the first line? I have version 7.6.2



/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF

EOF


I know a lot of stuff about a lot of things BUT I still have a lot to learn, Like computer lingo.
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Yes, the stock boxes have different comments than those generated by the system (if you "create a new custom island" it'll generate code as I specified); the end coding is still the same, with this still being where HTML coding (the body of your Custom Island) goes
Code
$body = <<<EOF

EOF

Comments in the stock islands in the stock package will be updated in a future release to reflect the comments from when the system generates a new Custom Island, but this will only affect new installs (as a basic upgrade step is to not upload the cache_builders/custom folder).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (1 invisible), 875 guests, and 141 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)