It helped a bit so i created this one and included this in my header and it works but not as it should, i guess it have to do with how i used it.

When 1 person is logged in and a guest is wieving the forum it says 2 users, but if two guests are wiewing the forum it says 1 user is looking at the forum

Eyy That can be because i viewing it from the same ip i think?

<?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 ($num_users + $num_guests);
  }
?>
Endre wrote:

http://punbb.org/forums/viewtopic.php?id=11132

I asked the same, and got help in that thread.

Thanx that will help alot :-)

http://punbb.org/forums/viewtopic.php?pid=65975#p65975

averagehippy wrote:

divide the number of active users (users, & guests) with the total number of registered users.

e.g. round((100 * $total_active) / $total_registered)

No. Will do no good.

This mod affects register php, i use the ajax mod that checks if a username is alredy taken. Will this one work with that mod (You will find it in the wiki)

How do i precent online users that include guests + members

Trying to install this one
http://wiki.punres.org/Add_a_login_form_over_the_header

With the change that i want the login register part to be aligned to the left, and to the right i want to put a link to a file called online.php. I have tryed with .conr and .conl and i fuckup the markup everythime

http://img170.imageshack.us/img170/5601/ahhhh1zv.jpg

Anyone that have q quick fix?

Yes, and then i have to remove anything from the files?

It must be possible to fix without reinstalling i have modded my board pretty heavily, resave the files?

I have ultraedit also and there i can use utf-8 no boom will trye more tomorrow

what editors can i use. I have notepad for starters does it write boom?

and what files do i have to edit... index header and templates?

Im going crazier and aaaaaaaahhhh

tryed with no boom as you sugessted on my tpl my header and my index but the same problems

I get validation errors

?????...<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="ROBOTS" content="NOINDEX, FOLLOW" />

Three dots apear infron of my doctype

I use utf-8 for character encoding and my url is

can moderators still moderate the forum then?

Yes i know. But it is possible to create a mod or hack that does it for one admin? One with static ip or with dns lookup?

why not.. it would improve security dramaticly if no users can use the admin account

Thats i wrote in my first post about dns adresses.

41

(2 replies, posted in PunBB 1.2 troubleshooting)

Why dont ask your host in what timezone your server is. I did a tracert and the closest i saw was whashington

MadHatter wrote:

lol

if you limit it to that ip nobody will be able to admin your site (unless you're sitting on the machine that hosts your website).

thats the loopback address of your local machine.

http://bindmaker.org/_ipaddress.php  <- thats your ip address

I know what 127.0.0.1 is, i want it to be possible to do this if you have it on a webhost or if you have it on your local machine, i dont bother if noone can be admin besides me. We have one admin and several moderators. Moderators i do not want to have any ip block on only on administrator basic.

To make my site more safe it would be nice if it was possible to lock my admin account to my ip

127.0.0.1

And it would also be nice if it was possible to add dns adress like:
youaredumb.dyndns.ws

to the alowed list of ip´s

would that dont make the board more secure?

Edit: Can someone move the topic, posted in wrong section

44

(2 replies, posted in Archive)

ligger fel hos mig oxo. Har nog med din css bredd att göra

chmod your cashe folder to 755 or 777

How big is your db if you dont backup

punbb_search_matches
punbb_search_words

Finaly solved

1. Changed encoding in lang/common.php
2. Resaved every lang file in utf-8 instead of ansi that my was saved as (with notepad)

nope it dont work at all

it works on my site, but it dont work on this mod

http://www.punres.org/viewtopic.php?id=774

Fresh install of punbb 1.2.12

Installed swedish language and the ajax register mod that looks if a username is already taken

help plz

No one that has a solution so i can get my read more link open up in a new window, and not in the viewtopic.php