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 |
#102
|
||||
|
||||
OK, Kura
I looked into this and this is actually a bug in the database backup. The away date is NULL by design but when you download the SQL file, it turns it into NOT NULL. You will need to open your .sql file for the user table, and find: Code:
away tinyint(1) NOT NULL, awaydate int(10) unsigned [high]NOT NULL[/high], returndate date DEFAULT '0000-00-00' [high]NOT NULL[/high], awayreason varchar(200) [high]NOT NULL[/high], Code:
away tinyint(1) DEFAULT '0' NOT NULL, awaydate int(10) unsigned, returndate date DEFAULT '0000-00-00', awayreason varchar(200), I will report this bug on vBulletin.com Cheers, Bira |
#103
|
||||
|
||||
The hack is nice but my files are just to hacked up to install anymore without the hack installations that include line numbers. The installer doesn't show line numbers. No more installer hacks. Maybe someone could add line numbering to the installer proggie.
The hack is very nice though Bira. |
#104
|
||||
|
||||
Great, thanks, I will try this soon (watching a movie, when it's a break I will do this) and let you know what the outcome is.
Thank you |
#105
|
||||
|
||||
Hooper line numbers will not help you.
If code x was on line 100, then after you hacked your script it will be on line 108, then how would it help if I gave you line #100 in the installer? Line numbers work ONLY on a very clean and non-hacked script. |
#106
|
||||
|
||||
[QUOTE]Originally posted by bira
Hooper line numbers will not help you. If code x was on line 100, then after you hacked your script it will be on line 108, then how would it help if I gave you line #100 in the installer? Line numbers work ONLY on a very clean and non-hacked script. |
#107
|
||||
|
||||
Hooper, you're awfully demanding and picky, ya know that?
Line numbers are not at all useful with hacks. Hacks that say "find **example line** and ADD ABOVE that **hacked code line**" and the like are much better in this aspect, for no matter what line this will be at, you can simply find it and add to it the necessary changes. Also, when a new version of vbulletin is released which adds about 60-80 lines above this line, the line numbers would be WAY off, but if you just search for the strings it doesn't matter. |
#108
|
||||
|
||||
[QUOTE]Originally posted by Hooper
I just will not install no more hacks that don't display line numbers. |
#109
|
||||
|
||||
W3rd bira
Btw, it worked this time, I removed the three NOT NULL's and the dump installed sweetly over my empty install. Only strange thing, however, was the fact (nothing to do with this hack btw) that... well, this: I had two vbulletins running on my comp, the Couch and the Couch v.2. I only use the first one for installing hacks in preparation of my new sites and everything. The second one is only installed to simulate when I switch hosts and will have to insert a dumpfile into an empty (fresh) install. Now, the dump-inserting worked, everything worked smoothly and all. But then I made a thread on the Couch v.2, and went to a site (also on my HD) that runs a query that lists all the threads from one specific forum. It listed the new thread. At first I was "Yay it works!" but then I realised, it was a Whole Different Database! But it STILL took the new thread! So I checked the other Couch, the original one, and the new thread had appeared there as well. So when i made a thread on ONE forum, it magically copied itself to the database of the OTHER forum. That database has a different name, a different mySQL user and a different mySQL password. Any idea why on earth this happened?? |
#110
|
||||
|
||||
are you sure you didn't overwrite config.php?
If you are running two databases, you gotta make sure you have two different config.php. That's the gateway to the db |
#111
|
||||
|
||||
You're very correct.
I *initially* had a different config.php of course, with the new username and db-name and everything. But then I realised that I took the files from the vB221 zip, and thus was missing out on several files (install_awayusers.php being one of them) and I copied all the files from the first board, to the directory of the second board. And I forgot to exclude the config.php file for the DB-settings. Heh.. Thanks for pointing that out to me. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|