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)

Wayne Luke 12-28-2001 10:00 PM

vBulletin Taskbar Ticker.

This is based on a hack at www.theforumz.com and written by Gutspiller. It is reposted here for the benefit of all licensed vBulletin Owners and their communities.

This add-on allows your users to see your most up-to-date topics in their Windows Taskbar (sorry Mac and Linux users). It has a scrolling display using the Marquee Tag. You can change the HTML to present anything you want really though.

Here are the features:
  1. It now uses Global.php to connect to the database.
  2. It now uses vBulletins database class to perform database operations.
  3. It will show the latest topics to the user based on their vBulletin usergroup and the appropriate permissions. This allows you to hide private forums still.
  4. All forum url's and titles are now pulled from the vBulletin Options.
  5. All query and variable names fit in with vBulletin's naming scheme better.
  6. All links reuse the same window.

One thing I haven't done yet is convert the whole thing to use templates though if I get the time I will do that because I hate having HTML in the code.

Installation
  • Edit ticker2.php and change the Title tag to represent what you want it to say.
  • Upload ticker.php to your website.
End User Installation
To install the ticker on your Windows 98 or higher computer (also works on Windows 95 with IE5+ installed) follow these instructions.
  1. Right-click on your Taskbar and go to toolbars->new toolbar
  2. Type "http://www.domain.com/forums/ticker2.php" without the quotes in the location box
  3. Click OK
Make sure to change the domain so that it points to the proper location for them.

There is no support for this outside this thread but all you should have to do is upload it and create a new toolbar. It works on my machine and no there isn't a public demo yet. Anyway, Enjoy it.

Bane 12-28-2001 11:59 PM

Well done Bro :) Made some changes to the width and took off the username/replies and it fits right nice :)

Scrooge 12-29-2001 12:04 AM

Great idea, but I can't get mine to work correctly. It works when I load it in the browser, but doesn't work on the toolbar. On the toolbar the title shows up but nothing ever changes. Using Windows XP, any ideas?

Wayne Luke 12-29-2001 12:11 AM

Quote:

Originally posted by Scrooge
Great idea, but I can't get mine to work correctly. It works when I load it in the browser, but doesn't work on the toolbar. On the toolbar the title shows up but nothing ever changes. Using Windows XP, any ideas?
Right Click on your Windows Task Bar (by the Start Button) and follow the End-User installation instructions above.

atrl 12-29-2001 12:42 AM

Does this use a lot of bandwidth?

GameZilla 12-29-2001 12:57 AM

hmm this is great but it would be sweet if someone could make something like this except it would be a ticker program. It gets installed when u sign yup for the forums.

Scrooge 12-29-2001 01:52 AM

Quote:

Originally posted by wluke


Right Click on your Windows Task Bar (by the Start Button) and follow the End-User installation instructions above.

I'm slow but not that slow :) I did that part already.

While typing this I figured out my mistake. I had to "unlock" the toolbar and then resize it so that the display comes up. Anyone who gives this to your users might want to mention that to them too or they might assume it doesn't work and just turn it off.

Bane 12-29-2001 02:34 AM

Scrooge..

Rightclick your taskbar.
Make sure the Lock the Taskbar is unchecked.
Right Click the title.
Make sure that Show Title is unchecked.
Relock taskbar.

Alternatively you can drag the window open further and it will display both.

TaP 12-29-2001 02:44 AM

Does this mess up the cookies when a user visits the board? Like, say I viewed a topic in the toolbar ticker, then go to the board, does it say that that topic is new?

Scrooge 12-29-2001 02:54 AM

Thanks, taking off "show title" helped a lot. Now, how do I remove the poster and number of replies as someone mentioned above? With those included it takes up half of my taskbar to have it all displayed, and if you don't display it all the annoying scroll bar appears at the bottom and gets in the way.

Streicher 12-29-2001 07:30 AM

Hmm, i have logged in with my testuser and the posts in the private forums are still present.

Streicher 12-29-2001 08:20 AM

A small modificatons to link direct to the first unread post

Find:

$bburl/showthread.php?s=&threadid

Chance to:

$bburl/showthread.php?s=&goto=newpost&threadid

A second modification i have made is to save the same file under a new name (ticker.php) and upload it, too.

Before uploading find in both files ticker.php and ticker2.php:

ticker.php?off=true" target=_self>

and change it to:

ticker2.php?off=true" target=_self>

Remove in ticker2.php:

<meta http-equiv="Refresh" content="180">

Then the page is not reloaded, until the user reactivate the ticker. And the user also disappears from "Who is online" after the cookie timeout.

ptbyjason 12-29-2001 12:14 PM

I uploaded an on and off image and put it in my folders, but they won't show up. Vbulletin's ticker's images won't show up either. Does anyone know why?

I really wish there was a way to put this in the IE progress bar at the bottom of the browser. I don't think that is possible, but that would be great. ;)

Streicher 12-29-2001 12:19 PM

You have to edit the path for the images:

Try http://www.domain.com/forum/images/on.gif

instead of: images/on.gif

ptbyjason 12-29-2001 01:01 PM

Worked great. Thanks man.

andrew67 12-29-2001 01:37 PM

It seems you need right click and hit refresh for it to update.. Is this correct?? otherwise its just the same 10 threads over & over again.. Is there a way to make it auto refresh??

ptbyjason 12-29-2001 01:41 PM

I might be wrong, but I think it refreshes every 3 minutes.

Does anyone know if it will work on Windows NT? I have a member who cannot get it to work. They said there is no place to select "Toolbars" when they right click.

wot-Mike 12-29-2001 02:23 PM

About the images, in ticker.php the path is set to "/images", which is wrong if your images folder is a subdir of your forumdir. It should be just "images", without the slash thing in front of it.

And it works in Windows 2000. It might not work with an older browser version

ptbyjason 12-29-2001 02:33 PM

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.

CB_Tommy 12-29-2001 04:36 PM

I think the hack is really usefull, but whats about

  • a way to change the mode for e.g. the desktop or the taskbar (mode=taskbar or mode=desktop)
  • a possibility to send the ticker into standby, because there isn't allways the need, that the ticker is runing
  • a way so that the user can change the text size (on high resulutions 8pt is somewhat small)

Just my ideas :)

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?

FWC 01-04-2002 05:49 AM

Quote:

Originally posted by voogru
where do i get ticker.php?
It's attached to the first post in this thread.

voogru 01-04-2002 06:03 AM

No, thats ticker2.php. do i just copy ticker2.php and rename it to ticker.php?

Quote:

Attachment: ticker2.php

FWC 01-04-2002 06:17 AM

I believe that's a typo. You only need the one file. You can call it ticker or ticker2. You just need to use the right name when you install it on your desktop.

atrl 01-04-2002 07:35 PM

Is there anyway I can only have the users I want to access it? Like Certain Usergroups or something?

tester2 01-05-2002 02:21 AM

First, I'd like to say great hack! I installed it earlier this week, and my users really like it. It works great! I changed some of the parameters to customize it based on the feedback I've received from some folks.

One thing I haven't been able to figure out:

How can I get rid of the vertical scroll bar on the right side of the ticker? I put a border around the marquee box (so that I could see how large it was and adjusted the height of the marquee box, but its still there. My taskbar is set at double height. If I increase the size of the taskbar, the scroll bar becomes grayed out, but its still there. Is there another bit of code I can add to ticker.php to remove the scroll bar (i.e. a no scroll tag)?

Thanks in advance for your help! :)

Gutspiller 01-05-2002 07:39 PM

Hey look what I found. Good job luke I am going to install this thing today. BTW thanks for the pimp. :D

Who said wluke wasn't an awesome hacker? ;) :D

StarBuG 01-15-2002 10:59 AM

Works great with some design modifications! THX!!

Ticker rewritten!
The scrolling is now one line moves from right to left!
This Version needs much less space in your taskbar!

Hope you enjoy it ;)

Greetings

StarBuG

danielillo 01-25-2002 07:04 AM

Please, any screenshot?

Thanks.

Logtenberg 01-28-2002 07:18 AM

Thanks for this hack!

Here's a suggestion I think everyone will love:

When the ticker is clicked off, how about having a private message notification feature?

This page can refresh every 10 minutes or so and notify the user when he/she has received a new private message. When the user clicks on the new private message link they are taken to the private message, or log-in page or whatever.


Has some potential don't you think? :p

Gutspiller 01-28-2002 04:11 PM

Quote:

Originally posted by Logtenberg
Thanks for this hack!

Here's a suggestion I think everyone will love:

When the ticker is clicked off, how about having a private message notification feature?

This page can refresh every 10 minutes or so and notify the user when he/she has received a new private message. When the user clicks on the new private message link they are taken to the private message, or log-in page or whatever.


Has some potential don't you think? :p

I updated my version, with my own thinking.

http://www.theforumz.com/forumz/show...&threadid=3532

Somebody may want to improve their hack. Mine uses a latest threads hack by TubeDogg and it even works on active desktop too. :p


All times are GMT. The time now is 04:47 PM.

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.01389 seconds
  • Memory Usage 1,831KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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