vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   TECK's archive + who's online (https://vborg.vbsupport.ru/showthread.php?t=55333)

Dean C 07-16-2003 05:25 PM

TECK's archive + who's online
 
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...

PHP 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

Quote:

Today at 09:46 AM Mist said this in Post #6
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.


All times are GMT. The time now is 06:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01069 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete