Page 1 of 1

Adding Donors

PostPosted: Thu Apr 13, 2006 9:39 am
Author: Eon
Ok, when I manually add a donor, I put their username in and all the info that I have. But it does not display who made the donation in the portal block. It just says the amount, then (donated by ).

I looked in my database, and it registered the username with their user id. As it was stored in it as a donation.

Any ideas?

Also, whn I make a donation from the Donate button on the Nav bar, after I put in how much and click submit, the screen where you click on the paypal button has this above the forum index link.

Warning: strpos(): Offset not contained in string. in /hsphere/local/home/dffclan/dffclan.net/lwdonateconfirm.php on line 85

Code: Select all
 $pos = strpos($board_config['script_path'], '/', (strlen($board_config['script_path']) - 2));  


That is line 85.

What does that mean?

PostPosted: Thu Apr 13, 2006 9:56 am
Author: Eon
OK I solved half of my problem by fighting through the old IM site..

Code: Select all
 <php>sql_query($sql))) {          message_die(GENERAL_ERROR, 'Could not query database for the newest donations');       }         $i = 1;       while ($donations = $db->sql_fetchrow($result)) {          $template->assign_block_vars('dntns', array(             'NUMBERING' => strval($i),             'DONATE_AMNT' => $donations['lw_money'],             'L_DONATED_BY' => $lang['donated_by'],             'DONATE_LINK' => './lwdonate.'.$phpEx,             'DONATED_BY' => $donations ['username'],             'L_DONATE_LINK' => $lang['Donate_Funds'])          );          $i++;       }       $template->assign_vars(array(          'L_NEW_DONATIONS' => $lang['New_donations']          )       );    } }  imp_donate_block_func(); ?>  


Replace root/blocks/blocks_imp_donate.php with that code completely.

Re: Adding Donors

PostPosted: Tue May 02, 2006 2:36 pm
Author: found it
I know off a site that has this i will see if i can get the code for it...

:mrgreen: