Re: Active Topics

it was not written for 1.2 therefore it will need changing to work

Re: Active Topics

Who will answer the call?

Who has the PHP knowledge to make the necessary change to this great bit of code?

Rob Ludlow 
www.Nifty-Stuff.com - Repository of all Stuff Nifty!
www.reviewum.com - Professor Ratings + Teacher Reviews

28

Re: Active Topics

Is this for 1.1.5 ?

[img]http://www.kaffir.org/images/sigs/pauliesig6.jpg[/img]

Re: Active Topics

I'll probably be updating it for 1.2 fairly soon, but if anyone else beats me to it please go ahead and post. smile

Re: Active Topics

waiting, refreshing.... no new fix.... waiting, refreshing.... no new fix.... waiting, refreshing.... no new fix....

Rob Ludlow 
www.Nifty-Stuff.com - Repository of all Stuff Nifty!
www.reviewum.com - Professor Ratings + Teacher Reviews

31

Re: Active Topics

Is there a way to have it on totaly difference page.

I mean i have forum.shamir88.com as the forum

then i have shamir88.com as the index page for my site. Is there a way to include it there without having the forum index page there? :S

Hope you understand what im saying big_smile

Re: Active Topics

The way I'd do that is by buffering that content into a text file (on new post) then including the cached snippet in the other page.

Re: Active Topics

Shamir wrote:

Is there a way to have it on totaly difference page.

I mean i have forum.shamir88.com as the forum

then i have shamir88.com as the index page for my site. Is there a way to include it there without having the forum index page there? :S

Hope you understand what im saying big_smile

yes but you need to include by the server directory structure e.g. if the subdomain forum... is actually the folder "forum" then you would include from the folder forum (i guess)

Re: Active Topics

cuteseal wrote:

Hi guys, thanks for the compliments.  You can download my active topics mod version and recent topics here:
http://www.shuttertalk.com/at.zip

To include them, I use the following lines in index.php

echo '<table class="punspacer" cellspacing="1" cellpadding="4"><tr><td> </td></tr></table>';
echo '<table border="0">';
echo '<tr><td width="50%" valign="top">';
include('mod_recent_topics.php');
echo '</td><td width="50%" valign="top">';
include('mod_active_topics.php');
echo '</td></tr></table>';

Hi, the at.zip doesnt exist?

35 (edited by exorcist 2005-02-10 23:21)

Re: Active Topics

Is it possibile to use this active topics code under v.1.2.1 ? in 1.1.5 works great....

36

Re: Active Topics

You certainly can't use that markup. As for the php I don't know.

Re: Active Topics

Ok, I've hacked together a version that should work with PunBB 1.2.1.

You can download it here:

http://www.alexking.org/software/punbb/ … .2.php.zip

Let me know if it misbehaves.

Re: Active Topics

alexkingorg wrote:

Ok, I've hacked together a version that should work with PunBB 1.2.1.

You can download it here:

http://www.alexking.org/software/punbb/ … .2.php.zip

Let me know if it misbehaves.

Thanks, it works with 1.2.1 ! smile wink

Re: Active Topics

Looks like the ORDER BY line is wrong. It should be:

    ORDER BY t.last_post DESC

(was missing the DESC)

Re: Active Topics

bonjour,

Je voudrai savoir ou mettre la ligne :
include('mod_active_topics.php'); dans l'index.php

ou comment lemettre pour que sa fasse un tableau propre car actulement le tableau fait 50 % de la page alors que je voudrai ke sa fasse 100 % et je narrive pas a faire comme je veut hmm

je voudrai faire comme ce site > http://www.shuttertalk.com/  qlq peut t'il m'expliker ?

Merci

41 (edited by Paul 2005-02-20 02:50)

Re: Active Topics

Would a French speaking mod please translate the previous post and tell n3Twork posts in this forum should be in English. Thanks

42

Re: Active Topics

n3Twork, parlez anglais ici s'il vous plait.

Paul, I believe the active topics table is taking up 50% of the available width, and he would like it to fill 100%, as seen at http://www.shuttertalk.com/forums/ and he is wondering how to change the line "include('mod_active_topics.php');" to achieve this. I'm not totally certain, but it's something like that.

Re: Active Topics

It takes up the full space here:

http://www.alexking.org/forums/

Re: Active Topics

Not to look a gift horse in the mouth (thanks alexkingorg for the update) but is there anybody with skillz that can make this included file / mod show like the old mod?   I don't want to confuse my users and really like the old layout.

See the old version running here:
http://www.nifty-stuff.com/img/getimg/active_mod.gif

Thanks in advance!

Rob Ludlow 
www.Nifty-Stuff.com - Repository of all Stuff Nifty!
www.reviewum.com - Professor Ratings + Teacher Reviews

45 (edited by reviewum.com 2005-03-06 19:46)

Re: Active Topics

Dang... I wish I was a programmer!   Looking more closely there are aspects of both I like.  For example the "new post" is really nice on the old version, but the layout and the number of views on the new one is great too.   Decisions... decisions....

Thanks again for this ever important mod!

Rob Ludlow 
www.Nifty-Stuff.com - Repository of all Stuff Nifty!
www.reviewum.com - Professor Ratings + Teacher Reviews

46

Re: Active Topics

as anybody tried it on 1.2.2

Re: Active Topics

Works fine.

48 (edited by lebel 2005-12-03 16:40)

Re: Active Topics

Works perfect with 1.2.10
a great mods !

49 (edited by Replika 2005-12-08 03:13)

Re: Active Topics

smile like vbulletin:
My forum

<?php
/*
PunBB Active Topics Lite by aFeLiOn
Based on "Mod Active Topics" of Alex King, http://www.alexking.org/
This is a mod for PunBB, http://punbb.org/
PunBB is Copyright (C) 2005  Rickard Andersson (rickard@punbb.org)
-------------------------------
To install, include this file below the forums list in your index.php file:
  include('mod_active_topics.php');
  (Before line: '$result = $db->query('SELECT c.id AS cid...' or anywhere you want)
*/

$active_topic_limit = 7; // change this to the number of active topics you want to display.
$result = $db->query('SELECT t.* FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_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) AND t.moved_to IS NULL ORDER BY t.last_post DESC    LIMIT '.$active_topic_limit) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());

require PUN_ROOT.'lang/'.$pun_user['language'].'/forum.php';

?>
<div id="vf" class="blocktable">
    <h2><span>Active Topics</span></h2>
    <div class="box">
        <div class="inbox">
            <table cellspacing="0">
            <tbody>
<?php
// If there are topics in this forum.
if ($db->num_rows($result))
{
    echo '<tr><td class="tcl">';
    while ($cur_topic = $db->fetch_assoc($result))
    {
        $item_status = '';

        if ($pun_config['o_censoring'] == '1')
            $cur_topic['subject'] = censor_words($cur_topic['subject']);

        $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a>';

        if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'])
        {
            $item_status .= ' inew';
            $last_post = '<strong>'.$last_post.'</strong>';
        }

        if ($cur_topic['sticky'] == '1')
        {
            $last_post = '<span class="stickytext">'.$lang_forum['Sticky'].': </span>'.$last_post;
            $item_status .= ' isticky';
        }
?>
            <div<?php if ($item_status != '') echo ' class="'.trim($item_status).'"'; ?>>
                    <div class="intd">
                            <div class="tclcon">
                                <?php
                                 echo '<font color="#FF9900"><strong>›</strong></font> '.$last_post.' <span class="byuser">» '.pun_htmlspecialchars($cur_topic['last_poster']).' » '.$lang_common['Replies'].': '.$cur_topic['num_replies'].' » '.$lang_forum['Views'].': '.$cur_topic['num_views'].' » '.format_time($cur_topic['last_post']).'</span>';
                                ?>
                            </div>
                        </div>
                    </div>
<?php
    }
    echo '</td></tr>';
}
else
{
?>
                <tr>
                    <td class="tcl" colspan="4"><?php echo '*EMPTY*' ?></td>
                </tr>
<?php

}
?>
            </tbody>
            </table>
        </div>
    </div>
</div>
:Maxthon:FireFox:MirandaIM:ThunderBird:SmartFTP:FreePOPs:HTTrack:uTorrent:
:FlashGet:TCPOptimizer:SPECTralSMTPServer:UniExtract:PSPad:uStart:Everest:
:TotalCommander:ProcessExplorer:DriveMan:Regshot:Restoration:UPX:KolorGenerator:
:OpenOffice:AutoHotkey:IrfanView:Winamp:FSCapture:CDex:PNGOptimizer:spam:

50

Re: Active Topics

Very nice version this mod !