1

(101 replies, posted in PunBB 1.2 discussion)

this is the same one that made the shit in the 1.2.5 release

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

2

(1,382 replies, posted in General discussion)

boomrang

3

(34 replies, posted in General discussion)

got hacked to the user used two account one as nft and the other as sallaand it does appear to be the same as you guy

4

(27 replies, posted in Feature requests)

Sander D. wrote:

Okay, but the [ code]-tags don't serve any purpose at both of my non-technical forums. I think there are many forums where people talk about books, movies, tv series and computer games. Those discussions often contain spoilers.

you have a point there

make sure that this line did not delete som of the entry that where in you previous line

here is the line i am talking about

if (!$pun_user['logged'])  {
                $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
scottywz wrote:

Guests can see it if they quote you.

weird i cant see even if i quote him

and do you want to share the code with other

ok i think i got it i changed back and forth some of the line so it came down to this

the way you line appear:

/// MOD USERSTATS CHANGE
            if (!$pun_user['logged'])  {
                $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                $db->query('INSERT INTO '.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].',\''.$db->escape(get_remote_address()).'\')') or error('Unable to insert into user statistics', __FILE__, __LINE__, $db->error());
                }
// END MOD USERSTATS CHANGE
            {
                // Special case: We've timed out, but no other user has browsed the forums since we timed out
                if ($pun_user['logged'] < ($now-$pun_config['o_timeout_visit']))
                {
                    $db->query('UPDATE '.$db->prefix.'users SET last_visit='.$pun_user['logged'].' WHERE id='.$pun_user['id']) or error('Unable to update user visit data', __FILE__, __LINE__, $db->error());
                    $pun_user['last_visit'] = $pun_user['logged'];
                }
                // MOD USERSTATS CHANGE
            if ($pun_user['idle'] == 1)  {
                $db->query('INSERT INTO '.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].',"'.$db->escape(get_remote_address()).'")') or error('Could not insert into statistics', __FILE__, __LINE__, $db->error());
                }
// END MOD USERSTATS CHANGE

and the change i had to make i guess and i hope those will solve the problem

// Update the online list
/// MOD USERSTATS CHANGE
            if (!$pun_user['logged'])  {
                $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged, color) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.', \''.$db->escape($pun_user['g_color']).'\')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                $db->query('INSERT INTO '.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].',\''.$db->escape(get_remote_address()).'\')') or error('Unable to insert into user statistics', __FILE__, __LINE__, $db->error());
                } 
                else
// END MOD USERSTATS CHANGE
            {
                // Special case: We've timed out, but no other user has browsed the forums since we timed out
                if ($pun_user['logged'] < ($now-$pun_config['o_timeout_visit']))
                {
                    $db->query('UPDATE '.$db->prefix.'users SET last_visit='.$pun_user['logged'].' WHERE id='.$pun_user['id']) or error('Unable to update user visit data', __FILE__, __LINE__, $db->error());
                    $pun_user['last_visit'] = $pun_user['logged'];
                }
                // MOD USERSTATS CHANGE
            if ($pun_user['idle'] == 1)  {
                $db->query('INSERT INTO '.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].',"'.$db->escape(get_remote_address()).'")') or error('Could not insert into statistics', __FILE__, __LINE__, $db->error());
                }
// END MOD USERSTATS CHANGE

ok i notice that difference here here is the line in the function.php file as it currently appear

/// MOD USERSTATS CHANGE
            if (!$pun_user['logged'])  {
                $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                $db->query('INSERT INTO '.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].',\''.$db->escape(get_remote_address()).'\')') or error('Unable to insert into user statistics', __FILE__, __LINE__, $db->error());
                }
// END MOD USERSTATS CHANGE
            {
                // Special case: We've timed out, but no other user has browsed the forums since we timed out
                if ($pun_user['logged'] < ($now-$pun_config['o_timeout_visit']))
                {
                    $db->query('UPDATE '.$db->prefix.'users SET last_visit='.$pun_user['logged'].' WHERE id='.$pun_user['id']) or error('Unable to update user visit data', __FILE__, __LINE__, $db->error());
                    $pun_user['last_visit'] = $pun_user['logged'];
                }
                // MOD USERSTATS CHANGE
            if ($pun_user['idle'] == 1)  {
                $db->query('INSERT INTO '.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].',"'.$db->escape(get_remote_address()).'")') or error('Could not insert into statistics', __FILE__, __LINE__, $db->error());
                }
// END MOD USERSTATS CHANGE

in your read me file you say this

#---------[ 5. FIND (line:76) ]---------------------------------------------------
#
            // Update the online list
            if (!$pun_user['logged'])
                $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                }

#
#---------[ 6. CHANGE TO ]---------------------------------------------------
#
            // Update the online list
// MOD USERSTATS CHANGE
            if (!$pun_user['logged'])  {
                $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                $db->query('INSERT INTO'.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].','.$db->escape(get_remote_address()).')') or error('Unable to insert into user statistics', __FILE__, __LINE__, $db->error());
                }
// END MOD USERSTATS CHANGE

the thing is that me in my original file the line

// Update the online list
            if (!$pun_user['logged'])
                $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                }

is a bit different

// Update the online list
            if (!$pun_user['logged'])
                $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged, color) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.', \''.$db->escape($pun_user['g_color']).'\')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
            else
            {

humm i think i may have an idea could it be possible that that since the miniportal mod does not count you as log in the forum when your at the portal page creates that problem

ok by replacing the old "or error..."" by the one you gave me i now get this when i go to my website

Parse error: parse error in /home/vhost/d-vault.peerforces.com/html/forum/include/functions.php on line 88

Fatal error: Call to undefined function: check_cookie() in /home/vhost/d-vault.peerforces.com/html/forum/include/common.php on line 115

line 88 of function.php been:

$pun_user['last_visit'] = $pun_user['logged'];

and line 115 of common.php been:

check_cookie($pun_user);

12

(71 replies, posted in News)

will there be a chanlog from 1.2.5 to 1.2.6 to make the change manually

ok i guess the error occur in this line

 $db->query('UPDATE '.$db->prefix.'users SET last_visit='.$pun_user['logged'].' WHERE id='.$pun_user['id']) or error('Unable to update user visit data', __FILE__, __LINE__, $db->error());

thx giz for pointing the fix but now i am getting this message

Error: Unable to update user visit data.

Ataxy wrote:

i some time get this also
http://d-vault.peerforces.com/forum/uploaded/ree.png

hey how about this one it happens to me when i go from the index.php to the forum.php since i have installed the mini portal mod

ok thx ill do that and by the way great mod thx

Tobi wrote:

Does not fix Ataxys "unable to insert into user statistics" error.
Can you be a bit more precise on what you mean with "Some time"?
You don't get this error every time then?
If so, is there any recognizable pattern when you get it?
I would like to fix this if I can but I need a clue where to start...

ok it seem to happen when i access the admin panel for now i havent seen it happening anywhere else
but if it does it all i have to do is to do back then go into the admin panel again and thats it it does not do it then if i go from the site and come back it does it again


edit:

ok now it does apply the css ounce i click go but the result are always:

There is no data to show a result for your search.

edit2:

when i search for the most read topic i get the following message under the search result:

Unable to fetch topic information. Maybe you have no corresponding entries in your database

unless i do search for yesterday, 7days, last month wich all give me the same answer but all search result are intitled
"Number of Users visiting from 2005-06-30 - 2005-07-06" when actualy there should be most read topic


anyway hope it help

i some time get this also
http://d-vault.peerforces.com/forum/uploaded/ree.png

does not work here it install and all but when i click go to see some stat i get a admin page with no css applyed and it says unable to fetch information or something like that

edit here is what i get
http://d-vault.peerforces.com/forum/uploaded/usestat.png

20

(67 replies, posted in News)

thx for the cue that fixed it

21

(67 replies, posted in News)

Connorhd wrote:

thats from the coloured usergroups mod isn't it? just work through the mod again?

ahhhh yes you are right ill see what it was that i changed thx

22

(67 replies, posted in News)

ok finnaly decided to make the upgrade from my 1.2.4 forum to the 1.2.5 code all went fine the only bug i get is the following one

on top of each post i ge the following error message:

 Notice: Undefined index: g_color in /home/vhost/d-vault.peerforces.com/html/forum/viewtopic.php on line 222

here is the line in the viewtopic.php file:

 $username = '<a href="profile.php?id=' . $cur_post['poster_id'] . '"><span style="color:'.$cur_post['g_color'].'">' . pun_htmlspecialchars($cur_post['username']) . '</span></a>';

i also forgot to say that yes i did the two bug fix to viewtopic and parser

23

(67 replies, posted in News)

Cailean wrote:
scottywz wrote:

1.2.5 includes topic subscription.

Hmm, at first I thought you meant that a feature similar to my 'forum subscription' mod had been included in 1.2.5.  If it has, I can't find it.  Forum Subscription (different from topic subscription) allowed a user to be notified when new topics were started in the forum(s) they were subscribed to.  Topic only allows notification of replies...

The reason I use this is that my forum has limited memebership and many simply forget to check the forum.  This way they are notified when.  I also have many users who refuse to use the forum and still rely on our old mailing list system.  For them, I simply created a user with the list's email address and subscribed to all forums.

Anyway, I guess I'll have to dig into the code again...  it's been so long!

definitly this would be a truly good idea

24

(8 replies, posted in General discussion)

here is a new link
http://www.c0x2.de/lol/lol.html

25

(8 replies, posted in General discussion)

weird link no longer works