Worked perfectly!

Thank you, and thanks again for the lightning reply!

Where do i change the signatures alignment? I want it to be located in the right side of posts.
Another thing i would like, is to change the color of the signature, to something vague so it doesn't interfere with the other content.

Thanks in advance! It's a pleasure to use PunBB!

3

(10 replies, posted in Feature requests)

So. Almost 1½ year later, i ask people.

Will this ever be finished...?

Okay. I only use one forum. An example could be this one from Punbb.org. So i would like to have the total forum statistics from the index.php, at the top of the one forum i use.
A bit hard to explain, but i hope you got the idea.

So, i copied this piece of code from index.php, and added it to the top of viewforum.php.

// Collect some statistics from the database
$result = $db->query('SELECT COUNT(id)-1 FROM '.$db->prefix.'users') or error('Unable to fetch total user count', __FILE__, __LINE__, $db->error());
$stats['total_users'] = $db->result($result);

$result = $db->query('SELECT id, username FROM '.$db->prefix.'users ORDER BY registered DESC LIMIT 1') or error('Unable to fetch newest registered user', __FILE__, __LINE__, $db->error());
$stats['last_user'] = $db->fetch_assoc($result);

$result = $db->query('SELECT SUM(num_topics), SUM(num_posts) FROM '.$db->prefix.'forums') or error('Unable to fetch topic/post count', __FILE__, __LINE__, $db->error());
list($stats['total_topics'], $stats['total_posts']) = $db->fetch_row($result);

?>
<div id="brdstats" class="block">
    <h2><span><?php echo $lang_index['Board info'] ?></span></h2>
    <div class="box">
        <div class="inbox">
            <dl class="conr">
                <dt><strong><?php echo $lang_index['Board stats'] ?></strong></dt>
                <dd><?php echo $lang_index['No of users'].': <strong>'. $stats['total_users'] ?></strong></dd>
                <dd><?php echo $lang_index['No of topics'].': <strong>'.$stats['total_topics'] ?></strong></dd>
                <dd><?php echo $lang_index['No of posts'].': <strong>'.$stats['total_posts'] ?></strong></dd>
            </dl>
            <dl class="conl">
                <dt><strong><?php echo $lang_index['User info'] ?></strong></dt>
                <dd><?php echo $lang_index['Newest user'] ?>: <a href="profile.php?id=<?php echo $stats['last_user']['id'] ?>"><?php echo pun_htmlspecialchars($stats['last_user']['username']) ?></a></dd>
<?php

if ($pun_config['o_users_online'] == '1')
{
    // Fetch users online info and generate strings for output
    $num_guests = 0;
    $users = array();
    $result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());

    while ($pun_user_online = $db->fetch_assoc($result))
    {
        if ($pun_user_online['user_id'] > 1)
            $users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
        else
            ++$num_guests;
    }

    $num_users = count($users);
    echo "\t\t\t\t".'<dd>'. $lang_index['Users online'].': <strong>'.$num_users.'</strong></dd>'."\n\t\t\t\t".'<dd>'.$lang_index['Guests online'].': <strong>'.$num_guests.'</strong></dd>'."\n\t\t\t".'</dl>'."\n";


    if ($num_users > 0)
        echo "\t\t\t".'<dl id="onlinelist" class= "clearb">'."\n\t\t\t\t".'<dt><strong>'.$lang_index['Online'].': </strong></dt>'."\t\t\t\t".implode(',</dd> ', $users).'</dd>'."\n\t\t\t".'</dl>'."\n";
    else
        echo "\t\t\t".'<div class="clearer"></div>'."\n";

}
else
    echo "\t\t".'</dl>'."\n\t\t\t".'<div class="clearer"></div>'."\n";


?>
        </div>
    </div>
</div>
<?php

I added the code, here:

// Generate paging links
$paging_links = $lang_common['Pages'].': '.paginate($num_pages, $p, 'viewforum.php?id='.$id);


$page_title = pun_htmlspecialchars($pun_config['o_board_title'].' / '.$cur_forum['forum_name']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
<---HERE! HERE! HERE! HERE! HERE!--->
?>
<div class="linkst">
    <div class="inbox">
        <p class="pagelink conl"><?php echo $paging_links ?></p>
<?php echo $post_link ?>
        <ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a> </li><li>» <?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></li></ul>
        <div class="clearer"></div>
    </div>
</div>

So. It just messes things up. Am i missing something?

5

(2 replies, posted in PunBB 1.2 discussion)

Well. I have studied the miniportal guide.

I added the code from the chatbox.php (from the PBB-ChatBox), and added it to main.tpl, but that simply disintegrated the design.

6

(2 replies, posted in PunBB 1.2 discussion)

How do i add a sidebar, with a shoutbox integrated?
The sidebar should be visible in all subsites within Pun. (viewforum, viewtopic etc.)

Smartys wrote:

Look into CGI-IRC type stuff then

Exactly how simple is it to integrate CGI:IRC, into Pun?

Smartys wrote:

That's what this is: a Java IRC chat applet tongue

Well i know that... But my host won't allow .jar-files!

Problem is, that i want a real-time chatroom, which doesn't need to be refreshed.

Is a script like this available?

10

(6 replies, posted in PunBB 1.2 troubleshooting)

Bad karma. Renewing topic...

Need help. Must have, answer. Must...

*Sigh*

Krigsoffer wrote:

Okay. It seems that my host doesn't allow .jar-files.
To be more specific:
irc-unsigned.jar
irc.jar
pixx.jar

First of all: Do i need to unpack these files before it will work?

Wait... Is it even possible to unpack .jar-files?


Krigsoffer wrote:

And: If it is required to just leave them alone, do i have another alternative to the IRC-Chat mod.?

Besides this one.

Okay. It seems that my host doesn't allow .jar-files.
To be more specific:
irc-unsigned.jar
irc.jar
pixx.jar

First of all: Do i need to unpack these files before it will work?
Does it affect anything if i do?

And: If it is required to just leave them alone, do i have another alternative to the IRC-Chat mod.?

Why would you move it to "modifications"?

Post your mod release announcements in here.

Oh well. Does anyone have a clue?

You mean on my computer?

I've just installed the latest version...

I have uploaded and installed this mod. But, i cannot get it to work. When i start it up, it just surrenders, and shows that immensely provocative little red cross, in upper left corner.

So, what's the problem? And how do i fix it...?

Anyone?

16

(6 replies, posted in PunBB 1.2 troubleshooting)

Krigsoffer wrote:

I haven't tested it very much. But is it possible to make the mod calculate the total reputation (ie. if you have 4+ and 2-, it will calculate: 4/2, which of course will add up to 2.) and then show that instead of  "[4+ / 2-]"?

Also: Can the rank be defined by the total reputation?

17

(4 replies, posted in PunBB 1.2 troubleshooting)

That didn't help...?

It just seemed to remove the border on the right?!

18

(4 replies, posted in PunBB 1.2 troubleshooting)

Well, i don't know how to describe it, but i'm talkin' about this:

http://tinypic.com/k4a34g.jpg

Where do i find, and change the width of this section?

19

(6 replies, posted in PunBB 1.2 troubleshooting)

I haven't tested it very much. But is it possible to make the mod calculate the total reputation (ie. if you have 4+ and 2-, it will calculate: 4/2, which of course will add up to 2.) and then show that instead of  "[4+ / 2-]"?

20

(6 replies, posted in PunBB 1.2 troubleshooting)

Damn! That was simple! Thanks!

21

(6 replies, posted in PunBB 1.2 troubleshooting)

I was trying to install the Reputation Mod on an 1.2.10 installation of PunBB, but when i tried, it said that it was only possible in earlier versions...

Is it possible to get an updated version that is compatible with PunBB ver. 1.2.10?

22

(0 replies, posted in PunBB 1.2 troubleshooting)

I only use 1 forum. Is it possible to make it the standard index? Sorta like a redirect. Without choosing at the front page.

How do i do that?

And of course: Removing the old style title, and punchline...

I'm sorry if this is very common request, but i have tried to search, and never came to any conclusion...

How do modify PunBB so that it is only possible for an admin to rename users?

25

(6 replies, posted in General discussion)

Okay. Sorry for the misunderstanding.

Paul wrote:

I assumed he meant the "Messaging" page of the profile.

Correct!

I'm talking 'bout this baby here:

http://tinypic.com/flaheg.jpg