Topic: Displaying member info above message

I am a new user of punbb and would just like to know if it is possible to display member info (name, number of posts, date registered etc) above the message (like with vbulletin), instead of on the left side of the message. Which files must I edit to achieve this?

Re: Displaying member info above message

No mod that i know off, I wrote a mod for my forum a year or so ago. But no one liked it, so i removed it tongue .

If you can wait a few days i can probably trow something together again.... No promises tho

Post hoc ergo propter hoc

Re: Displaying member info above message

Found some old files...
Tested em put on my test forum
http://www.epixplx.com/images/galleries … /vbmod.jpg

Post hoc ergo propter hoc

Re: Displaying member info above message

Tjalve wrote:

Found some old files...
Tested em put on my test forum
http://www.epixplx.com/images/galleries … /vbmod.jpg

Looks good. How did you do it?

5 (edited by Tjalve 2007-09-19 21:32)

Re: Displaying member info above message

Install notes might be a bit off, since my viewtopic.php is pretty much hacked a part. So i used the default viewtopic.php.

http://www.epixplx.com/images/galleries … .take2.jpg

#
#---------[ 1. OPEN ]---------------------------------------------------------
#
Viewtopic.php

#
#---------[ 2. FIND ]---------------------------------------------
#

            <div class="postleft">
                <dl>
                    <dt><strong><?php echo $username ?></strong></dt>
                    <dd class="usertitle"><strong><?php echo $user_title ?></strong></dd>
                    <dd class="postavatar"><?php echo $user_avatar ?></dd>
<?php if (count($user_info)) echo "\t\t\t\t\t".implode('</dd>'."\n\t\t\t\t\t", $user_info).'</dd>'."\n"; ?>
<?php if (count($user_contacts)) echo "\t\t\t\t\t".'<dd class="usercontacts">'.implode('  ', $user_contacts).'</dd>'."\n"; ?>
                </dl>
            </div>
            <div class="postright">
                <h3><?php if (($post_count + $start_from) > 1) echo ' Re: '; ?><?php echo pun_htmlspecialchars($cur_topic['subject']) ?></h3>

#
#---------[ 3. REPLACE WITH ]------------------------------------------------
#

<!-- VBMOD start -->
    <div class="userinfo">
        <table cellpadding="0" cellspacing="10" border="0" width="100%">
        <tr>
            <td class="userimg"><?php echo $user_avatar ?></td>
            <td nowrap="nowrap">
                <div id="username">
                    <strong><?php echo $username ?></strong>
                </div>
                <div class="user_title"><?php echo $user_title ?></div>
            </td>
            <td width="100%"> </td>
            <td valign="top" nowrap="nowrap">    
                <div class="userinfo">
                    <?php if (count($user_info)) echo "\t\t\t\t\t".implode('</dd>'."\n\t\t\t\t\t", $user_info).'</dd>'."\n"; ?>
                    <?php if (count($user_contacts)) echo "\t\t\t\t\t".'<dd class="usercontacts">'.implode('  ', $user_contacts).'</dd>'."\n"; ?>
                    <?php if ($cur_post['poster_id'] > 1) echo '<p>'.$is_online.'</p>'; ?>
                </div>
            </td>
        </tr>
        </table>
    </div>
<!-- VBMOD stop -->

#
#---------[ 4. OPEN ]---------------------------------------------------------
#

style\imports\base.css

#
#---------[ 5. Add at the end]------------------------------------------------
#

/************************************************
    VB VIEWTOPIC MOD
************************************************/
div.userinfo td {
    
    BORDER-WIDTH: 0px
}

div.postmsg {

    margin: 5px;
}
Post hoc ergo propter hoc

Re: Displaying member info above message

Thanks, that worked great, except the last </div> at the end of step 11 should not be there. Now all I will have to do is play around a little with padding, text size etc to make it look more the way I want it.

Re: Displaying member info above message

Some users on my forum requested the old layout back and some liked the new one... so I changed the code a bit. Just added an "if $pun_user['style'] == 'Mercury_horizontal'", so now you can choose what layout you want to use.

http://www.epixplx.com/punbb/horizontal … normal.php

Don't know if include or a big if/else statement is faster, just that this was cleaner tongue

Post hoc ergo propter hoc