UBB.Dev
Posted By: dparvin Beta-[6.5] Donate 1.0 - 02/20/2005 5:54 PM
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.


Attached File
125444-Donate1.zip  (75 downloads)
Posted By: Harold Re: Beta-[6.5] Donate 1.0 - 02/20/2005 7:10 PM
It wasn't working.

Parse error: parse error, unexpected T_STRING in /var/www/html/ubbthreads/donate.php on line 35
Posted By: Harold Re: Beta-[6.5] Donate 1.0 - 02/20/2005 7:12 PM
It worked with the second try.
Posted By: dparvin Re: Beta-[6.5] Donate 1.0 - 02/20/2005 7:12 PM
I was playing with something else.

Its working now
Posted By: smoknz28 Re: Beta-[6.5] Donate 1.0 - 02/21/2005 12:26 AM
Nice...

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

Thanks for sharing.
Posted By: AllenAyres Re: Beta-[6.5] Donate 1.0 - 02/21/2005 2:19 AM
nice one, thanks for sharing
Posted By: Ian_W Re: Beta-[6.5] Donate 1.0 - 02/21/2005 11:25 AM
Posted By: dparvin Re: Beta-[6.5] Donate 1.0 - 02/21/2005 11:27 AM
Thanks people, my first mod and it works

I have slightly changed the version on my site since.
Posted By: Ian_W Re: Beta-[6.5] Donate 1.0 - 02/21/2005 4:16 PM
Keep up the good work Does that mean that the version here needs updating?
Posted By: dparvin Re: Beta-[6.5] Donate 1.0 - 02/21/2005 8:17 PM
[]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
Posted By: monkeyra Re: Beta-[6.5] Donate 1.0 - 02/21/2005 8:31 PM
Nice one dan!
First mod! thats more than me, i don't think i've contributed anything useful ever, lol!!!
Posted By: dparvin Re: Beta-[6.5] Donate 1.0 - 02/21/2005 8:42 PM
[]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
Posted By: smoknz28 Re: Beta-[6.5] Donate 1.0 - 05/15/2005 8:22 AM
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>
Posted By: dparvin Re: Beta-[6.5] Donate 1.0 - 05/17/2005 11:41 PM
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
Posted By: smoknz28 Re: Beta-[6.5] Donate 1.0 - 05/18/2005 6:02 AM
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.
Posted By: dparvin Re: Beta-[6.5] Donate 1.0 - 05/18/2005 8:58 AM
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
Posted By: minimock Re: Beta-[6.5] Donate 1.0 - 06/12/2005 10:48 PM
Great Mod, now can you make a mod that makes these tight wads donate?
Posted By: dparvin Re: Beta-[6.5] Donate 1.0 - 06/14/2005 10:14 PM
[]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
© UBB.Developers