vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=75909

Who's online on top of forumhome and forumdisplay
by ericgtr
07 Feb 2005 16:43

This was requested here http://www.vbulletin.org/forum/showthread.php?t=75809

What it does:
Moves the What's going on box from the bottom to the top on the index page. It also duplicates the Who's online portion and places it at the top of the forumdisplay.

In this template we are simply re-arranging the code to move it from the bottom to the top.

In the FORUMHOME template find everything between these two statements:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Cut the above and past it just below this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

==========================================================
==========================================================

In your forumdisplay template find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add this just below:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

==========================================================
==========================================================

In your forumdisplay.php find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add this just above:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That's it! :)

Tekton 07 Feb 2005 18:30

Isn't this just sorta a template edit and not really anything to beta?

AN-net 07 Feb 2005 18:40

this is really already possible for forumdisplay by visting index.php?f=xx

ericgtr 07 Feb 2005 19:32

If you guys have an easier way, please post it I am sure the person who requested it would appreciate it. :)

@Tekton, 2 templates and 1 file

PamelaE 07 Feb 2005 21:10

That worked great. Thanks. :)

dndog 08 Feb 2005 05:21

This is just simple template work...hmm...

Lt. Dan 08 Feb 2005 09:46

I did the first part - modifying the template - and it seemed to work fine.

What does editing the forumdisplay.php file do?

ericgtr 08 Feb 2005 13:22

It places who's online (for the entire site) at the top of the forumdisplay.

ericgtr 08 Feb 2005 13:44

Quote:

Originally Posted by dndog
This is just simple template work...hmm...

2 Templates
1 File


All I did with this (obviously) is moved the what's going on box in the forumhome template from the bottom to the top.

Then I directly copied the code from index.php, renamed a few variables with a '1' at the end and added it to the forumdisplay.php file, adding the same functionality. I thought it might be useful to others so I posted it up as a mod, I don't get why this is questioned? Am I cheating somewhere?

Lt. Dan 10 Feb 2005 09:48

OK, I installed this and it works great BUT... Now the 'Most users ever online was...' no longer shows the single highest amount of users, but rather shows the current number of users and the current time.

How do I fix this?

For instance, I am currently the only person on my forum and this is what is displayed:

Most users ever online was 1, Today at 04:37 AM.

Before this hack it used to say 267 on (whatever the date was)

Any ideas?

Second problem...

The What's going on table only shows up on the Forum Home, not in the individual forums...

I'm using 3.0.6


All times are GMT. The time now is 11:24.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.