Not Solved PHP in Templates and Template Conditionals
Not Solved
I want to display all of usergroups in showgroups.php

Quote:<if $GLOBALS['mybb']->user['usergroup'] == 8,9,10,11,12,13,14 then><else>
    <div class="usergroups-col">
        <div class="usergroups-row">
            <div class="table-wrap">
                <div class="table-cell-top">
                    <div class="usergroups-info">
                        <div class="usergroups-title">{$displaygroup['title']}</div>
                        <span class="smalltext">{$displaygroup['description']}</span>
                    </div>
                    Owner: {$displaygroup['admin']}<br>
                    {$displaygroup['number']} • <a href="usercp.php?action=usergroups&amp;joingroup=8&my_post_key={$mybb->post_code}">Click to join</a>
                </div>
                <div class="table-cell-top usergroups-userbar">
                    {$displaygroup['image']}
                </div>
            </div>
        </div>
    </div>
</if>
why that codes didn't work ? I know {$displaygroup['title,description,admin,number,image']} can't Show but I want real codes for displaying usergroups.
help me please.
Reply


Messages In This Thread
RE: PHP in Templates and Template Conditionals - by Kiddo Monster - 2018-04-25, 03:37 AM
RE: Template conditionals - by expat - 2015-01-31, 05:28 AM

Forum Jump:


Users browsing this thread: 76 Guest(s)