I've finally figured it out, and have updated the miniportal wiki over at punres to include this tidbit.

Thanks for the help smile

looks to be an issue with your CSS.  I've been reading up on it, and it appears that some version of IE have some <div> display issues.

The style looks beautiful in firefox btw.  smile


(69 replies, posted in News)

mi wrote:

Did the manual copying of files from .zip archive - works like a charm! THANK you. (No more manual editing for me - ha)

But (this happens quite a lot):
If user gives wrong pass to login, he clicks "forgotten password" and he does the email thing, often when clicking the activation link in the email, the user comes back as logged into the forum (he should get info that password is changed to the one in the email) - and the password is NOT changed, but he thinks so! So he uses the new one next time - and it is wrong.

I have changed pass manually as admin for quite a few ppl because of this - thats fine, but the flow of things should really work... It even happened to me when i mimicked a forgetful user's behaviour....


Similar thing happened to me at punres.

The registration email took forever, so I clicked on the forgotten password link..  I recieved the 'forgotten password email' before the actual registration email.  Tried the forgotten password first and it wouldn't work.  It turns out that the registration password worked..


(10 replies, posted in Programming)

PHP and MySQL Web Development is a decent book.   Good examples, very inclusive as well.


But, I want it to follow the rest of the miniportal, so that I can include it in the main.tpl, and move it around, and use themes to change it's looks..

Anyone with any help?

Or perhaps another suggestion on how to accomplish this?

Much appreciated! smile


I've added this to the bottom of the functions.php:

function top_posters()
    global $pun_config, $lang_common, $pun_user, $db;
    $result = $db->query('SELECT id, username, num_posts FROM '.$db->prefix.'users ORDER BY num_posts DESC LIMIT 10') or error('Unable to fetch user data', __FILE__, __LINE__, $db->error());
    while ($data = $db->fetch_assoc($result))
          echo "<ul><li>\t\t\t\t\t\t".'<a href="profile.php?id='.$data['id'].'">'.pun_htmlspecialchars($data['username']).'</a> ('.$data['num_posts'].') '."\n</li></ul>";

And the following to header.php:

// START SUBST - <pun_top_posters>
$tpl_main = str_replace('<pun_top_posters>', '<div class="inbox">'."\n\t\t\t". top_posters()."\n\t\t".'</div>', $tpl_main);
//END SUBST - <pun_top_posters>

With the appropriate editing of the main.tpl.   However, because the function is called in the header, it is being printed there, not in the right spot.

I've looked into changing the function to return instead of echo.  However, it will only return one line of the top posters function..   

Any clue on how to make this an array that will be printed in the appropriate place on the page?

Well, I want to add the top posters to the sidebar in Connorhd's miniportal.  I've even searched these forums a few times, but I'm still clueless on how to do it.

Any pointers?

I was looking at doing the same thing..

Found it for you..

Connorhd wrote:

unfortunatly you can't just use pun_include

to add a latest posts block you could do this as long as you don't use pun_include already:

open footer.php


// START SUBST - <pun_include "*">
while (preg_match('/<pun_include "(.*?)">/', $tpl_main, $cur_include))
    include PUN_ROOT.$cur_include[1];
    $tpl_temp = ob_get_contents();
    $tpl_main = str_replace($cur_include[0], $tpl_temp, $tpl_main);
// END SUBST - <pun_include "*">


// START SUBST - <pun_include "*">
while (preg_match('/<pun_include "(.*?)">/', $tpl_main, $cur_include))
    include $cur_include[1];
    $tpl_temp = ob_get_contents();
    $tpl_main = str_replace($cur_include[0], $tpl_temp, $tpl_main);
// END SUBST - <pun_include "*">

you can then use

    <div class="block">
        <h2 class="block2"><span>Latest Posts</span></h2>
        <div class="box">
            <div class="inbox">
                    <pun_include "http://yoursite.com/forum/extern.php?action=active">

in main.tpl remember to change the extern.php url


(124 replies, posted in News)

Featured on CNN...

http://www.cnn.com/2005/TECH/internet/1 … index.html


(4 replies, posted in PunBB 1.2 troubleshooting)

**was looking for a simple, similar mod**

So, I can wait to have that for 1.3?


Manhog wrote:

Farooq - who did you move to host with after dropping Netfirms?

to phpwebhosting.com


(8 replies, posted in PunBB 1.2 discussion)

Send an email over to the FBI.


(1,382 replies, posted in General discussion)


I really don't know guys.  Netfirms' support for me on that entire issue was extremely lacking, so I dumped them as a host.

I found a better one, for roughly the same price.  With a bunch more features.  I'm happier now smile

Ditch Netfirms, if you want punBB.   And believe me, it's worth it! smile

phpwebhosting.com is decent, and punbb works very well there..   and it's not too bad for the features it gives you, and the price! smile

Tobi wrote:
Rickard wrote:

I'm sure there are people out there who will want this.

On the other hand: A real visit counter would be hard to implement I think.

And it would look so cool in the footer too..


(0 replies, posted in General discussion)

I'm checking this site out on a PSP.  The forums still look great!  Perhaps these forums will take off even more..


(16 replies, posted in General discussion)

Well, even so, Rickard..

It would be a good idea smile


(21 replies, posted in PunBB 1.2 discussion)

It's just to cover the site owner's butts if a parent doesn't like what the child is doing.. and wants to sue somebody other than discipline the child..

You know America..  quickest way to get a buck is to sue.. tongue


(132 replies, posted in General discussion)

Ahh..  none taken tongue


(132 replies, posted in General discussion)

....  As being from Montana...  I resent that tongue


(54 replies, posted in PunBB 1.2 discussion)

Mako wrote:

I've got my game running on http://www.phpwebhosting.com. Best I have seen on the web.

I've taken up your suggestion..

They seem to offer me some things that others wouldn't..  and off the bat, that's a good thing. 

Also, their tech people actually responded to my requests in a timely manner...


(180 replies, posted in PunBB 1.2 troubleshooting)

To solve the problem with people using Norton Personal Firewall Configure it..

Privacy Control -> Configure -> Custom level -> Deselect Enable Browser Privacy...

You don't need to disable the entire firewall..  just share a little bit of browsing information...  hehe