Welcome, Guest. Please Login or Register.
May 25, 2020, 02:41:38 PM
Home Help Search Login Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  Topic: [Beta] View username @ View forum access log « previous next »
Pages: 1 [2] 3 Reply Ignore Print
Author Topic: [Beta] View username @ View forum access log  (Read 10393 times)
sylvester
YaBB God
*****
Posts: 525



Re:[Beta] View username @ View forum access log
« Reply #15 on: August 07, 2002, 08:26:43 AM »
Reply with quote

I've done the most recent changes and it's now showing some IP addresses and some usernames in the 'Access Log', but as mentioned earlier, the IP addresses will dissapear eventually...

However, I'm still having the problem of being displayed as a guest in the 'Users Online' section at the bottom, even though I'm logged in... :-\
Any idea how to fix this...?
It works for Nossie  :P and for me ;D, so I think you have not modified the files correctly and/or completely
« Last Edit: August 07, 2002, 08:27:24 AM by sylvester » Logged

I'm back
puntingzone
Noobie
*
Posts: 19



WWW
Re:[Beta] View username @ View forum access log
« Reply #16 on: August 07, 2002, 10:44:31 AM »
Reply with quote

I've got the same problem, everything works great as it should in the view access, but when I view who's online it says no one i.e 0 users 0 guests. I also have SSI call on my mainpage to show how many are online.

Could it be the problem is that I have added the sessions mod. My index.php file looks like this

if (isset($HTTP_SESSION_VARS[username])) {
   $username = $HTTP_SESSION_VARS[username];
   $passworrd = $HTTP_SESSION_VARS[password];
}
else {
   $username = "";
   $password = "";
}

/* ### Load user settings ### */
LoadUserSettings();

/* ### Log this click ### */
ClickLog();

If this is the problem, can it be worked to use your mod.

Do I have to change anything in the SSI.php file?

Thanks other than that for a great mod

Logged

When I'm right I'm right, but when I'm wrong, I really goof up
keysers0ze
Jr. Member
**
Posts: 65


I'm the Dali Llama!


WWW
Re:[Beta] View username @ View forum access log
« Reply #17 on: August 07, 2002, 12:03:19 PM »
Reply with quote

Hmm... Well it still doesn't work for me... Never mind, I'll leave it till it's not BETA... ;)
Logged

Nossie
Full Member
***
Posts: 192


If it aint broke, you haven't played with it enuff


WWW
Re:[Beta] View username @ View forum access log
« Reply #18 on: August 07, 2002, 12:57:49 PM »
Reply with quote

yeah the guests issue was the first thing I checked...

no problems there  ;D
Logged

Tha Master
Full Member
***
Posts: 201


GN GKL!R, !K BN H!R


WWW
Re:[Beta] View username @ View forum access log
« Reply #19 on: August 07, 2002, 02:44:35 PM »
Reply with quote

can you please make all of this in one mod,

thx
Logged

Last Edit: Next Week at 23:59:59 pm by Tha Master
_________________________________________________________________________________________________________
tha master was here ;)
http://www.forumekes.tk
sylvester
YaBB God
*****
Posts: 525



Re:[Beta] View username @ View forum access log
« Reply #20 on: August 07, 2002, 04:16:58 PM »
Reply with quote


can you please make all of this in one mod,

thx

It is one mod ;) ::)
Logged

I'm back
Tha Master
Full Member
***
Posts: 201


GN GKL!R, !K BN H!R


WWW
Re:[Beta] View username @ View forum access log
« Reply #21 on: August 08, 2002, 04:15:24 AM »
Reply with quote

yeah, but i mean all of the things you chanched later, with that index ,.......
Logged

Last Edit: Next Week at 23:59:59 pm by Tha Master
_________________________________________________________________________________________________________
tha master was here ;)
http://www.forumekes.tk
sylvester
YaBB God
*****
Posts: 525



Re:[Beta] View username @ View forum access log
« Reply #22 on: August 08, 2002, 07:54:36 AM »
Reply with quote


yeah, but i mean all of the things you chanched later, with that index ,.......

Code: [Select]
<id>
View username @ View forum access log
</id>

<version>
1
</version>

<author>
sylvester (sylvester@computerfreakz.net)
</author>

<mod info>
With this 'mod', you'll see the username AND the ip-adress instead of only the ip-adress
</mod info>

<homepage>
http://www.computerfreakz.net
</homepage>

<edit file>
Index.php
</edit file>

<search for>
/* ### Log this click ### */
ClickLog();

/* ### Load the user's cookie (or set to guest) ### */
LoadCookie();

/* ### Load user settings ### */
LoadUserSettings();
</search for>

<replace>
/* ### Load the user's cookie (or set to guest) ### */
LoadCookie();

/* ### Load user settings ### */
LoadUserSettings();

/* ### Log this click ### */
ClickLog();
</replace>

<edit file>
Sources/Admin.php
</edit file>

<search for>
function ShowClickLog (){
  global $yytitle,$txt,$color,$imagesdir,$img,$boardurl,$db_prefix;
</search for>

<add after>
  global $cgi;
</add after>

<search for>
foreach($iplist as $key=>$value)
 print "$key &nbsp;(<i>$value</i>)<BR>\n";
</search for>

<replace>
 $showrealname = 0;
/* Set $showrealname to 1 if you want to see the realname of that user, else set it to 0
Please note: if you set it to 1, it will use a lot of queries!
*/
foreach($iplist as $key=>$value) {
 list($name,$addr) = explode("|",$key);
 $clickname = ($showrealname && $name != 'Guest') ? LoadRealName($name) : $name;
 $profile = ($name == "Guest") ? $txt[28] : "<A HREF=\"$cgi;action=viewprofile;user=$name\">$clickname</A>";
 print "$addr &nbsp;(<i>$value</i>) ($profile)<br>\n";
}
</replace>

<edit file>
Sources/Subs.php
</edit file>

<search for>
function ClickLog (){
 global $HTTP_REFERER,$HTTP_USER_AGENT,$REMOTE_ADDR,$REQUEST_URI,$ClickLogTime,$db_prefix;
 $logTime = time();
 $threshold = time() - ($ClickLogTime*60);
 $request = mysql_query("INSERT INTO {$db_prefix}log_clicks (ip,logTime,agent,fromUrl,toUrl) VALUES ('$REMOTE_ADDR',$logTime,'$HTTP_USER_AGENT','$HTTP_REFERER','$REQUEST_URI')");
 $request = mysql_query("DELETE FROM {$db_prefix}log_clicks WHERE logTime<$threshold");
}
</search for>

<replace>
function ClickLog (){
 global $username,$HTTP_REFERER,$HTTP_USER_AGENT,$REMOTE_ADDR,$REQUEST_URI,$ClickLogTime,$db_prefix;
 $username = ($username == '') ? 'Guest' : $username;
 $logTime = time();
 $threshold = time() - ($ClickLogTime*60);
 $request = mysql_query("INSERT INTO {$db_prefix}log_clicks (ip,logTime,agent,fromUrl,toUrl) VALUES ('$username|$REMOTE_ADDR','$logTime','$HTTP_USER_AGENT','$HTTP_REFERER','$REQUEST_URI')");
 $request = mysql_query("DELETE FROM {$db_prefix}log_clicks WHERE logTime<$threshold");
}
</replace>

::) ::) ::) ::) ::) ::) ::) ::)
Go to my first message in this thread, and you'll get the same code ::) ::) ::) 8) :P :P
Logged

I'm back
Gus
Jr. Member
**
Posts: 56


www.armymedic.info


WWW
Re:[Beta] View username @ View forum access log
« Reply #23 on: August 12, 2002, 05:30:28 PM »
Reply with quote

Hi,

in the "View forum access log" this is what I get..

Code: [Select]
Total Clicks: 79
Total Unique Visitors: 8

213.122.117.139  (46) (Guest)
63.228.131.41  (1) (Guest)
195.93.50.167  (2) (Guest)
195.92.168.173  (18) (Guest)
195.93.49.14  (1) (Guest)
213.122.40.129  (2) (Guest)
195.93.33.14  (1) (Guest)
195.93.33.187  (8) (Guest)

But I have users logged in so these shouldn't all say "Guest".

Any clues please?


Fixed.  Thanks anyway  :P
« Last Edit: August 13, 2002, 04:54:32 AM by Gus » Logged

sensovision
Full Member
***
Posts: 100



WWW
Re:[Beta] View username @ View forum access log
« Reply #24 on: August 12, 2002, 05:54:41 PM »
Reply with quote

Hi Sylvester, and BIGGG thank you for mod :D I really miss this function, and was very happy when saw your post! Thank you once again for great job  ;)
Logged

Denis

Are you good with the graphic? check out our design logo contest!
gkorim
Noobie
*
Posts: 23



Re:[Beta] View username @ View forum access log
« Reply #25 on: November 27, 2002, 08:51:55 AM »
Reply with quote

This mod would be great but I'm no good at a lot of manual changing, is it possible to turn it into a mod file to be used with boardmod?

Logged
1979Z28
Sr. Member
****
Posts: 324



WWW
Re:[Beta] View username @ View forum access log
« Reply #26 on: November 28, 2002, 12:51:31 AM »
Reply with quote

Just highlight and copy everything in the code box, open up note/wordpad, copy it into there, and save it with a .mod extension. Simple as that ;D
Logged
sensovision
Full Member
***
Posts: 100



WWW
Re:[Beta] View username @ View forum access log
« Reply #27 on: December 28, 2002, 04:28:25 PM »
Reply with quote

anyone try this MOD on 1.5?
Logged

Denis

Are you good with the graphic? check out our design logo contest!
Egg
Full Member
***
Posts: 139


I'm a llama!


WWW
Re:[Beta] View username @ View forum access log
« Reply #28 on: January 06, 2003, 12:54:45 PM »
Reply with quote

anyone??

I'm curous as well ;D
Logged
Kryz
Noobie
*
Posts: 18


I'm a llama!


Re:[Beta] View username @ View forum access log
« Reply #29 on: January 06, 2003, 07:48:29 PM »
Reply with quote

I tried it on my 1.50 board and didnt have any luck... I dont recall any error being generated but I know it isnt working either LOL
Logged
Pages: 1 [2] 3 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  Topic: [Beta] View username @ View forum access log « previous next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.0.15 | SMF © 2017, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.131 seconds with 19 queries.