Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #172  
Old 02-02-2002, 12:42 AM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Database error in vBulletin 2.2.2:

Invalid SQL: UPDATE user SET birthday='1979-6-21',signature='Tim Wheatley,
Racesim Central Administrator,
Experienced Finest Cider Taster.
\"<a href=\"http://forum.racesimcentral.com/showthread.php?s=&threadid=13465\">Oh the gingerbread men are comming for me take me away mother. lock me in the basement and feed me pins.</a>\" - Guvnor, 22.JAN.02<br>',customtitle='0',usertitle='Administ rator',email='tim.wheatley1@ntlworld.com',parentem ail='',coppauser='0',homepage='http://forum.racesimcentral.com/showthread.php?s=&amp;threadid=15014',icq='1087280 3',aim='',yahoo='',usergroupid='6' ,away='0',awaydate='',returndate='',awayreason='' WHERE userid='2',country='England' WHERE userid='2'
mysql error: You have an error in your SQL syntax near 'country='England' WHERE userid='2'' at line 1

mysql error number: 1064

Date: Saturday 02nd of February 2002 03:42:33 AM
Script: http://forum.racesimcentral.com/member.php
Referer: http://forum.racesimcentral.com/memb...on=editprofile



Any ideas?
Reply With Quote
  #173  
Old 02-02-2002, 12:45 AM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Obviously it's this line, and it's this hack and the 'country' hack conflicting, but I have NO idea how I need to put them to have them both functioning... anyone?

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='$customtitle',usertitle='".addslashes($cu stomtext)."',email='".addslash es(htmlspecialchars($email))."',parentemail='".add slashes(htmlspecialchars($pare ntemail))."',coppauser='$coppauser',homepage='".ad dslashes(htmlspecialchars($hom epage))."',icq='".addslashes(htmlspecialchars($icq ))."',aim='".addslashes(htmlsp ecialchars($aim))."',yahoo='".addslashes(htmlspeci alchars($yahoo))."',usergroupi d='$bbuserinfo[usergroupid]' $awaysql WHERE userid='$bbuserinfo[userid]',country='".addslashes($country)."' WHERE userid='$bbuserinfo[userid]'");
Reply With Quote
  #174  
Old 02-02-2002, 05:15 AM
pestilence pestilence is offline
 
Join Date: Nov 2001
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack bira so usefull to my forums since they are for a gaming clan..thanx
Reply With Quote
  #175  
Old 02-03-2002, 01:16 PM
PhotoGenie PhotoGenie is offline
 
Join Date: Jan 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Tim Wheatley
Database error in vBulletin 2.2.2:

Invalid SQL: UPDATE user SET birthday='1979-6-21',signature='Tim Wheatley,
Racesim Central Administrator,
Experienced Finest Cider Taster.
\"<a href=\"http://forum.racesimcentral.com/showthread.php?s=&threadid=13465\">Oh the gingerbread men are comming for me take me away mother. lock me in the basement and feed me pins.</a>\" - Guvnor, 22.JAN.02<br>',customtitle='0',usertitle='Administ rator',email='tim.wheatley1@ntlworld.com',parentem ail='',coppauser='0',homepage='http://forum.racesimcentral.com/showthread.php?s=&amp;threadid=15014',icq='1087280 3',aim='',yahoo='',usergroupid='6' ,away='0',awaydate='',returndate='',awayreason='' WHERE userid='2',country='England' WHERE userid='2'
mysql error: You have an error in your SQL syntax near 'country='England' WHERE userid='2'' at line 1


mysql error number: 1064

Date: Saturday 02nd of February 2002 03:42:33 AM
Script: http://forum.racesimcentral.com/member.php
Referer: http://forum.racesimcentral.com/memb...on=editprofile



Any ideas?
Reply With Quote
  #176  
Old 02-05-2002, 04:09 AM
Lucky Lucky is offline
 
Join Date: Dec 2001
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works awesome with 2.2.2
Reply With Quote
  #177  
Old 02-05-2002, 10:34 AM
KISS's Avatar
KISS KISS is offline
 
Join Date: Jan 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just Installed the Hack. And It seems all worked fine, except for the fact that for some reason in posts where it should show the Pic if member is away it shows nothing.

I checked every thing and seems everything was setup right. The rest of it works fine, can set away in UserCP and it sets and if PM is sent it sends the auto reply. So it seems everything else is working.

Just nothing shows under the Avatars in posts..... Any clues?

Thanks though
Reply With Quote
  #178  
Old 02-05-2002, 01:43 PM
PhotoGenie PhotoGenie is offline
 
Join Date: Jan 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Read back a few post about the missing coma, that will fix it for you..
Reply With Quote
  #179  
Old 02-07-2002, 05:07 PM
Wolf42's Avatar
Wolf42 Wolf42 is offline
 
Join Date: Nov 2001
Location: Vienna, Austria, Europe
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Wolf42
Thx, great hack, ...

but one question: What changes do I have to make in the "showgroups.php" to the forum-staff is away or not?
Reply With Quote
  #180  
Old 02-10-2002, 10:39 PM
PhotoGenie PhotoGenie is offline
 
Join Date: Jan 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hack.. Only problem I seem to have is everytime I go through members on the main page to edit user options I find an away since date in their options of 1969-12-31 18:00:00 .. I have no idea where its coming from but I have to remove it before I can save anything or I get errors.. Does anybody know what might be causing this.. Other than that it works perfect.. Thanks for a great hack!
Reply With Quote
  #181  
Old 02-10-2002, 10:57 PM
neal neal is offline
 
Join Date: Feb 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Getting these two errors:

Parse error: parse error in /home/teenaged/public_html/admin/functions.php on line 810

Fatal error: Call to undefined function: vbsetcookie() in /home/teenaged/public_html/admin/sessions.php on line 181
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 04:25 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.05256 seconds
  • Memory Usage 2,312KB
  • 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)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