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 |
#172
|
||||
|
||||
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=&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? |
#173
|
||||
|
||||
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]'"); |
#174
|
|||
|
|||
Great hack bira so usefull to my forums since they are for a gaming clan..thanx
|
#175
|
|||
|
|||
[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=&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? |
#176
|
|||
|
|||
Works awesome with 2.2.2
|
#177
|
||||
|
||||
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 |
#178
|
|||
|
|||
Read back a few post about the missing coma, that will fix it for you..
|
#179
|
||||
|
||||
[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? |
#180
|
|||
|
|||
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!
|
#181
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|