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 |
#342
|
|||
|
|||
what if i have already installed previous hack?
do i have to unistall or can i just run sql statments and edit files with new code? |
#343
|
|||
|
|||
On the database side, nothing has changed. You don't have to delete the tables. Just revert the code changes. Find what you added and delete it, than find what you replaced and replace it again with what my installer tells you to find (!). When that is done, follow the instructions in my installer from the beginning. Just don't run the queries again. Templates are still the same, too.
|
#344
|
|||
|
|||
[QUOTE]Originally posted by carpman
what if i have already installed previous hack? do i have to unistall or can i just run sql statments and edit files with new code? |
#345
|
|||
|
|||
Good. I hope my re-release helps you. Good luck.
|
#346
|
|||
|
|||
I don't have the this code in usercp:
if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) { $onoff="on"; } else { $onoff="off"; } I have: if ($buddy['lastactivity'] > $datecut and !$buddy['invisible'] and $buddy['lastvisit'] != $buddy['lastactivity']) { $onoff="on"; } else { $onoff="off"; } There is no $bbuserinfo['usergroupid'] == 6) I use 2.26 |
#347
|
|||
|
|||
PhoenixBB, I just opened vbulletin226.zip and checked it again, and found the code. Line 38. On the other hand, I did not at all find the code you quoted.
Please note that the information given in the installer is based on original 2.2.6 files. |
#348
|
|||
|
|||
Hi, the above quote I quoted is what I have on line 38 of the usercp. I just checked the original file (VBulletin226 Release Candidate), and the original file I have, is the exact same. IE on line 38 there is not that 'usergroupid==6' bit.
Hmm, what does it mean? Did they change the files at some point?? |
#349
|
|||
|
|||
Hm, there was some sort of "2.2.6 beta package" up for a day, yes. The zip I used to validate the installer was downloaded the same day I put the re-release up.
|
#350
|
|||
|
|||
I quote John from this thread:
[QUOTE]Files changed between 2.2.6 RC and 2.2.6 final: avatar.php, editpost.php, memberlist.php, newreply.php, private.php, usercp.php, admin/forum.php, admin/usergroup.php John |
#351
|
|||
|
|||
Everything else has been working on the board thus far - including various hacks. Except for this, one it was always the usercp which gave me a parse error (the ?> ) on last line. As I don't have the usergroup thingy in my original, I'll try removing that bit from the replacement code. It can't be important for me if it wasn't there originally, so it might be better to leave out than in. I'll try both ways. The database changes made didn't refer to that bit did they? I mean it's not a necessary line is it?
Trust me to download on the day they have a beta up! Oy! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|