MyBB Central

Full Version: How to show money in a different place
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, on my site, I am using MyPlaza (sorry for not using MYPS). Anyways, like MYPS, it shows every users' money next to their posts. But I don't want anybody to see another person's money. How can I make it show only the user's money, but in the Welcomeblock?

When I tried to copy and paste from the postbit to the welcomeblock, this is what I get:
[Image: coinsproblem.PNG]

Here is my Welcomeblock_member template:
    <span style="float:right;">{$lang->welcome_current_time}</span>
        {$lang->welcome_back} (<a href="{$mybb->settings['bburl']}/usercp.php"><strong>{$lang->welcome_usercp}</strong></a>{$admincplink} &mdash; <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">{$lang->welcome_logout}</a>)<br /> <span class="smalltext"><a href="{$mybb->settings['bburl']}/plaza.php">{$lang->money}</a>: <span id="postmoney_{$post['pid']}">{$post[MYPLAZA_MONEY_COLUMN]}{$post['donate_postbit']}</span></span><br />{$post['invitems']}
                <span class="links">
                    <strong><a href="{$mybb->settings['bburl']}/plaza.php">{$lang->myplaza}</a></strong> |

                    <a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 170, 300);">{$lang->welcome_open_buddy_list}</a>
                <a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a> | <a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}

And here is where it shows it in the forums (postbit):
<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<span class="smalltext"><a href="{$mybb->settings['bburl']}/plaza.php">{$lang->money}</a>: <span id="postmoney_{$post['pid']}">{$post[MYPLAZA_MONEY_COLUMN]}{$post['donate_postbit']}</span></span><br />{$post['invitems']}
<td class="{$altbg}" width="85%" valign="top">
<table width="100%">
<tr><td>{$post['posturl']}{$post['icon']}<span class="smalltext"><strong> {$post['subject']}</strong></span>
<br />
<div id="pid_{$post['pid']}">
<div style="text-align: right; vertical-align: bottom;">
<td class="{$altbg}" height="18" style="white-space: nowrap; text-align: center;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
<td class="{$altbg}" width="100%" valign="middle" height="18">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr valign="bottom">
        <td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}</span></td>
        <td align="right"><span class="smalltext">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}</span></td>
Didn't/Can't test it since i don't use MyPlaza and never will =P
Thanks, let me try it
Hmmm, now instead of just blank, i'm getting "Array[money]". Do you think I need to get it straight out of MySQL? If so, how do I do that.

note: I have read 1 php/mysql related book, therefore I am not an expert.
Hmz; then {$mybb->user['money']} should work.
YES!!! THanks a million! Stupid curly braces. I had been seeing them earlier but didn't know they were needed until now. Now I just need to take it out of the post bit, but I should be fine doing that alone.

THANKS AGAIN. You now have 4 Reputation!
I am happy to help when I can but to be honest Myplaza has it's own forum for support. I have a feeling if someone asked for MYPS support at his site it wouldn't be kindly recieved.
At least someone brought that up. I was just about to ask why this question wasn't asked of Zinga_burga. Doesn't he provide his own support?
Yes he does. I wouldn't mind helping but I have never even used his plugin. I looked at some of his early beta code but that's as far as I took that.
a problem with this code , can I make a plug in from this code to active or deactive for these other themes ?