TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,219
  • Total Topics: 21,352
  • Online today: 556
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 198
  • Total: 199
  • Itchdog

How to add a PayPal button?

Started by joesdomain, March 02, 2005, 02:24:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

joesdomain

I am running the SMF 1.0.2 with the Simplicity theme. My site is used as a Community Trading Post. I would like to add a PayPal button to the mainpage so users can make donations. If anyone knows how this is done using the Simplicity theme, i would sure appreciate the assistance.

Thanks

Joe

redone

Use the html block in the tpadmin section. Insert the html code from your paypal account page.


joesdomain

#2
I found in the admin screen under " Theme Settings - Simplicity" , Modify the index template. (the main template)

Is this the file that I am supposed to edit? If so, where exactly is the PayPal html code inserted?

Joe

Bjørn

You need to manually edit that file, yes. Currently the theme has no special box for inserting html code, like for instance Themis theme or Helios theme.

Even if the theme resembles TinyPortal its not the same - and currently no conversion to make simplicity work in TP has been made.

joesdomain

Do you know exactly where in that file the PayPal code goes?

Joe

Bjørn

It depends on where you want it? on top or at the bottom perhaps?

joesdomain

If you look on my site, www.joesdomain.ca/forums I would like it under User Tools. The button first then, Home,Help etc underneath the button

joe

Bjørn

Find this code in index.template.php:

      template_menu();
      echo '</span>';

And just add you html code right above that and enclosed like this:

echo 'yourhtmlcodehere';
echo '<br />';



joesdomain

I edited the file and inserted the code where you mentioned and I got the following error:

Template Parse Error!
There was a problem loading the /Themes/simplicity/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Joe

Bjørn

Could you post what you inserted? and 2-3 lines before and after it?

This website is proudly hosted on Crocweb Cloud Website Hosting.