Re: Active Topics
it was not written for 1.2 therefore it will need changing to work
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Active Topics
it was not written for 1.2 therefore it will need changing to work
Who will answer the call?
Who has the PHP knowledge to make the necessary change to this great bit of code?
Is this for 1.1.5 ?
I'll probably be updating it for 1.2 fairly soon, but if anyone else beats me to it please go ahead and post.
waiting, refreshing.... no new fix.... waiting, refreshing.... no new fix.... waiting, refreshing.... no new fix....
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
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.
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
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)
Hi guys, thanks for the compliments. You can download my active topics mod version and recent topics here:
http://www.shuttertalk.com/at.zipTo 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?
Is it possibile to use this active topics code under v.1.2.1 ? in 1.1.5 works great....
You certainly can't use that markup. As for the php I don't know.
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.
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 !
Looks like the ORDER BY line is wrong. It should be:
ORDER BY t.last_post DESC
(was missing the DESC)
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
je voudrai faire comme ce site > http://www.shuttertalk.com/ qlq peut t'il m'expliker ?
Merci
Would a French speaking mod please translate the previous post and tell n3Twork posts in this forum should be in English. Thanks
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.
It takes up the full space here:
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!
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!
Works perfect with 1.2.10
a great mods !
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>
Very nice version this mod !
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Active Topics
Powered by PunBB, supported by Informer Technologies, Inc.