vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Quick Mood Changer - addon (https://vborg.vbsupport.ru/showthread.php?t=102270)

-=Sniper=- 12-04-2005 10:00 PM

Quick Mood Changer - addon
 

############################################
##############--Bought to you by--###############

Talk Coding - Programming Forums

##########--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?

Code:

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

Quote:

Originally Posted by -=Sniper=-
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

Quote:

Originally Posted by dboogie2288
Hmm Parse error, what do ya'll think?

Code:

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

Quote:

Originally Posted by Rickie3
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

Quote:

Originally Posted by dboogie2288
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/attachmen...chmentid=38865 ?

dai-kun 12-06-2005 07:30 AM

Quote:

Originally Posted by -=Sniper=-
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:
Code:

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

Quote:

Originally Posted by dai-kun
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:

Code:

                                <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:

Code:

                                <!-- 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:

Code:

<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:

Code:

<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

Quote:

Originally Posted by Rickie3
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

Code:

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?


All times are GMT. The time now is 07:14 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01513 seconds
  • Memory Usage 1,861KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete