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 |
#182
|
|||
|
|||
Thx for this hack Bira
|
#183
|
||||
|
||||
[QUOTE]Originally posted by Tim Wheatley
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)."',customtitle='$customtitl e',usertitle='".addslashes($customtext)."',email=' ".addslashes(htmlspecialchars($email))."',parentem ail='".addslashes(htmlspecialchars($parentemail)). "',coppauser='$coppauser',homepage='".addslashes(h tmlspecialchars($homepage))."',icq='".addslashes(h tmlspecialchars($icq))."',aim='".addslashes(htmlsp ecialchars($aim))."',yahoo='".addslashes(htmlspeci alchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]' $awaysql WHERE userid='$bbuserinfo[userid]',country='".addslashes($country)."' WHERE userid='$bbuserinfo[userid]'"); |
#184
|
||||
|
||||
Being new to vBulletin (just got it installed last month), I have to admit I was darn well terrified getting through that long list of manual code changes -- lol, I barely breathed until I was finished!
But your instructions were impeccable and the feature is fantastic. Thanks so much! My users are going to love this. Jennie |
#185
|
|||
|
|||
I have a Problem, using 2.2.4
In admin/user.php there is no $DB_site->query("UPDATE user SET birthday='$birthday' just a $DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupi d='$usergroupid',username='".a ddslashes(htmlspecialchars($ausername))."'$pwdincl ude,email='".addslashes(htmlsp ecialchars($email))."',styleid='$userstyleid',pare ntemail='".addslashes(htmlspec ialchars($parentemail))."',coppauser=$coppauser,ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',signature='".addslashes($signature)."',adminemai l=$adminemail,showemail=$showe mail,invisible=$invisible,usertitle='".addslashes( $usertitle)."',customtitle=$cu stomtitle,joindate=$joindate,cookieuser=$cookieuse r,nosessionhash=$nosessionhash ,daysprune='$daysprune',lastvisit=$lastvisit,lasta ctivity=$lastactivity,lastpost =$lastpost,posts='$posts',timezoneoffset='$timezon eoffset',emailnotification=$em ailnotification,receivepm='$receivepm',emailonpm=' $emailonpm',ipaddress='".addsl ashes($aipaddress)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid"); so I changed it to $DB_site->query("UPDATE user SET away='$away',awaydate=$awaydate,returndate='$retur ndate',awayreason='".addslashe s(htmlspecialchars($awayreason))."',birthday='$bir thday',options='$options',user groupid='$usergroupid',username='".addslashes(html specialchars($ausername))."'$p wdinclude,email='".addslashes(htmlspecialchars($em ail))."',styleid='$userstyleid ',parentemail='".addslashes(htmlspecialchars($pare ntemail))."',coppauser=$coppau ser,homepage='".addslashes(htmlspecialchars($homep age))."',icq='".addslashes(htm lspecialchars($icq))."',aim='".addslashes(htmlspec ialchars($aim))."',yahoo='".ad dslashes(htmlspecialchars($yahoo))."',signature='" .addslashes($signature)."',adm inemail=$adminemail,showemail=$showemail,invisible =$invisible,usertitle='".addsl ashes($usertitle)."',customtitle=$customtitle,join date=$joindate,cookieuser=$coo kieuser,nosessionhash=$nosessionhash,daysprune='$d aysprune',lastvisit=$lastvisit ,lastactivity=$lastactivity,lastpost=$lastpost,pos ts='$posts',timezoneoffset='$t imezoneoffset',emailnotification=$emailnotificatio n,receivepm='$receivepm',email onpm='$emailonpm',ipaddress='".addslashes($aipaddr ess)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid"); but the Birthday now is stuck at 01.01.1970... |
#186
|
|||
|
|||
i installed and everything appears to work fine but it won't show the away thing in the user cp under "profile"? ideas? tips? thanks
|
#187
|
|||
|
|||
any?
|
#188
|
|||
|
|||
never mind...got it nice hack
|
#189
|
||||
|
||||
I'm having a problem, I didn't install this hack, but I uploaded that file to my file manager...after I did that I can't get into my CP.
Warning: Cannot add header information - headers already sent by (output started at /home/xxxbo/public_html/admin/sessions.php:399) in /home/xxx-bo/public_html/admin/global.php on line 136 Warning: Cannot add header information - headers already sent by (output started at /home/xxx-bo/public_html/admin/sessions.php:399) in /home/xxx-bo/public_html/admin/global.php on line 162 Hang on a sec and then it brings me back to the login page... Any ideas on what's wrong?? |
#190
|
|||
|
|||
I have a Problem, using 2.2.4 also!
about 3 files did not have the code requested to be change... Can you fix, I really like to have this hack, is very interesting. members.php functions.php admin.php |
#191
|
|||
|
|||
*rolls eyes* all it takes is some common sense
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|