Previous Thread
Next Thread
Print Thread
Rating: 3
#283687 02/20/2005 10:54 AM
Joined: Aug 2004
Posts: 173
Member
Member
Offline
Joined: Aug 2004
Posts: 173
Mod Name / Version: Donate 1.0

Description: A quick and easy mod to set up a donate page on your site.

Working Under: UBB.Threads 6.5

Mod Status: Beta

Any pre-requisites: None

Author(s): dparvin

Date: 02/20/05

Credits: Me, I wanted it!

Files Altered: ubbt_footer.tmpl

New Files: donate.php, donate.tmpl

Database Altered: None

Info/Instructions: This is my first mod, so go easy on me if you find anything wrong

Working version here

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
125444-Donate1.zip (0 Bytes, 75 downloads)

Sponsored Links
Joined: Oct 2005
Posts: 81
Power User
Power User
Offline
Joined: Oct 2005
Posts: 81
It wasn't working.

Parse error: parse error, unexpected T_STRING in /var/www/html/ubbthreads/donate.php on line 35

Joined: Oct 2005
Posts: 81
Power User
Power User
Offline
Joined: Oct 2005
Posts: 81
It worked with the second try.

Joined: Aug 2004
Posts: 173
Member
Member
Offline
Joined: Aug 2004
Posts: 173
I was playing with something else.

Its working now

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Nice...

I'll keep an eye on this thread to see how this one wraps up.

Thanks for sharing.

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
nice one, thanks for sharing


- Allen wavey
- What Drives You?
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Aug 2004
Posts: 173
Member
Member
Offline
Joined: Aug 2004
Posts: 173
Thanks people, my first mod and it works

I have slightly changed the version on my site since.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Keep up the good work Does that mean that the version here needs updating?


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Aug 2004
Posts: 173
Member
Member
Offline
Joined: Aug 2004
Posts: 173
[]Ian_W said:
Keep up the good work Does that mean that the version here needs updating? [/]

No, it just means mine shows the potential of the mod

Sponsored Links
Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
Nice one dan!
First mod! thats more than me, i don't think i've contributed anything useful ever, lol!!!

Joined: Aug 2004
Posts: 173
Member
Member
Offline
Joined: Aug 2004
Posts: 173
[]monkeyra said:
Nice one dan!
First mod! thats more than me, i don't think i've contributed anything useful ever, lol!!! [/]

Thanks Nick, you have helped me out on more that one occasion though

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
dparvin, thanks for getting this one together for us.

I'm trying to figure out how to fix this. If a member clicks on the "Donate" link and then clicks on the button that will take him to PayPal.... Well, what if the member decides after all not to donate? He/she closes the browser and then finds him/herself without the forums page still open.

I'd like to keep the forums page still open after the member clicks on the link that will take him/her into PayPal.

See if any of you guys can help me on this one. Here's what my code looks like for PayPal link:


<form action="https://www.paypal.com/cgi-bin/webscr"method="post">
<div align="center">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="F-Body Hideout Website/Forums">
<input type="hidden" name="return" value="http://www.f-bodyhideout.com">
<input type="hidden" name="cancel_return" value="http://www.f-bodyhideout.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input name="submit" type="image" src="https://www.paypal.com/images/x-click-but21.gif" alt="Make payments with PayPal - it's fast, free and secure!" border="0">
</div>
</form>

Joined: Aug 2004
Posts: 173
Member
Member
Offline
Joined: Aug 2004
Posts: 173
I have over looked this. I think I need to update.

I am now showing this on my ubbt_registerednav.tmpl. This is because no one noticed it on the footer. Since its been on the menu I have had some donations

First thing I can think to fix this would be to add "_blank" before the link code.

This is part of my ubbt_registerednav.tmpl

Code
 <br />&middot;<br /><a target = "_blank" href = "$phpurl/sigma_chat.php?Cat=$Cat">Chat Room</a><br />&middot;<br /><a href="{$config['phpurl']}/donate.php?Cat=$Cat">{$ubbt_lang['DONATE']}</a><br /> 



You could add "_blank" to the donate link so that whole page would open in a new window. Then if the user did close the window, they would have another one open with the forums still showing

Code
 <br /><a target = "_blank" href="{$config['phpurl']}/donate.php?Cat=$Cat">{$ubbt_lang['DONATE']}</a><br /> 


I have not tested this, but I do not see any reason for this not to work

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
dparvin, worked out just the way I wanted with:

<a target = "_blank" href="{$config['phpurl']}/donate.php?Cat=$Cat">{$ubbt_lang['DONATE']}</a>


Thanks for putting this one together for all of us.

Joined: Aug 2004
Posts: 173
Member
Member
Offline
Joined: Aug 2004
Posts: 173
No problem, glad you like it.

Thanks for the idea about opening in a new window, I had not thought about that. I will add this to the next version

Joined: Jan 2005
Posts: 14
Newbie
Newbie
Offline
Joined: Jan 2005
Posts: 14
Great Mod, now can you make a mod that makes these tight wads donate?

Joined: Aug 2004
Posts: 173
Member
Member
Offline
Joined: Aug 2004
Posts: 173
[]minimock said:
Great Mod, now can you make a mod that makes these tight wads donate? [/]

lol

I would love to know the secret for that, if I knew I am not sure I would share it though


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)