vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Time travel to past discussions (https://vborg.vbsupport.ru/showthread.php?t=135202)

fci 12-30-2006 10:00 PM

Time travel to past discussions
 
To see a live demo of this, go here and scroll to the bottom:
http://intpcentral.com/forums/forumdisplay.php?f=7

-------------

Description in a nutshell:
Filtering the existing threads by a specific date to give the illusion that you are going back in time.

-------------

Install instructions

1. Download product-timetravel.xml

2. Import product-timetravel.xml into your forum

3. Edit forumdisplay.php

The purpose of this is to make sure the timetravel GET variable is passed around when clicking on different page numbers.

At around line 933 of forumdisplay.php change this (or do a search for $pagenav to find it):
Code:

$pagenav = construct_page_nav($pagenumber, $perpage, $totalthreads, 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumid", ""
to this:
Code:

$pagenav = construct_page_nav($pagenumber, $perpage, $totalthreads, 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumid$hook_pagenav", ""

4. Go to vBulletin Options -> Time Travel Settings

5. Adjust the settings to suit your forum

6. Test the mod on your forum

7. Report back here with any comments/feedback

8. Finished

-------------

changelog:
0.1
- initial release

0.1.1
- bug fix

0.2
- filter out stickies
- use vBulletin Options area to enable/disable mod, set start month, choice between filtering by last post or thread creation date, set default to filter by last post

-------------

UltimateOreo! 12-31-2006 06:16 PM

This is VERY cool, the vbulletin staff should actually consider this instead of their archive. By the way, if you are getting a syntax error, just click the overwrite button, it worked for me.

fci 12-31-2006 06:28 PM

an XML syntax error? Does anyone else have this problem?

edit: I just did an export and re-upped it, if anyone else has issues let me know

tonyph33r 12-31-2006 06:39 PM

thank you

fci 12-31-2006 08:58 PM

I accidentally uploaded a version that hadn't been fully tested when I re-upped earlier but it is corrected now.

Ntfu2 01-01-2007 04:05 AM

I dont understand?

fci 01-01-2007 03:51 PM

Ntfu2, here is what it is in a nutshell:
Filtering the existing threads by a specific date to give the illusion that you are going back in time.

DannyMilner 01-01-2007 03:57 PM

Thats a very cool idea! Very nice work

Paul M 01-01-2007 04:23 PM

Is the demo on your site broken ? I just set it to June 2005 and all the last post information still seemed to be for 2006 and the "Random Thread Generator" was still listed first (or maybe it doesn't work for guests ?)

fci 01-01-2007 07:06 PM

Quote:

Originally Posted by Paul M (Post 1148575)
Is the demo on your site broken ? I just set it to June 2005 and all the last post information still seemed to be for 2006 and the "Random Thread Generator" was still listed first (or maybe it doesn't work for guests ?)

mmm, I don't have it filtering the stickies. That should be relatively easy to fix (assuming there's hooks for it..).

To prevent some confusion, it filters by thread creation date not last post date which can make it appear that isn't actually filtering properly when looking at the last post date it displays.
At the demo I linked, there are a lot of old threads that appeared to have been bumped in 2006.

A better demo link would be this page which doesn't have several bumped old threads:
http://intpcentral.com/forums/forumd....php?forumid=7

Ntfu2 01-01-2007 10:06 PM

either your dates are messed up, or it simply doesnt work.

You pick.

fci 01-01-2007 10:41 PM

Ntfu2, install the new version which is more feature complete. It also defaults to a more 'time traveler' friendly version and uses the last reply date instead of thread creation date. Let me know if you have any more issues, thanks.

Smoothie 01-01-2007 11:00 PM

I just went to the site and checked it out and it seems to work fine.

Barakat 01-03-2007 01:08 AM

works good install.

Hornstar 01-04-2007 01:22 AM

I didnt see what i was meant to be looking for at first, but now I do, and it works good. Nice work.

AyeCapn 01-12-2007 05:39 PM

Now THAT is cool...

Just not sure if I need it on my site :)

keth 03-08-2007 01:33 PM

Unfortunately, it doesn't work if you try to navigate through the forum pages, i.e. if you click on page 2, you'll return to the present. ;)


All times are GMT. The time now is 08:16 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.01176 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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