1 (edited by XuMiX 2005-04-18 09:55)

Topic: PunOnline 1.2.1

##        Mod title:  PunOnline
##
##      Mod version:  1.2.1
##   Works on PunBB:  1.2.*
##     Release date:  2004-04-18
##           Author:  XuMiX/orig author Chippa (xumuk@ngs.ru)
##
##      Description:  Adds a list of where the users are on your site.
##
##   Affected files:  include/functions.php
##
##       Affects DB:  Yes
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##
## This has been supressed in 1.2.1 version, but the problem is still here.
##  * Changed lang file, LOOK it through!
##  * Fixed errors like "Notice: Undefined index: antileech.php in /full/path/to/online.php on line 56"
##  * Changed '.$db->prefix.'online table -> "current_page" column increased to VARCHAR(100), to fit new data-storing format
##  * Some cosmetic fixes
#

Get it here
Demo

Re: PunOnline 1.2.1

Thanks for this! smile

Here is a swedish lang-file, put it up on Punres if you want.
http://gah.ath.cx/punonline_1.2.1__swedish.zip

Did some correction from the last one too.

// Gardell

3

Re: PunOnline 1.2.1

thx. uploaded to punres!

4 (edited by Aleksei 2005-04-19 06:39)

Re: PunOnline 1.2.1

XuMiX
needed mod, thank you
can you also upload a russian translation?

5 (edited by XuMiX 2005-04-19 07:22)

Re: PunOnline 1.2.1

??, ??? ?????
?????? ? ????? ??????? smile
Edit:
done
http://www.punres.org/files.php?pid=65

Re: PunOnline 1.2.1

hey man i have installed the punonline 1.2.1 and i have this problem

Notice: Undefined index: /Foros/viewtopic.php in C:\AppServ\www\Foros\online.php on line 64

i see the problem is in this part

else { echo"\t\t\t\t\t".'<td>'.$lang_online[$user_data['current_page']].': <b><a href="'.$user_data['current_page'].'?id='.$user_data['current_page_id'].'">'.$db->result($current_page_name, 0).'</a></b></td>'."\n";}

this part '.$lang_online[$user_data['current_page']].' generated this problem

Notice: Undefined index: /Foros/viewtopic.php in C:\AppServ\www\Foros\online.php on line 64

El Mejor Lugar de la Red - Corporación Azakur4

7

Re: PunOnline 1.2.1

else if ((@$lang_online[$user_data['current_page']]) == '')
        echo"\t\t\t\t\t".'<td>'.$lang_online['Hiding Somewhere'].'</td>'."\n";
    else
        echo"\t\t\t\t\t".'<td><a href="'.$user_data['current_page'].'">'.$lang_online[$user_data['current_page']].'</a></td>'."\n";

replace with

else if (!isset($lang_online[$user_data['current_page']])
        echo"\t\t\t\t\t".'<td>'.$lang_online['Hiding Somewhere'].'</td>'."\n";
    else
        echo"\t\t\t\t\t".'<td><a href="'.$user_data['current_page'].'">'.$lang_online[$user_data['current_page']].'</a></td>'."\n";

Re: PunOnline 1.2.1

don't work

Parse error: parse error in C:\AppServ\www\Foros\online.php on line 59

El Mejor Lugar de la Red - Corporación Azakur4

9

Re: PunOnline 1.2.1

else if (!isset($lang_online[$user_data['current_page']])
change to:
else if (!isset($lang_online[$user_data['current_page']]))
i've missed bracket, when posting here

Re: PunOnline 1.2.1

umm well the problem is other, my forum this located in a folder Forums then my url is this www.azakur4.com/Foros
oki.

the variable current_page gives back "foros/example.php" but in the language file it does not have foros/example.php" only is "example.php", for to solve this problem it is necessary to correct the language file, in my case i added "Foros/"

El Mejor Lugar de la Red - Corporación Azakur4

11

Re: PunOnline 1.2.1

2 Azakur4:

mod description wrote:

##  * Changed lang file, LOOK it through!

Re: PunOnline 1.2.1

The install_mod.php is needed if the online.php is already installed ?
I've some error :
Notice: Undefined index: viewtopic.php in /var/www/site/punbb/online.php on line 56
Notice: Undefined index: viewforum.php in /var/www/site/punbb/online.php on line 56
Notice: Undefined index: profile.php in /var/www/site/punbb/online.php on line 56
Notice: Undefined index: post.php in /var/www/site/punbb/online.php on line 55

I've looked a bit but i've found nothing. sad

Sorry for my french english.
GT4 Club driver France & Forum - Lingerie.

13 (edited by Romuald 2005-04-28 05:36)

Re: PunOnline 1.2.1

The error are in the lang file.
After removing the / it's working fine.

A french translation can be found here : http://ckkoshi.free.fr/ressource/online_lang.php.txt

Sorry for my french english.
GT4 Club driver France & Forum - Lingerie.

14 (edited by Vanslyde 2007-06-27 05:42)

Re: PunOnline 1.2.1

Hi!
I also want to know when I'm reading my online.php
I changed the
else if (!isset($lang_online[$user_data['current_page']]))
line as listed above and removed the "/" in front of 'online.php' in the lang file.. but it still shows that I'm hiding somewhere instead of viewing online list.. what did I forget to do?

edit solved
I changed
'/online.php'
to
'/forums/online.php' in the lang file