MyBB-Plugins Forums

Full Version: Money Prefix as a picture
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is this possible I wanna make my Prefix this [Image: Datary_symbol.JPG] it is the symbol for credits in star wars. If anyone knows a way for me to do this please let me know.
hmm so i tried that and it didn't work any other ideas?
You need to edit the function my_format_money in myplaza_general.php
Search for:
PHP Code:
/**
 * Formats cash to be displayed
 *
 * @param int Amount of money.
 * @return string Displayed money.
 */
function my_format_money($money)
{
    global 
$mybb;
    return 
htmlspecialchars_uni($mybb->settings['myplaza_money_prefix']
        .
number_format($money$mybb->settings['myplaza_money_decimals'], $mybb->settings['decpoint'], $mybb->settings['thousandssep'])
        .
$mybb->settings['myplaza_money_suffix']);

Line 105


Replace it with:
PHP Code:
/**
 * Formats cash to be displayed
 *
 * @param int Amount of money.
 * @return string Displayed money.
 */
function my_format_money($money)
{
    global 
$mybb;
    return 
$mybb->settings['myplaza_money_prefix']
        .
htmlspecialchars_uni(number_format($money$mybb->settings['myplaza_money_decimals'], $mybb->settings['decpoint'], $mybb->settings['thousandssep']))
        .
$mybb->settings['myplaza_money_suffix'];

Make sure you don't use any malicious code for money suffix or prefix.
worked like a charm ty so much this should be stickied as im sure others might want this info. genius work on the entire thing. can't wait to try the premium work soon enough Big Grin.
I'm glad it worked, I'll tell shadows to place a link to this thread on his F.A.Q.s thread
The code is super dubber.

Just one little small thing there. I tried to replace the code. Got a syntax error at line 116. Went back and deleted the ')'. Everything goes smoothly afterward.

Thank you very mucho.
Ooops fixed, yes there was an extra )
Thanks
thanks, im going to put the Simmoleon sign (The Sims) Big Grin
This is really nice, thanks. :yay: :yay: :yay: