![]() |
Mood Hack
Mood Hack Note: Please update to the latest version, many bugs were fixed. This if my first hack. Since this is my first hack i don't know how good i'll be at support, but i'll give it a shot. What does it do? This hack displays a user's mood in the postbit. The mood is displayed as an image and there are 40 to choose from. Mood can be changed in UserCP=>Edit Profile. Note: Tested on vBulletin 3.0.5 with security fixes to 3.0.7 It should work in all 3.0.x versions though. Credits: This hack is based off "Image Gender in Postbit" written by tnguy3n. Full credit is given in the text file. I have modified his code to work with this hack. Update!tnguy3n has pm'd me saying that the modification is ok. Yay The creation of this hack was inspired by the request of caliman The hack images are from the Yabb version of this hack, kudos to whomever made them. Installation information on hack: Query to run: 1 File modification: 3 Template modication: 2 New Templates: 0 Estimated Installation Time: 4 to 5 minutes. Changes: V 1.02 - Fixed some missing code, made no mood option more noticable. To update repeat step two of template modification. V 1.01 - Fixed image folder name, added ALT tags to images, fixed misnumbered and redundant code. To update repeat step one of template modification. V 1.00 - Released Demo: http://www.gamers-union.net/forums/showthread.php?t=204 (Click on any thread) Addons: Extended [Postbit] This addon puts the mood dropdown selector inside the postbit instead of the USERCP. Credit goes to paul41598 Please Click Install if you find this hack userful. Thanks. |
Quote:
|
nice!
may i ask a question... how do you make the avatars and stuff on the left side? mines on top? or is that just the style? |
Oops :(
I pm'd him, haven't received response yet. I released it now because i was scared someone else would release a mood hack and all my work would be for nothing :( |
It's all style related, you just need to move code around. (i made that style too, not releasing it though)
|
YOU RULE JORDAN! Thanks so much for this. I really appreciate it. Clicking install! (I will install tonight.)
Quote:
|
Yes, that is known as the postbit template. Legacy is the v2 look. Although Jordon obviously has a few modifcations to the legacy template. Wouldn't take more than 5 minutes of time, to modify a default legacy theme to match his if you know html and the vb conditionals.
|
I didn't know how to make the hack with just template modifcations, so i went with this.
|
ok got it thanks!
|
this hack didn't work for me at first. I followed the instructions, however there was no image displayed in the postbit - it only said : "current mood:" and no image. Then I noticed that the folder is named "moods" and in the instructions it says to use the name "mood" instead, so after I changed that it worked fine. Also, there was no blank .html in the image folder to prevent folks from snooping inside the image folder, so I changed that as well. I also added the names of the moods to the "alt" tag, so now when people hover over the mood icon it says the name of the emotion as well.
|
Ok, fixed.
I fixed folder name, added ALT tags and fixed an error. Repeat step one of template modification. |
looks good, but wouldn't this by an easier way??
|
Well yea but i didn't know how to do that. Also that changes avatars, this just adds a new image and doesnt touch the avatar.
|
Quote:
This is an easier way , Very easier anyway i will install it but by the other way (MIX) CoOoL Thanks MyIS_Jordan For this nice hack try to do the easier way and update it. by the way may a have the PSD file i want translate it to another language Thank you very much. Marboosh |
Quote:
PHP Code:
|
The one that the guy in that thread was requesting was to change the avatar based on mood.
|
Well...the *thread* was, that post was not.
The post linked to describes how to achieve exactly what your Hack does, without the need to change any files, just a User Profile Field and a Template modifciation. It also uses no queries whatsoever. |
thank you for this hack, and cheer, I like much :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ click Install ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Another slight thing I noticed- if nobody selects a mood their postbit is unchanged, however once you select a mood there is no way to deselect having the mood appear in the postbit. It would be nice if you could have the option to choose "do not display my mood" and the postbit would not say "current mood:" etc..
|
Quote:
|
I'll make the no mood option clearer and fix one mistake i discovered.
|
hi guys
im trying to install this on vb 3..0.7 but i get an error when trying to run the querie it says: #1146 - Table 'admin_vbforum.user' doesn't exist any ideas? |
Quote:
|
thats the problem it wont let me run the sql querie
that error above is what i get when i try to run the querie |
Quote:
|
Quote:
|
Got a slight problem with this hack, when a user of mine choose "Tired", it shows the Brooding image instead
I double checked the images themselves and sure enough, the tired image and brooding ones are ok Any idea why it links to Brooding instead of the Tired one? |
Upgrade to the latest version, just redo both template modification steps.
|
INSTALLED. Works great. Thanks again for doing this, I owe you some beers Jordan. :)
Couple little things that would just be icing. 1) It would be nice if when I go to my profile it remembers which one I have selected. Currently it does not and always displays 'Do not display mood.' 2) When one selects a mood, it would be cool if it displayed the selected mood bar in real time in the profile. I am too buzzed on wine to do this, but here is my original code that did this: Code:
<script language="JavaScript1.2" type="text/javascript"> caliman |
Quote:
???? dunno mate how do i find out (noobie to coding ) |
Quote:
Go into phpmyadmin (or whatever script your web providor uses) and look at the name of one of the tables (a table is a sort of directory that holds information). |
is this it?
i selected my forums database and this came up |
I believe your table prefix would be vb3 then.
I think to fix it all you need to to is change the following: Code:
ALTER TABLE user ADD mood varchar(15) NOT NULL Code:
ALTER TABLE vb3user ADD mood varchar(15) NOT NULL |
ok thanks ill try that
|
ok got it working but cant seem to see it in the postbit :(
i couldnt find the text in the postbit template any ideas? |
ok fixed it :)
|
For the life of me I can't get this to work. I have checked all my file and template edits a dozen times and it just isn't showing at all. nothing in the postbit, nothing in the edit profile page, zippola. any clue what i am doing wrong.
|
Make sure you select a mood. Nothing will display if in the users postbit if they do not select one.
|
the mood selection isn't show in the profile page is what i am saying. there is no evidence of it anywhere at all. no in the postbit, no in the edit profile page, not in the admin cp, no where.
|
I have my own version of the mood hack, but I would like to know if I could use your mood images? they are cool :)
|
All times are GMT. The time now is 04:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|