(55 replies, posted in Supported extensions)

Ok, so I found the admin setting for the number of tags in the cloud, but I think what I really want is a way to sort the cloud so that the "heaviest" tags show up first.  Anyone have any ideas on how to do that?  If I could find the place in the code where the cloud is formed, I could probably take it from there, but I haven't been able to find it yet.


(55 replies, posted in Supported extensions)


I noticed that the tag cloud at the bottom of the main forum index page doesn't show all of the tags.  This isn't a permissions issue, as I am the forum admin.  Can someone explain how the tag is formed, or better yet, how I might go about changing it to show more tags?



(5 replies, posted in PunBB 1.3 discussion)

Ok, I found this thread, and the 5th post down has the same code that I used.

shaul26 wrote:

I talked with the mod creator (Ju) very nice person!

and he told me what to do..

this is the mod:

open "viewtopic.php"


    $user_avatar = '';
    $user_info = array();
    $user_contacts = array();
    $post_actions = array();
    $is_online = '';
    $signature = '';

    // If the poster is a registered user.
    if ($cur_post['poster_id'] > 1)

after add:

        $rank_pips = "";
        if($cur_post['num_posts'] > 5000) { $num_pips = 10; }
        elseif($cur_post['num_posts'] > 3000) { $num_pips = 9; }
        elseif($cur_post['num_posts'] > 2000) { $num_pips = 8; }
        elseif($cur_post['num_posts'] > 1000) { $num_pips = 7; }
        elseif($cur_post['num_posts'] > 500) { $num_pips = 6; }
        elseif($cur_post['num_posts'] > 300) { $num_pips = 5; }
        elseif($cur_post['num_posts'] > 100) { $num_pips = 4; }
        elseif($cur_post['num_posts'] > 50) { $num_pips = 3; }
        elseif($cur_post['num_posts'] > 10) { $num_pips = 2; }
        else { $num_pips = 1; }

        for($pip=0; $pip<$num_pips; $pip++) {
            $rank_pips .= '<img src="img/pip.gif" alt="" />';


                    <dt><strong><?php echo $username ?></strong></dt>
                    <dd class="usertitle"><strong><?php echo $user_title ?></strong></dd>

After, add :

                    <?php echo "<dd class=\"usertitle\">".$rank_pips."</dd>\n"; ?>

Save viewtopic.php and upload (overwrite)

I didn't creat this mod... all the credit goes to "Ju" !

I suppose I could use that as a starting point and mod 1.3 to do the same thing.  When I first used that code several years ago, I didn't know anything about PHP, but I've been scripting in PHP for a couple of years now and can probably figure it out.

I might even try my hand at making a real extension for this if I can locate any guides/tutorials on writing extensions.   smile


(5 replies, posted in PunBB 1.3 discussion)

Ok, I'll see if I can track it down.

And I guess if the Group Images extension does work, I can just make little images that look like pips.  smile


(5 replies, posted in PunBB 1.3 discussion)

Thank you for the reply.  I actually did come across that extension, but it seems to be geared towards setting a specific image for each rank.  What I'm looking for is something that will add 1 pip for each rank achieved.  I have this on my current forum, and I think it was a mod that I found in the old wiki, but I'm not sure.

Anyway, here is an example of what I'm after.  The pip itself can be whatever icon I decide to use.

Rank 1 ~ 0-50 posts: no pips
Rank 2 ~ 51-100 posts: 1 pip
Rank 3 ~ 101-300 posts: 2 pips

Are you aware of anything like that?  Or were you suggesting that I could use Group Images extension to do this, but it would require some tweaking first?

Thanks again.


(5 replies, posted in PunBB 1.3 discussion)

Hi everyone,

I'm in the process of setting up the latest version of PunBB to replace my old 1.2.15 site.  I just love the new version, especially the extensions.  So far, I've managed to find an extension for just about everything I need, but the one thing I cannot find, is a way to add Pips, dependent on a user's rank.

I really don't care if it's an extension or a mod that requires a bit of code editing, I just want the pips!!   big_smile

I've searched high and low and googled until my fingers bled, but I just can't find anything.  Can anyone point me in the right direction?