PDA

View Full Version : Forum Display Enhancements - Time travel to past discussions


fci
12-30-2006, 10:00 PM
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):
$pagenav = construct_page_nav($pagenumber, $perpage, $totalthreads, 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumid", ""

to this:
$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
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/forumdisplay.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. ;)