vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBulletin Taskbar Ticker (https://vborg.vbsupport.ru/showthread.php?t=33590)

Mystics 12-29-2001 07:19 PM

Quote:

Originally posted by ptbyjason
If you view Who's Online it messes up the location of the user. Does anyone know a way to prevent the Who's Online to appear normal. I've attached the image of me using the ticker and viewing the Who's Online.
If you want to remove showing the Ticker in "Who-is-online" completely, do this:

Open ticker2.php:

Search for
Code:

error_reporting(7);
and add BELOW it
Code:

$tickerstart=1;
Open sessions.php:

Search for
Code:

if ($templateversion > '2.0.1') { // Use location!
and replace it with
Code:

if ($templateversion > '2.0.1' AND $tickerstart==0) { // Use location!
Then upload both files.

[hr=[high]][/hr]

If you just want to show the correct location, do this:

Open online.php

Find this
Code:

  default:
    $userinfo[activity] = 'unknown';
  }

BEFORE that, add this:
Code:

  case 'ticker2.php':
    $userinfo[activity] = 'ticker';
    break;

Then find this:
Code:

    default:
      // Let's show the admin the location but put something false up for everyone else..
      if ($bbuserinfo[usergroupid] == 6) {
        $userinfo[location] = htmlspecialchars(stripslashes(replacesession($userinfo[location])));
        $userinfo[where] = "<b>Unknown Location:</b> <a href=\"$userinfo[location]\">$userinfo[location]</a>";
      } else {
        // We were unable to parse the location
        $userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";;
      }

BEFORE that, add this:
Code:

    case 'ticker':
      $userinfo[where] = "Watching the <a href='ticker2.php?s=$session[sessionhash]'>Ticker</a>";
      break;

Greetingz,
Mystics

andrew67 12-29-2001 08:45 PM

Quote:

Originally posted by ptbyjason
If you view Who's Online it messes up the location of the user. Does anyone know a way to prevent the Who's Online to appear normal. I've attached the image of me using the ticker and viewing the Who's Online.
I belive only Admin will see that message, everyone else see's the location as the user is browsing main page....

Mystics 12-29-2001 08:55 PM

Quote:

Originally posted by andrew67


I belive only Admin will see that message, everyone else see's the location as the user is browsing main page....

Yeah, your are right, but nevertheless he should include my changes ('If you just want to show the correct location, do this: ')

Then the Admin and the users got the correct location shown in Who-is-online.

DarkReaper 12-29-2001 09:24 PM

Very cool. I just changed the refresh and fixed the images and it works wonderfully.

I'm concerned about what was said earlier though...if private forum posts are visible, that's not good :)

ptbyjason 12-30-2001 02:49 AM

Dark Reaper, mine only shows threads that the user has access to. If I am not logged in, I cannot see the moderator board posts. If I am logged in I can see all of the threads from all of the boards. There shouldn't be any problem with security on this.

Mystics, thank you. There is one problem with your script though. When I modify the ticker2.php and sessions.php, it still shows the same error. I modified the online.php and now it shows that the user is viewing the ticker. I don't know why it still won't show the exact location for the user. I use VB 2.03, could that have an effect on it?

andrew67, there is a very good reason why this needs to be corrected. If I am trying to track the location of a member, I need to know where they are if they have the ticker running or not. The way it is now, if someone has the ticker running, I lose the use of the Who's Online page.

Mystics and wluke, I think the modification should be added to the original hack.

LuBi 12-30-2001 03:56 PM

I once saw something similar to this used for on some SOF site with newspro. lovin it for vB :D

Wayne Luke 12-30-2001 05:08 PM

You are right.. I didn't think about Who is Online. Frankly because I don't use it because I don't need that much control over my users. They pretty much police themselves and everything stays in line.

I will work on adding the other features though as well as making it a template.

The session.php and other changes will most likely not work in versions before 2.2.0 because of changes in the code. This has not been tested on any version except 2.2.1. If you make those changes in a prior version you are on your own. Sorry.

nuke 12-31-2001 01:43 AM

Like I incorporate the Ticker on the Board on the head page: Source code favor as an example Large

Big Thx

wot-Mike 01-01-2002 01:36 PM

For those of you who have phpMyChat (integrated with the vB database!), this shows who's active in chat:

voogru 01-04-2002 05:43 AM

where do i get ticker.php?


All times are GMT. The time now is 07:59 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.01049 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
  • (8)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete