Author |
Topic  |
kolucoms6
Average Member
  
845 Posts |
|
muzishun
Senior Member
   
United States
1079 Posts |
Posted - 03 June 2007 : 23:19:21
|
I suppose it could. It would probably require either another db hit per user or another field storing the forum ID of where a user was (in addition to which topic). The latter would probably be more efficient. Give me a little while, and I'll see if I can write up another add-on to do this. |
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
 |
|
muzishun
Senior Member
   
United States
1079 Posts |
Posted - 04 June 2007 : 00:18:47
|
Ok. I've got that working now. As before, this is tested on MySQL/3.4.06/Active Users 4.0 MOD. I can't guarantee that other configurations will work, but I'll assume they will.
First things first, you need to add a field to the database. Go to the alternative MOD setup (you can only do this as the superadmin) and run the following:
Next, in inc_func_common.asp, replace the current ActiveUserTracker() sub with this one:
Last, in default.asp, around lines 505-518 add the code in red:
|
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
 |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 04 June 2007 : 17:45:19
|
Error I got :
Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.
/forum/inc_func_common.asp, line 106
|
 |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 04 June 2007 : 18:01:56
|
Error : **************************
Line 106:
my_conn.execute (strSql)
UPDATE FORUM_ACTIVE_USERS SET AU_LASTACTIVETIME='20070605015257', AU_LASTPAGE='default.asp', AU_QUERYSTRING=' ' , AU_FORUM_ID=' ' WHERE MEMBER_ID = 1
Here is the forum:
http://www.ulcindia.com/forum
|
Edited by - kolucoms6 on 04 June 2007 18:03:20 |
 |
|
muzishun
Senior Member
   
United States
1079 Posts |
Posted - 05 June 2007 : 18:43:02
|
Hmmm... could you post link to a text copy of your default.asp and inc_func_common.asp pages? It sounds like the db field either didn't get created correctly, or there's something wrong with the function. If possible, I'd also like to see what your old inc_func_common.asp looked like, in case there were any changes to yours that I didn't have in mine. |
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
 |
|
Topic  |
|
|
|