View Single Post
  #52  
Old 06-24-2003, 11:47 AM
Rebel38 Rebel38 is offline
 
Join Date: Feb 2003
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 05:58 AM Cloudrunner said this in Post #44
Actually, the item_number column was removed for the guest posters portion of the hack...unfortunately, this is my fault, I forgot to remove that in the paypal_admin.php.

I will fix it and get the fixed archive up again.

bug found

mist, okay, I'm not quite understanding again...you want the donation button to be displayed for xxx amount of (days, weeks, months, years, etc). and then upon expiration anyone who donated using that button get their awards and such removed right? What about the topten listing? do we want them removed from there as well?

I fix my post upstairs too...sorry, I thought it was funny :P

Okay to fix the donate_buttons query before I get the new archive up here:

in paypal_admin.php find:
PHP Code:
  $DB_site->query("INSERT INTO paypal_donatebuttons (id,
                                                     business,
                                                     item_name, 
Replace that entire query with this:
PHP Code:
  $DB_site->query("INSERT INTO paypal_donatebuttons (id,
                                                     business,
                                                     item_name,
                                                     image_url,
                                                     no_shipping,
                                                     return,
                                                     rm,
                                                     cancel_return,
                                                     no_note,
                                                     cn,
                                                     cs,
                                                     invoice,
                                                     tax,
                                                     currency_code,
                                                     amount,
                                                     submit_button) VALUES (NULL, '"
                                                     
.addslashes($options['business_email'])
                                                     .
"', '"
                                                     
.addslashes($_POST['item_name'])
                                                     .
"', '"
                                                     
.addslashes($_POST['image_url'])
                                                     .
"', '', '"
                                                     
.addslashes($return)
                                                     .
"', '"
                                                     
.addslashes($_POST['rm'])
                                                     .
"', '"
                                                     
.addslashes($cancel_return)
                                                     .
"', '', '"
                                                     
.addslashes($_POST['cn'])
                                                     .
"', '"
                                                     
.addslashes($_POST['cs'])
                                                     .
"', '"
                                                     
.addslashes($_POST['invoice'])
                                                     .
"', '"
                                                     
.addslashes($_POST['tax'])
                                                     .
"', '"
                                                     
.addslashes($_POST['currency_code'])
                                                     .
"', '"
                                                     
.addslashes($_POST['amount'])
                                                     .
"', '"
                                                     
.addslashes($_POST['submit_button'])
                                                     .
"')"); 
then find this:
PHP Code:
$DB_site->query("UPDATE paypal_donatebuttons SET business = '" 
and replace that entire query with this:
PHP Code:
  $DB_site->query("UPDATE paypal_donatebuttons SET business = '"
                 
.addslashes($options['business_email'])
                 .
"', item_name = '"
                 
.addslashes($_POST['item_name'])
                 .
"', image_url = '"
                 
.addslashes($_POST['image_url'])
                 .
"', return = '"
                 
.addslashes($return)
                 .
"', rm = '"
                 
.addslashes($_POST['rm'])
                 .
"', cancel_return = '"
                 
.addslashes($cancel_return)
                 .
"', cn = '"
                 
.addslashes($_POST['cn'])
                 .
"', cs = '"
                 
.addslashes($_POST['cs'])
                 .
"', invoice = '"
                 
.addslashes($_POST['invoice'])
                 .
"', tax = '"
                 
.addslashes($_POST['tax'])
                 .
"', currency_code = '"
                 
.addslashes($_POST['currency_code'])
                 .
"', amount = '"
                 
.addslashes($_POST['amount'])
                 .
"', submit_button = '"
                 
.addslashes($_POST['submit_button'])
                 .
"' WHERE id = '"
                 
.$_POST['id']
                 .
"'"); 
The queries both end the line before
PHP Code:
echo "All good!"
The file is fixed, but won't be up until next update, so in the interrim use this to fix the problem.
Thanks Cloudrunner, it's working fine now, great hack to mate alot of people have been waiting for this,

Clicks install

Thanks again
Rebel
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01413 seconds
  • Memory Usage 1,889KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete