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
  #212  
Old 04-22-2002, 06:29 PM
jjj0923's Avatar
jjj0923 jjj0923 is offline
 
Join Date: Mar 2002
Location: Maryland
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm moving this one back to the top. I spend a number of hours this weekend onyl to come up empty handed. I REALLY want to show the date of return on the thread screen (showthread.php). I have code that retrieve the date of return and will display it properly via an echo from index.php or functions.php and place the date of return in a variable called $returningdate but I'll be darned if I can get it to show up in the left <td> of the postings screen. Will somebody please help me out?

thanks

- jeff
Reply With Quote
  #213  
Old 04-24-2002, 09:17 AM
tkeil69575 tkeil69575 is offline
 
Join Date: Nov 2001
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi bira - nice hack, got it working perfectly for 2.2.5. Just, had an Idea. Wouldnt it be nice if the admin got a mail saying that a user has switched his/her status to "away". Any ideas on how I could implement that?

regards Tina
Reply With Quote
  #214  
Old 04-24-2002, 11:58 AM
rascal rascal is offline
 
Join Date: Feb 2002
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got this error

Parse error: parse error in www\member.php on line 1390

Anyone can assist?

Attached is the file.
Reply With Quote
  #215  
Old 04-24-2002, 02:50 PM
jjj0923's Avatar
jjj0923 jjj0923 is offline
 
Join Date: Mar 2002
Location: Maryland
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

rascal - your problem is that you were supposed to replace lines 1390- 1392 with the new code and you inserted the new code instead.

delete lines 1390-1392 and it will work (assuming you did not make any other mistakes installing this hack code).
Reply With Quote
  #216  
Old 04-24-2002, 05:29 PM
rascal rascal is offline
 
Join Date: Feb 2002
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it.
Thanks jj!
Reply With Quote
  #217  
Old 04-26-2002, 07:25 PM
tanster's Avatar
tanster tanster is offline
 
Join Date: Feb 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I'm not sure when this started happening, but one of my users found this problem recently -- the 'return date' is one day behind.

1. Go to 'Edit Profile' and choose that I'm away, enter a reason, and choose the 'return date' to be 6/21/02.
2. Save the changes.
3. If I then display my profile, it shows all the 'away' information correctly except the return date, which appears as 6/20/02.

Do you have any ideas on how to troubleshoot this? Should I uninstall and reinstall?

Thanks for any insight you can provide!

Jennie
Reply With Quote
  #218  
Old 04-27-2002, 05:06 PM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack - I installed it! I am getting a parse error in line 1496, member.php. Hope someone can help. Most likely its a minor thing I do not see myself!
I am on 2.2.5.. I have read the thread here and checked off the error for 2.2.5 and the other errors (they were fixed already in my download), included the comma etc. I can access everything in the Admin Panel, but when I enter usercp and click on change profile or change option... that parse error shows in the member.php.

I have attached the file - some of it. Anyone have an idea....

Thanks!!

ps. in the PHP Editor I get this error message:

Parse error: parse error, unexpected $ in A:\member on line 1496
Reply With Quote
  #219  
Old 04-28-2002, 11:09 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

jjj0293,

The hack I got says that you are supposed to INSERT the code above that point, not replace it. I had the same problem and I just moved the following code above the hack and it took care of the parse error.

else {
$referrals = '';
}

That won't mess anything up will it? I can't see how the referrals would work without it.
Reply With Quote
  #220  
Old 04-29-2002, 10:08 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this hack and it is working fine now except that it shows 1 day off in the profile for what was picked in the options. Also, you can pick Feb 31 which will take it to mar 3 in the display.
Reply With Quote
  #221  
Old 05-04-2002, 11:58 AM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please help someone...

I get a parse error message "unexpected $" in my member.php (when running it in the PHP Editor). In the browser it just says.. parse error. In the last line... no where near the installed code. Everything worked ok before this.
I am on 2.2.5... and I did see the error in the install for that.

Did anyone else get this message? No new members here until this is fixed....
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:01 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.08800 seconds
  • Memory Usage 2,305KB
  • 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