Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

Money Prefix as a picture
#1

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.
#2

http://forums.consoleworld.net/showthrea...t#pid24593
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#3

hmm so i tried that and it didn't work any other ideas?
#4

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.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#5

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.
#6

I'm glad it worked, I'll tell shadows to place a link to this thread on his F.A.Q.s thread
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#7

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.
#8

Ooops fixed, yes there was an extra )
Thanks
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#9

thanks, im going to put the Simmoleon sign (The Sims) Big Grin
#10

This is really nice, thanks. :yay: :yay: :yay:
My new signature has not been created, yet. Angel




Users browsing this thread: 1 Guest(s)