vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   User Away Messages (https://vborg.vbsupport.ru/showthread.php?t=67250)

Gamingforce 07-15-2004 10:00 PM

User Away Messages
 
[ Feature Description ]
This hack allows users to easily set themselves as away via the Edit Profile page. An optional away message can be added along with the away status. Away messages are viewable at the top of the user profile (by the avatar/user picture). If a post is made when a user is in away mode, the user is automatically set off away mode.

[ Hack Concept ]
Credits to bira for making the original away message hack for vBulletin 2. This is a complete remake however.

[ Future Plans ]
  • Show away status in postbit. (If you want, you can add this right now by using an xhtml conditional ($bbuserinfo[awaystatus] == 1)).
[ Example ]
http://www.gamingforce.com/forums/member.php?u=852


Enjoy! :)

Gamingforce 07-16-2004 06:41 PM

Screenshots Attached.

turbidblue 07-16-2004 07:03 PM

i have a question..

in your instrictions you say:


[FIND]-->
fetch_profilefields(0);

[REPLACE WITH]-->
fetch_profilefields(0);

// Get Since Away Info
if ($bbuserinfo[awaystatus] == 1) {
$awaysincedate = vbdate($vboptions['dateformat'], $bbuserinfo['awaysince']);
$awaysincetime = vbdate($vboptions['timeformat'], $bbuserinfo['awaysince']);
$awaysincedisplay = " <b>(Since $awaysincedate - $awaysincetime)</b>";
} else {
$awaysincedisplay = '';
}
================================================== ========
[FIND]-->
fetch_profilefields(0);
[REPLACE WITH]-->
homepage = '" . addslashes(htmlspecialchars_uni($homepage)) . "',
awaystatus = $xawaystatus,
awaymessage = '" . addslashes(htmlspecialchars_uni($xawaymessage)) . "',
awaysince = $xawaydate,



I dont have a second one of the one in yellow. the only other fetch_profilefields i can find is:

fetch_profilefields(1);

but when replacing that i get an error on my "edit profile" pages

???

Gamingforce 07-16-2004 07:26 PM

Sorry about that. Please re-download the file for updated instructions.

nexialys 07-16-2004 07:34 PM

this hack is cool... btw, would be cool to have a popup to fill, or a dropin in the navbar so we fill it the same way we use the search block...
(did i say cool!)

turbidblue 07-16-2004 10:02 PM

awesome! worked like a charm!!

thanks so much!

[high]* turbidblue clicks install ;)[/high]

Koutaru 07-17-2004 03:20 AM

Excellent hack, my users were requesting this one a couple days ago ^^

turbidblue 07-17-2004 03:29 AM

i have a question.

how do i get it to show in postbit? i am still sorta a newbie when it comes to all this :)


thanks :)

MrNase 07-17-2004 05:20 AM

wow!!! Getting to work my second vBulletin today and that is one of the hacks i'll definatly gonna install :)

ChuanSE 07-17-2004 05:32 AM

[high]* ChuanSE just wanted to state that the nice girl in the screenshot profile is really really really good looking :o Hi to you if you are Gamingforce on this board :D[/high]


All times are GMT. The time now is 11:21 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.01083 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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