News:

Wondering if this will always be free?  See why free is better.

Main Menu

Hide post count hack stopped working

Started by L.G.S, July 29, 2006, 07:22:22 AM

Previous topic - Next topic

L.G.S

Well I had this to hide my posts on my forum:

if ($message['member']['name'] == 'Illusion')


Placed under

         // Show how many posts they have made.

in display.template.php

Now I have installed the Shop mod, this does not work anymore. Can someone please tell me what I need to do to fix it. Code:

// Show how many posts they have made.
            if ($message['member']['name'] == 'Illusion')
echo '<br /> <br />';
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';



//BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";
            //END SHOP MOD
           

//BEGIN SMFShop MOD 1.31 (Build 7) CODE
echo "<a href='$scripturl?action=shop;do=invother2;member={$message['member']['username']}'>View Inventory</a><br>";
//END SMFShop MOD 1.31 code

//BEGIN SMFShop MOD New Version (Build 10) code
echo "<a href='$scripturl?action=shop;do=sendmoney;member={$message['member']['username']}'>Send Money to {$message['member']['name']}</a><br />";
//END SMFShop code
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Rudolf

because the SHOP mod re-added the code for the posts... comment those lines out

//BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';


and message for the SHOP mod author:
The $message['member'] variable is set in Display.php -> prepareDisplayContext(); function
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Advertisement: