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

PHP Code:

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

Code:

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


To the Field # of your mood in the PlugIn.

Code:

$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

Quote:

Originally Posted by hIBEES
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?:
Code:

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:

Code:

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

Quote:

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.

Code:

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

PHP Code:

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:

[high]* Bounce installs and working fine[/high]

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

Quote:

Originally Posted by -=Sniper=-

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

Code:

<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

Quote:

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

[high]* hIBEES installs and working fine[/high]

you 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

Code:

<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

Quote:

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

Code:

<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

Quote:

Originally Posted by dboogie2288
Do you have images? those are great additions

they are in the upgrade zip over here
https://vborg.vbsupport.ru/showthrea...threadid=98636

-=Sniper=- 12-13-2005 09:53 PM

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

Originally Posted by Rickie3
they are in the upgrade zip over here
https://vborg.vbsupport.ru/showthrea...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...

Code:

<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


All times are GMT. The time now is 12:54 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.01515 seconds
  • Memory Usage 1,995KB
  • 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
  • (9)bbcode_code_printable
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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