View Full Version : Mood Hack - Extended [Postbit]
paul41598
06-20-2005, 10:00 PM
This is my 2nd hack released. Im no coder by any far means, but I loved the mood hack. However I did not like the fact that you had to goto your USERCP, to update your mood.
Original Credits Goto: MyIS_Jordan
What this mod does:
This modifcation puts the mood dropdown selector inside the postbit instead of the USERCP.
What this means:
Your users are more thankful because its easier to change rather than doing it from your USERCP. :)
What are some features:
Added <if> statement, so the dropdown box shows only for that specific user logged in. This makes it so that you cannot select your mood from someone else's postbit dropdown
Upon selection of mood, page autorefreshes and takes you back to the current thread you were viewing
Dont forget to click install if you like! :D
Screenshots below:
RichieBoy67
06-21-2005, 04:19 PM
It looks like you are lissing instructions in your text file??
paul41598
06-21-2005, 04:31 PM
you need to follow the original instructions in the other authors text file. Sorry
RichieBoy67
06-21-2005, 04:33 PM
Yes, I know that this is basically an addon but are you sure that you have included everything in your text file that needs to be there???
Great idea by the way!! :)
paul41598
06-21-2005, 04:45 PM
yes, what kind of problems are you having?
RichieBoy67
06-21-2005, 05:01 PM
The only thing in your text file is just adding some code to postbit legacy.... I am getting nothing at all from doing that... I added it to postbit instead..
paul41598
06-21-2005, 05:02 PM
Ok, sorry, I guess I didnt code it for POSTBIT like I should have.
Thats all the code you need though, in addition to the original code m8. THen upload that file.
bigcurt
06-21-2005, 05:07 PM
Very nice mod man, congrats!
RichieBoy67
06-21-2005, 05:08 PM
Can you please post what you changed???
I just finished installing the other vode a few minutes ago and then you posted this add on :) Great timing...
anyhow, so far this isn't working for me...
paul41598
06-21-2005, 05:12 PM
I'll rewrite the instructions and post them in a few
RichieBoy67
06-21-2005, 05:19 PM
Thanks :)
paul41598
06-21-2005, 05:23 PM
Ok try those instructions. Hopefully I got everything ;)
Exitilus
06-21-2005, 05:31 PM
oooohh Nice .. Tag for later :D
KevinL
06-21-2005, 05:36 PM
Works perfectly!
Thanks:)
paul41598
06-21-2005, 06:47 PM
n/p. Im working on some other mood graphics right now. I wanted more, so Im developing my own. Maybe I'll post them
paul41598
06-22-2005, 04:04 AM
Heres a few more that I made if anyone wants to use them. I have the PSD's as well for a (limited time) only.
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
Enjoy
yoyoyoyo
06-22-2005, 05:06 AM
Heres a few more that I made if anyone wants to use them. I have the PSD's as well for a (limited time) only.
http://chugger.homeip.net/moods/Gloomy.gif
http://chugger.homeip.net/moods/Flirty.gif
http://chugger.homeip.net/moods/Hangover.gif
http://chugger.homeip.net/moods/Sick.gif
http://chugger.homeip.net/moods/Loser.gif
http://chugger.homeip.net/moods/Hungry.gif
Enjoy cool thanks.
|Jordan|
06-24-2005, 12:13 AM
Damn, those are some sweet mood graphics! Keep up the great work!
am-fs
06-24-2005, 05:58 AM
Great Job
Found it
thanks again, I would love the PSD templetes
midnightz
06-24-2005, 10:52 PM
Great Job
Found it
thanks again, I would love the PSD templetes
I second that! :)
Is there away since I just put in your code version, to have it also show up in profile, so somebody that is viewing a prfile can see the current mood if profile surfin?
Thanks :)
paul41598
06-24-2005, 11:21 PM
Just follow MyIs_Jordan's original instructions for the profile part, and it should work fine.
midnightz
06-24-2005, 11:28 PM
Ok, I will revert that part :) thx
rb2k1
06-30-2005, 05:58 PM
Is there anyway to get this to show in the Member Profile Page? Thanks Guys
~Ross B
paul41598
06-30-2005, 08:17 PM
Is there anyway to get this to show in the Member Profile Page? Thanks Guys
~Ross B
Sure,
Just open up MEMBERINFO template and paste this anywhere you want it to show
<!-- Mood Hack Start -->
<br />
<if condition="$post[mood] == 1">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Aggressive.gif" alt="Aggressive"></div>
</if>
<if condition="$post[mood] == 2">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Amazed.gif" alt="Amazed"></div>
</if>
<if condition="$post[mood] == 3">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Amused.gif" alt="Amused"></div>
</if>
<if condition="$post[mood] == 4">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Angelic.gif" alt="Angelic"></div>
</if>
<if condition="$post[mood] == 5">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Angry.gif" alt="Angry"></div>
</if>
<if condition="$post[mood] == 6">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Asleep.gif" alt="Asleep"></div>
</if>
<if condition="$post[mood] == 7">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/+++++y.gif" alt="+++++y"></div>
</if>
<if condition="$post[mood] == 8">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Blah.gif" alt="Blah"></div>
</if>
<if condition="$post[mood] == 9">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Bored.gif" alt="Bored"></div>
</if>
<if condition="$post[mood] == 10">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Brooding.gif" alt="Brooding"></div>
</if>
<if condition="$post[mood] == 11">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Busy.gif" alt="Busy"></div>
</if>
<if condition="$post[mood] == 12">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Buzzed.gif" alt="Buzzed"></div>
</if>
<if condition="$post[mood] == 13">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Cheeky.gif" alt="Cheeky"></div>
</if>
<if condition="$post[mood] == 14">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Cheerful.gif" alt="Cheerful"></div>
</if>
<if condition="$post[mood] == 15">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Cold.gif" alt="Cold"></div>
</if>
<if condition="$post[mood] == 16">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Confused.gif" alt="Confused"></div>
</if>
<if condition="$post[mood] == 17">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Cool.gif" alt="Cool"></div>
</if>
<if condition="$post[mood] == 18">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Daring.gif" alt="Daring"></div>
</if>
<if condition="$post[mood] == 19">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Dead.gif" alt="Dead"></div>
</if>
<if condition="$post[mood] == 20">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Devilish.gif" alt="Devilish"></div>
</if>
<if condition="$post[mood] == 21">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Fine.gif" alt="Fine"></div>
</if>
<if condition="$post[mood] == 22">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Goofy.gif" alt="Goofy"></div>
</if>
<if condition="$post[mood] == 23">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Grumpy.gif" alt="Grumpy"></div>
</if>
<if condition="$post[mood] == 24">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Happy.gif" alt="Happy"></div>
</if>
<if condition="$post[mood] == 25">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Hot.gif" alt="Hot"></div>
</if>
<if condition="$post[mood] == 26">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/In_Love.gif" alt="In Love"></div>
</if>
<if condition="$post[mood] == 27">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Innocent.gif" alt="Innocent"></div>
</if>
<if condition="$post[mood] == 28">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Inspired.gif" alt="Inspired"></div>
</if>
<if condition="$post[mood] == 29">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Lonely.gif" alt="Lonely"></div>
</if>
<if condition="$post[mood] == 30">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Lurking.gif" alt="Lurking"></div>
</if>
<if condition="$post[mood] == 31">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Mellow.gif" alt="Mellow"></div>
</if>
<if condition="$post[mood] == 32">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Pensive.gif" alt="Pensive"></div>
</if>
<if condition="$post[mood] == 33">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Psychadelic.gif" alt="Psychadelic"></div>
</if>
<if condition="$post[mood] == 34">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Relaxed.gif" alt="Relaxed"></div>
</if>
<if condition="$post[mood] == 35">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Sad.gif" alt="Sad"></div>
</if>
<if condition="$post[mood] == 36">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Scared.gif" alt="Scared"></div>
</if>
<if condition="$post[mood] == 37">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Shocked.gif" alt="Shocked"></div>
</if>
<if condition="$post[mood] == 38">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Sick.gif" alt="Sick"></div>
</if>
<if condition="$post[mood] == 39">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Sneaky.gif" alt="Sneaky"></div>
</if>
<if condition="$post[mood] == 40">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Tired.gif" alt="Tired"></div>
</if>
<br />
<!-- Mood Hack End -->
rb2k1
06-30-2005, 09:15 PM
Thanks! I didnt realise it was that simple :) You can also add the selector by adding the drop down code right under it.. :)
Thanks Again
mustang_lex
07-05-2005, 04:28 PM
I already installed the original MOOD hack. Is there a UPGRADE so i can have the mood setting in both the profile section (which it is now) and in the postbits?
Thank you
SlipNslide281
07-26-2005, 06:36 PM
Installed and works great. thanks for this hack. Its sweet.
hotwheels
08-20-2005, 01:55 AM
my mysql, says i have an error from the query.......hxxxxx_forums.user doesn't exist
Renada
08-21-2005, 03:23 PM
Hi,
I've installed this hack and it works wonderfully. The only problem I have is when I use IE changing the "mood" from the drop-down redirects me back to index.php instead of returning me to showthread.php. If I use Firefox I'm redirected correctly.
Have I done something wrong?
Thanks for any help in solving this.
Renada
hotwheels
08-22-2005, 01:55 AM
I installed this in mysql...........when i ran: #### QUERY ####
ALTER TABLE user ADD mood varchar(15) NOT NULL
in mysql query, i was getting an error that hxxxxx_forums.user doesn't exist.
I then changed the query to:#### QUERY ####
ALTER TABLE vb3user ADD mood varchar(15) NOT NULL
and it worked flawlessly......
just thought i would share that with everyone, incase someone else has had this problem. I am using vbulletin 3.07
hotwheels
psypix
08-26-2005, 11:06 PM
great hack!! but..
it only displays for admin and not normal forum members...
help!! :)
Scooterpig
08-27-2005, 12:18 AM
Great hack Paul and curious if there's any chance you could please portal this over to 3.5..:)
yj_enquirer
08-28-2005, 08:03 PM
And another gr8 one released by u Paul.. nice going...
@psypix... it displays for normal members to in my forum.. using 3.0.8.
Ok.. a suggestion.. within the post, I select the mood. It changes the mood however the selection then takes me back to the forum homepage. Anychance one can have it such that I stay on the same page/thread I was on when making the selection.
But other then that... many thanks.. u make my forums look better everyday with your hacks!!! ;)
paul41598
08-29-2005, 01:07 PM
And another gr8 one released by u Paul.. nice going...
@psypix... it displays for normal members to in my forum.. using 3.0.8.
Ok.. a suggestion.. within the post, I select the mood. It changes the mood however the selection then takes me back to the forum homepage. Anychance one can have it such that I stay on the same page/thread I was on when making the selection.
But other then that... many thanks.. u make my forums look better everyday with your hacks!!! ;)
it shouldnt redirect you back to the homepage, something is wrong. Can you give me a link username password to try out.
Rhoads
08-29-2005, 04:05 PM
Thnx for the hack ;)
I have one Uncached templates:
postbit_moodbit
In which php file can I added 'postbit_moodbit',
I tried adding this one to showthread.php but it still remained uncached.
Renada
08-29-2005, 05:13 PM
it shouldnt redirect you back to the homepage, something is wrong. Can you give me a link username password to try out.
Paul,
I too have the same problem.
www.thinkstop.com (http://www.thinkstop.com)
User: test
Password: tester
If you could solve this that would be great :)
(edit: this only occurs in IE - Firefox redirects you back to where you were as it should)
Thanks,
Renada
paul41598
08-29-2005, 07:07 PM
seems to be working for me. You click a mood, and it redirects you to the top of the page...or the top of the thread you were on. Thats how I coded it... Firefox does the same for me as well, like its designed to do.
Not sure what the confusion is?
DRL2005: global.php
Rhoads
08-29-2005, 07:25 PM
DRL2005: global.php
Sorry, but it still uncached :ermm:
paul41598
08-30-2005, 12:38 AM
Sorry, but it still uncached :ermm:
You did this part:?
######## OPEN showthread.php #########
## FIND:
'pollresult',
## BELOW ADD:
'mood',
Because I dont have any uncached templates...
Rhoads
08-30-2005, 03:42 AM
You did this part:?
######## OPEN showthread.php #########
## FIND:
'pollresult',
## BELOW ADD:
'mood',
Because I dont have any uncached templates...
Yes I did Paul, :ermm:
yj_enquirer
08-30-2005, 05:50 PM
it shouldnt redirect you back to the homepage, something is wrong. Can you give me a link username password to try out.
hmm.. this is a strange one, tried for a different PC using IE and it upon changing the MOOD, it navigates back to the top of the same thread.
However trying it on my main PC, it defaults back to the home page...
guess its probably due to some settings of IE on my PC rather then the hack itself.
Thanks for the comeback paul...
Cheers
Khashyar
09-01-2005, 05:51 AM
The hack works great for me Paul.
Great hacking of the hack :)
When my users choose a mood, they are redirected to the SAME page, so it's working for my website.
I wonder if anyone has any additional moods? I added the 5 additional ones that were listed in this thread, and my users and I enjoy the hack, are looking for more ways to express our moods...
Khashyar
mustang_lex
09-09-2005, 09:03 PM
Is there a simple upgrade for those who already have the original?
stan111
09-14-2005, 10:47 AM
thanks a lot
i got it work now
loook so nice
thanks again for this mod
MajorFm.com
10-09-2005, 08:28 PM
ok all works fine, however, wherever i put the code, i get a massive space above the mood and below the mood... this is probably because there is so much code in that area, is there any way round this?
Please advise..
MajorFm.com
10-09-2005, 08:50 PM
...for now i have had to move the mood to the sig till i get a answer how to overcome this.
dai-kun
10-30-2005, 11:49 PM
ok all works fine, however, wherever i put the code, i get a massive space above the mood and below the mood... this is probably because there is so much code in that area, is there any way round this?
Please advise..
Remove the first and the last <br /> from your postbit or postbit legacy
<!-- Mood Hack Start -->
<br />
<if condition="$post[mood] == 1">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Aggressive.gif" alt="Aggressive"></div>
</if>
<if condition="$post[mood] == 2">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Amazed.gif" alt="Amazed"></div>
</if>
......................
<if condition="$post[mood] == 40">
<br>
<div class="smallfont">Current Mood: <img src="./images/mood/Tired.gif" alt="Tired"></div>
</if>
<br />
<!-- Mood Hack End -->
prettyboi
11-29-2005, 06:46 AM
This is so complicated. What do you mean by "#### QUERY ####
ALTER TABLE user ADD mood varchar(15) NOT NULL
#### END QUERY ####"?
samu2
11-30-2005, 03:36 PM
And where is showthread PHP to do the code changes please?
kenneth4200
08-07-2006, 09:53 PM
includes/functions_showthread.php is not founds in vBulletin 3.6.0 :(:(:(:(
Please help!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.