Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
TECK's archive + who's online Details »»
TECK's archive + who's online
Version: , by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-16-2003 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-16-2003, 06:14 PM
Chris Gwynne's Avatar
Chris Gwynne Chris Gwynne is offline
 
Join Date: Jan 2003
Posts: 316
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 07-17-2003, 10:27 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nah that won't work

- miSt
Reply With Quote
  #4  
Old 07-17-2003, 11:17 AM
Craigr's Avatar
Craigr Craigr is offline
 
Join Date: May 2002
Location: Ayr, Scotland
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 07-21-2003, 06:50 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 07-21-2003, 12:46 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem is that the locations are board/showthread/ and board/forumdisplay

- miSt
Reply With Quote
  #7  
Old 07-21-2003, 01:20 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 07-21-2003, 02:19 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 07-21-2003, 02:43 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well i worked it out. After scouring through TECK's thread there was a solution - its all working now - thanks though

- miSt
Reply With Quote
  #10  
Old 08-19-2003, 06:55 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a fix for this in the vb.org archive thread.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04404 seconds
  • Memory Usage 2,294KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete