Because you're looking in the wrong spot. wink

From message_list.php:

<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 if (isset($user_avatar)) echo $user_avatar ?></dd>
    <?php if (isset($user_info)) if (count($user_info)) echo "\t\t\t\t\t".implode('</dd>'."\n\t\t\t\t\t", $user_info).'</dd>'."\n"; ?>
    <?php if (isset($user_contacts)) if (count($user_contacts)) echo "\t\t\t\t\t".'<dd class="usercontacts">'.implode('  ', $user_contacts).'</dd>'."\n"; ?>
                    </dl>
                </div>

action: active (show most recently active topics) (HTML or RSS)
new (show newest topics) (HTML or RSS)
online (show users online) (HTML)
online_full (as above, but includes a full list) (HTML)
stats (show board statistics) (HTML)

PunBB's documentation is your friend. smile

You can try DaFun-Spirit.

179

(1 replies, posted in PunBB 1.2 modifications, plugins and integrations)

For the last 15 posts, I think Alex King's active topics mod is what you want.

It should be similar to the process you took to install the mods in viewtopic.php; see if you can adapt the instructions for the message view page.

181

(26 replies, posted in PunBB 1.2 show off)

Wow, your forum looks very nice!

Around the top of whichever file the custom pages mod uses to display pages, place:

if($pun_user['is_guest'])
     message($lang_common['No permission']);

Just FYI, the IP is only viewable by administrators and moderators, not regular members.

You edit the generate_navlinks function in include/functions.php.

That's not a publicly available mod of which I've heard.

If you attempt to do something similar, I'd recommend that you email Google first. This might not be in line with their TOS; it's somewhat deceptive.

Change your code to

if ($pun_user['is_guest'] AND $_GET['action'] != 'change_pass')
    message($lang_common['No permission']);

Moved to integration.

Your simplest options are probably to either include PunBB in an IFRAME or to edit include/template/main.tpl to add a header/footer/navbar to match the rest of your site.

188

(9 replies, posted in PunBB 1.2 bug reports)

12_to_1215_update.php in the "extras" section of the PunBB archive.

Well, thanks for listening. smile

It's of course totally up to you which route you take with the images (although if I end up using Logicfury for the project I'm planning I'll certainly change them tongue ).

190

(11 replies, posted in PunBB 1.2 discussion)

AlanCollier wrote:

Is there a simple way of outputting time it takes a server to render a punbb page?
It might be a useful mod to make (I might have a go).

It's printed in the footer when debug mode is enabled (but it doesn't log it, if that's what you want).

Please take a look at HOWTO: enable DEBUG mode.

Riddian wrote:

Thanks, regarding the icons being added by CSS, could you please explain why this would be beneficial? Is it for the likes of screen readers? Thanks for the suggestion by the way smile

It would have some benefit in not confusing screen readers, but the main advantage (in my opinion) is that by putting the image code into an external CSS file and adding ID and/or CLASS attributes to the links, you clean up the markup significantly, saving some bandwidth (good) and making the code prettier (also good, but not all that important).

You might consider using sprites rather than individual image files as well, but it might confuse some people trying to edit the icons.

From what I've seen on your site so far, Logicfury looks very good. I'll have to give it a try sometime.

However, during my quick look at the page source I noticed that there are a great many icons added via the IMG tag when they probably should be added via CSS.

SuperMAG wrote:

and what is extern.php .. i never saw that file ...

Read PunBB's documentation.

andy smith (I am blind) wrote:

What are catagories?

If you look at the index page for these forums, "PunBB", "PunBB Additions", and "General" are all examples of categories.

lie2815 wrote:

better take the code for the login box from the miniportal, because there it is actually a box on the side

Agreed -- I'd forgotten that the miniportal tutorial had a login block. Thanks for mentioning it.

197

(10 replies, posted in PunBB 1.2 discussion)

Replace applicable code blocks with:

// Print the categories and forums
$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, u.id AS uid, t.subject FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id INNER JOIN '.$db->prefix.'users AS u ON f.last_poster = u.username INNER JOIN '.$db->prefix.'topics AS t ON t.last_post_id = f.last_post_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
    // If there is a last_post/last_poster.
    if ($cur_forum['last_post'] != '')
        $last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.pun_htmlspecialchars($cur_forum['subject']).'</a> <span class="byuser">'.$lang_common['by'].' <a href="profile.php?id='.$cur_forum['uid'].'">'.pun_htmlspecialchars($cur_forum['last_poster']).'</a></span>';
    else
        $last_post = ' ';

You may use extern.php for the last five posts; code for a search box may be found elsewhere in these forums; code for a login box is available at the Punres wiki.

SuperMAG wrote:

there is another question .. if u maked an HTML Page but the Extension of the Page (is php) Like Index.php ... can u write php codes with html or its not working together ... if so how could i get latest 5 posts and threads

PHP is designed to work well with HTML. As long as the extension is .php (in most cases), any PHP in a file that's enclosed between "<?php" and "?>" will be executed.

Please enable debug mode & paste the full error message.