The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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
|
Comments |
#382
|
|||
|
|||
I've got the same problem vLIMIT.... does anyone have a fix for this? *crosses fingers*
----------------------------------------------------------------- *pops in a while later* I got a fresh copy of user.php and redid the changes on it. Works perfect. I had very little problem and I'm running 2.2.9 Great hack! |
#383
|
|||
|
|||
hi, that was a great hack and it works on my 2.2.8. *Click install*
but i have a litle problem, in my Profil, ich have a double from this but it is only one in my member.php auweia my englisch *g* // Leave Away Message in Profile (v1.2a) if ($userinfo[away]=="1") { $sincedate = vbdate($dateformat, $userinfo[awaydate]); if ($userinfo[returndate]=="0000-00-00") { $returndate = "Unknown"; } else { $returnaway = explode("-", $userinfo[returndate]); $returndate = vbdate($dateformat, mktime(0,0,0,$returnaway[1],$returnaway[2],$returnaway[0])); } eval("\$away .= \"".gettemplate("getinfo_away")."\";"); } else { $away = ""; } // Leave Away Message in Profile (v1.2a) ========================================== <tr> <td bgcolor="#F1F1F1" colspan="2" align="center"> <normalfont><b>$userinfo[username] ist nicht verf?gbar</b><normalfont> <br><smallfont><i>Grund: $userinfo[awayreason]</i></smallfont><br> <normalfont>ab: $sincedate zur?ck am: $returndate</normalfont> </td> </tr> can you help me? greetz/gr??e subu1 |
#384
|
|||
|
|||
Excuse me, but does this hack run on 2.3?
|
#385
|
||||
|
||||
I tried it on 2.3 and i get a SQL error from the user.php
Quote:
|
#386
|
||||
|
||||
Can anyone confirm this working on a copy of 2.3.0?
|
#387
|
||||
|
||||
Installed it on a testboard running v2.3.0 final - no probs.
|
#388
|
||||
|
||||
... and *that* is why the very first post of this thread points to a new version (v1.2a) that takes all these changes you mentioned into account.
https://vborg.vbsupport.ru/showthrea...606#post287606 |
#389
|
||||
|
||||
Great, I'll give it a whirl.
Any idea how many queries this hack adds by chance? |
#390
|
||||
|
||||
I installed version 1.2a on a 2.2.9 ... and it works like a charm
thanks a lot |
#391
|
||||
|
||||
Has anyone figured out a way of having this hack automatically set the user as back when their return date comes due?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|