Placing a PayPal button into a Discussion
Ok, So I just installed Vanilla all I want to do is place a paypal button on a Discussion. Even better would be to use a message per page / discussion but doesn't look like Vanilla supports that.
So when I place it into the discussion it appears that the code is parsing the HTML and replacing it with <br></br>
How do I place the following code into a discussion w/o using the message option cause I don't want it everywhere?
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="some@email.com"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="item_name" value="Beginner Builders Kit"> <input type="hidden" name="amount" value="10.00"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="button_subtype" value="services"> <input type="hidden" name="tax_rate" value="0.000"> <input type="hidden" name="shipping" value="0.00"> <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_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_US/i/scr/pixel.gif" width="1" height="1"> </form>
Vanilla version: 2.1.8
All plugins disabled
Comments
If you want a donate add-on , Look at the plugin ForumDonate .
If you want to add a donate button to each discussion in a comment , then I would say use CommentBodyInsert but it apparently has been removed by the author from the repo not sure why ??? maybe not enough donations..... That is too bad it was an excellent ad on and I even made the icon for it
...I have a copy if you want to try it let me know... give me your email
Sorry no other options...
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I didn't quite understand where exactly you want your donate buttons to be but this may work for you:
http://vanillaforums.org/addon/discussioninserts-plugin
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
was zum Teufel ? ja Ich vermute, dass "Kommentar einfügen" können "Diskussion einfügen" mit einigen Mods oder umgekehrt sein no?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
This plugin has the same behavior, inserting
<br></br>
where the PayPal code should be.And to answer where exactly I want it would be on the webpage, once.
In Vanilla terms, the discussion page from the initial post.
Looks like
Gdn_Format::Html()
filters out the form tags.You could edit
/plugins/discussioninserts/library/functions.render.php
and replace line 26 with$Body,
.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
It is better not to rely on inserting raw html, but working through substitution/settings. That way you will avoid markup errors, and security issues.
grep is your friend.