PDA

View Full Version : Quick Mood Changer - addon


-=Sniper=-
12-04-2005, 10:00 PM
############################################
##############--Bought to you by--###############

Talk Coding - Programming Forums
(http://www.talkcoding.com)
##########--Free / Premium vBulletin Solutions--#########
############################################


First you need to have this mod installed, as the moods are from there.

https://vborg.vbsupport.ru/showthread.php?p=840285

This will allow the user to change the hack from the top navbar area, under private messages (see attachment).

Install instruction in the .zip file!

UPDATE 14/02/2006
~~~~~~~~~~~~~~~~~
- Version 1.2
- Is now installed as a product
- Now you can add ***NEW MOODS*** to the dropdown menu from the admincp
- No need to edit the plugin for the mood field number, its in the admincp
- Added Message "Whats with the mood swing?" when user changes his/her mood

UPDATE 03/01/2006
~~~~~~~~~~~~~~~~~
- Version 1.0
- Updated all the moods I think :)

UPDATE 11/12/2005
~~~~~~~~~~~~~~~~~
- Version Unknown
- Added "No Mood" to mood list
- Changed the template coding

UPDATE 05/12/2005
~~~~~~~~~~~~~~~~~
- Version Unknown
- Fixed spelling for "cheerful"
- Fixed no mood option not working
- Changed "In_Love" mood to "In Love" removed the underscore

3.5.0 hIBEES; Ok for those who cant get it to work simply replace the 3.5.0 adminfunctions_template.php with the 3.5.2 version

redspider
12-05-2005, 03:39 PM
thank you was wating for this one .

boatswife
12-05-2005, 04:42 PM
I did have a problem with the In_Love mood showing up, the _ was left out of the option value.

<option value="In_Love" <if condition="$bbuserinfo[FIELD6] == 'In Love'">selected</if>>In Love</option>

I also centered it and made the "My Mood" bold and it looks really nice.

Thanks for doing this, it's a lot more user friendly.

Editing in, the "No Mood" doesn't show up as No Mood, it doesn't change from the last mood selected.

Snake
12-05-2005, 04:56 PM
This is GREAT! Thanks

boatswife
12-05-2005, 06:06 PM
Spelling of Cheerful makes that mood not work.

Thanks.......this really makes this so much easier!

nexus851
12-05-2005, 06:23 PM
nice, thanx for this bro =)

-=Sniper=-
12-05-2005, 06:31 PM
Hi

I'll fix the little errors, since I changed my moods abit so it doesnt work correctly .

dboogie2288
12-05-2005, 06:38 PM
Hmm Parse error, what do ya'll think?

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/.eliot/bbikers/beginnerbikers.org/includes/adminfunctions_template.php(3519) : eval()'d code on line 235

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

-=Sniper=-
12-05-2005, 07:11 PM
dboogie2288; try the latest install text file. I think the first one I uploaded had a template error.

dboogie2288
12-05-2005, 07:23 PM
Nada, there are other errors, like Cheecky should be Cheeky, dont know if it matters though...

dboogie2288
12-05-2005, 07:25 PM
One concern. The original mood hack was for 3.5.0, which is what I am running. The mood hack works great, no problemo. However, I notice that this is for 3.5.1....is that going to be the problem?!

boatswife
12-05-2005, 07:33 PM
Sorry.....one more, should be shocking.

-=Sniper=-
12-05-2005, 09:10 PM
thanks boatswife and dboogie2288 :) files updated.

btw: its Shocked and not shocking

anyway you can change it to whatever you like...

dboogie2288; you can contact me via pm if you want me to have a look at your site to fix the problem?

I really can't say what could be causing it, since no one else is having problems.

dboogie2288
12-05-2005, 09:15 PM
Still that stupid parse error! Grrr..I really want to use this mod!

-=Sniper=-
12-05-2005, 10:07 PM
I tried to fix dboogie2288 problem, it seems after I add more than 8 moods in the templates it starts to give out template conditional errors. Which is quite odd...

maybe someone out there knows why? or maybe I've missed something simple?

Calisse
12-05-2005, 10:36 PM
works really well, thanks for the hack <3 10/10

boatswife
12-05-2005, 11:42 PM
btw: its Shocked and not shocking


ROFLMBO I had to go look to see what I did! I had shocked!

Rickie3
12-06-2005, 02:43 AM
Hmm Parse error, what do ya'll think?

The following error occurred when attempting to evaluate this template:


Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/.eliot/bbikers/beginnerbikers.org/includes/adminfunctions_template.php(3519) : eval()'d code on line 235

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

i'm getting the exact same error when adding to navbar,i have the flashing PM envelope installed wonder if that is causing the clash,as that code had to be edited,Up date i used an original unedited navbar template,then added the code template and still got the same error,i'm wondering if its something in includes/adminfunctions_template.php

dboogie2288
12-06-2005, 05:06 AM
i'm getting the exact same error when adding to navbar,i have the flashing PM envelope installed wonder if that is causing the clash,as that code had to be edited,Up date i used an original unedited navbar template,then added the code template and still got the same error,i'm wondering if its something in includes/adminfunctions_template.php

ive got/had that same hack installed...but it didnt work right, so i removed it and reverted the nav bar.....ill look into it while at work tomorrow....

Rickie3
12-06-2005, 05:54 AM
ive got/had that same hack installed...but it didnt work right, so i removed it and reverted the nav bar.....ill look into it while at work tomorrow....
i reverted back to an original navbar,then applied the template edit,but it still gave the same error:-(,i really want this to work,i dont think it would really matter that i'm running 3.5.0,and this hack is for 3.5.1

dai-kun
12-06-2005, 06:36 AM
thanks, worked perfectly!

I was able to change it to show up in postbits ^^

-=Sniper=-
12-06-2005, 06:48 AM
I think only the people using 3.5.0 are having problems? while 3.5.1 users are not.

dai-kun; i manged to make it work in the postbit but once you changed your mood and then tried again from the same dropdown menu it would go to inline mod page, saying its an invalid action.

Navbar seems to be the best place, since it will appear on every page.

samu2
12-06-2005, 07:02 AM
When I go to change the mood nothing happens,it just goes back to the main page

It works from the user cp,I edited the code and put the number of the profile field where the x's are

It said something about the plugin ID too,but I have no plugin for this?

-=Sniper=-
12-06-2005, 07:11 AM
have you imported the attached plugin https://vborg.vbsupport.ru/attachment.php?attachmentid=38865 ?

dai-kun
12-06-2005, 07:30 AM
I think only the people using 3.5.0 are having problems? while 3.5.1 users are not.

dai-kun; i manged to make it work in the postbit but once you changed your mood and then tried again from the same dropdown menu it would go to inline mod page, saying its an invalid action.

Navbar seems to be the best place, since it will appear on every page.

Hm...? really? I change my mood 5 times continuously and it works fine for me..

-=Sniper=-
12-06-2005, 07:34 AM
could you post the edit, I'm sure others would be interested? thanks

Rickie3
12-06-2005, 07:43 AM
just a quick question has anyone got this running on 3.5.0??,i'm still getting the same error

dai-kun
12-06-2005, 07:59 AM
well, i placed it where the 3.0.x of paul41598's Mood Hack - Extended [Postbit] is.
I am not very good at this.. so correct me if I am wrong.. and also I'm using a different style so I might make mistake.

gah.. let me check something, i think i did mistake somewhere

Ok.. what i found out is that for some reason, i just changed my mood like 20 times, and it works. Now it's giving me that error message from inlinemod.php "You did not select any posts to which the action you picked can be applied." But it works if i try again. Weird

eNforce
12-06-2005, 08:10 AM
This is awesome, installed with no problems!

dai-kun
12-06-2005, 08:18 AM
ok .. so what is happening is that when u view a thread, u cannot change ur mood if u post more than once on a page view.. well that only applies to the first post on that page. U are able to change ur mood if u select it from the 2nd and onward post u made. U can also change ur mood if u only have 1 post on a pageview.

IF U are a REGULAR MEMBER..
i can post and change my mood without the error.

GrendelKhan{TSU
12-06-2005, 10:39 AM
is it possible for either you or the orginal creator to full phrase this? I know the images will be the same, but it'd be a GREAT thing to be able to do in multiple languages. :)

dboogie2288
12-06-2005, 02:12 PM
Well I checked the old PM blinking icon install that I did way back when, but that was from VB 3.0.5, and I never installed it with 3.5

I think that since this is an add on for a mod that is written for 3.5.0, then the add-on should certainly support it. I dont particularly have time to update the system everytime that VB changes a line of code, and I REALLY want this hack to work...oh well, onto another day I suppose.

funinthesun
12-06-2005, 03:26 PM
When I try to edit the navbar template I get this error:
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/*******/public_html/includes/adminfunctions_template.php(3519) : eval()'d code on line 265
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

-=Sniper=-
12-06-2005, 03:40 PM
I really don't know why it doesnt work correctly in 3.5.0 but it does in 3.5.1 so I suggest upgrading to see it fixes the problem.

dano
12-06-2005, 04:13 PM
thanks, worked perfectly!

I was able to change it to show up in postbits ^^

Can you please post the instructions as to how you did this? I would love to have this in postbits.

dai-kun
12-06-2005, 06:53 PM
OPEN postbit/postbit_legacy:

FIND:

<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
</div>

BELOW, ADD:

<!-- mood hack display start -->
<br /><if condition="$post[fieldX] != ''"><div class="smallfont">
Current Mood: <img src="images/mood/$post[fieldX].gif" title="$post[fieldX]" align="center">
</div></if>
<!-- mood hack display end -->

FIND:

<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>

BELOW, ADD:

<br />
My Mood:
<!-- / dropdown mood select by sniper -->
<if condition="$post[userid] == $bbuserinfo[userid]">
<form action="index.php" method="post" id="moodform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="newmood" />
<input type="hidden" name="userid" value="$bbuserinfo[userid]" />
<select name="mood" onchange="this.form.submit();">
<option value=" " <if condition="$bbuserinfo[FIELDXX] == ''">selected</if>>No Mood</option>
<option value="Aggressive" <if condition="$bbuserinfo[FIELDXX] == Aggressive">selected</if>>Aggressive</option>
<option value="Amazed" <if condition="$bbuserinfo[FIELDXX] == Amazed">selected</if>>Amazed</option>
<option value="Amused" <if condition="$bbuserinfo[FIELDXX] == Amused">selected</if>>Amused</option>
<option value="Angelic" <if condition="$bbuserinfo[FIELDXX] == Angelic">selected</if>>Angelic</option>
<option value="Angry" <if condition="$bbuserinfo[FIELDXX] == Angry">selected</if>>Angry</option>
<option value="Asleep" <if condition="$bbuserinfo[FIELDXX] == Asleep">selected</if>>Asleep</option>
<option value="+++++y" <if condition="$bbuserinfo[FIELDXX] == +++++y">selected</if>>+++++y</option>
<option value="Blah" <if condition="$bbuserinfo[FIELDXX] == Blah">selected</if>>Blah</option>
<option value="Bored" <if condition="$bbuserinfo[FIELDXX] == Bored">selected</if>>Bored</option>
<option value="Breezy" <if condition="$bbuserinfo[FIELDXX] == Breezy">selected</if>>Breezy</option>
<option value="Brooding" <if condition="$bbuserinfo[FIELDXX] == Brooding">selected</if>>Brooding</option>
<option value="Busy" <if condition="$bbuserinfo[FIELDXX] == Busy">selected</if>>Busy</option>
<option value="Buzzed" <if condition="$bbuserinfo[FIELDXX] == Buzzed">selected</if>>Buzzed</option>
<option value="Cheeky" <if condition="$bbuserinfo[FIELDXX] == Cheeky">selected</if>>Cheeky</option>
<option value="Cheerful" <if condition="$bbuserinfo[FIELDXX] == Cheerful">selected</if>>Cheerful</option>
<option value="Cold" <if condition="$bbuserinfo[FIELDXX] == Cold">selected</if>>Cold</option>
<option value="Confused" <if condition="$bbuserinfo[FIELDXX] == Confused">selected</if>>Confused</option>
<option value="Cool" <if condition="$bbuserinfo[FIELDXX] == Cool">selected</if>>Cool</option>
<option value="Daring" <if condition="$bbuserinfo[FIELDXX] == Daring">selected</if>>Daring</option>
<option value="Dead" <if condition="$bbuserinfo[FIELDXX] == Dead">selected</if>>Dead</option>
<option value="Devilish" <if condition="$bbuserinfo[FIELDXX] == Devilish">selected</if>>Devilish</option>
<option value="Fine" <if condition="$bbuserinfo[FIELDXX] == Fine">selected</if>>Fine</option>
<option value="Goofy" <if condition="$bbuserinfo[FIELDXX] == Goofy">selected</if>>Goofy</option>
<option value="Grumpy" <if condition="$bbuserinfo[FIELDXX] == Grumpy">selected</if>>Grumpy</option>
<option value="Happy" <if condition="$bbuserinfo[FIELDXX] == Happy">selected</if>>Happy</option>
<option value="Hot" <if condition="$bbuserinfo[FIELDXX] == Hot">selected</if>>Hot</option>
<option value="In Love" <if condition="$bbuserinfo[FIELDXX] == 'In Love'">selected</if>>In Love</option>
<option value="Innocent" <if condition="$bbuserinfo[FIELDXX] == Innocent">selected</if>>Innocent</option>
<option value="Inspired" <if condition="$bbuserinfo[FIELDXX] == Inspired">selected</if>>Inspired</option>
<option value="Lonely" <if condition="$bbuserinfo[FIELDXX] == Lonely">selected</if>>Lonely</option>
<option value="Lurking" <if condition="$bbuserinfo[FIELDXX] == Lurking">selected</if>>Lurking</option>
<option value="Mellow" <if condition="$bbuserinfo[FIELDXX] == Mellow">selected</if>>Mellow</option>
<option value="Pensive" <if condition="$bbuserinfo[FIELDXX] == Pensive">selected</if>>Pensive</option>
<option value="Psychadelic" <if condition="$bbuserinfo[FIELDXX] == Psychadelic">selected</if>>Psychadelic</option>
<option value="Relaxed" <if condition="$bbuserinfo[FIELDXX] == Relaxed">selected</if>>Relaxed</option>
<option value="Sad" <if condition="$bbuserinfo[FIELDXX] == Sad">selected</if>>Sad</option>
<option value="Scared" <if condition="$bbuserinfo[FIELDXX] == Scared">selected</if>>Scared</option>
<option value="Shocked" <if condition="$bbuserinfo[FIELDXX] == Shocked">selected</if>>Shocked</option>
<option value="Sick" <if condition="$bbuserinfo[FIELDXX] == Sick">selected</if>>Sick</option>
<option value="Sneaky" <if condition="$bbuserinfo[FIELDXX] == Sneaky">selected</if>>Sneaky</option>
<option value="Tired" <if condition="$bbuserinfo[FIELDXX] == Tired">selected</if>>Tired</option>
</select>
</form></if>
<!-- / dropdown mood select by sniper -->

Remember to change ur fieldx to ur mood field.
You will get an error if you're admin.
Regular members seem to work fine though.

funinthesun
12-06-2005, 07:02 PM
Is the only option to upgrade to 3.5.1? :confused:

Rickie3
12-06-2005, 10:08 PM
yea i dont want to have to upgrade to 3.5.1,as my forum is running sweet 3.5.0,there has to be a fix for this problem,as the original mood hack is for 3.5.0,and this add on is 3.5.1

dboogie2288
12-06-2005, 10:41 PM
yea i dont want to have to upgrade to 3.5.1,as my forum is running sweet 3.5.0,there has to be a fix for this problem,as the original mood hack is for 3.5.0,and this add on is 3.5.1

Thats where I was coming from...

The postbit hack doesnt work either.

poprulz
12-07-2005, 01:27 PM
The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/local/psa/home/vhosts/mallupride.com/httpdocs/forums/includes/adminfunctions_template.php(3519) : eval()'d code on line 163

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

and b4 that when i was installing it as a product.. it said it not a product..rather a plugin. so i copy pasted the php code and made it a plugin.

maybe its not compatible with 3.5.0

and did anyone try the postbit hack for 3.5.0? does it really work?

-=Sniper=-
12-07-2005, 02:53 PM
it is a plugin, so you had to import it. There was no need to make a new plugin.

the postbit will work for normal users, but not correctly for admins or mods, since because of inline moderation you have forms inside an form which causes it not to work.

I'm don't see anything wrong with the conditions used, so I can't tell you why it doesnt work.

If you remove all but the first 8 moods from the html code it works in 3.5.0 but thats no use...

twincamfxd
12-08-2005, 04:13 AM
I installed the quick mood changer and it is on the navbar, and works with the usercp change, but the one in the navbar just refreshes the screen. I beleive the problem is in the way I created the plug in. I am pretty new at this, so I will tell you what I did. I named the plug in "quick mood changer" and copied and pasted all of the plug in code into the plug in PHP code section. I have it set as active, so I am not quite sure what I did wrong. Thanks in advance,

Twincamfxd

-=Sniper=-
12-08-2005, 08:07 AM
you need to use the global start hook, if you decide to add the plugin your self. Then again you can just import the plugin I have attached.

Rickie3
12-10-2005, 12:48 AM
any news yet why this wont work in 3.5.0???

UDM
12-11-2005, 04:28 AM
Thanks for the Mood Code. It works fine at the UserCP windows but when i implement it on the NAV bar. It does.

https://vborg.vbsupport.ru/external/2005/12/2.png
https://vborg.vbsupport.ru/external/2005/12/3.png

When i go and change the mood from the Nav bar it changes the mood but it still show "no mood" at the Nav bar. How can i fix it. Did i miss something when following the instruction. Can some one point me to the correct direction.
Thanks

-=Sniper=-
12-11-2005, 09:47 PM
UDB try redoing the steps in the new install text file I have uploaded.

eNforce
12-11-2005, 10:35 PM
Something is wrong with this line

<option value="No Mood" <if condition="$bbuserinfo['field16'] == ''No Mood">selected</if>>No Mood</option>

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_STRING in /home/areyous/public_html/includes/adminfunctions_template.php(3537) : eval()'d code on line 57

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

UDM
12-12-2005, 02:44 AM
Thanks work great, I had to Fix a Typo in the mood line, Not a big deal, Can you update the TXT file, So it work great for every one. Thanks once again.

<option value="No Mood"<if condition="$bbuserinfo[field5] == 'No Mood'">selected</if>>No Mood</option>

-=Sniper=-
12-12-2005, 09:06 AM
thanks updated

Rickie3
12-12-2005, 09:52 AM
still no update on why this wont work for 3.5.0????ive been sifting through it but havent came up with anything yet :-(

Mastar
12-12-2005, 02:37 PM
I dunno if it was stated anywhere in these post but I didn't see any instructions saying to:

Change:

$db->query_write("UPDATE " . TABLE_PREFIX . "userfield SET
FIELDXX = '" .$_POST['mood']. "' WHERE userid = '" .$bbuserinfo[userid]. "'");


To the Field # of your mood in the PlugIn.

$db->query_write("UPDATE " . TABLE_PREFIX . "userfield SET
FIELD16 = '" .$_POST['mood']. "' WHERE userid = '" .$bbuserinfo[userid]. "'");

If it was stated my appologies.

Installed and works great!

twincamfxd
12-12-2005, 02:41 PM
Got it to work, So far the 3 people that have seen it love it.

Awesome work Sniper, thanks!

Bounce
12-12-2005, 04:05 PM
Cant get this to work on 3.5.0, plugin doesn't seem to install and the error as given by others is the same :(

Pity as the mood hack itself works a dream , don't fancy upgrading to 3.5.1 or even 3.5.2 yet as my forums runnin sweet as the are :nervous:

Mastar
12-12-2005, 04:11 PM
Cant get this to work on 3.5.0, plugin doesn't seem to install and the error as given by others is the same :(



Pity as the mood hack itself works a dream , don't fancy upgrading to 3.5.1 or even 3.5.2 yet as my forums runnin sweet as the are :nervous:

In the product.xml did you change the ' FieldXX' to the Field # of the mood hack that was already installed?

And did you change it here also?:

Step 6

Update

Set Default (Will set the first option as the default) = Yes, But No First Option Blank

Click Save

Step 7

Styles & Templates -> Style Manager - > Edit Templates -> Navigation / Breadcrum Templates -> Navbar

Find

<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>

Under it Add

<br />
My Mood:
<!-- / dropdown mood select by sniper -->
<form action="index.php" method="post" id="moodform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="newmood" />
<input type="hidden" name="userid" value="$bbuserinfo[userid]" />
<select name="mood" onchange="this.form.submit();">
<option value="No Mood" <if condition="$bbuserinfo['fieldxx'] == 'No Mood'">selected</if>>No Mood</option>
<option value="Aggressive" <if condition="$bbuserinfo['fieldxx'] == 'Aggressive'">selected</if>>Aggressive</option>
<option value="Amazed" <if condition="$bbuserinfo['fieldxx'] == 'Amazed'">selected</if>>Amazed</option>
<option value="Amused" <if condition="$bbuserinfo['fieldxx'] == 'Amused'">selected</if>>Amused</option>
<option value="Angelic" <if condition="$bbuserinfo['fieldxx'] == 'Angelic'">selected</if>>Angelic</option>
<option value="Angry" <if condition="$bbuserinfo['fieldxx'] == 'Angry'">selected</if>>Angry</option>
<option value="Asleep" <if condition="$bbuserinfo['fieldxx'] == 'Asleep'">selected</if>>Asleep</option>
<option value="+++++y" <if condition="$bbuserinfo['fieldxx'] == '+++++y'">selected</if>>+++++y</option>
<option value="Blah" <if condition="$bbuserinfo['fieldxx'] == 'Blah'">selected</if>>Blah</option>
<option value="Bored" <if condition="$bbuserinfo['fieldxx'] == 'Bored'">selected</if>>Bored</option>
<option value="Breezy" <if condition="$bbuserinfo['fieldxx'] == 'Breezy'">selected</if>>Breezy</option>
<option value="Brooding" <if condition="$bbuserinfo['fieldxx'] == 'Brooding'">selected</if>>Brooding</option>
<option value="Busy" <if condition="$bbuserinfo['fieldxx'] == 'Busy'">selected</if>>Busy</option>
<option value="Buzzed" <if condition="$bbuserinfo['fieldxx'] == 'Buzzed'">selected</if>>Buzzed</option>
<option value="Cheeky" <if condition="$bbuserinfo['fieldxx'] == 'Cheeky'">selected</if>>Cheeky</option>
<option value="Cheerful" <if condition="$bbuserinfo['fieldxx'] == 'Cheerful'">selected</if>>Cheerful</option>
<option value="Cold" <if condition="$bbuserinfo['fieldxx'] == 'Cold'">selected</if>>Cold</option>
<option value="Confused" <if condition="$bbuserinfo['fieldxx'] == 'Confused'">selected</if>>Confused</option>
<option value="Cool" <if condition="$bbuserinfo['fieldxx'] == 'Cool'">selected</if>>Cool</option>
<option value="Daring" <if condition="$bbuserinfo['fieldxx'] == 'Daring'">selected</if>>Daring</option>
<option value="Dead" <if condition="$bbuserinfo['fieldxx'] == 'Dead'">selected</if>>Dead</option>
<option value="Devilish" <if condition="$bbuserinfo['fieldxx'] == 'Devilish'">selected</if>>Devilish</option>
<option value="Fine" <if condition="$bbuserinfo['fieldxx'] == 'Fine'">selected</if>>Fine</option>
<option value="Goofy" <if condition="$bbuserinfo['fieldxx'] == 'Goofy'">selected</if>>Goofy</option>
<option value="Grumpy" <if condition="$bbuserinfo['fieldxx'] == 'Grumpy'">selected</if>>Grumpy</option>
<option value="Happy" <if condition="$bbuserinfo['fieldxx'] == 'Happy'">selected</if>>Happy</option>
<option value="Hot" <if condition="$bbuserinfo['fieldxx'] == 'Hot'">selected</if>>Hot</option>
<option value="In Love" <if condition="$bbuserinfo['fieldxx'] == 'In Love'">selected</if>>In Love</option>
<option value="Innocent" <if condition="$bbuserinfo['fieldxx'] == 'Innocent'">selected</if>>Innocent</option>
<option value="Inspired" <if condition="$bbuserinfo['fieldxx'] == 'Inspired'">selected</if>>Inspired</option>
<option value="Lonely" <if condition="$bbuserinfo['fieldxx'] == 'Lonely'">selected</if>>Lonely</option>
<option value="Lurking" <if condition="$bbuserinfo['fieldxx'] == 'Lurking'">selected</if>>Lurking</option>
<option value="Mellow" <if condition="$bbuserinfo['fieldxx'] == 'Mellow'">selected</if>>Mellow</option>
<option value="Pensive" <if condition="$bbuserinfo['fieldxx'] == 'Pensive'">selected</if>>Pensive</option>
<option value="Psychadelic" <if condition="$bbuserinfo['fieldxx'] == 'Psychadelic'">selected</if>>Psychadelic</option>
<option value="Relaxed" <if condition="$bbuserinfo['fieldxx'] == 'Relaxed'">selected</if>>Relaxed</option>
<option value="Sad" <if condition="$bbuserinfo['fieldxx'] == 'Sad'">selected</if>>Sad</option>
<option value="Scared" <if condition="$bbuserinfo['fieldxx'] == 'Scared'">selected</if>>Scared</option>
<option value="Shocked" <if condition="$bbuserinfo['fieldxx'] == 'Shocked'">selected</if>>Shocked</option>
<option value="Sick" <if condition="$bbuserinfo['fieldxx'] == 'Sick'">selected</if>>Sick</option>
<option value="Sneaky" <if condition="$bbuserinfo['fieldxx'] == 'Sneaky'">selected</if>>Sneaky</option>
<option value="Tired" <if condition="$bbuserinfo['fieldxx'] == 'Tired'">selected</if>>Tired</option>
</select>
</form>
<!-- / dropdown mood select by sniper -->

And update the Options to:

No Mood
Aggressive
Amazed
Amused
Angelic
Angry
Asleep
+++++y
Blah
Bored
Breezy
Brooding
Busy
Buzzed
Cheeky
Cheerful
Cold
Confused
Cool
Daring
Dead
Devilish
Fine
Goofy
Grumpy
Happy
Hot
In Love
Innocent
Inspired
Lonely
Lurking
Mellow
Pensive
Psychadelic
Relaxed
Sad
Scared
Shocked
Sick
Sneaky
Tired
Yehaw

Bounce
12-12-2005, 04:36 PM
yes i did althou I shall check and double check after some food :)


The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /XXXX/XXXX/public_html/forum/includes/adminfunctions_template.php(3519) : eval()'d code on line 154

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


<br />
My Mood:
<!-- / dropdown mood select by sniper -->
<form action="index.php" method="post" id="moodform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="newmood" />
<input type="hidden" name="userid" value="$bbuserinfo[userid]" />
<select name="mood" onchange="this.form.submit();">
<option value="No Mood" <if condition="$bbuserinfo['field9'] == 'No Mood'">selected</if>>No Mood</option>
<option value="Amazed" <if condition="$bbuserinfo['field9'] == 'Amazed'">selected</if>>Amazed</option>
<option value="Amused" <if condition="$bbuserinfo['field9'] == 'Amused'">selected</if>>Amused</option>
<option value="Angelic" <if condition="$bbuserinfo['field9'] == 'Angelic'">selected</if>>Angelic</option>
<option value="Angry" <if condition="$bbuserinfo['field9'] == 'Angry'">selected</if>>Angry</option>
<option value="Asleep" <if condition="$bbuserinfo['field9'] == 'Asleep'">selected</if>>Asleep</option>
<option value="+++++y" <if condition="$bbuserinfo['field9'] == '+++++y'">selected</if>>+++++y</option>
<option value="Blah" <if condition="$bbuserinfo['field9'] == 'Blah'">selected</if>>Blah</option>
<option value="Bored" <if condition="$bbuserinfo['field9'] == 'Bored'">selected</if>>Bored</option>
<option value="Breezy" <if condition="$bbuserinfo['field9'] == 'Breezy'">selected</if>>Breezy</option>
<option value="Brooding" <if condition="$bbuserinfo['field9'] == 'Brooding'">selected</if>>Brooding</option>
<option value="Busy" <if condition="$bbuserinfo['field9'] == 'Busy'">selected</if>>Busy</option>
<option value="Buzzed" <if condition="$bbuserinfo['field9'] == 'Buzzed'">selected</if>>Buzzed</option>
<option value="Cheeky" <if condition="$bbuserinfo['field9'] == 'Cheeky'">selected</if>>Cheeky</option>
<option value="Cheerful" <if condition="$bbuserinfo['field9'] == 'Cheerful'">selected</if>>Cheerful</option>
<option value="Cold" <if condition="$bbuserinfo['field9'] == 'Cold'">selected</if>>Cold</option>
<option value="Confused" <if condition="$bbuserinfo['field9'] == 'Confused'">selected</if>>Confused</option>
<option value="Cool" <if condition="$bbuserinfo['field9'] == 'Cool'">selected</if>>Cool</option>
<option value="Daring" <if condition="$bbuserinfo['field9'] == 'Daring'">selected</if>>Daring</option>
<option value="Dead" <if condition="$bbuserinfo['field9'] == 'Dead'">selected</if>>Dead</option>
<option value="Devilish" <if condition="$bbuserinfo['field9'] == 'Devilish'">selected</if>>Devilish</option>
<option value="Fine" <if condition="$bbuserinfo['field9'] == 'Fine'">selected</if>>Fine</option>
<option value="Goofy" <if condition="$bbuserinfo['field9'] == 'Goofy'">selected</if>>Goofy</option>
<option value="Grumpy" <if condition="$bbuserinfo['field9'] == 'Grumpy'">selected</if>>Grumpy</option>
<option value="Happy" <if condition="$bbuserinfo['field9'] == 'Happy'">selected</if>>Happy</option>
<option value="Hot" <if condition="$bbuserinfo['field9'] == 'Hot'">selected</if>>Hot</option>
<option value="In Love" <if condition="$bbuserinfo['field9'] == 'In Love'">selected</if>>In Love</option>
<option value="Innocent" <if condition="$bbuserinfo['field9'] == 'Innocent'">selected</if>>Innocent</option>
<option value="Inspired" <if condition="$bbuserinfo['field9'] == 'Inspired'">selected</if>>Inspired</option>
<option value="Lonely" <if condition="$bbuserinfo['field9'] == 'Lonely'">selected</if>>Lonely</option>
<option value="Lurking" <if condition="$bbuserinfo['field9'] == 'Lurking'">selected</if>>Lurking</option>
<option value="Mellow" <if condition="$bbuserinfo['field9'] == 'Mellow'">selected</if>>Mellow</option>
<option value="Pensive" <if condition="$bbuserinfo['field9'] == 'Pensive'">selected</if>>Pensive</option>
<option value="Psychadelic" <if condition="$bbuserinfo['field9'] == 'Psychadelic'">selected</if>>Psychadelic</option>
<option value="Relaxed" <if condition="$bbuserinfo['field9'] == 'Relaxed'">selected</if>>Relaxed</option>
<option value="Sad" <if condition="$bbuserinfo['field9'] == 'Sad'">selected</if>>Sad</option>
<option value="Scared" <if condition="$bbuserinfo['field9'] == 'Scared'">selected</if>>Scared</option>
<option value="Shocked" <if condition="$bbuserinfo['field9'] == 'Shocked'">selected</if>>Shocked</option>
<option value="Sick" <if condition="$bbuserinfo['field9'] == 'Sick'">selected</if>>Sick</option>
<option value="Sneaky" <if condition="$bbuserinfo['field9'] == 'Sneaky'">selected</if>>Sneaky</option>
<option value="Tired" <if condition="$bbuserinfo['field9'] == 'Tired'">selected</if>>Tired</option>
</select>
</form>
<!-- / dropdown mood select by sniper -->

My field is 9 , i placed that as stated :( and checked plugin was at 9 also)

if ($_POST['do'] == 'newmood')
{
$bbuserinfo = $vbulletin->userinfo;

$db->query_write("UPDATE " . TABLE_PREFIX . "userfield SET
FIELD9 = '" .$_POST['mood']. "' WHERE userid = '" .$bbuserinfo[userid]. "'");

eval(print_standard_redirect('updatethanks'));
}

Bounce
12-12-2005, 07:41 PM
LOVELY got it to work

Ok for those who cant get it to work simply replace the 3.5.0 adminfunctions_template.php with the 3.5.2 version

BINGO lol :rolleyes:

* Bounce installs and working fine

-=Sniper=-
12-12-2005, 07:56 PM
thanks Mastar; updated install file

thanks hIBEES; I'll add that info to the first post.

Bounce
12-12-2005, 08:17 PM
thanks hIBEES; I'll add that info to the first post.

no probs, I just thought I'd try it to see and it worked ..

I wouldn't think there will be any issue with doing that ?

you might want to add in the bottom 5-6 as that text file only goes down to Tired

I had to add in

<option value="Twisted" <if condition="$bbuserinfo['field9'] == 'Twisted'">selected</if>>Twisted</option>
<option value="Vilified" <if condition="$bbuserinfo['field9'] == 'Vilified'">selected</if>>Vilified</option>
<option value="Volatile" <if condition="$bbuserinfo['field9'] == 'Volatile'">selected</if>>Volatile</option>
<option value="Woot" <if condition="$bbuserinfo['field9'] == 'Woot'">selected</if>>Woot</option>
<option value="Yeehaw" <if condition="$bbuserinfo['field9'] == 'Yeehaw'">selected</if>>Yeehaw</option>

as per original hack thou, plus what is +++++y ??

Rickie3
12-12-2005, 10:07 PM
LOVELY got it to work

Ok for those who cant get it to work simply replace the 3.5.0 adminfunctions_template.php with the 3.5.2 version

BINGO lol :rolleyes:

* hIBEES installs and working fineyou bloody ripper that worked thankyou,i was going to try that earlier but wasnt sure if it would stuff things on my forum,but all seems fine cheers

<option value="Approved" <if condition="$bbuserinfo['fieldxx'] == Approved">selected</if>>Approved</option>
<option value="Chatty" <if condition="$bbuserinfo['fieldxx'] == Chatty">selected</if>>Chatty</option>
<option value="Disapprove" <if condition="$bbuserinfo['fieldxx'] == Disapprove">selected</if>>Disapprove</option>
<option value="Doh" <if condition="$bbuserinfo['fieldxx'] == Doh">selected</if>>Doh</option>
<option value="Dunce" <if condition="$bbuserinfo['fieldxx'] == Dunce">selected</if>>Dunce</option>
<option value="Flirt" <if condition="$bbuserinfo['fieldxx'] == Flirt">selected</if>>Flirt</option>
<option value="Hotflash" <if condition="$bbuserinfo['fieldxx'] == Hotflash">selected</if>>Hotflash</option>
<option value="Sassy" <if condition="$bbuserinfo['fieldxx'] == Sassy">selected</if>>Sassy</option>
<option value="Twisted" <if condition="$bbuserinfo['fieldxx'] == Twisted">selected</if>>Twisted</option>
<option value="Vilified" <if condition="$bbuserinfo['fieldxx'] == Vilified">selected</if>>Vilified</option>
<option value="Volatile" <if condition="$bbuserinfo['fieldxx'] == Volatile">selected</if>>Volatile</option>
<option value="Woot" <if condition="$bbuserinfo['fieldxx'] == Woot">selected</if>>Woot</option>
<option value="Yeehaw" <if condition="$bbuserinfo['fieldxx'] == Yeehaw">selected</if>>Yeehaw</option>

these are the ones i added,as per the original mood hack update

-=Sniper=-
12-13-2005, 08:50 AM
You can what +++++y is in the install file.

dboogie2288
12-13-2005, 08:46 PM
Good Job Hibees...

how do we fix the broken img for nomood?

dboogie2288
12-13-2005, 08:46 PM
no probs, I just thought I'd try it to see and it worked ..

I wouldn't think there will be any issue with doing that ?

you might want to add in the bottom 5-6 as that text file only goes down to Tired

I had to add in

<option value="Twisted" <if condition="$bbuserinfo['field9'] == 'Twisted'">selected</if>>Twisted</option>
<option value="Vilified" <if condition="$bbuserinfo['field9'] == 'Vilified'">selected</if>>Vilified</option>
<option value="Volatile" <if condition="$bbuserinfo['field9'] == 'Volatile'">selected</if>>Volatile</option>
<option value="Woot" <if condition="$bbuserinfo['field9'] == 'Woot'">selected</if>>Woot</option>
<option value="Yeehaw" <if condition="$bbuserinfo['field9'] == 'Yeehaw'">selected</if>>Yeehaw</option>

as per original hack thou, plus what is +++++y ??

Do you have images? those are great additions

Rickie3
12-13-2005, 08:49 PM
Do you have images? those are great additionsthey are in the upgrade zip over here
https://vborg.vbsupport.ru/showthread.php?threadid=98636

-=Sniper=-
12-13-2005, 09:53 PM
Good Job Hibees...

how do we fix the broken img for nomood?

create a 1x1 pixel image and name it "no mood.gif" then upload it to where all ther other moods are.

I will post a code, so if its no mood, it won't show at all.

dboogie2288
12-13-2005, 10:28 PM
create a 1x1 pixel image and name it "no mood.gif" then upload it to where all ther other moods are.

I will post a code, so if its no mood, it won't show at all.

Thats what I did, and that's what I'm looking for. I know if you do that via User CP it removes my "Current Mood" line.

-=Sniper=-
12-14-2005, 11:26 AM
Database error in vBulletin 3.5.0:

Invalid SQL:
UPDATE userfield SET
FIELDXX = 'Asleep' WHERE userid = '175';

MySQL Error : Unknown column 'FIELDXX' in 'field list'
Error Number : 1054
Date : Wednesday, December 14th 2005 @ 05:18:37 AM
Script : http://www.gaiaevolved.com/forum/index.php
Referrer : http://www.gaiaevolved.com/forum/



What am I doing wrong now?
you need to change the fieldxx in the plugin to your field number, as stated in the install file.

restless
12-15-2005, 02:20 AM
I cleaned up the mood changer on my forum by creating a vb_menu popup. I personally like the way it turned out (although, I tried to get it to show the mood icon being used instead of "Change Mood", but I whipped this together in 5 minutes.

If anyone wants to try it, it's attached.

restless
12-15-2005, 02:20 AM
and thanks very much for the hack/plugin. it's very cool!

Mastar
12-15-2005, 11:08 AM
I cleaned up the mood changer on my forum by creating a vb_menu popup. I personally like the way it turned out (although, I tried to get it to show the mood icon being used instead of "Change Mood", but I whipped this together in 5 minutes.

If anyone wants to try it, it's attached.

I tried your edits but the dropdown wouldn't dropdown

restless
12-15-2005, 12:23 PM
sorry, my mistake. the second div should have an id of "moods_menu". new attachment.

Bounce
12-16-2005, 02:06 PM
they are in the upgrade zip over here
https://vborg.vbsupport.ru/showthread.php?threadid=98636

thanks :)

yip you just add them to the text in this installer.
I'm in the process of making more images such as "In Chat" ,"Offline","On the phone" lol and a few others :nervous:

I'll post them here when i'm done in case anyone wants to use them :rolleyes:

Firestar.chkn
12-17-2005, 08:39 PM
Thanks for a great hack.

Just a question to the person who added the code for the postbit mood changer? How can you change that code to only show on a post if that post is your own? Basically, I just want the command to compare the currentlt logged on user to the user who made the post. Can anyone tell me the code for that?

Thanks
Firestar.

Paprika
12-24-2005, 04:50 AM
This was a nice idea and all but what I'm trippin on is how I followed the directions given and ended up REMOVING some of the original moods.

For example, I had the mood depressed after installing the original Mod. Now I followed the directions for this add-on, and didn't notice till the end that his "updated mood list" actually lacked some of those moods which were valueble to my board. Now i have to roll back this installation, and make it do what I need it to do. Ugh!

I appreciate the effort but is it me or should you have just menitoned that some of the moods were removed??

-=Sniper=-
12-24-2005, 07:11 AM
to add the missing moods, all you need to do is add the additional moods to the moods field, and then copy paste of the moods in the template edit, changing the required text.

easy as 1-2-3.

merry xmas. Will update in the new year...

eNforce
12-24-2005, 09:13 AM
Here's an updated list with all the new moods I think...

<br />
My Mood:
<!-- / dropdown mood select by sniper -->
<form action="index.php" method="post" id="moodform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="newmood" />
<input type="hidden" name="userid" value="$bbuserinfo[userid]" />
<select name="mood" onchange="this.form.submit();">
<option value="No Mood" <if condition="$bbuserinfo['fieldXX'] == 'No Mood'">selected</if>>No Mood</option>
<option value="Aggressive" <if condition="$bbuserinfo['fieldXX'] == 'Aggressive'">selected</if>>Aggressive</option>
<option value="Amazed" <if condition="$bbuserinfo['fieldXX'] == 'Amazed'">selected</if>>Amazed</option>
<option value="Amused" <if condition="$bbuserinfo['fieldXX'] == 'Amused'">selected</if>>Amused</option>
<option value="Angelic" <if condition="$bbuserinfo['fieldXX'] == 'Angelic'">selected</if>>Angelic</option>
<option value="Angry" <if condition="$bbuserinfo['fieldXX'] == 'Angry'">selected</if>>Angry</option>
<option value="Apprehensive" <if condition="$bbuserinfo['fieldXX'] == 'Apprehensive'">selected</if>>Apprehensive</option>
<option value="Approved" <if condition="$bbuserinfo['fieldXX'] == 'Approved'">selected</if>>Approved</option>
<option value="Asleep" <if condition="$bbuserinfo['fieldXX'] == 'Asleep'">selected</if>>Asleep</option>
<option value="Bashful" <if condition="$bbuserinfo['fieldXX'] == 'Bashful'">selected</if>>Bashful</option>
<option value="+++++y" <if condition="$bbuserinfo['fieldXX'] == '+++++y'">selected</if>>+++++y</option>
<option value="Blah" <if condition="$bbuserinfo['fieldXX'] == 'Blah'">selected</if>>Blah</option>
<option value="Bookworm" <if condition="$bbuserinfo['fieldXX'] == 'Bookworm'">selected</if>>Bookworm</option>
<option value="Bored" <if condition="$bbuserinfo['fieldXX'] == 'Bored'">selected</if>>Bored</option>
<option value="Breezy" <if condition="$bbuserinfo['fieldXX'] == 'Breezy'">selected</if>>Breezy</option>
<option value="Brooding" <if condition="$bbuserinfo['fieldXX'] == 'Brooding'">selected</if>>Brooding</option>
<option value="Busy" <if condition="$bbuserinfo['fieldXX'] == 'Busy'">selected</if>>Busy</option>
<option value="Buzzed" <if condition="$bbuserinfo['fieldXX'] == 'Buzzed'">selected</if>>Buzzed</option>
<option value="Chatty" <if condition="$bbuserinfo['fieldXX'] == 'Chatty'">selected</if>>Chatty</option>
<option value="Cheeky" <if condition="$bbuserinfo['fieldXX'] == 'Cheeky'">selected</if>>Cheeky</option>
<option value="Cheerful" <if condition="$bbuserinfo['fieldXX'] == 'Cheerful'">selected</if>>Cheerful</option>
<option value="Cloud_9" <if condition="$bbuserinfo['fieldXX'] == 'Cloud_9'">selected</if>>Cloud_9</option>
<option value="Cold" <if condition="$bbuserinfo['fieldXX'] == 'Cold'">selected</if>>Cold</option>
<option value="Confused" <if condition="$bbuserinfo['fieldXX'] == 'Confused'">selected</if>>Confused</option>
<option value="Cool" <if condition="$bbuserinfo['fieldXX'] == 'Cool'">selected</if>>Cool</option>
<option value="Crappy" <if condition="$bbuserinfo['fieldXX'] == 'Crappy'">selected</if>>Crappy</option>
<option value="Cynical" <if condition="$bbuserinfo['fieldXX'] == 'Cynical'">selected</if>>Cynical</option>
<option value="Daring" <if condition="$bbuserinfo['fieldXX'] == 'Daring'">selected</if>>Daring</option>
<option value="Dead" <if condition="$bbuserinfo['fieldXX'] == 'Dead'">selected</if>>Dead</option>
<option value="Depressed" <if condition="$bbuserinfo['fieldXX'] == 'Depressed'">selected</if>>Depressed</option>
<option value="Devilish" <if condition="$bbuserinfo['fieldXX'] == 'Devilish'">selected</if>>Devilish</option>
<option value="Disapprove" <if condition="$bbuserinfo['fieldXX'] == 'Disapprove'">selected</if>>Disapprove</option>
<option value="Doh" <if condition="$bbuserinfo['fieldXX'] == 'Doh'">selected</if>>Doh</option>
<option value="Doubtful" <if condition="$bbuserinfo['fieldXX'] == 'Doubtful'">selected</if>>Doubtful</option>
<option value="Drunk" <if condition="$bbuserinfo['fieldXX'] == 'Drunk'">selected</if>>Drunk</option>
<option value="Dunce" <if condition="$bbuserinfo['fieldXX'] == 'Dunce'">selected</if>>Dunce</option>
<option value="Fine" <if condition="$bbuserinfo['fieldXX'] == 'Fine'">selected</if>>Fine</option>
<option value="Flirty" <if condition="$bbuserinfo['fieldXX'] == 'Flirty'">selected</if>>Flirty</option>
<option value="FootMouth" <if condition="$bbuserinfo['fieldXX'] == 'FootMouth'">selected</if>>FootMouth</option>
<option value="Goofy" <if condition="$bbuserinfo['fieldXX'] == 'Goofy'">selected</if>>Goofy</option>
<option value="Grumpy" <if condition="$bbuserinfo['fieldXX'] == 'Grumpy'">selected</if>>Grumpy</option>
<option value="Hacker" <if condition="$bbuserinfo['fieldXX'] == 'Hacker'">selected</if>>Hacker</option>
<option value="HaHa" <if condition="$bbuserinfo['fieldXX'] == 'HaHa'">selected</if>>HaHa</option>
<option value="Happy" <if condition="$bbuserinfo['fieldXX'] == 'Happy'">selected</if>>Happy</option>
<option value="Hot" <if condition="$bbuserinfo['fieldXX'] == 'Hot'">selected</if>>Hot</option>
<option value="Hotflash" <if condition="$bbuserinfo['fieldXX'] == 'Hotflash'">selected</if>>Hotflash</option>
<option value="In Love" <if condition="$bbuserinfo['fieldXX'] == 'In Love'">selected</if>>In Love</option>
<option value="Innocent" <if condition="$bbuserinfo['fieldXX'] == 'Innocent'">selected</if>>Innocent</option>
<option value="Inspired" <if condition="$bbuserinfo['fieldXX'] == 'Inspired'">selected</if>>Inspired</option>
<option value="Lonely" <if condition="$bbuserinfo['fieldXX'] == 'Lonely'">selected</if>>Lonely</option>
<option value="Love" <if condition="$bbuserinfo['fieldXX'] == 'Love'">selected</if>>Love</option>
<option value="Lurking" <if condition="$bbuserinfo['fieldXX'] == 'Lurking'">selected</if>>Lurking</option>
<option value="Mad" <if condition="$bbuserinfo['fieldXX'] == 'Mad'">selected</if>>Mad</option>
<option value="Mellow" <if condition="$bbuserinfo['fieldXX'] == 'Mellow'">selected</if>>Mellow</option>
<option value="Pensive" <if condition="$bbuserinfo['fieldXX'] == 'Pensive'">selected</if>>Pensive</option>
<option value="Psychadelic" <if condition="$bbuserinfo['fieldXX'] == 'Psychadelic'">selected</if>>Psychadelic</option>
<option value="Relaxed" <if condition="$bbuserinfo['fieldXX'] == 'Relaxed'">selected</if>>Relaxed</option>
<option value="Sad" <if condition="$bbuserinfo['fieldXX'] == 'Sad'">selected</if>>Sad</option>
<option value="Sassy" <if condition="$bbuserinfo['fieldXX'] == 'Sassy'">selected</if>>Sassy</option>
<option value="Scared" <if condition="$bbuserinfo['fieldXX'] == 'Scared'">selected</if>>Scared</option>
<option value="Shh" <if condition="$bbuserinfo['fieldXX'] == 'Shh'">selected</if>>Shh</option>
<option value="Shocked" <if condition="$bbuserinfo['fieldXX'] == 'Shocked'">selected</if>>Shocked</option>
<option value="Sick" <if condition="$bbuserinfo['fieldXX'] == 'Sick'">selected</if>>Sick</option>
<option value="Sleepy" <if condition="$bbuserinfo['fieldXX'] == 'Sleepy'">selected</if>>Sleepy</option>
<option value="Sneaky" <if condition="$bbuserinfo['fieldXX'] == 'Sneaky'">selected</if>>Sneaky</option>
<option value="Starving" <if condition="$bbuserinfo['fieldXX'] == 'Starving'">selected</if>>Starving</option>
<option value="Sunshine" <if condition="$bbuserinfo['fieldXX'] == 'Sunshine'">selected</if>>Sunshine</option>
<option value="Suspicious" <if condition="$bbuserinfo['fieldXX'] == 'Suspicious'">selected</if>>Suspicious</option>
<option value="Tell" <if condition="$bbuserinfo['fieldXX'] == 'Tell'">selected</if>>Tell</option>
<option value="Tired" <if condition="$bbuserinfo['fieldXX'] == 'Tired'">selected</if>>Tired</option>
<option value="Tolerant" <if condition="$bbuserinfo['fieldXX'] == 'Tolerant'">selected</if>>Tolerant</option>
<option value="Torn" <if condition="$bbuserinfo['fieldXX'] == 'Torn'">selected</if>>Torn</option>
<option value="Twisted" <if condition="$bbuserinfo['fieldXX'] == 'Twisted'">selected</if>>Twisted</option>
<option value="Vilified" <if condition="$bbuserinfo['fieldXX'] == 'Vilified'">selected</if>>Vilified</option>
<option value="Where" <if condition="$bbuserinfo['fieldXX'] == 'Where'">selected</if>>Where</option>
<option value="Woot" <if condition="$bbuserinfo['fieldXX'] == 'Woot'">selected</if>>Woot</option>
<option value="Yeehaw" <if condition="$bbuserinfo['fieldXX'] == 'Yeehaw'">selected</if>>Yeehaw</option>
</select>
</form>
<!-- / dropdown mood select by sniper -->

kofoid
12-24-2005, 01:40 PM
I have ONE user out of 100 who can't see their mood - any ideas?

-=Sniper=-
12-24-2005, 03:56 PM
tell them to clear their browser cache, it might fix the problem. I don't see why it won't show just for one user.

kofoid
12-24-2005, 04:54 PM
yeah - weird, eh?? :-) I will try that out and report back

apollooooooo
12-31-2005, 03:22 PM
Hello Great Hack but i am confused

I have Followed your Instrustions step by step but when i select to change my mood it reloads tha page and my mood changes back to No mood also no we Image appers at all can you help me

apollooooooo
12-31-2005, 03:40 PM
Atcuall i have got it to sat on the mood i selsect i forgot to change something opps but were dose the graphic apper ussure sorry i am a bit of an noob

xxwildchildxx
12-31-2005, 11:41 PM
The original XML file containts an SQL injection exploit.

apollooooooo
01-01-2006, 02:18 PM
so what do i do then to sort this out???

xxwildchildxx
01-01-2006, 06:23 PM
The coder will have to rework his code so that it does not contain the exploit. The exploit allows any user to change any other user's information that can be changed via the Profile.

-=Sniper=-
01-01-2006, 06:58 PM
please pm/post the fix, so I can include it. Also PM as to how someone can do the above as you said. So I can understand php/mysql more...thanks

should I include addslashes/htmlspecialchars when submiting the data?

OAndrea
01-02-2006, 05:02 AM
Hello Great Hack but i am confused

I have Followed your Instrustions step by step but when i select to change my mood it reloads tha page and my mood changes back to No mood also no we Image appers at all can you help me
I have the same issue... I need a fix please. Love the hack though! can't wait to have it up and running smooth as pudding.

-=Sniper=-
01-02-2006, 11:57 AM
I'll update it later today with all the new moods from the mood hack...

edit: I'll post it on tuesday.

Murty
01-23-2006, 08:16 AM
Hey there,

I have just installed this mod for my Forums. It is really good but it is not working properly. I have done exactly as the instructions say, but for some reason, when i go to change my mood, i pick the option off the drop down box, the page refreshes and it has changed back to 'No Mood'. Please help guys.

Murty
01-24-2006, 04:50 AM
Please help me!

Brandon Sheley
01-24-2006, 05:59 AM
I'll update it later today with all the new moods from the mood hack...

edit: I'll post it on tuesday.

has this been updated ?


just asking, no rush :)

-=Sniper=-
01-24-2006, 07:59 AM
Murty; pm me so I can check out your site.

Loco.M yes it was updated with all the same moods as the noods hack by lefthome.

Murty
01-24-2006, 08:28 AM
LOL, i just figured out what was wrong, I had not turned on the 'Plugin/Hook system'. Done that and it works perfectly, thanks heaps :D

GrendelKhan{TSU
01-24-2006, 09:03 AM
great hack

* GrendelKhan{TSU clicks install.


create a 1x1 pixel image and name it "no mood.gif" then upload it to where all ther other moods are.

I will post a code, so if its no mood, it won't show at all.

ok did this. still not showing for "no mood"

the path the image comes up as:
ht tp://w ww.MYSITE.com/forums/images/mood/.gif"

any ideas?

-=Sniper=-
01-24-2006, 04:17 PM
hi, did you follow step 9 in the text file?

QueenBee
02-05-2006, 06:25 PM
i want this but i dont get when u try to get the xml file it opens in a browser! someone please help

QueenBee
02-05-2006, 08:20 PM
pleeeeeease :ermm:

-=Sniper=-
02-05-2006, 08:23 PM
what browser are you using? I'd suggest firefox :) http://www.mozilla.com/ if you don't already use it.

try going to file -> save

then save it to you computer.

QueenBee
02-05-2006, 08:57 PM
ok i got that part now, and when i go to change it i get this:

There seems to have been a problem with the Ladies Lounge database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.5.3:

Invalid SQL:
UPDATE vb_userfield SET
FIELD3 = 'Yeehaw' WHERE userid = '1';

MySQL Error : Unknown column 'FIELD3' in 'field list'
Error Number : 1054
Date : Sunday, February 5th 2006 @ 05:55:02 PM
Script : http://www.ourladieslounge.com/forums/index.php
Referrer : http://www.ourladieslounge.com/forums/index.php
IP Address : *edited for security*
Username : QueenBee
Classname : vb_database

-=Sniper=-
02-05-2006, 09:01 PM
you don't have a "field3" go into user profile fields in the admincp and make sure you have the correct one.

when I get the time, I make it so you don't have to do the edit.

QueenBee
02-05-2006, 09:04 PM
but when i go to the user profile fields it says field5. is it supposed to be 3??

-=Sniper=-
02-05-2006, 09:13 PM
if its field5 contains all the moods, then change it to field5.

QueenBee
02-05-2006, 09:35 PM
ok, now i changed every mood in the navbar section, and i still get that message when i try to change moods from the forumhome, but i can change it in my user cp under options.

and its still not showing in the postbit either:(

any suggestions?

-=Sniper=-
02-05-2006, 09:48 PM
PM me a username/pass with admincp access and I can check it to see whats wrong.

Thieutje
02-07-2006, 10:19 AM
Does this work wioth the lastest Vb version ? 3.5.3 ?
DO you have to do the modifications in the 1.4 step by step ? or only copy the images and then start following the txt file from this thread ??? because the other thread where you need to get the mood images also has a 1.4 step by step txt file ?
Please some info ...

Grtz
Thieutje

Thieutje
02-08-2006, 06:22 AM
Somebody ?

-=Sniper=-
02-08-2006, 10:36 AM
folllow the other install instructions first fully, then follow mine fully.

Thieutje
02-08-2006, 11:52 AM
folllow the other install instructions first fully, then follow mine fully.

Thx , works perfect now !

Superb !!!

Thieutje

Raydar
02-08-2006, 11:30 PM
On the screenshot it shows that we can see our own moods. But how do other users see what mood we are in?

Thanks

Reg

-=Sniper=-
02-09-2006, 07:21 PM
you can make it appear in the postbit and it auto appears in the memberinfo page.

iTaLiAnBoY165
02-10-2006, 03:27 AM
i get a problem that evrytime y try to change my mood
on the quick one
it does not change.
it stoll in not mood.
it refresh the page and evrything but the mood does not shange.. it kees in no mood. and no picture apers.!!!
can any one help me out.

-=Sniper=-
02-10-2006, 10:32 AM
PM me your forum details with admincp access and I'll have a look for you.

Gripemaster
02-10-2006, 11:47 AM
*Clicks Install*

-=Sniper=-
02-14-2006, 08:31 PM
Just updated it :)

bashy
02-14-2006, 08:34 PM
This has never worked for me, Just tried ya prouct and nope still dont lol
Any ideas please?

QueenBee
02-14-2006, 08:37 PM
whats the prob? mine works great

-=Sniper=-
02-14-2006, 08:38 PM
This has never worked for me, Just tried ya prouct and nope still dont lol
Any ideas please?
I suggest, you read the instructions in the install file, then posting as to whats wrong!

I can only hope the instructions are clear enough for everyone...

bashy
02-14-2006, 08:38 PM
The prob is, it dont show the dropdown menu lol, absolutely nish...
I am going through them again, as a fresh install....

QueenBee
02-14-2006, 08:41 PM
do u have the install? what version do u have

-=Sniper=-
02-14-2006, 08:43 PM
The prob is, it dont show the dropdown menu lol, absolutely nish...
I am going through them again, as a fresh install....
have you edited the navbar?

bashy
02-14-2006, 08:57 PM
Heres what i just got..I have managed to show the dropdown in the navbar
but when changing the mood i get

Database error in vBulletin 3.5.3:

Invalid SQL:
UPDATE userfield SET
FIELDXX = 'Grumpy' WHERE userid = '1';

MySQL Error : Unknown column 'FIELDXX' in 'field list'
Error Number : 1054
Date : Tuesday, February 14th 2006 @ 10:50:36 PM
Script : http://www.bashys-place.com/forums/usercp.php
Referrer : http://www.bashys-place.com/forums/showthread.php?p=4152

Also the moods are not displaying anymore!!
I have checked the edite and there fine...all FIELD XX are fine
Including your typo ;) FIEDLXX :)

I am sure i have missed a FIELDXX but cannot find it

Just searched all templates for FIELDXX but not there
I have checkd that i have put the correct field in the field box in your drop settings in admincp and yip thats all fine :)

-=Sniper=-
02-14-2006, 09:04 PM
sorry, have you input the correct field number e.g. 14 in the admincp -> quick mood changer

will fix the typo now

edit: interesting, could you PM me with access to admincp, so I can see whats wrong?

Its working fine at my end.

bashy
02-14-2006, 09:05 PM
Yep...i did edit my post but ya must have missed it :)

-=Sniper=-
02-14-2006, 09:15 PM
ok, could you PM with admin access, so I can check whats wrong.

bashy
02-14-2006, 09:17 PM
ok m8 2 secs...bear oin mind i have disabled the poduct atm...so ya prob need to turn it back on again...

-=Sniper=-
02-14-2006, 09:26 PM
problem fixed, bashy forgot that the previous version was still installed.

bashy
02-14-2006, 09:28 PM
Lies...all lies.... :o

Yeah, ok thats right...i boo booed...thanks alot Sniper...
Much appreciated, Working well now :)

bashy
02-14-2006, 09:31 PM
ooo there is 1 little techinical hitch....
Wheres the mood images lol...they aint showing anymore lol
Me got to go bed now...speak tomoz about this other techincal hitch :)

-=Sniper=-
02-14-2006, 09:39 PM
make sure you have done the template edits correctly.

docvader
02-15-2006, 02:40 AM
Well Sniper, I've got issues after the upgrade. Followed your excellent instructions precisely.

This postbit edit
<!-- mood hack display start -->
<br /><if condition="!empty($post[FIELD46])"><div class="smallfont">
Current Mood: <img src="images/mood/$post[FIELD46].gif" title="$post[FIELD46]" align="center">
</div></if>
<!-- mood hack display end -->

results in this page source
<!-- mood hack display start -->
<br />
<!-- mood hack display end -->
Which is why I get no images, or anything else for that matter in my postbit.

I'm a little befuddled why this is happening, any suggestions?
Thanks
rich

EDIT.
If I take the exclamation point out of the postbit (!empty to empty), I then get this:
<!-- mood hack display start -->
<br /><div class="smallfont">
Current Mood: <img src="images/mood/.gif" title="" align="center">
</div>
<!-- mood hack display end -->

Progress, but still not working....

Brandon Sheley
02-15-2006, 02:57 AM
working great :) thx,, now to start making some moods

has anybody made a few more they would share ? I'm not the greatest graphics person

docvader
02-15-2006, 03:03 AM
OK, fixed it.

Change FIELD to field

In my installation, for some reason, using capital letters in FIELD threw it off.

There are just some things that I'll never understand....

testpig
02-15-2006, 09:01 AM
Hi Sniper.
I have the images working fine and the quick changer is showing up, however there are no moods in the quick changer.

I can select moods from within the usercp but not out in the forum.

The quickchanger box is very small (no text within...so its as if its not finding the moods I've added within vB Options).

I've gone over the edits and they are fine.
Removed the previous plugins and installed the new product.
Gone into the vB Options and added field 10 (my profile field) and then copied in each mood on a seperate line.

Basically its got me stuffed...any thoughts?

-=Sniper=-
02-15-2006, 11:02 AM
I'm looking to it now.

-=Sniper=-
02-15-2006, 11:06 AM
ok, simple test shows you need to use lowercase "fieldxx" in the templates, I'll update it now.

this should fix the problems.

testpig; did you input "field10" of just the number "10"?

bashy
02-15-2006, 04:34 PM
Ok sorted my problem...

I reuploaded the updated product, Still didnt show the images...
I then changed all of the FIELD in the postbit template to field and
hey presto, working like a dream...cheers Sniper :)

QueenBee
02-15-2006, 06:11 PM
hey anyone. i changed my skin. and i guess it took out the code cause i had to load it again. but now im trying to do this addon and its not showing in the postbit. i dot really get the instructions. i tried to do the upgrade too. anyone have ideas? or wanna get an admin account and help a little lady out? ;)

-=Sniper=-
02-15-2006, 06:15 PM
PM with details QueenBee, will get it sorted.

bashy
02-15-2006, 06:16 PM
Hi

Please read this below as this is what i did to get it to work...

Ok sorted my problem...

I reuploaded the updated product, Still didnt show the images...
I then changed all of the FIELD in the postbit template to field and
hey presto, working like a dream...cheers Sniper


hey anyone. i changed my skin. and i guess it took out the code cause i had to load it again. but now im trying to do this addon and its not showing in the postbit. i dot really get the instructions. i tried to do the upgrade too. anyone have ideas? or wanna get an admin account and help a little lady out? ;)

QueenBee
02-15-2006, 06:18 PM
i pmed u sniper.... u always come thru. thanks

QueenBee
02-15-2006, 06:42 PM
Hi

Please read this below as this is what i did to get it to work...

Ok sorted my problem...

I reuploaded the updated product, Still didnt show the images...
I then changed all of the FIELD in the postbit template to field and
hey presto, working like a dream...cheers Sniper


cool i did that it works. i love the "whats with the mood swing" thing lmao

never mind sniper:)

testpig
02-16-2006, 06:38 AM
ok, simple test shows you need to use lowercase "fieldxx" in the templates, I'll update it now.

this should fix the problems.

testpig; did you input "field10" of just the number "10"?

Hi Sniper.
I just have 10 in the control panel (although I tried field10). I have field10 in the templates (in lower case).

Everything works except nothin appears in the quick selector. All options have been added into the vB options area.

Only thing I have done differently is I had to edit the path to the images as mine are stored inside forum/images/moods instead of just images/moods Once I edited the pathway the images show fine inthe forum. Not sure if maybe this has an effect elsewhere but I can see any other paths in the code?

-=Sniper=-
02-16-2006, 02:34 PM
remember guys, there are no plugin edits, only template edits :)

testpig
02-17-2006, 05:16 AM
remember guys, there are no plugin edits, only template edits :)

Thanks Snipe. I think I edited the plugin while looking in desparation for the infamous lower case "field" problem.

Thanks for the assistance...top notch mod with even better support :)

funinthesun
02-17-2006, 09:06 PM
I'm getting this error. I've changed all the fieldxx and I've put the correct field number in the admincp settings so what am I doing wrong?
Database error in vBulletin 3.5.3:

Invalid SQL:
UPDATE userfield SET
FIELDXX = 'Cheeky' WHERE userid = '1';

MySQL Error : Unknown column 'FIELDXX' in 'field list'
Error Number : 1054
Date : Friday, February 17th 2006 @ 11:04:44 PM
Script : http://www.************.com/usercp.php
Referrer : http://www.**********.com/online.php?order=asc&sort=username&pp=20&page=1
IP Address : ********
Username : *******
Classname : vb_database

-=Sniper=-
02-17-2006, 09:10 PM
delete the old plugin! in the global_start hook, I think it was called "quick mood changer by sniper"

funinthesun
02-17-2006, 09:12 PM
EDIT: Had to change the fieldxx in the plugin. I knew I missed one somewhere! Working brill now :D

-=Sniper=-
02-17-2006, 09:22 PM
EDIT: Had to change the fieldxx in the plugin. I knew I missed one somewhere! Working brill now :D

hmm, are you using the latest one? since it no longer requires plugin edits, only template edits.

o0Hubba0o
02-17-2006, 10:08 PM
Mood shows up in the post bit no problem, you can change it in the usercp/edit options no problem.

Using the quick change however it refreshes to the usercp and doesn't change the mood.

-=Sniper=-
02-18-2006, 06:56 PM
is this during a new install or a upgrade? I'd suggest you try again.

funinthesun
02-19-2006, 12:42 PM
hmm, are you using the latest one? since it no longer requires plugin edits, only template edits.
Yes, I am using the latest one as I downloaded it just before I installed it. I didn't have to change the fieldxx in the xml product sheet just in the plugin on plugin manager - edit plugins.

-=Sniper=-
02-19-2006, 04:06 PM
but there are no such edits even in the plugin manager, try undoing the edits or re-importing the product again.

eNforce
03-07-2006, 03:54 AM
Umm, I've gone through the upgrade instructions perfectly a few times but I just can't get it to show in the postbit :(

Edit:

It will work with this original code though:
<!-- mood hack display start -->
<br /><if condition="$post[field55] != ''"><div class="smallfont">
Current Mood: <img src="images/mood/$post[field55].gif" title="$post[field55]" align="center">
</div></if>
<!-- mood hack display end -->

-=Sniper=-
03-07-2006, 10:38 AM
Umm, I've gone through the upgrade instructions perfectly a few times but I just can't get it to show in the postbit :(

Edit:

It will work with this original code though:

If it works, then no need to make
that last edit :)

Paprika
03-09-2006, 02:50 PM
Hey,

I just upgraded to vB 3.5.4 and had to revert all of my nav templates.

I went ahead and paste the old code back into the new reverted templates, the same code that was in the originally modified ones, and now my Quick Mood Changer doesn't show up at all!

Maybe I've made a mistake along the line somewhere, and I'll look at it again later on today, but is there some known conflict or issue with this mod and vB 3.5.4?

Thanks!

-=Sniper=-
03-09-2006, 03:01 PM
Try using the latest version, though the old version has no problems.

Kihon Kata
03-17-2006, 02:47 PM
Thanks Sniper for helping me update ours! You rock

fabianv
03-20-2006, 02:25 PM
Hey Sniper,

I changed my FIELD to lower case and everything seems to work.. just 2 things..

My mood changer is blank after ive changed a mood and I dont see a drop down in my usercp. :(

fabianv
03-20-2006, 02:28 PM
Ok I changed my Moods field to : 'Edit Profile' so that works now.. all I need to figure out now is why my changer is blank after choosing :confused:


Does this have any influence on it showing or not?

condition="empty($bbuserinfo[field6])">selected</if>></option>
$show[qmcmood]

-=Sniper=-
03-27-2006, 01:39 PM
if you need for me to have a look pm me with admin details...and I'll what you may have done wrong.

I think I need to rewrite the readme file :)

dboogie2288
03-27-2006, 03:47 PM
Ohhh this is much better than the original. Muuuuch better. Installed so much quicker.

Hey, question though-is it able to show the current mood of a user? Everything works great, but I'd like to know what my current mood is from that option if possible.

-=Sniper=-
03-27-2006, 06:06 PM
it should do.

My suggestion, uninstall the older version first, the install the latest version.

dboogie2288
03-27-2006, 08:50 PM
Old mod was removed completely a while back...

MorrisMcD
03-29-2006, 02:06 PM
First of all.. Thanks for the hack.. My users love it.. I have been using it for awhile.

Second.. I have one problem but its minor. When a new user signs up, they are defaulted to Aggressive as their mood.. I dont have a No Mood option. I do have it set to Yes, Including a Blank option.. Am I doing somethin wrong?

Thanks again

yumyumcat
04-01-2006, 01:14 AM
Thanks for the time to put together this great hack ~ I'm new at this and I did successfully complete the first part to this hack. Basically, I was given the great mood images and the code to replace under the other as instructed.

On the second part of installaton, I was given more moods as well as names to edit and I did with no problem.

Now here's where I run into a great misunderstanding. I see that you state this:
Follow these steps ONLY if you already have the quick mood changer installed,
Step 1
~~~~~~

Go to Admin CP -> Plugin System -> Plugin Manager

Step 3
~~~~~~

Delete the "Quick Mood Changer" plugin I don't see the download for this to install it only to delete it ~ lol ~

Could someone please explain? I thought perhaps that this would take care of the one that was deleted, but I see that I can't go any further without the initial hack that you're referring to.

Please direct me to that download ~

Thanks in advance ~

yumyumcat
04-02-2006, 03:53 AM
Can someone please hellp me?

yumyumcat
04-02-2006, 10:21 PM
OMG...sorry!!!!! What a dork I am :( JEEEEEEEEESh!!

Xtrato
05-04-2006, 10:48 PM
would it be possible to to have this centered at the bottom of a signature? and how would i do that lol

paul41598
05-06-2006, 12:05 PM
Personally I think someone should do what I did for my 3.0.7 board. Put it in the postbit legacy. So easy for users to change their mood as they are writing their posts. :D

o0Hubba0o
05-08-2006, 12:38 AM
Mood shows up in the post bit no problem, you can change it in the usercp/edit options no problem.

Using the quick change however it refreshes to the usercp and doesn't change the mood.
Well, I re-installed this today to see if maybe I overlooked something last time and it's still doing the same thing. I moved it to "edit profile" instead of options and still nothing.

Why would it be doing this?

-=Sniper=-
05-09-2006, 10:05 AM
PM me admin access to your forums, so I can check it if you want.

have you deleted the old plugin?

paul41598
05-12-2006, 02:48 PM
ok fixed.


Find: $post[iplogged]

Add Below:

<!-- / dropdown mood select by sniper start -->
<form action="usercp.php" method="post" id="moodform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="newmood" />
<select name="mood" onchange="this.form.submit();">
<option value="" <if condition="empty($bbuserinfo[FIELDXX])">selected</if>></option>
$show[qmcmood]
</select>
</form>
<!-- / dropdown mood select by sniper end -->

oh and if you dont like the redirect msg. Just open the hook location:
Hook Location : usercp_complete click EDIT

and change

eval(print_standard_redirect('qmc_mood_swing', true, true));

to

eval(print_standard_redirect('redirect_updatethank s'));

-=Sniper=-
05-12-2006, 04:14 PM
Do you think I should add a field which allows you to enter your own message from the admincp?

glorify
05-14-2006, 01:12 PM
I like it, but any way this could be done with AJAX?

-=Sniper=-
06-21-2006, 05:34 PM
I will release a new and improved version (with AJAX), once 3.6 final is out.

hgb
07-05-2006, 10:55 PM
cool and simple to setup

thx

-------------> installed

Littlebit
07-09-2006, 10:09 AM
First of all.. Thanks for the hack.. My users love it.. I have been using it for awhile.

Second.. I have one problem but its minor. When a new user signs up, they are defaulted to Aggressive as their mood.. I dont have a No Mood option. I do have it set to Yes, Including a Blank option.. Am I doing somethin wrong?

Thanks again

You've probably fixed it by now, but if not, head to your User Profile Field: Member Mood Display, and click to save the settings. This got it kicking in for me.

paul41598
07-14-2006, 08:02 PM
it is a plugin, so you had to import it. There was no need to make a new plugin.

the postbit will work for normal users, but not correctly for admins or mods, since because of inline moderation you have forms inside an form which causes it not to work.

I'm don't see anything wrong with the conditions used, so I can't tell you why it doesnt work.

If you remove all but the first 8 moods from the html code it works in 3.5.0 but thats no use...



Im just now experiencing this too. Theres gotta be a way around this.

Devil Woman
08-10-2006, 09:05 PM
Will this hack be upgraded to vb 3.6.0 at all? I have searched and can not find it in the vb 3.6.0 section

Thanks

psypix
08-18-2006, 05:52 PM
I installed it on 3.6 and it works fine but step 3 in the instructions must change to this

Find

<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>

Under it Add

<br />
$vbphrase[qmc_my_mood]:
<!-- / dropdown mood select by sniper start -->
<form action="usercp.php" method="post" id="moodform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="newmood" />
<select name="mood" onchange="this.form.submit();">
<option value="" <if condition="empty($bbuserinfo[FIELDXX])">selected</if>></option>
$show[qmcmood]
</select>
</form>
<!-- / dropdown mood select by sniper end -->

Click Save


* the bit i've highlighted in bold is extra if you are installing on Vb3.6

Other than that.....everything is working OK :)

thanks for a great hack!

The_Rayman
08-21-2006, 01:26 PM
Hi Sniper, and all vB users who have this hack!

i've integrated the hack on my vBa portal. Follow instructions below:

Go to Style Manager -> edit templates -> vBadvanced CMPS Templates -> adv_portal_welcomeblock and click "edit"

Look for
<a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></div>

Below that add:
<!-- / dropdown mood select by sniper start -->
<div class="smallfont">
<br />
$vbphrase[qmc_my_mood]:
<!-- / dropdown mood select by sniper start -->
<form action="/forum/usercp.php" method="post" id="moodform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="newmood" />
<select name="mood" onchange="this.form.submit();">
<option value="" <if condition="empty($bbuserinfo[field5])">selected</if>></option>
$show[qmcmood]
</select>
</form>
<!-- / dropdown mood select by sniper end -->

Save... all done... now you can select your mood on the portal too ;)

B3y0nd
09-04-2006, 05:53 PM
Okay. I'm running 3.6. I can change my mood in the navbar below my PMs but I don't see ANY moods in my postbit. I tried in my admin account and a test member account....still nothing.

Any ideas?

Edit:Okay, figured it out. I had to keep the original postbit edits from the original moodhack 3.5 by lefthome. If I re-edit them with the instructions by -=Sniper=- in step 4, then I cannot see the moods in the postbit. If anyone's having the same issue as me and is running vB 3.6, skip -=Sniper=-'s step 4 in his instructions. ;)

Dawnf1
09-09-2006, 01:27 PM
Thanks for this, my members will love it, being a very moody bunch lol

Just thought I'd let you know though, it only works for me if I don't do the bits in step 4 editing the postbit template, it was all fine as I checked it as I was going along, and then after step 4 nothing showed in the postbit at all.

So I went back and changed the code to what it had in the original mood changer instructions, and then it all worked fine.

:)

-=Sniper=-
09-20-2006, 05:09 PM
n/p I will release a new version soon with AJAX mood changing for 3.6.1.

Kihon Kata
09-20-2006, 05:17 PM
oooOOoOoh! you go!

n/p I will release a new version soon with AJAX mood changing for 3.6.1.

|Jordan|
07-24-2007, 05:24 PM
Does this hack also suffer from the XSS vulnerability that the "Mood Manager - with AJAX mood update" contains?

-=Sniper=-
07-24-2007, 05:27 PM
Jordan, in the usercp_complete plugin change TYPE_STR to TYPE_NOHTML thats it. Don't worry about it too much!

-=Sniper=-
07-24-2007, 05:36 PM
Please upgrade it fixes a XSS security risk!

update for ajax version coming in a few mins!

thank you

bashy
07-24-2007, 06:14 PM
Wheres the files please?

-=Sniper=-
07-24-2007, 06:22 PM
hi, bashy, I deleted this version by accident, when I was updating the AJAX version, if you could upload it again, I'll fix it and upload it here (non AJAX version).

|Jordan|
07-24-2007, 07:50 PM
Jordan, in the usercp_complete plugin change TYPE_STR to TYPE_NOHTML thats it. Don't worry about it too much!

Is that in the plugin file? I can't find it.

-=Sniper=-
07-24-2007, 08:04 PM
its in two of the plugins, I think userdata_start and profile_complete, just go though each one because I can't remember exactly, please post the product file so I can update the file for you, I have deleted from my computer, hense unable to post the updated file.

MysticMoon
07-24-2007, 09:32 PM
its in two of the plugins, I think userdata_start and profile_complete, just go though each one because I can't remember exactly, please post the product file so I can update the file for you, I have deleted from my computer, hense unable to post the updated file.

I attached what I think you are asking for :up:

-=Sniper=-
07-24-2007, 09:37 PM
thanks I have uploaded the new file, do have the readme file, as I can't remember if I included it ot not?

MysticMoon
07-24-2007, 09:56 PM
Yep it's attached.

You may want to double check I reverted everything back.
I have a habit of editing the instruct files to include my
info to make it easier for me lol
I think I changed it all back though.

-=Sniper=-
07-24-2007, 10:44 PM
thanks MysticMoon :)

esthervdwal
07-29-2007, 01:54 PM
Hello, I have Vbulletin 3.5.4 and strangely there is nothing showing...anyone any idea:confused:

Bro_Joey_Gowdy
07-31-2007, 07:20 PM
Uninstalled and Reinstalled updated version here:
https://vborg.vbsupport.ru/showthread.php?t=127220

hollyboy
02-24-2008, 12:52 PM
nice hack, installed

i wonder if there is a way to show the preview of the icons in the quick mood changer

thanks

bayareamommas
04-08-2008, 04:26 PM
i keep getting users that say they have a red x next to theirs

puregraf
11-27-2008, 05:19 PM
is it just me or the forum is allot slower when the moods are enabled??