PDA

View Full Version : TECK's archive + who's online


Dean C
07-16-2003, 05:25 PM
I had a quick go at it earlier but wasn't really sure where to strart. The spiders on who's online are browsing showthread/t-1222.html etc but i want it to say "Browing a thread in the archive" instead of the unknown location stuff :)

Any ideas as i couldn't find an answer in the thread anywhere :0

- miSt

Chris Gwynne
07-16-2003, 06:14 PM
Just a guess, haven't installed the archive hack...

When you installed the archive hack you probably added the location to the online.php file. Most likely some variable to say which thread it was browsing.

Change that to "Browing a thread in the archive".

Or I could be way off, worth a try though :p

Dean C
07-17-2003, 10:27 AM
Nah that won't work :)

- miSt

Craigr
07-17-2003, 11:17 AM
When using vb2 i did not have any success with this either. :( I used Chen's custom online locations, but for a large number of threads you will have a lot of work.

Craig

noppid
07-21-2003, 06:50 AM
We use Skuzzy's hack, but maybe this will help...

Looking at this on our forum we found that when a user is at the archives main page, online.php reports the user as being at the main index. It's at "/archives/forum" and "/archives/topic" that we get the "Unknown Location:"

Anyway we added this code to the end of the switch statements "Default:" code...


$myfind='/\/forums\/archives/';
if( preg_match($myfind,$userinfo[location])){
$userinfo[where] = "Browsing the <A href=\"http://www.lakecs.com/forums/archives/\">Archives</A>";
}


If a user is in the archives it displays "Browsing the Archives" with a link. Hope it helps ya.

Dean C
07-21-2003, 12:46 PM
The problem is that the locations are board/showthread/ and board/forumdisplay :(

- miSt

NTLDR
07-21-2003, 01:20 PM
Look at the functions_online.php for vB3, they use a smiliar format URL to TECKs. This should give you some idea to find out how to work out what page there on, I'm pretty sure vB3 shows what archive thread/forum a user is viewing.

Personaly I preffer Skuzzys URL layout and have hacked that into vB3 with full WOL Locations :D

noppid
07-21-2003, 02:19 PM
Today at 09:46 AM Mist said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=419438#post419438)
The problem is that the locations are board/showthread/ and board/forumdisplay :(

- miSt

I took a quick look a Tecks code, I see no reason why this would not work by just changing the search string for your path.

$myfind='/\/board\/showthread/';

Am I missing another pitfall?

Dean C
07-21-2003, 02:43 PM
Well i worked it out. After scouring through TECK's thread there was a solution - its all working now - thanks though :)

- miSt

TECK
08-19-2003, 06:55 PM
There is a fix for this in the vb.org archive thread.