Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by bira bira is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-09-2001 Last Update: Never Installs: 109
 
No support by the author.

Hi,

This is something that is common in IRC - /me is away

In BBs, a user is either online or offline (or invisible).

But, on my Bulletin Board, the folks created such a community that every time someone goes on a holiday or goes offline for a while, he/she posts a new thread to annouce they're 'away.

So, I wrote a hack allowing a user to change his/her status to "away", including a return date and an away reason which will show up in their profile.

Likewise, the online/offline icon in postbit and buddy list will change to an away icon (a very faded version of the 'offline' one).

Some demo captures:

The Edit Profile screen, when a user is NOT away:



The Edit Profile screen when a user IS away:



The Get Info (User Profile) screen when a user IS away:



The Get Info (User Profile) screen when a user is NOT away:



The postbit icon when a user is away:




How to install:

Download the attached zip file. Upload away.gif to your images dir (or create your own away.gif).

Upload install_awayuser.php to your admin dir and follow the instructions.

Cheers,

Bira

newest version by sho here:
https://vborg.vbsupport.ru/showthrea...606#post287606

Show Your Support

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

Comments
  #232  
Old 05-19-2002, 02:22 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

having a problem, i got lesanes store installed and the newthread/new reply gets messed up when i replace that past, so what code would i use to use both?

sorry if this has been asked before, but 232 replies is alot


thanks
Reply With Quote
  #233  
Old 05-30-2002, 03:06 AM
Mone' Mone' is offline
 
Join Date: May 2002
Location: Australia
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack bira just installed on vb 2.2.6 and is working so well

( thx "cityofangelus" for pointing the installer mistake )
Reply With Quote
  #234  
Old 05-31-2002, 03:37 PM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by IceMalee
having a problem, i got lesanes store installed and the newthread/new reply gets messed up when i replace that past, so what code would i use to use both?

sorry if this has been asked before, but 232 replies is alot


thanks
Reply With Quote
  #235  
Old 06-01-2002, 04:12 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cannot get this to work for some reason, i click on "edit profile" and it acts like its goig to work, i see the profile, but then it jumps to a dead screen with nothing on it

anyone up late and want to help me out?

-update- on another style, it refreshes itself like every 3 secs,
Reply With Quote
  #236  
Old 06-01-2002, 06:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would you do this for a memberlist online status column?

[QUOTE]Originally posted by Wolf42


Ok, I got it for myself

Find
PHP Code:
$templatesused="postbit_online,postbit_offline,showgroups,showgroups_groups,showgroups_adminbit,postbit_sendpm,showgroups_bit,showgroups_forumbit,showgroups_forumsplit,postbit_avatar"
and replace with
PHP Code:
$templatesused="postbit_online,postbit_offline,postbit_away,showgroups,showgroups_groups,showgroups_adminbit,postbit_sendpm,showgroups_bit,showgroups_forumbit,showgroups_forumsplit,postbit_avatar"
Find
PHP Code:
if ($user['lastactivity'] > $datecut and !$user['invisible'] and $user['lastactivity'] != $user['lastvisit']) {
        eval(
"\$onlinestatus = \"".gettemplate("postbit_online")."\";");
    } else {
        eval(
"\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
    } 
an replace with
PHP Code:
if ($user[away]=="1") {
        eval(
"\$onlinestatus = \"".gettemplate("postbit_away")."\";");
        } else {
    if (
$user['lastactivity'] > $datecut and !$user['invisible'] and $user['lastactivity'] != $user['lastvisit']) {
        eval(
"\$onlinestatus = \"".gettemplate("postbit_online")."\";");
    } else {
        eval(
"\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
    }

Find
PHP Code:
// get administrators & super moderators **********************************************************
$users $DB_site->query("
    SELECT
        
$locationfieldselect usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
        user.usergroupid, user.lastactivity, user.lastvisit 
and replace with
PHP Code:
// get administrators & super moderators **********************************************************
$users $DB_site->query("
    SELECT
        
$locationfieldselect usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
        user.usergroupid, user.lastactivity, user.lastvisit,user.away 
Find
PHP Code:
// get moderators **********************************************************
$users $DB_site->query("
    SELECT
        
$fieldselect forum.forumid, forum.title AS forumtitle,
        user.username, user.userid, user.invisible, user.receivepm, user.lastactivity, user.lastvisit 
and replace with
PHP Code:
// get moderators **********************************************************
$users $DB_site->query("
    SELECT
        
$fieldselect forum.forumid, forum.title AS forumtitle,
        user.username, user.userid, user.invisible, user.receivepm, user.lastactivity, user.lastvisit,user.away 
I just added user.away twice, added postbit_away in templatesused and modified the code like the funktions.php.

It is working well on my board.
Reply With Quote
  #237  
Old 06-01-2002, 07:07 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here's how my private autoreply looks. Can someone please help me figure out why it is doing this?

Auto Reply: RE: RE: Gender
Hi Boofo,

I have been away since Today (GCSE Exams ) and will read your message when I return on Jun 18, 2002.

[size=1 ]This is an auto-reply generated by the bearfacts2.com Forum Messaging System.[/size ]

I had to add spaces just before the ] because the code wouldn't show right in here. In the message, there is no spaces before the last bracket. And also, if I try to take the space out between the awaymessage and the ) I get a parse error when I send a message. What have I got set wrong on my site that won't let the size function work in the message? The color function works fine.
Reply With Quote
  #238  
Old 06-01-2002, 07:18 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone please help me add the ability to have the away status icon show in the privmsg template? Here is the code I need to edit from the private template.

Code:
unset($onlinestatus);
	if ($post['lastactivity'] > $datecut and !$post['invisible'] and $post['lastvisit'] != $post['lastactivity']) {
	   eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";");
	} else {
	   eval("\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
	}
I want it to show in private messages like it does in the postbit.
Reply With Quote
  #239  
Old 06-01-2002, 09:43 PM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this was working fine for about a hour, i didnt do a thing, then without me doing anything stopped working again

same problem
Reply With Quote
  #240  
Old 06-02-2002, 09:54 PM
aidler aidler is offline
 
Join Date: Apr 2002
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, great hack. But why isn't there a detailed explanation what has chanced so one can do it manually. I upgraded to 2.2.6 and now I can't reintegrate the modifications for this hack into my templates because I don't know the necessary modifications. Now what??
Reply With Quote
  #241  
Old 06-03-2002, 12:08 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

u know i wanted the same thing, because i dont really like these auto installers for the simple reason of if there is a problem, it makes it hard to hunt down, so i made this, its just a txt copy of the installer

now let me be clear, all i did was copy/paste in the right spots, i didnt make this in any way, all credit goes to bira
Reply With Quote
Reply

Thread Tools

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:17 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.07808 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete