PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2007-09-17 20:44:57

dilauro
Member
From: New Milford, CT
Registered: 2007-09-06
Posts: 159
Website

Navigation Tools

What I would really like to see is a tool that would allow memebers to view the last post that they saw, not the last one that was made.
On our site, 100 and 100's of posts are made daily, so if you miss a couple of days, you are basically lost.  Its hard to figure out where you last left off.  On the main frame, there are neat tools that keep track of all the forums you are watching and the last post you viewed.  This way every time you come back to view  you are positioned at the last post YOU saw.
Something like that would be great for PunBB


Ron

30+ years with Big Blue  Main Frames and Personal Computers - And Still learning every day!

Offline

 

#2 2007-09-18 06:39:06

quaker
Member
From: Bama,USA
Registered: 2006-02-23
Posts: 968
Website

Re: Navigation Tools

how  about a mod for the profile since you click subscribe to topic that has to go in a db...
why not put that in a new page inside of the profile?


example you are subscribe to:
in oder
http://www.punres.net/misc.php?subscribe=3835
http://www.punres.net/misc.php?subscribe=3838
http://www.punres.net/misc.php?subscribe=3834

Q

Last edited by quaker (2007-09-18 06:41:34)


My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#3 2007-09-18 06:45:33

quaker
Member
From: Bama,USA
Registered: 2006-02-23
Posts: 968
Website

Re: Navigation Tools

ok this is what i search punbb and hacked at it displays the all the topics tha a user is subscribed to. from first to last order.

here the link it is a admin ap mod so i made it a member mod so anyone can see what the last post was so long as they are a member.
http://punbb.org/forums/viewtopic.php?id=7726

there is no hyper link to the post....

if this will do ill add the hyper link to it.


Code:

<?php
 
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Members Post List';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';

 if ($pun_user['is_guest']) 
        message($lang_common['No permission']);
?>
<div class="block"> 
        <h2><span>User Subscriptions</span></h2> 
        <div class="box"> 
            <div class="inbox"> 
                <p>Shows you what topics users are subscribed to, grouped by username</p>
            </div> 
        </div> 
    </div> 
    <div class="block">
        <h2 class="block2"><span>User Subscriptions</span></h2>
        <div class="box">
            <div class="inbox">
                <table class="aligntop" cellspacing="0">
                    <?php
$result = $db->query('SELECT u.username, t.subject FROM '.$db->prefix.'subscriptions AS s LEFT JOIN '.$db->prefix.'users AS u ON s.user_id=u.id LEFT JOIN '.$db->prefix.'topics AS t ON s.topic_id=t.id ORDER BY u.username;');

while ($row = $db->fetch_assoc($result))
{
    if (!isset($last_user)) {
        echo "<tr>\n\t\t\t\t\t\t<th scope=\"row\">\n\t\t\t\t\t\t\t".$row['username']."\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<span>";
        echo $row['subject'];
    }
    elseif ($last_user == $row['username']) {
        echo ', '.$row['subject'];
    }
    else
    {
        echo "</span>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th scope=\"row\">\n\t\t\t\t\t\t\t".$row['username']."\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<span>";
        echo $row['subject'];
    }
    $last_user = $row['username'];
}
echo "\n"
?></span>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>

<?php

 require PUN_ROOT.'footer.php';

Last edited by quaker (2007-09-18 07:50:51)


My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#4 2008-10-03 00:59:46

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 219
Website

Re: Navigation Tools

Please add the links to it.

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.