TinyPortal

Development => Block Codes => Topic started by: nukebiz on November 28, 2006, 06:01:39 AM

Title: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 28, 2006, 06:01:39 AM
Treasury is a donation management system derived from Nuke Treasury, an old php-nuke module (without the security risks).  It displays a copyright file to provide that recognition.

Not exactly a TP module as it also installs on standalone SMF 1.1RC3, but it does add the donation block and adds a link to your menu, if they exist.

It has a highly configurable admin interface, has in-built documentation, and provides a donation summary in member profiles.  It even installs/uninstalls like a bought one.

As stated, it is a beta - I am new to SMF/TP coding, but think I have the essentials covered :)
(still lots of language elements to define before it becomes truly multi-lingual)

Edit: updated to v1.1beta - uninstall and delete the original package, reload and install the new package.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: rebelrose on November 28, 2006, 06:08:55 AM
That seems to be a nice mod.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: IchBin on November 28, 2006, 06:30:05 AM
Wow... thats quite a task you've taken on there. Well done. I'm sure there'll be a lot of people who will want something like this.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: anunlike on November 28, 2006, 06:31:39 AM
Very nice! I've always been interested in seeing that particular thing made for TP!


Some related topics:

http://www.tinyportal.net/smf/index.php?topic=5801.0

http://www.tinyportal.net/smf/index.php?topic=5802.0
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Thurnok on November 28, 2006, 06:35:59 AM
Wow.. that's a very nice mod.  Truly great work Resourcez!
I will definately check it out!  :)
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 28, 2006, 06:54:31 AM
 :2funny: Treasury is a block code snippet.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 28, 2006, 07:13:20 AM
This seems like a great mod!!!  I have it installed and am looking into it now.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Thurnok on November 28, 2006, 07:33:50 AM
Quote from: Resourcez on November 28, 2006, 06:54:31 AM
:2funny: Treasury is a block code snippet.

Think you mean isn't.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Assistance on November 28, 2006, 07:53:16 AM
installed with no errors on a heavy modded site

the fact you allow Donations to be editable is really great
for my site anyways, i get donations and 'payments' though other means aswell, and I am sure those members would like to see there names up to..


This has to be in my top 5 mods list ;)

as you have stated this is in beta, is there any known bugs that are being worked on?
Edit* just read the readme
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 28, 2006, 07:56:27 AM
testing the donation itself and the ipn doesnt seem to be updating to my site....everything else seems to be working fine...

followed the instructions in the read me.....it sends the emails fine but wont list the donator or update the donations that have been made through ipn.

any help on this?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 28, 2006, 08:13:42 AM
I just checked my DB and it shows no record of the multiple test transactions....


the test ipn link in the admin area says it passed and is good to go...

Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Assistance on November 28, 2006, 08:20:22 AM
manual inserting donations shows "Anonymous"

can we have it show the name?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 28, 2006, 09:33:08 AM
The most common reason for no data in the database is that the donor failed to return to the site from PayPal.  Then you need to manually enter the basic data from your PayPal email notification.

Manual entry has provision for the username and whether the donor wishes their name shown i.e. Show = Yes

Data is added in index.php?action=treasuryadmin;sa=donations, using the bottom row of empty boxes.

'Tax Id' is the receipt from paypal, something like ZYXGTY1234567890
'Name' is the Username who donated
'Show' is Yes if they wanted their name displayed.
'Status' is Completed
'Gross' is their donation amount.
'Fee' is the paypal fee for that donation.
'Settle' is the donation amount converted to your site currency (probably same as Gross).
'Date' is the format 2005-04-16 00:00:00
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: WarBirD on November 28, 2006, 10:04:50 AM
Ok, i have a little bit of understanding all. I installed the mod, entered my PAYPAL data etc and some other stuff. I tested with someone, the donating itself works fine. But the data doesnÂÃ,´t show up in the module. Is that supposed to be that way ? Do I have to enter that manually in the treasury ?
And, since my PAYPAL isnÂÃ,´t in english, i have a little bit trouble to know what I have to do in my PAYPAL profile. Can you please tell me how the transfers are shown in the treasury after someone donated ?

Appreciate the help.

WarBirD
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: WarBirD on November 28, 2006, 10:35:56 AM
Another question i would like to ask, what file permissions do the Files and the treasury folder has to be ?
Now after installing its all to 777. I would prefer to change it back to 644 for files and 755 for the folder. Is that ok or does it cause problems ?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 28, 2006, 10:40:50 AM
I'm afraid I can't help with PayPal settings in non-english.

Manual entry is only necessary when PayPal IPN fails to work correctly, and that is usually because the donor failed to click PayPal links to return to your site, or your site failed to respond to PayPal in a timely manner.

The return file is ipntreas.php which is located in your "root/treasury/" directory.
In my case, that directory is generated with CHMOD permissions 755 and the file has CHMOD permissions 644 - this may vary with some hosts.

Whilst PayPal IPN returns much more data to the database, the minimum information for Treasury to function, is as shown above. Below is a mysql query for a typical complete PayPal IPN transaction.INSERT INTO `smf_treas_trans` VALUES (1, 1, 'resourcez@gmail.com', '4A0851570N016380F', 'Donation', '111', '1', '', 'Resourcez', '0.00', 'List your name?', 'Yes', 'User Name', 'Resourcez', '', 'Completed', '2006-11-18 16:36:56', 'web_accept', '10.00', '0.56', 'USD', '10.00', '1.00', 'Phred', 'Bloggs', '', '', '', '0', '', '', 'phred@resourcez.biz', 'verified', '$');

You can view database structure through your phpmyadmin or,
index.php?action=packages;sa=list;package=Treasury_1.0beta.zip
Then click on the treasurydb.php file

In future versions I shall include some sample PayPal transactions.

Check the smf_log_treasury table for details of what may have occurred during your transaction - at the moment, this is only possible through something like phypmyadmin.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: than on November 28, 2006, 01:06:49 PM
Hi, iÂÃ,´m testing the mod. Great Mod.  ;)

Because first installation fail i have problems with Suggested Donation amounts. Please can you show me the code and file to correct it?

See the image.

Thanks and sorry for my english  ???
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: technodragon73 on November 28, 2006, 01:18:26 PM
Wow. I am impressed, I will definitely be watching this so that when it reaches a more stable stage I will probably install it!
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 28, 2006, 01:21:06 PM
You can view the code and the database structure through the files list in your Package admin.

You need to delete the extra fields in your smf_treas_cfg table using something like phpmyadmin.

Alternatively, first uninstall the package, then delete all tables associated with Treasury, then re-install.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: than on November 28, 2006, 01:36:03 PM
OK!!!,  :uglystupid2: Solving the problem.

Thanks!
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 28, 2006, 03:31:11 PM
Quote from: Resourcez on November 28, 2006, 09:33:08 AM
The most common reason for no data in the database is that the donor failed to return to the site from PayPal.Ã,  Then you need to manually enter the basic data from your PayPal email notification.

After completing the paypal transaction it automatically returns you to my site........that is what the return url is for that you enter in the admin area, correct?

and it still does not give the ipn info for the transaction....no information transferred whatsoever.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: HaxXxoR on November 28, 2006, 06:54:36 PM
I kinda feel dumb i cant figure out the way to get the donations block to work?!?

Also i had someone test a donation and nothing shows up anywhere but i have the money which is a good thing :P

Any ideas?


**Got the block to work but nothing shows up in the block or the Treasury page
http://tasty-fragism.com/forum/index.php?action=treasury
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on November 28, 2006, 11:33:41 PM
working on my site.  Donatee MUST click the final continue button to take you back to your site or paypal won't send the ipn info out.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: than on November 28, 2006, 11:35:08 PM
idem  ;D
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 29, 2006, 12:48:45 AM
Quote from: Symbul on November 28, 2006, 11:33:41 PM
working on my site.  Donatee MUST click the final continue button to take you back to your site or paypal won't send the ipn info out.

I have done that and it doesnt work.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on November 29, 2006, 01:13:03 AM
Quote from: Thurnok on November 28, 2006, 07:33:50 AM
Quote from: Resourcez on November 28, 2006, 06:54:31 AM
:2funny: Treasury is a block code snippet.

Think you mean isn't.


I think that was sarcasm since G6 moved this thread to the wrong forum.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on November 29, 2006, 02:18:09 AM
Quote from: Jump1979man on November 29, 2006, 12:48:45 AM
Quote from: Symbul on November 28, 2006, 11:33:41 PM
working on my site.  Donatee MUST click the final continue button to take you back to your site or paypal won't send the ipn info out.

I have done that and it doesnt work.

Can you paste up what your values are set for in paypal config tab of treasury admin.  Thanks.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 29, 2006, 02:27:53 AM
Quote from: Symbul on November 29, 2006, 02:18:09 AM
Quote from: Jump1979man on November 29, 2006, 12:48:45 AM
Quote from: Symbul on November 28, 2006, 11:33:41 PM
working on my site.  Donatee MUST click the final continue button to take you back to your site or paypal won't send the ipn info out.

I have done that and it doesnt work.

Can you paste up what your values are set for in paypal config tab of treasury admin.  Thanks.


They are the default values set when installed....

when installed it automatically inserts these values to coincide with your forum...

The ones I changed were:

PayPal Receiver Email 
URL for Return Page

and thats it.....the IPN test link for PAYPAL works fine...no errors.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: samson on November 29, 2006, 02:28:58 AM
Instalation went nice and smooth :up:

great job but I also am not receiving any info from the ipn I clicked the Click here to test IPN link and got no errors
but it still does not work :'(
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on November 29, 2006, 02:39:48 AM
Quote from: Jump1979man on November 29, 2006, 02:27:53 AM

They are the default values set when installed....

when installed it automatically inserts these values to coincide with your forum...

The ones I changed were:

PayPal Receiver Email 
URL for Return Page

and thats it.....the IPN test link for PAYPAL works fine...no errors.

Please return the 'URL for Return Page' back to the default setting, IPN needs this to be set properly or the info isn't gonna be sent to the right place.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 29, 2006, 02:44:38 AM
Quote from: Symbul on November 29, 2006, 02:39:48 AM
Quote from: Jump1979man on November 29, 2006, 02:27:53 AM

They are the default values set when installed....

when installed it automatically inserts these values to coincide with your forum...

The ones I changed were:

PayPal Receiver Email 
URL for Return Page

and thats it.....the IPN test link for PAYPAL works fine...no errors.

Please return the 'URL for Return Page' back to the default setting, IPN needs this to be set properly or the info isn't gonna be sent to the right place.


it was left at the default and it didnt return me to any page and didnt transfer the ipn then either....that is why I changed it...

I will change it back.....btw, what is the default again...if I remember right it is the same as the url for ipn notification?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on November 29, 2006, 02:47:23 AM
yes it should be the same

_____/treasury/ipntreas.php

Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 29, 2006, 02:57:18 AM
Quote from: Symbul on November 29, 2006, 02:47:23 AM
yes it should be the same

_____/treasury/ipntreas.php



yep changed it back and tested it and same thing...blank white screen and no ipn transfer when I went back to admin panel.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on November 29, 2006, 03:11:19 AM
I know you probably have done this, but I'm trying to cover all the bases ...

Go back through paypal and double check you have all the settings set as the readme explains:

Quote from: readme.txt1. Treasury requires IPN settings in your PayPal account "Profile".
Set 'IPN' to 'On' in "Instant Payment Notification Preferences".
This will also require a URL to be entered - anything will do, but not blank.

Note: The URL you set here is NOT important as Treasury operates from its own Notify and Return URLs which ignore, and are independent of, your PayPal settings.
Why? If you already have an IPN setting activated for some other program, it will continue to function for that program.

2. You should also modify "Payment Receiving Preferences" in your "Profile" area.
Check your option for "Block payments sent to me in a currency I do not hold:".
You should set this to the second option "No, accept them and convert them...".
Failure to do this means you will have to manually confirm each payment within your PayPal account.

3. Treasury does NOT require settings in "Website Payment Preferences".
Unless you need them for some other reason,
a. Set/Leave 'Auto Return' to 'Off' in "Website Payment Preferences".
b. Set/Leave 'Payment Data Transfer' to 'Off' in "Website Payment Preferences".

4. If you are having problems with transactions not appearing, check the Transaction Log for any clues to problems.
Note: If people fail to click the return buttons while on the PayPal site, the IPN data will not be stored in your database, and you will have to enter the data manually in the bottom row here.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 29, 2006, 03:24:55 AM
3. Treasury does NOT require settings in "Website Payment Preferences".
Unless you need them for some other reason,
a. Set/Leave 'Auto Return' to 'Off' in "Website Payment Preferences".
b. Set/Leave 'Payment Data Transfer' to 'Off' in "Website Payment Preferences".


I apparently didnt check this when installing....this was the problem and it now is working fine...

THANK YOU SO MUCH FOR YOUR HELP!!!
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 29, 2006, 03:27:00 AM
Now what page do I customize so it doesnt say thank you from Resourze?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on November 29, 2006, 03:27:23 AM
unfortunately paypal is very picky and requires settings to be just right or it won't work
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on November 29, 2006, 03:28:09 AM
main config tab of treasury admin, I think.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 29, 2006, 03:32:10 AM
Quote from: Symbul on November 29, 2006, 03:28:09 AM
main config tab of treasury admin, I think.


thats just for the donation page....I am talking about after you donate it takes you back to your site and then there is some page from resourze thanking people for donating to help make smf better...
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: samson on November 29, 2006, 03:35:21 AM
ok
Instant Payment Notification (IPN)   On
Instant Payment Notification (IPN) URL:  



Block payments from U.S. users who do not provide a Confirmed Address:
Yes
No       <-------
Ask Me

Block payments sent to me in a currency I do not hold:
Yes
No, accept them and convert them to U.S. Dollars    <-----------
Ask Me

Block accidental payments:
You may prevent accidental payments by blocking duplicate invoice IDs
Yes, block multiple payments per invoice ID    <---------
No, allow multiple payments per invoice ID

Block payments from users who:
Have non-U.S. PayPal accounts
Initiate payments from the Pay Anyone subtab of the Send Money tab
   (If checked, you may enter an Alternate Payment URL for your buyers.)
   Alternate Payment URL:  
                      (optional)

Block payments from users who:
Pay with eCheck for website and Smart Logo payments, or German bank transfer for all     website payments except eBay


--------------------------------------------------------------------------------

Display "Add Instructions to Seller" text input field:
Yes
No


--------------------------------------------------------------------------------




Auto Return:
On
Off     <------------

Payment Data Transfer:
On
Off   <----------------



thats all my settings and the ipn does not work  :'(
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: samson on November 29, 2006, 03:41:05 AM
never mind user error it works great :up: ;D
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on November 29, 2006, 03:42:10 AM
Quote from: samson on November 29, 2006, 03:41:05 AM
never mind user error it works great :up: ;D

Want to post what you did, just incase it helps the next person :)
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 29, 2006, 03:42:57 AM
@Jump1979man
Themes/default/languages/Treasury.english.php

Next version will automatically pick up the relevant site name.

Return and thank you URLs will be hard coded in future.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Porky on November 29, 2006, 03:55:35 AM
wow really good job...this is what I have been waiting for!
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 29, 2006, 04:02:19 AM
Quote from: Resourcez on November 29, 2006, 03:42:57 AM
@Jump1979man
Themes/default/languages/Treasury.english.php

Next version will automatically pick up the relevant site name.

Return and thank you URLs will be hard coded in future.


Thank you!!

AWESOME MOD MAN!!
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: samson on November 29, 2006, 04:06:07 AM
QuoteQuote from: samson on Today at 04:41
never mind user error it works great 


Want to post what you did, just incase it helps the next person 



It was the one thing I had no control over the person I had testing it for me said they hit the finish button but they did not  :uglystupid2: So it worked as advertised and explained

Great job I have been waiting for this mod since I left phpnuke

thanks...
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 29, 2006, 06:58:51 AM
I have updated the block snippet attachment in the first post with v1.1beta (http://www.tinyportal.net/smf/index.php?action=dlattach;topic=10894.0;attach=7243)


All I can say, is that you can lead a horse to water, but you cannot make it drink.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: than on November 29, 2006, 10:07:10 AM
Hi, really thanks for this mod. Now with update works perfect in my comunity.

I have 2 little questions:

- Te money currency is located at left of number like: âââ,¬Å¡Ã,¬10, i need to change it to: 10âââ,¬Å¡Ã,¬.
- Te months are in english (november, etc.) how can i translate?

Another time, sorry for my english and thanks for your help.  :-X  ;D
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 30, 2006, 02:31:04 AM
Try this attached file.


Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Assistance on November 30, 2006, 07:56:03 AM
Quote from: Assistance on November 28, 2006, 08:20:22 AM
manual inserting donations shows "Anonymous"

can we have it show the name?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: than on November 30, 2006, 09:10:06 AM
Hi Resourcez,

Really thanks for the modification, but when i put the file, block shows db error.

Now i test to compare the files to find the error.

If you see eny error please coment it me.

ufff, my english,. sorry.

Thanks!!  ;)
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: than on November 30, 2006, 09:24:51 AM
Hi, more info from error log:

8: Undefined variable: line
Archivo: /home/d176862/public_html/windowsmobile/Sources/Subs.php
LÃÆ'Ã,­nea: 322

8: Undefined variable: file
Archivo: /home/d176862/public_html/windowsmobile/Sources/Subs.php
LÃÆ'Ã,­nea: 322

8: Undefined variable: file
Archivo: /home/d176862/public_html/windowsmobile/Sources/Subs.php
LÃÆ'Ã,­nea: 321

2: Missing argument 3 for db_query()
Archivo: /home/d176862/public_html/windowsmobile/Sources/Subs.php
LÃÆ'Ã,­nea: 237

2: Missing argument 2 for db_query()
Archivo: /home/d176862/public_html/windowsmobile/Sources/Subs.php
LÃÆ'Ã,­nea: 237

And some repetitions.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: than on November 30, 2006, 09:44:50 AM
New info.

The error is in this line: //db_query(" SET lc_time_names = '$txt[lang_locale]' ");

If i put // the block works great, with good currency but months in english.

Thanks  ;D
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 30, 2006, 10:07:07 AM
hmm, was a silly oversight, though it did actually work on my site.

db_query(" SET lc_time_names = '$txt[lang_locale]' ", __FILE__, __LINE__);

Previous attachment updated with fix.

@Assistance - manual update should only show Anonymous if you don't place "Yes" in the "Show" box - mentioned in a previous post.
http://www.tinyportal.net/smf/index.php?topic=10894.msg89833#msg89833
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: than on November 30, 2006, 10:28:11 AM
The block show:
Unknown locale: 'es_ES.utf8'
Archivo: /home/dxxxxxx/public_html/windowsmobile/treasury/DonationBlock.php
LÃÆ'Ã,­nea: 42


:o What is it?

Mi language is _es-utf8.php

In error Log.:
http://www.windowsmobile.than.org.es/index.php 
Error en la Base de Datos: Unknown locale: 'es_ES.utf8'
Archivo: /home/dxxxxxx/public_html/windowsmobile/treasury/DonationBlock.php
LÃÆ'Ã,­nea: 42
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 30, 2006, 11:48:02 AM
hmm, serves me right for using a poorly constructed french utf8 language pack.

db_query(" SET lc_time_names = ".substr($txt['lang_locale'],0,5)." ", __FILE__, __LINE__);
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on November 30, 2006, 12:21:46 PM
I keep getiing the same error over and over again, i checked all files and directories 777 but it keep saying:

QuoteAn Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

I never had any troubles with installing new mods as you can see in the installed list below.

Mod Name Version 
1. SMF 1.0.9 and 1.1 RC3-1 Security Patch 1.0.8/1.1 RC3                          [ Uninstall ] [ List Files ] [ Delete ] 
2. SMF Gallery Pro SSI 1.0                                                                    [ Uninstall ] [ List Files ] [ Delete ] 
3. SMF Trader System 1.0                                                                    [ Uninstall ] [ List Files ] [ Delete ] 
4. Custom Profile Field Mod 3.15                                                             [ Uninstall ] [ List Files ] [ Delete ] 
5. TinyPortal 0.96                                                                                [ Uninstall ] [ List Files ] [ Delete ] 
6. Custom Action Mod 2.03                                                                   [ Uninstall ] [ List Files ] [ Delete ] 
7. Google Member Map 0.55                                                                   [ Uninstall ] [ List Files ] [ Delete ] 
8. Global Headers Footers 1.1                                                                 [ Uninstall ] [ List Files ] [ Delete ] 
9. SMF Gallery Pro Profile Link 1.0                                                            [ Uninstall ] [ List Files ] [ Delete ] 
10. Treasury 1.1                                                                               [ Apply Mod ] [ List Files ] [ Delete ] 
11. SMF Gallery Pro 1.1                                                                         [ Uninstall ] [ List Files ] [ Delete ] 
12. Simple ImageShack 2.0.1                                                                 [ Uninstall ] [ List Files ] [ Delete ] 
13. SMF Staff Page 1.3                                                                         [ Uninstall ] [ List Files ] [ Delete ] 

I have 1.1RC3 with TP0.96b
Any help is welcome :coolsmiley:
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on November 30, 2006, 12:36:12 PM
I'm not sure that is related to Treasury.

In any event your directories should not be 777 - should be 755.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on November 30, 2006, 12:46:05 PM
Quote from: Resourcez on November 30, 2006, 12:36:12 PM

In any event your directories should not be 777 - should be 755.

I know, but i changed it to 777 since it kept giving me the error
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: FUBAR on November 30, 2006, 12:57:32 PM
I just had the same problem JDMhustel and I was able to fix the issue and it's running on my site now.  For some reason you will need to close your browser and open it again to clear the problem with:
Quote
An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

Using your FTP in your forum root directory create a directory called "treasury" and upload the files from "Treasury_1.1beta" manually.  Also, in your Packages directory create a directory called "Temp". 

Now when you install (apply mod) it should work and you will automatically see the donation box on the top left. 

I am still trying to figure out some other problems I'm having...I'll keep you posted.

Try this at your own discresion. ;)

EDIT:
The mod seems to work perfectly with the default theme, so far I've found no issues.  Although, I use Helios as my default for the my forum and TP.  When I try and edit an articles viewing options I get an error in the error log. 

http://www.mywebsite.com/forum/index.php?action=tpadmin;sa=editarticle8;visualopts= 
8: Undefined index: theme_color
File: /forum/Themes/default/languages/Treasury.english.php (eval?)
Line: 397


This is repeated several times but the Line: XXX changes to 403, 402, 398, 397

Don't ask how I found this out.. lol 

Any suggestions? ???
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on November 30, 2006, 01:16:20 PM
Quote from: FUBAR on November 30, 2006, 12:57:32 PM
I just had the same problem JDMhustel and I was able to fix the issue and it's running on my site now.  For some reason you will need to close your browser and open it again to clear the problem with:
Quote
An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

Using your FTP in your forum root directory create a directory called "treasury" and upload the files from "Treasury_1.1beta" manually. 

Now when you install (apply mod) it should work and you will automatically see the donation box on the top left. 

I am still trying to figure out some other problems I'm having...I'll keep you posted.

Try this at your own discresion. ;)


Just tried it, after 3 times clicking "Apply mod" it gave an ok for everything (see screen below)
But then when i click "install now" it gave me this crap:

Fatal error: packageinstall() [function.require]: Failed opening required '/home/teamvtec/domains/sirfanaticsholland.com/public_html/forum/Packages/temp/./treasurydb.php' (include_path='.:/usr/local/lib/php') in /home/teamvtec/domains/sirfanaticsholland.com/public_html/forum/Sources/Packages.php on line 540

Now what? :(
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: FUBAR on November 30, 2006, 01:20:33 PM
Uninstall the mod completely if possible and in your packages directory create a folder called "Temp".  Then try and install (apply mod) again and it should work for you. 
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on November 30, 2006, 01:21:45 PM
OMG... just checked line 540 of Packages.php seems like i was missing the temp folder in the packages dir :uglystupid2:

Installed fine, thanks for the help ;)
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: FUBAR on November 30, 2006, 01:27:34 PM
@ JDMhustle - I'm glad I was able to help.  :) 

Any idea's about this?

Quote from: FUBAR on November 30, 2006, 12:57:32 PM
The mod seems to work perfectly with the default theme, so far I've found no issues.  Although, I use Helios as my default for the my forum and TP.  When I try and edit an articles viewing options I get an error in the error log. 

http://www.mywebsite.com/forum/index.php?action=tpadmin;sa=editarticle8;visualopts= 
8: Undefined index: theme_color
File: /forum/Themes/default/languages/Treasury.english.php (eval?)
Line: 397


This is repeated several times but the Line: XXX changes to 403, 402, 398, 397

Don't ask how I found this out.. lol 

Any suggestions? ???

Title: Re: Treasury Beta (donations) for SMF/TP
Post by: than on November 30, 2006, 01:45:18 PM
Resourcez, now works perfect!!  ;)

Realy realy thanks for your help. IÂÃ,´m realy happy with my new block.  O0


Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on November 30, 2006, 02:09:55 PM
Quick question about the block on the left, text doesn't fit the block. how do i make it fit?


@FUBAR, i can't even find line 397 since there are only 47 lines in Treasury.english.php sorry man i have no idea
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: FUBAR on November 30, 2006, 02:23:08 PM
It looks like your blocks are not wide enough to fix the text.  If you go to your Admin then to TP Settings you can your left block a little wider.  I would suggest setting both sides the same width just for looks.  The default would be 170px and this should fix the text perfectly.  ;)

I'm also trying to figure out how to add a picture/logo to the top of the block.  Any Ideas?  ???
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Crip on November 30, 2006, 03:56:18 PM
could try closing up the code, in one-line even with br / > in the same line.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Crip on November 30, 2006, 03:57:39 PM
Add a logo/banner via [index.template.php] gotta move some code around.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on November 30, 2006, 07:16:18 PM
I am wondering why my block code says November Donations and Nov 30th as the date until someone actually donates then it changes to saying October Donations and they are due NOW....

also for the list of donators it says October Donations....

Why??
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on November 30, 2006, 11:52:00 PM
My donations block doesn't add up the amounts ???
it's stuck on these amounts:

November Goal: âââ,¬Å¡Ã,¬20.00
Due Date: Now!
Gross Amount: âââ,¬Å¡Ã,¬22.00
PayPal Fees: âââ,¬Å¡Ã,¬0.72
Net Balance: âââ,¬Å¡Ã,¬21.28
Above Goal: âââ,¬Å¡Ã,¬1.28

While in the meantime i got a total of âââ,¬Å¡Ã,¬42 worth of funds all completed the right way.
http://forum.sirfanaticsholland.com/index.php?action=treasury
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Assistance on December 01, 2006, 12:28:50 AM
Quote from: Resourcez on November 30, 2006, 10:07:07 AM
@Assistance - manual update should only show Anonymous if you don't place "Yes" in the "Show" box - mentioned in a previous post.
http://www.tinyportal.net/smf/index.php?topic=10894.msg89833#msg89833
my apologies, wasnt sure if that was for me
I did have "yes" and not "Yes" ...lol

but it only shows 1 member donated when i have 3 added
it will a different user name if i delete the donation that was showing

i have it set to show 99

Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 01, 2006, 12:48:47 AM
@JDMhustle,
hmm, perhaps the 2 most recent donations are not included in the summary.

The summary uses the settle_amount field in the smf_treas_trans table, whereas the list of donations uses the mc_gross field - this allows for display of donations in currencies other than your own site currency.

Since you say they were all received the right way (direct from PayPal), there is something amiss as euro is not a 1:1 conversion from USD (assumed, since your module is only viewable by members).

In admin, check your donations list to see if there are values in both the "Gross" and "Settle" columns.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: samson on December 01, 2006, 01:17:02 AM
Quotebut it only shows 1 member donated when i have 3 added
it will a different user name if i delete the donation that was showing

i have it set to show 99

I have mine set to default 10 and it it only shows  2 donations in the block and the page ? it pushes the first one out
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Assistance on December 01, 2006, 01:20:09 AM
on my treasury page it shows the last donator has donated the total of all donations
and list is only last donator
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 01, 2006, 01:35:44 AM
Quote from: Assistance on December 01, 2006, 01:20:09 AM
on my treasury page it shows the last donator has donated the total of all donations
and list is only last donator
That will occur if you have the same Tax ID for all transactions
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 01, 2006, 01:38:40 AM
Quote from: samson on December 01, 2006, 01:17:02 AMI have mine set to default 10 and it it only shows  2 donations in the block and the page ? it pushes the first one out
You may need to adjust your TP left column width, as mentioned in a previous post - it will depend on your theme and font-sizes.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on December 01, 2006, 01:47:48 AM
Quote from: Resourcez on December 01, 2006, 12:48:47 AM
@JDMhustle,
hmm, perhaps the 2 most recent donations are not included in the summary.

The summary uses the settle_amount field in the smf_treas_trans table, whereas the list of donations uses the mc_gross field - this allows for display of donations in currencies other than your own site currency.

Since you say they were all received the right way (direct from PayPal), there is something amiss as euro is not a 1:1 conversion from USD (assumed, since your module is only viewable by members).

In admin, check your donations list to see if there are values in both the "Gross" and "Settle" columns.

i have both columns checked
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 01, 2006, 02:25:27 AM
The numbers still won't add up even when you pick up the missing transactions - you must have changed your site currency at some point because euro to USD is approx. 1:1.25, or you have edited results.

Only 2 other possibilities remain for the missing results:
Check your "business" field in the smf_treas_trans table - adjust where appropriate.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on December 01, 2006, 02:48:55 AM
Quote from: Jump1979man on November 30, 2006, 07:16:18 PM
I am wondering why my block code says November Donations and Nov 30th as the date until someone actually donates then it changes to saying October Donations and they are due NOW....

also for the list of donators it says October Donations....

Why??

This question was skipped...so I ask again...


here is a link to view...

http://www.mwmotorcycles.com
block is on top right.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on December 01, 2006, 07:26:18 AM
what is your swing date set to in blocks config tab of treasury?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on December 01, 2006, 06:58:08 PM
Quote from: Symbul on December 01, 2006, 07:26:18 AM
what is your swing date set to in blocks config tab of treasury?

It was set to 31.....I now changed it to 30 and it shows November.....but now its December so what do I do?

How does this all work?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on December 01, 2006, 09:27:16 PM
mine was set to 6 by default... but it showed november....as a matter of fact it still does.
It's not updating to the new month  :-\
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on December 01, 2006, 09:56:02 PM
swing date set's on which date the display will switch to the next month.  If you set 6 it will change on dec 6th, if you want it to change immediately, set the swing date to 1, which would mean the display changes on the 1st.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Jump1979man on December 01, 2006, 10:08:19 PM
Quote from: Symbul on December 01, 2006, 09:56:02 PM
swing date set's on which date the display will switch to the next month.  If you set 6 it will change on dec 6th, if you want it to change immediately, set the swing date to 1, which would mean the display changes on the 1st.

Thanks for clarifying this....it works now.

Is there any block code snippet for showing total donations over a certain time frame....like for the year or for a few months?  Could a code be done to do this?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Alusair on December 01, 2006, 10:09:36 PM
shouldn't be hard to do, thats Resourcez area though.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on December 02, 2006, 11:34:36 AM
Thanks ;)
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 02, 2006, 07:58:40 PM
Swing date is mentioned in the ReadMe, but well-spotted Symbul - I haven't come across that effect before.
Quote from: Jump1979man on December 01, 2006, 10:08:19 PMIs there any block code snippet for showing total donations over a certain time frame....like for the year or for a few months?  Could a code be done to do this?
hmm, you want some genuine block code snippet?  I thought the whole module was a block code snippet  ;)
(In making this mod simultaneously suitable for application to both SMF and TP, I have rather neatly positioned it in "no-man's land" - technically it doesn't qualify as either a TP module or an SMF mod)

Actually, there are some planned enhancements that haven't been done yet,

atm, I am a little stretched, but the intention is to add them.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: kran1um on December 03, 2006, 06:22:18 PM
Well so far its nice, but I have to manually put the donation in there then all the sudden it comes up on the Clickable Reconcile Button.. So my take is that they arent clicking the continue button on Paypal to redirect back to my site. Is that correct?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: knight111 on December 03, 2006, 08:26:11 PM
with the site move i cant Download this block .. anyone have it that can re attach ... i have wanted this one for our site since we moved from PHPnuke ... great work and hope i can get it .. thx
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 03, 2006, 08:39:26 PM
hmm, not sure what's going on there.

It does also exist in my site downloads (registration required).
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: knight111 on December 03, 2006, 08:56:42 PM
ok that no prob here ... just love the Treasury so well worth it lol thx a ton
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: knight111 on December 03, 2006, 09:08:59 PM
darn wont install on the 1.1 smf with the 0.9.6 TP any ideas?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: -BeNt- on December 03, 2006, 10:21:29 PM
Yeah knight I had the same issue.What you will have todo is upload the files my hand.Then do all the TP file edits from the xml file by hand.

Then open up the db file and input all that by hand.Thats what I had to do to make it work in 1.1 RC3 and TP .96.It was a pain in the butt.But now for some reason it's not putiting peoples names in right when they donate and with sandbox its not updating the name on the front page.I got no clue,I was really looking forward to this working as I need it very badly.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: samson on December 03, 2006, 11:35:17 PM
here it was the main thing I was missing also from nuke :2funny:
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: kran1um on December 04, 2006, 05:11:41 AM
Im doing everything by hand still.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: knight111 on December 04, 2006, 01:11:13 PM
ok excellent ill try them in a bit ... thx for the replies
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: URPG on December 04, 2006, 02:20:41 PM
I got a "donate via paypal" button... what more does this do? Log who donated what and that's it?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 04, 2006, 02:21:11 PM
The only reason it doesn't install on 1.1 is because 1.1 wasn't released and was untested, hence I wasn't able to make provision for 1.1 in package-info.xml.  I can now confirm that it installs just fine on 1.1 :)  Shortly I shall test TP 0.9.6 but don't have any reason to expect any issues there.

Changing 2 lines fixes that,
<install for="1.1 RC3, 1.1">
<uninstall for="1.1 RC3, 1.1">
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: kran1um on December 04, 2006, 04:42:05 PM
Cool, thanks Resourcez, But still for some odd reason I have to manually add the 'Donation' with the information and then I go push the Reconcile button and it does the rest.

Off subject and probably another snippet but -Also I know there is a Donatometer out there, how do you get that to work in conjuction.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: knight111 on December 04, 2006, 04:48:35 PM
worked like a charm .. i am running

1.1 final and 9.6  and everything went smooth .. also name comes up on block when donated so works great ... thx again now im all set ... was the onlything i was really missing once we got the server scroller blocks and teamspeak going
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 05, 2006, 03:09:01 AM
Confirmed SMF 1.1RC3 or 1.1 standalone, or with TP 0.9.5 or 0.9.6 - all permutations work just fine.  It may be okay with lower versions of either, but I'm not going there.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 05, 2006, 03:17:41 AM
Quote from: kran1um on December 04, 2006, 04:42:05 PMBut still for some odd reason I have to manually add the 'Donation' with the information and then I go push the Reconcile button and it does the rest.
If you are not receiving donations automatically, it's been well covered in previous posts - most likely your PayPal config.  The admin readme covers your config needs (next version is even more extensive).

Quote from: kran1um on December 04, 2006, 04:42:05 PMOff subject and probably another snippet but -Also I know there is a Donatometer out there, how do you get that to work in conjuction.
The "donatometer" came with the install, and should have been automatically added to your TP blocks - perhaps it's not activated?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Xarcell on December 05, 2006, 03:46:59 AM
Very nice mod
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: EagleTat2 on December 05, 2006, 04:55:42 AM
I just installed 9.6 and I can't find the donateometer block to enable it. Was just wondering if I did something wrong?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 05, 2006, 05:52:52 AM
The block will only install automatically if you already have TP installed.

Simply create a phpbox block and enter this code
global $boarddir;
include("$boarddir/treasury/DonationBlock.php");

Alternatively, un-install the mod and re-install the mod - your choice.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: kran1um on December 05, 2006, 05:58:07 AM
http://yoursite.com/smf/treasury/ipntreas.php?dbg=1


is what I Put for the IPN on Paypal because it says 'copy exactly' hmmm.. I'll try everything and re-read the previous posts.. also the Donatometer isnt an option in the script, else I cant enable or find it...
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 05, 2006, 06:20:25 AM
http://yoursite.com/smf/treasury/ipntreas.php is the link if you have nothing else there now.  I'll correct the misleading tip.

Refer my previous post if you don't already have the block present.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: kran1um on December 05, 2006, 06:30:07 AM
block is present and automatically put itself there, but still no Donatometer. But I've adjusted the IPN Link.

Thanks for you help.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 05, 2006, 06:35:01 AM
hmm, the block is the donatometer.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: kran1um on December 05, 2006, 06:38:26 AM
Oh my bad, I thought it was one I saw from another site that actually had the 'Meter' as in a gauge shaped like a thermometer. Otherwise its good.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 05, 2006, 06:46:40 AM
Not fancy but elegant - attached is a simple meter in an updated DonationBlock.php which goes in the /treasury/ directory.

Example can be seen here http://resourcez.biz/
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: than on December 05, 2006, 10:36:59 AM
Hi

Thanks for this add. Works perfect.

;D
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: URPG on December 05, 2006, 10:47:15 AM
So it's just a donatometer for paypal donations (that can be done with just one line of code?)
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 05, 2006, 11:48:51 AM
Quote from: URPG on December 05, 2006, 10:47:15 AM
So it's just a donatometer for paypal donations (that can be done with just one line of code?)
Not really, it's a full mod package which also includes the block, which was placed here in snippets by one of the moderators.  Probably best I take it elsewhere because that is somewhat confusing.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: kran1um on December 05, 2006, 05:28:46 PM
ouch, my domain didnt like that file or the uninstall or the new version, gives me a 500 error, unless I use the old one or disable the block. I think I might have to go in the SQL and fully delete everything.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 05, 2006, 11:10:13 PM
Not sure why it would give you a 500 error, unless you uploaded it with 777 permissions instead of 644 - the better hosts won't let files execute with 777 permissions, or even 666 for that matter.

As for issues installing / un-installing, I have had issues with both SMF and TP installs, and can't even use webinstall, because the permissions that SMF tries to work with are not compatible with my host's settings, yet none with Treasury, so far.  ???


btw, Treasury is no longer beta - v1.2 is now available (http://resourcez.biz/index.php?action=tpmod;dl=item6), so I have placed the file on my site until I can get it accepted as an SMF mod (will be interesting to see if they accept a hybrid mod).


Edit: subsequent tests, I believe, have shown me why recent some Treasury installs, and also TinyPortal, have been giving me such aggravation during testing with SMF 1.1 Final.

I believe that the SMF 1.1 Final package installer is at fault.  In my case, this leads to files being uploaded with CHMOD permissions of 666 instead of the 644 that my site requires.  As a result, PayPal is prevented from interacting with my IPN return file, and I get those dreaded 500 errors.

It works fine when I CHMOD ipntreas.php to 644.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: londonhogfan on December 06, 2006, 03:54:09 PM
I know this is greedy, but it would be a great feature to be able to change someones member group based on the amount they donate.  Changing primary or secondary options would be an awesome update.  Just make the group removed after a month.  I don't know how hard it would be to do that... just thought it would be nice.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Assistance on December 06, 2006, 07:28:35 PM
Quote from: londonhogfan on December 06, 2006, 03:54:09 PM
it would be a great feature to be able to change someones member group ..........

http://www.simplemachines.org/community/index.php?topic=105532.0
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: londonhogfan on December 06, 2006, 08:47:13 PM
Quote from: Assistance on December 06, 2006, 07:28:35 PM
Quote from: londonhogfan on December 06, 2006, 03:54:09 PM
it would be a great feature to be able to change someones member group ..........

http://www.simplemachines.org/community/index.php?topic=105532.0

Yes, but it doesn't seem like it would work with a "meter block"
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Assistance on December 07, 2006, 07:36:57 PM
correct, but it is what u asked for

"change someones member group based on the amount they donate"
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 07, 2006, 11:37:31 PM
Assistance is quite correct - Paid Subscriptions (PS) is what is needed for member group activities.  The advantage of Treasury is that it can co-exist with PS because it does not require the dedicated PayPal account IPN settings that PS does.

Better to think the other way around, and create a block that summarizes what PS does.  You could configure PS in a variety of ways, and change wording in the lang files to reflect that.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: kran1um on December 08, 2006, 04:01:55 AM
So is the Treasury 1.2 and the CHMOD fixed? I still get the 500 errors.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 08, 2006, 04:11:21 AM
In v1.2 I have re-packaged to the original method I used, with no more issues.

If you still have issues, chmod to 644 (or 755), as previously advised.
(in particular, the DonationBlock.php and ipntreas.php files)

I certainly don't have the same problem in 1.1RC3, so they appear to have changed the way file perms are handled when a package is installed, especially when it processes a directory, as opposed to a file.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: -BeNt- on December 08, 2006, 11:33:35 AM
Ok got the install for v1.2 to work flawlessly.But now I have another issue that is yet to be resolved.If the percent in the goal bar is lower than 10% it over laps the side of my site theme.

And I could only get the donation block to show one donation at a time.Which is the first donation for the month.Now that I've deleted all donations and am trying to do it again no names show up?What am I doing wrong.I have the paypal sandbox turned on not sure if that may be messing with it or not.

HELP!Good work so far keep it up!
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: WarBirD on December 08, 2006, 04:09:10 PM
Its nice that you updated it but I dont see the file attached to the post here. Where is it ?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: londonhogfan on December 08, 2006, 05:18:51 PM
do you know what would cause this error in the log?

Quote
Opening connection and validating request with PayPal... OK! Incorrect receiver email: vs me@mysite.net, aborting Logging events

Everything seems to work fine... goes through the donation process I receive the money.  It returns me to a blank page then when I go to my site it doesn't show the transaction.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: kran1um on December 08, 2006, 06:55:23 PM
I reverted to putting it in manually. For some reason its hard for knuckleheads to read directions and push the 'continue' button.

This was what I was using before :

Quote
<center>Help US!</center>

<marquee behavior='scroll' align='center' direction='up' height='160' scrollamount='1' scrolldelay='50' onmouseover='this.stop()' onmouseout='this.start()'>



<center>Need: $0



Have: $0



Left: $0

</center>

<LI> Name --$30 </LI>


</marquee>
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="email@email.com">
<input type="hidden" name="item_name" value="Donation">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form></center>


But still had to manually put the donations in there.

Things I'd like to see is a 'history' kinda like a history log, I know you have one in Paypal, but a monthly history to see who donated last month would be awesome.

I do like the Donatometer - but for the people that donated it shows numericals infront of thier name, now if I make a transaction it skips to the next donations so If I make 2 transactions it will start at 1st Donator then skip 2 then the next donator its 4, so now my donations like its skipping numbers - so how do you get rid of the numbers for showing who donated?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: -BeNt- on December 08, 2006, 08:26:27 PM
go into your main config and turn the show date to off.The numbers in front of their names are the dates they donated for the period you have setup.

Still haven't figured out about it only showing no or one name though :/ this makes me sad I want this to work right so bad.This is the one mod since I moved from e107 that I really needed.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 08, 2006, 08:27:23 PM
@BeNt - if you don't have a sandbox account or experience with it, it is best to not play in the sandbox.
See your ReadMe or Mine (http://resourcez.biz/index.php?page=8#OpNotes) - Operational Notes, section 10, about matching email addresses.
As for the problem with the bar overlapping - my bad  :uglystupid2: - I applied the fix to a file on the wrong development site - will add in next version.

@WarBirD - I'm not sure what's going on with attaches here  :-\ so I've placed downloads elsewhere (mentioned in an earlier post).
Download here (http://resourcez.biz/index.php?action=tpmod;dl=item6) or here (http://mods.simplemachines.org/index.php?mod=564).

@londonhogfan - the email being posted back to you by PayPal is not identical to the email you sent to PayPal, the transaction is "aborting", hence no result stored.
I honestly don't know how you managed that  ??? receiver email is what you set in config and it is posted to PayPal as the "business" parameter, PayPal then posts the "business" field back to you and Treasury does a security check to ensure what you sent is what you got back.  It can happen if you alter code  ;)

@kran1um - click on treasury in your menu so that the main page is showing alongside your block - then you should understand what the preceding numericals are - day of the month.
History? See your ReadMe or Mine (http://resourcez.biz/index.php?page=8#ToDo) - To Do, section 6.

Title: Re: Treasury Beta (donations) for SMF/TP
Post by: kran1um on December 08, 2006, 09:08:41 PM
Ohh... where's that stupid smiley at... I thought those were how many numbers instead of dates, as did my counterparts - Its like trying to hit a pinata on Cinco De Mayo drunk.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: -BeNt- on December 09, 2006, 06:42:42 AM
Quote from: Resourcez on December 08, 2006, 08:27:23 PM
@BeNt - if you don't have a sandbox account or experience with it, it is best to not play in the sandbox.
See your ReadMe or Mine (http://resourcez.biz/index.php?page=8#OpNotes) - Operational Notes, section 10, about matching email addresses.
As for the problem with the bar overlapping - my bad  :uglystupid2: - I applied the fix to a file on the wrong development site - will add in next version.


Well I'm not too experienced with the sandbox,but I was putting the donations in manually and it still isn't working right.I checked the business setting in the treas_trans table in my database and it matches upto the one I have in my paypal config.Last night I was messing with it seeing how the block worked,and it initially had my name,input by hand in the donations tab in admin,then when I went to add a second person only my name would show up.When I deleted both name now none show up but the totals ammount and the goal bar change.

Also is there anyway I can get that fix or will it be out shortly?Thanks for your help so far and you're doing great work.This project I believe has alot of potential.

Another question I have do we have to input a taxid with or paypal email addy there or not worry about it?Also in the "show" box should we simply put Yes or does it matter on caps?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: Assistance on December 09, 2006, 07:07:38 AM
Yes = correct
yes = wrong


i made a post about that already :$
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 09, 2006, 08:24:47 PM
hmm, I can see I'm going to have to make it case insensitive, or make it a Yes/No box.

Ideally it really should be 1 or 0, which is how I usually operate, but I went with the original code, and I'm regretting it now :(

@BeNt - I'm not sure what can be giving you issues   :-\
May I suggest that you,

Title: Re: Treasury Beta (donations) for SMF/TP
Post by: -BeNt- on December 09, 2006, 10:25:48 PM
Yeah tried that same issue still.I will try an unistall later today and start from scratch again and see what happens.I've been following this mod from the beginning and it's been the same issue since then.Could it be some sort of permissions issue maybe?I have complete control over my hosting as I own a dedicated box so I can try something different if need be.

Oh and a drop down box would make it alot more simple for people to use.As well as getting rid of the boxes that don't do anything.One thing I haven't figured out yet is the paypal ipn auto reconcile.It picks up for me but doesn't put anything in the donations tab?Is that just so you can cross check who all is in your paypal list?Or just there for good measure?

You may wanna check out the modded version for e107.I'm not sure if this is exactly the way the nuke one worked or not but the e107 version of it was very simple to use.And looked good too in the block on the front page.I dunno just throwing ideas at ya.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: -BeNt- on December 11, 2006, 06:48:30 AM
Ok,now for some reason it shows only one donator in the list.I can not manually add another donator to where they show up on the frontpage and it will not show the paypal fees even though I put those into the database as well.For some reason this just isn't working out for me.

Also it keeps giving me paypal ipns that are new and there hasn't been any transactions made?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on December 12, 2006, 09:24:08 PM
I just upgraded my forum to SMF 1.1 and TP 0.97, then installed the latest version of the treasury mod 1.2
and got this error when trying to access it:

Database Error
Unknown system variable 'lc_time_names'
File: /home/teamvtec/domains/sirfanaticsholland.com/public_html/forum/Sources/Treasury.php
Line: 75 

And here's line 75:

db_query(" SET lc_time_names = ".substr($txt['lang_locale'],0,5)." ", __FILE__, __LINE__);
if( date('d') >= $swingd) {


Can someone tell me what's wrong?
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: nukebiz on December 12, 2006, 10:27:56 PM
My bad - I used a system variable that isn't present in older versions of MySQL.

Version 1.21 amends this.
Title: Re: Treasury Beta (donations) for SMF/TP
Post by: JDMhustle on December 12, 2006, 10:43:50 PM
Quote from: Resourcez on December 12, 2006, 10:27:56 PM
My bad - I used a system variable that isn't present in older versions of MySQL.

Version 1.21 amends this.

Thanks Resourcez! got it up and working again