Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-07-2000 Last Update: Never Installs: 0
 
No support by the author.

Here's a suggestion based on some assumptions...

a) vB tracks the user and knows who's online on the board (well kinda).

b) It has the ability to display who is online (like i've hacked on http://www.gandmasti.com )

Why not make it possible for anyone to click on the users name and send them a message. The next time they do any vB function the session table or another table detects that they have a IM waiting for them.. and voila .. a pop up window displays the message.

Possible I think.

Any ideas?

Shri

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-07-2000, 05:12 AM
Guest
 
Posts: n/a
Default

Private Messaging is planed for the summer release.. this shouldn't be hard to add once that's in if it's not built directly in. The other option is WWWThreads had a new message or no new messages indicator on every page...
Reply With Quote
  #3  
Old 06-07-2000, 06:14 AM
Guest
 
Posts: n/a
Default

Yeah, but i think Shri means actual <i>instant</i> messeging; i.e. a messege will pop up *right* when recieved.

Yet, the only problem with that is that PHP can't do anything real-time, if you know what i mean. Everything PHP does is sent out as HTML and HTML can't do anything like Java can with real-time stuff, thus taking away some of the instantness. But everyone hates Java (at least i do. ;P) and it's *extremely* slow.

What we would need is something that is already in the HTML code and that thing itself would modify. Anything that can be streamlined (like movies) would work. But, that's another bad idea, too. ;P

A gif that changes when a new messege appears could work, but it's still not great. Rather crappy, too.

But all of this hassle for instant messeging would bring below par product which itself is rather useless also. Why would you need *instant* and private messeging at a public messege board? It's supposed to be a place to post you thoughts publically.

Just a thought.

~Cheeze
Reply With Quote
  #4  
Old 06-07-2000, 10:34 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by shri
It has the ability to display who is online (like i've hacked on http://www.gandmasti.com )
Hi shri,

you'll share this hack?

Regards,
Stefan
Reply With Quote
  #5  
Old 06-07-2000, 11:02 AM
Guest
 
Posts: n/a
Default

Its hardly a hack I just ripped it out of index.php and it worked!

Code:
<?
        require("global.php");


  if ($displayloggedin==1) {
    $datecut=time()-$cookietimeout;
    $loggedins=$DB_site->query_first("SELECT COUNT(sessionid) AS sessions FROM session");
    $totalonline=$loggedins[sessions];
    $loggedins=$DB_site->query_first("SELECT COUNT(sessionid) AS sessions FROM session WHERE userid=0");
    $numberguest=$loggedins[sessions];
    $loggedins=$DB_site->query_first("SELECT COUNT(sessionid) AS sessions FROM session WHERE userid<>0");
    $numberregistered=$loggedins[sessions];

    $numbervisible=0;
    $loggedins=$DB_site->query("SELECT DISTINCT user.userid,username,location FROM user,session WHERE session.userid=user.userid AND session.userid<>0 AND invisible=0 ORDER BY username");
    if ($loggedin=$DB_site->fetch_array($loggedins)) {
      $numbervisible++;
      $userid=$loggedin[userid];
      $username=$loggedin[username];
      $location=$loggedin[location];

      eval("\$activeusers .= \"".gettemplate("loggedinuser")."\";");

      while ($loggedin=$DB_site->fetch_array($loggedins)) {
        $numbervisible++;
        $userid=$loggedin[userid];
        $username=$loggedin[username];
        $location=$loggedin[location];
        eval("\$activeusers .= \", ".gettemplate("loggedinuser")."\";");
      }
    }
    $numberinvisible=$numberregistered-$numbervisible;
    eval("\$loggedinusers = \"".gettemplate("loggedinusers")."\";");
  }

        echo $loggedinusers;
?>
Reply With Quote
  #6  
Old 06-07-2000, 11:04 AM
Guest
 
Posts: n/a
Default

Cheeze,

Why? Well, why not... after all we all try to make the site sticky ... a lot of the members atleast on my site do not leave their e-mail address open for viewing.

Not a perfect solution .. and it might get annoying also let me think about this!

Shri
Reply With Quote
  #7  
Old 06-10-2000, 09:52 PM
Guest
 
Posts: n/a
Default

Server push..but then it would need to be an option, because that would be so resource-eating..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04127 seconds
  • Memory Usage 2,240KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete