(8 replies, posted in PunBB 1.2 bug reports)

Joey wrote:

you're not often going to be in a place where people are watching.

hence the words "not often" wink
i have installed my forums from college twice....


(8 replies, posted in PunBB 1.2 bug reports)

Passwords should always be entered in a password field.
Really, you should make it password-type again.


(2 replies, posted in Programming)

whaha...can't believe i missed that, that took me hours to find, and i wouldn't have found it if you didn't tell me, so thanks!! smile

OK, because i might have more questions in the future while i'm programming DOTmagazine, i thought i might as well make a topic for my DOTmagazine problems in general smile

My first problem here is:
I have a profile page, once i hit the "edit" button the changes has to be submitted and stored in the database.. the user's record has to be updated that is..
well, i'm checking for the website string. If it's not empty and when it does not start with http://, the http:// part has to be added to the string.. this is my code:

if ($website != "" && !stristr($website,"http://") {
 $website = "http://".$website;

But somehow it does not work. I just get a blank page sad
It's obvious that the problem is with that code, because when i comment it out the page works again.
I just don't get it, what's wrong with that code??


(12 replies, posted in Programming)

the code of my first try (at least it works smile):


// ----------- PUT USER IN TABLE ONLINE_USERS ---------- //
$firstname = $userSession -> firstname;
$sql = "REPLACE INTO online_users (user_id, user_firstname, time)
           VALUES (".$userSession -> userid.",'$firstname',NOW())";
$result = mysql_query($sql) or die ("Error_u.o1_".time().": ".mysql_error

$sql = "DELETE
           FROM online_users
           WHERE time < NOW() - INTERVAL 5 MINUTE";
mysql_query($sql) or die ("Error_u.o2_".time().": ".mysql_error()."<p>".$sql);

// ----------- GET NUMBER OF ONLINE USERS ---------- //
$sql = "SELECT *
           FROM online_users";
$result = mysql_query($sql) or die ("Error_u.o3_".time().": ".mysql_error
$users_online = mysql_num_rows($result);
print "Aantal leden online: ".$users_online." :: ";

$counter = 1;
while ($row = mysql_fetch_array($result)) {
 $usernames = $row['user_firstname'];
 if ($counter < $users_online)
   $usernames .=", ";

 print $usernames;



(12 replies, posted in Programming)

thank you, gonna take a look into it now..


(12 replies, posted in Programming)

Hi there,

I'm working on a project DOTmagazine (at www.dotmagazine.net) and i want to have a users online thing on there.
How can i make such a thing. If someone logged in a session is started. But how can i keep track of who is logged in and how can i make it so that 5 minutes after the person left the site the user will be removed from the 'users online' list?

Do you get what i am saying? wink

thank you,


(31 replies, posted in Feature requests)

yeah, i got users saying it is very annoying that the posts are not marked as read. And if they post their own post is marked as unread.... but whatever smile i just tell they have to live with it wink
i'll just patiently wait till the feature is implemented smile

roll << nothing more to say wink

Pffffff... it turned out to be his Norton firewall, it blocked all referrers. So he solved it on his own. yay wink

heh bah.. it always happens to me, there is always someone who is having problems..bah smile


(7 replies, posted in Feature requests)

heh thank you smile
layout based on the punBB style wink

anyway, yeah, i still have to do loads of things before that site will be ready. I want to make it members only, people need to register etc and i want it to make use of the same userdata as the forums. So later on people who are on the mainpage should be listed in the 'users online' list as well..


(7 replies, posted in Feature requests)

well, it works:
http://www.dutcholsentwins.com/test.php (gotta hope there are users online if you take a look wink
just got to make it links to the profile pages now.

thank you smile


(7 replies, posted in Feature requests)

i'll give it a try anyway wink
i'll just make it so 'action' needs to be something like 'online2', so i can easily remove it again wink

i'll let you know if it works or not.

he doesn't use a proxy, he goes there through http which is good, and disabling his firewall does not make any difference.


(6 replies, posted in PunBB 1.2 troubleshooting)

if you haven't bought one, you do not have one.
it'll cost you $5 (one time fee).

Also important to know is that once you have a database and installed punBB, your users won't be able to upload avatars, because you have to disable it. All scripts that allow uploading of files are generating errors on the free accounts since it is not allowed. Only you can upload through FTP to your HU account.

I have only one user on my forums (who is also a moderator) who has the problem of

Bad HTTP_REFERER. You were referred to this page from an unauthorized source. Please go back and try again. If the problem persists please make sure that 'Base URL' is correctly set in Admin/Options and that you are visiting the forum by navigating to that URL.

It's weird since it's only one user. And i'm 100% positive that the base url is set correctly.
Anyone who knows what could be causing this?
Also, he tried it on someone elses PC and there it worked all just fine. It are only his two PC's on which he get this error if he tries to edit messages or tries to change his profile.


(12 replies, posted in PunBB 1.2 discussion)

I don't think i'll need it. It are only the administrators and moderators who can post in the boards of which the posts show on the mainpage. If they say something that would need to be censored i will just slap them smile


(6 replies, posted in PunBB 1.2 troubleshooting)

hostultra huh? i'm on their paid hosting smile (i am "mkolsenfan" on their forums)
database server name is "localhost"
database name, go into your control panel, there is a "manage database" or something alike somewhere if you scroll down, i think you can find out what your database's name is).
Table prefix, just make up something, like for example "punbb_"

I assume you bought a database? You do not get a free database with the free hosting, you'll have to pay a one time fee to get one. (just in case you didn't wink)


(7 replies, posted in Feature requests)

cool smile
hope i am online by that time (i don't know in what timezone you are wink)


(14 replies, posted in Feature requests)

yes, otherwise i wasn't using it right now smile


(7 replies, posted in Feature requests)

Sorry for bothering you so much wink

The usersonline of the extern.php file only gives the number of members and guests that are online.

On my mainpage i would like to display the nicks of the members who are online.
Is this somehow possible?



(2 replies, posted in Programming)

thank you...


(2 replies, posted in Programming)

how do i add +0800 to a date.
i now have

date("l dS of F Y - H:i:s",$row[posted])

But it needs to be GMT+0800

thank you.


(12 replies, posted in PunBB 1.2 discussion)

yes smile
thank you!

though i have to remove this line:
$pun_config['o_censoring'] = '1';

otherwise i get this error:
Fatal error: Call to a member function on a non-object in /home/dolsentw/public_html/forum/nl/include/functions.php on line 274