1,926

(15 replies, posted in PunBB 1.2 troubleshooting)

I've been trying, but haven't found how to do it =/ There must be an easy way though... Jansson did it on PunRes.

1,927

(15 replies, posted in PunBB 1.2 troubleshooting)

Try this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<style type="text/css">
    #left {
        width: 140px;
        float: left;
    }
    #main {
        margin-left: 150px;
    margin-right: 150px;
    }
    #container {
        width: 100%;
    float: right;
        margin-left: -140px;
    }
    #right {
        width: 140px;
        float: right;
    }
</style>
</head>
<body>
 
<div id="punwrap">
<div id="pun<pun_page>" class="pun">
 
<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <center><img src="http://www.sameold.org/fpc/logo.php" alt="The Flower Power Clan" /></center>
            <center><pun_desc></center>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>
 
<div id="right">    
<div class="block">
        <h2 class="block2"><span>Affiliates</span></h2>
        <div class="box">
        Affs Here
        </div>
</div>
</div>
 
<div id="container">
    <div id="main">
    
        <pun_announcement>
    
        <pun_main>
        
    </div>    
</div>

<div id="left">    
    <div class="block">
        <h2><span>Menu</span></h2>
        <div class="box">
        <pun_sidelinks>            
        </div>
    </div>
    <div class="block">
        <h2 class="block2"><span>Links</span></h2>
        <div class="box">
            <div class="inbox">
                <ul>
                    <li>-<a href="http://flowerpowerclan.16.forumer.com/index.php">FPC Archives</a></li>
                    <li>-<a href="http://gamersociety.forumer.com">Pega's Gaming Society</a></li>
                    <li>-<a href="http://tehplace.boardzero.com">Teh Place</a></li>
                    <li>-<a href="http://hypocrites.forumer.com">Samuel's Message Board</a></li>
                    <li>-<a href="http://www.animalcrossingwildworld.com/forums">ACWW Unofficial Fansite</a></li>
                    <li>-<a href="http://www.animalxing.com/hybrids.php">AnimalXing.com Hybrid Guide (Great for clan breeders!)</a></li>
            <li>-<a href="http://animalcrossingw.boardzero.com/">Dshacker's ACWW Forum</a></li>
                </ul>        
            </div>
        </div>
    </div>

<div class="block">
        <h2 class="block2"><span>Who's Online?</span></h2>
        <div class="box">
        <pun_online>
        </div>
</div>
</div>

<div class="clearer"></div>
 
<pun_footer>
 
</div>
</div>
 
</body>
</html>

Something floating right must always come infront of the other content. So in this case it would be:
right menu (right) => main content (right) => left menu (left)

Make sure forums permissions are set correctly.

##
##
##            Mod title:     RSS Reader
##
##      Mod version:     1.0
##   Works on PunBB:     1.2.x
##     Release date:     2006-07-04
##           Author:     El Bekko (elbekko@gmail.com)
##
##      Description:     Adds a small RSS parser in your forums.
##
##  Difference with
## previous version:     /
##
##   Affected files:     main.tpl
##
##       Affects DB:     Yes
##
##            Notes:    Needs cURL and PREG library
##
##       DISCLAIMER:      Please note that "mods" are not officially supported by
##                        PunBB. Installation of this modification is done at your
##                        own risk. Backup your forum database and any and all
##                        applicable files before proceeding.
##
##
##

Download here
Discuss here

It's often faster to edit some code than to go look for a setting tongue

1,931

(5 replies, posted in Feature requests)

There is a mod for this wink

In index.php, find:

if ($cur_forum['moderators'] != '')
    {
        $mods_array = unserialize($cur_forum['moderators']);
        $moderators = array();

        while (list($mod_username, $mod_id) = @each($mods_array))
            $moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>';

        $moderators = "\t\t\t\t\t\t\t\t".'<p><em>('.$lang_common['Moderated by'].'</em> '.implode(', ', $moderators).')</p>'."\n";
    }

Delete that, comment out, whatever suits you smile
Find

<?php echo $forum_field."\n".$moderators ?>

Replace with:

<?php echo $forum_field ?>

You could try something like this (for the timeout):

// Add user to log
$log_res = $db->query("SELECT id, time FROM ".$db->prefix."log WHERE name='".$pun_user['username']."'");
$log_row = $db->fetch_assoc($log_res);
if(($log_row['time'] > time()-10))
{
    if($log_row['id']) // Timeout of 10 seconds
    {
        $log_time = $log_row['time'] . ", " . time();
        $db->query("UPDATE ".$db->prefix."log SET `time` = '".$log_time."', `ip` = '".$_SERVER['REMOTE_ADDR']."' WHERE id=".$log_row['id']);
    }
    else
        $db->query("INSERT INTO ".$db->prefix."log (`ip`, `name`, `time`) VALUES ('".$_SERVER['REMOTE_ADDR']."', '".$pun_user['username']."', '".time()."')");
}

1,934

(6 replies, posted in PunBB 1.2 show off)

The link changed wink
Just go to the root, and cliock the bottom link

Change it in the CSS files.

1,936

(16 replies, posted in PunBB 1.2 discussion)

I probably could do it... Yet another mod for PunBB tongue I must have a record or something ^^

1,937

(16 replies, posted in PunBB 1.2 discussion)

That sounds like a fun mod actually big_smile

1,938

(16 replies, posted in PunBB 1.2 discussion)

I guess suspend is just delete tongue

Doesn't submit in Opera 9 =/

1,940

(6 replies, posted in PunBB 1.2 troubleshooting)

I would've put it into main.tpl actually =/

1,941

(6 replies, posted in PunBB 1.2 troubleshooting)

It's a small website icon, like the one PunBB has (just look in your adress bar).
Anyway, this should help: http://en.wikipedia.org/wiki/Favicon

Have you done any mods?
Also, check if the line before 557 has a ; after it.

1,943

(4 replies, posted in PunBB 1.2 discussion)

There is a mod for this smile
Look for Captha on PunRes.

Well, you'd have to edit that function and edit main.tpl a bit.
This is what I'd do:

Make your standard menu, make a menu for your forum, and call generate_navlinks() with this modification:

// Replace
return '<ul>'."\n\t\t\t\t".implode($lang_common['Link separator'].'</li>'."\n\t\t\t\t", $links).'</li>'."\n\t\t\t".'</ul>';
// With
return "\n\t\t\t\t".implode($lang_common['Link separator'].'</li>'."\n\t\t\t\t", $links).'</li>'."\n\t\t\t";

I guess that should work... smile

I'd have to take a look at the code again, but I guess it can't be too hard.

Hrmm... it would definately increase your DB load tongue

PunRes

Well, I just installed it and it looks alot like PunBB =/

1,949

(3 replies, posted in Feature requests)

There's a mod for this wink
Not likely to be implemented though.

falconflyz wrote:

Could you establish the possibility of logger IP with the times of connection of the users?

I thought IP was logged together with a timestamp...

And maybe add the possibility to set the log interval from the admin CP.

Hrmm, would be quite hard with the way the mod is currently made, as it logs whenever a use makes a call to common.php (which is on every page view).
I'll look into it though, but I can't assure anything =/