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 |
#132
|
||||
|
||||
[QUOTE]Originally posted by ptbyjason
Sure In the usercp.php I can't find ***** $sql="SELECT userid,username,invisible,lastactivity ***** Right, thats this rule on 20: $sql="SELECT DISTINCT session.lastactivity, user.userid,username,session.userid AS online,invisible,away (i have added away on the end) |
#133
|
||||
|
||||
Ok, now that was what I needed. Thank you so much Lesane. Now last question before I change this. Since I have changed the code I was looking for, do I put the code in that is says in the original install or do I need to alter it in anyway?
|
#134
|
||||
|
||||
Here are the instructions for the usercp.php code.
|
#135
|
||||
|
||||
The whole database goes down and I get the following error when I follow the instructions:
Parse error: parse error in /business/bclapp/html/vbulletin/admin/functions.php on line 2103 Fatal error: Call to undefined function: getuserinfo() in /business/bclapp/html/vbulletin/admin/sessions.php on line 327 This is the code I put in from the for functions.php PHP Code:
Lesane, I am so sorry that I haven't gotten this down yet. I haven't had any trouble installing anything until this one. Adding this: functions.php line 2103 $DB_site->query("DELETE FROM post WHERE postid IN ($postids"."0)"); Sessions.php is still original. |
#136
|
||||
|
||||
D'oh figured it out. Sorry. Who would have thought placing a code after what it is suppose to replace in functions.php could cause the problem? jk
Thank you for your patience Lesane, I couldn't have done it without you. |
#137
|
||||
|
||||
Your welcome , so it works fine now?
|
#138
|
||||
|
||||
It works perfectly now Lesane. I couldn't be happier.
|
#139
|
||||
|
||||
Hi Bira,
i have a little problem viewing my modifie_profile template, wenn i add an bithday, the day and the month of the birthday is also showing in the selectboxes of your hack, i tried to get it work but it doesn't. here the template: PHP Code:
PHP Code:
Sorry but the template is in german, i hope you understand this so far |
#140
|
||||
|
||||
Tarion, yes, that was a mistake I made which FireFly commented about in the first page of this thread
You need to change all the $xxxxxselected> in the template to $xxxxxaway> (replace 'selected' with 'away'). Then, in member.php, find: Code:
$dayname = "day".$returndate[2]."selected"; $$dayname = "selected"; $monthname = "month".$returndate[1]."selected"; $$monthname = "selected"; $yearname = "year".$returndate[0]."selected"; $$yearname = "selected"; Code:
$dayname = "day".$returndate[2]."[high]away[/high]"; $$dayname = "selected"; $monthname = "month".$returndate[1]."[high]away[/high]"; $$monthname = "selected"; $yearname = "year".$returndate[0]."[high]away[/high]"; $$yearname = "selected"; |
#141
|
|||
|
|||
[QUOTE]Originally posted by Remi
Hi Bira It is me, again what can I do, I love your hacks Is this hack compatable with tha Random Password hack. I noticed this in the /root/member.php $bbuserinfo[usergroupid]'$changepw $awaysql WHERE userid='$bbuserinfo[userid]' is that the right order Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|