you're not often going to be in a place where people are watching.
hence the words "not often"
i have installed my forums from college twice....
You are not logged in. Please login or register.
PunBB Forums → Posts by jochem
you're not often going to be in a place where people are watching.
hence the words "not often"
i have installed my forums from college twice....
Passwords should always be entered in a password field.
Really, you should make it password-type again.
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!!
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
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
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??
the code of my first try (at least it works ):
<?
// ----------- 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
()."<p>".$sql);
// ----------- REMOVE RECORDS AS OLD OR OLDER THEN 5 MINUTES FROM ONLINE_USERS ---------- //
$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
()."<p>".$sql);
$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;
$counter++;
}
?>
thank you, gonna take a look into it now..
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?
thank you,
Jochem.
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 i just tell they have to live with it
i'll just patiently wait till the feature is implemented
<< nothing more to say
Pffffff... it turned out to be his Norton firewall, it blocked all referrers. So he solved it on his own. yay
heh bah.. it always happens to me, there is always someone who is having problems..bah
heh thank you
layout based on the punBB style
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..
well, it works:
http://www.dutcholsentwins.com/test.php (gotta hope there are users online if you take a look
just got to make it links to the profile pages now.
thank you
i'll give it a try anyway
i'll just make it so 'action' needs to be something like 'online2', so i can easily remove it again
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.
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.
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
hostultra huh? i'm on their paid hosting (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 )
cool
hope i am online by that time (i don't know in what timezone you are )
yes, otherwise i wasn't using it right now
Sorry for bothering you so much
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?
Thanks.
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.
yes
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
PunBB Forums → Posts by jochem
Powered by PunBB, supported by Informer Technologies, Inc.