Welcome, Guest. Please Login or Register.
March 28, 2024, 12:44:17 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [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 16030 times)
sylvester
YaBB God
*****
Posts: 525


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

Quote from: keysers0ze on August 07, 2002, 01:24:57 PMI'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, 01:27:24 PM 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, 03:44:31 PM »
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!

ICQ - 159547275 WWW
Re:[Beta] View username @ View forum access log
« Reply #17 on: August 07, 2002, 05: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

ICQ - 18967293IanHarvie@Hotmail.com WWW
Re:[Beta] View username @ View forum access log
« Reply #18 on: August 07, 2002, 05: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


G€€N G€KL!€R, !K B€N H!€R

vermeulen_yves@hotmail.com WWW
Re:[Beta] View username @ View forum access log
« Reply #19 on: August 07, 2002, 07: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, 09:16:58 PM »
Reply with quote

Quote from: Tha Master on August 07, 2002, 07:44:35 PMcan you please make all of this in one mod,

thx
It is one mod ;) ::)
Logged

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


G€€N G€KL!€R, !K B€N H!€R

vermeulen_yves@hotmail.com WWW
Re:[Beta] View username @ View forum access log
« Reply #21 on: August 08, 2002, 09: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, 12:54:36 PM »
Reply with quote

Quote from: Tha Master on August 08, 2002, 09:15:24 AMyeah, but i mean all of the things you chanched later, with that index ,.......
<id>
View username @ View forum access log
</id>

<version>
1
</version>

<author>
sylvester ([email protected])
</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, 10:30:28 PM »
Reply with quote

Hi,

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

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, 09: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, 10: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, 01:51:55 PM »
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, 05: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, 09: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, 05: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 07, 2003, 12:48:29 AM »
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  |  [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.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.027 seconds with 19 queries.