PDA

View Full Version : Profile Enhancements - Mood Manager - with AJAX mood update.


Pages : [1] 2 3 4 5

-=Sniper=-
21 Sep 2006, 23:23
By http://www.vbulletinexpert.com

UPDATES ON 24/07/2007

1.2.5
-----

- Fixed XSS security issue
- Added Banned usergroup option

UPDATES ON 15/04/2007

1.2.4
-----

Credits to hambil - http://www.vbulletin.org/forum/member.php?u=57845 for this update

- Aligned text and images for a cleaner look
- Changed dropdown to contain mood images instead of text, with admin option
- Added optional auto replace for postbit and postbit legacy templates

UPDATES ON 08/10/2006

1.2.3
-----

- Changed how the dropdown menu looks slighty, better I think.

- One of the plugins was left inactive by mistake, now active.
which resulted in dead mood images e.g. cross displayed in IE

- Fixed a few mood names / images, so are the same.

- Added a few NEW mood images, thanks to GlitterKill

UPDATES ON 22/09/2006
~~~~~~~~~~~~~~~~~

1.2.0
------

Simply Import the product and make sure you select "allow overwrite"

- No Mood option added
- User Moods will no longer disaply in postbit if moods are disabled.


1.1.3
------

- thanks to basilrath for the moods.

PLEASE READ THE INSTALL FILE

What is It?

It allows users to set a personal mood, which can be changed without reloading the page. The moodis displayed in the members profile and postbit.

Instructions Incuded in the attached file.

Demo https://www.vbulletin.org/forum/external/2007/07/1.php?attachmentid=53735

Support I can provide better support at www.vbcmspro.com

Upgrade My other hack depended on another hack, this does not, so simply undo / delete the other hack.

projectego
21 Sep 2006, 23:51
Looks awesome. Thanks! ;)

basilrath
21 Sep 2006, 23:54
this is all you need..........moods etc

-=Sniper=-
21 Sep 2006, 23:59
thanks I added them :)

Kihon Kata
22 Sep 2006, 00:19
I use your OLD "Quick Mood Changer By Sniper" in my navbar. Once I added this update, it didn't work. I noticed there wasn't any changes to my navbar.

Any ideas?

-=Sniper=-
22 Sep 2006, 00:27
remove the old hack fully, this hack makes the edit when loading the page, the only edit you need to make is in the postbit. (also make sure you ENABLE the hack in the admincp)

go though the old install file and undo it, then uninstall the product.

read the install file.

Lionel
22 Sep 2006, 00:31
This is very nicely done. Unfortunately one drawback with those auto-installs, they don't take into account the other hacks. For example those of us who use the myspace profile do not use $customfields and if everyone starts placing things under the pm messages we will have a navbar that is half a page in length

-=Sniper=-
22 Sep 2006, 00:34
I will update it so you can select your own location and disable the auto-install by default.

btw: which other hack adds something under the PM area? (just wondering :))

Lionel
22 Sep 2006, 00:45
Thank you. In my navbar, I have Paul's M hack for number of unread posts, auto added; then the Pager hack, then Psionic Vision invites and comment alert. I still had to relocate the welcome username

-=Sniper=-
22 Sep 2006, 01:21
ok, I have updated it, please check the install file and report any problems here.

Gripemaster
22 Sep 2006, 01:24
Very nice... the old one was cool but this is very cool. *INSTALLED*

Lionel
22 Sep 2006, 01:42
that works nice, thank you. And thank you also for your other hack clickable fields that I just found

glorify
22 Sep 2006, 02:20
Backwards compatable to 3.5?

Comalies
22 Sep 2006, 02:40
When you disable it, people's moods still show. :-/

Roxie
22 Sep 2006, 03:22
Anyway to have a NO MOOD option, so that if the users change their minds and what no image to appear in the postbit, they could use that option?

Lionel
22 Sep 2006, 03:35
make a transparent image

Hornstar
22 Sep 2006, 04:06
Can you select which moods to allow for your members?

for example I want to enable it so, there are: away, busy, dinner, lunch, on phone, online, offline etc, kinda like how msn has done it. and when they go offline, there mood goes to offline automatically, and when they come online, they can not set it to offline (usergroup permissions set, only admins can make themselves appear offline.)

These few extra features would be awesome.

Thanks.

Thanks.

newbe_haselina
22 Sep 2006, 05:42
Thats a great hack ... thanks for that.

But anyway, I have a newbe question. What does this auto-install do? I selected autoinstall, but nothing happend. From your install-file I don't understand what I have to change in which template.

Can somebody please help me :confused:

Exitilus
22 Sep 2006, 05:53
Auto-Installs usually work by looking for a specific code and it's programmed to insert it's own code "after" or "before" what it was looking for.

Obviously if you customized the template that code could be changed / gone. So it can't auto-install. That means you have to manually put the code there which is provided.

Kihon Kata
22 Sep 2006, 06:03
welp, I unstalled the old one completely and this NEW one doesn't work :(

edit: I fixed it, I h ad to manually add my moods back.

Any more ideas on this version?

Cyb, PM me if you want.

aycan555
22 Sep 2006, 10:30
Verry nice hack, thank you...

Roxie
22 Sep 2006, 11:58
make a transparent image

The transparent image will still show "Mood: "
I think we'd like it to disappear completely from the postbit.

-=Sniper=-
22 Sep 2006, 12:09
Comalies; do mean they show in the postbit? I will make it so its disabled there is well.

Roxie; I will add the "no mood" option"

Plus I will make the install file a bit more clear.

Ricsca
22 Sep 2006, 14:31
Thanks :)

Kihon Kata
22 Sep 2006, 15:03
Cyb, Imma need some assistance with setting this up.(If you can) My board has over 600,000 posts and my members love this.

I currently use your old version on my 3.6.1 board.

PM me if you can :(

-=Sniper=-
22 Sep 2006, 15:53
Kihon Kata; PM me with access to admincp and I will do it later as I have to go work in a few mins.

hornstar1337; that would require different hack.

Hack Updated

- Simply Import the product and make sure you select "allow overwrite"

MSA
22 Sep 2006, 16:14
Looks awesome. Thanks!

your brother MSA

Muellmann
22 Sep 2006, 16:56
doesn't work, the drop-down box doesnt appear only the Text "My Mood: Change Mood"

I guess the Script works not with Mozilla Firefox, cause the Drop-down appears in the source of my website, it's only keep invisible. the "display:none" style is permanent active.

TheBlackPoet
22 Sep 2006, 17:07
this is soooo much better... i was testing where i wanted the $usermoods tag to go.. when i put it where i thought i wanted it to go.. i didnt like it, so took it out... WHY IS THE DAMN THING STILL THERE EVEN THOUGH THE TAG IS GONE?
i deleted the product.. and deleted the tag... but it is still there....
any ideas why??

steadicamop
22 Sep 2006, 17:53
Great hack love the AJAX idea works well, but how do I remove the extra line between the mood and my new posts/threads?

Pic attached to show.

Jason

Exitilus
22 Sep 2006, 18:33
I'm wondering if perhaps this product can be made using the [forumhome] setup. I run my forum at http://forums.houseofcrazed.com ... but anytime someone is visiting my gallery (gallery.houseofcrazed.com) or main page (www.houseofcrazed.com) the Mood Hack doesn't work. :(

Gripemaster
22 Sep 2006, 18:34
Thanks for the update!!! ;)

C_P
22 Sep 2006, 21:21
doesn't work, the drop-down box doesnt appear only the Text "My Mood: Change Mood"

I guess the Script works not with Mozilla Firefox, cause the Drop-down appears in the source of my website, it's only keep invisible. the "display:none" style is permanent active.
This one looks fun! I may install this only once confirmed FF compatible. Running Linux myself and pretty much only use FF browser as do alot of my members. Hopefully this can be confirmed/updated so I can install as well.

eNforce
22 Sep 2006, 21:26
The drop down is working fine for me running the latest Firefox.

areyouserios.com if you want to check it out.

username: guest
password: guest

C_P
22 Sep 2006, 21:31
The drop down is working fine for me running the latest Firefox.

areyouserios.com if you want to check it out.

username: guest
password: guest
thank you for confirmation, How did you get system specs drop down in user profile? Nice addition to a PC help site like mine...

FYI, Yehaw, hung over, paranoid, in love, inspired, stressed and Worried do not display your images..

eNforce
22 Sep 2006, 21:37
thank you for confirmation, How did you get system specs drop down in user profile? Nice addition to a PC help site like mine...

FYI, Yehaw, hung over, paranoid, in love, inspired, stressed and Worried do not display your images..

It's a modified version of this hack
http://www.vbulletin.org/forum/showthread.php?t=123253&highlight=extra
look on the right of the page for Add-Ons for the drop down

Calibre_k
22 Sep 2006, 21:38
Where is the mood suppose to be?

Its on top of forum...


Mine shows over New Thread Image...


How can I get the mood to:

Calibre_k
Member

Join Date: Mar 2006
Posts: 40
Style: Smooth Blue

MOOD HERE

eNforce
22 Sep 2006, 21:43
thank you for confirmation, How did you get system specs drop down in user profile? Nice addition to a PC help site like mine...

FYI, Yehaw, hung over, paranoid, in love, inspired, stressed and Worried do not display your images..

Oh, I looked into the moods;

Yeehaw is spelled incorrectly in the AdminCP I fixed that. (it was Yehaw)
The hung over image is not included in the package
In Love image is named incorrectly in the images dir, or vice versa, just have to match the names.
Inspired is working for me
Worried is also missing from the packages

Easy fixes for anyone who installs this mod

Gizmo5h1t3
22 Sep 2006, 21:46
got this running sweet on 3.5...nice hack!!

-=Sniper=-
22 Sep 2006, 22:49
Exitilus; it should work on any page which uses the navbar template. I have it on my forums, works in the gallery, arcade etc.

Calibre_k; if you enable auto edit, in the admincp -> mood manager it should appear in the PM area, other wise you need to use "$usermoods" in the navbar to place it anywhere you want.

please have a read though the install file, if there are any parts you do not understand, please let me know so I can improve on it.

C_P; I ONLY use FF, so yes it works in FF.

thank you

redlabour
22 Sep 2006, 23:02
Love it - somebody out there who can make German Icons ?

Muellmann
23 Sep 2006, 00:12
Doesn't work in Firefox :(
If I remove the style "Display: none" it works and shows a Box, but a very long Box with Text

It works now fine. I removed all my old Firefox-Settings and uninstalled Firefox and reinstalled with the new 1.507.

now i figured out in what the problem is. if i anonymize my firefox and i make useragent.override then the ajax-script doesn't work.

I uninstalled it again

Lionel
23 Sep 2006, 01:18
This is a real nice module, specially that now we can place the changer anywhere.
Is it hard to do a module for vbadvanced? The best place for me to display it would be in certain pages as the first right item

Calibre_k
23 Sep 2006, 01:24
How will Users know what my mood is?

You know where on the left people have there avatar how can I have my moods there so other users can view my mood?

Gread mod I must say, Thank you.

eNforce
23 Sep 2006, 01:37
How will Users know what my mood is?

You know where on the left people have there avatar how can I have my moods there so other users can view my mood?

Gread mod I must say, Thank you.

step 3 in the instructions

Lionel
23 Sep 2006, 01:40
Perfect. The vbadvanced module was the easiest one ever for me to make.

Exitilus
23 Sep 2006, 01:57
Exitilus; it should work on any page which uses the navbar template. I have it on my forums, works in the gallery, arcade etc.

thank you

Well the problem is when you attempt to change the mood when your on a different directory / address it doesn't work. Just hangs at updating the mood.

On my main page, the Mood just doesn't even display.

NeutralizeR
23 Sep 2006, 02:02
Perfect. The vbadvanced module was the easiest one ever for me to make.
How did you do it?

Calibre_k
23 Sep 2006, 02:26
step 3 in the instructions

Yep I've done that but it doesnt show.

NeutralizeR
23 Sep 2006, 02:58
Well the problem is when you attempt to change the mood when your on a different directory / address it doesn't work. Just hangs at updating the mood.

On my main page, the Mood just doesn't even display.
I think the problem is Plugins > [Mood Manager] - Make Drop Down Menu:
if ($vbulletin->options['moodmanageronoff'])
{
$vbulletin->templatecache['header'] .= '<script type=\"text/javascript\">
<!--
function update_mood()
{
fetch_object(\'mood_box\').innerHTML = \'GŁncelleştiriliyor...\';
if (ajax_mood.handler.readyState == 4 && ajax_mood.handler.status == 200 && ajax_mood.handler.responseText)
{
fetch_object(\'mood_box\').innerHTML = ajax_mood.handler.responseText;
}
}

function change_mood(mood)
{
ajax_mood = new vB_AJAX_Handler(true);
ajax_mood.onreadystatechange(update_mood);
ajax_mood.send(\'ajax.php\', \'do=insertmood&mood=\' + PHP.urlencode(mood));
}
//-->
</script>';

$moodslist = explode("\n", $vbulletin->options['moodmanagermoods']);

foreach ($moodslist AS $mood)
{
$mood = trim($mood);
if ($mood == $vbulletin->userinfo['mood']) { $selectedmood = ' Selected'; } else { $selectedmood = ''; }
$vbmoods['mood'] .= '<option value="' .$mood. '"' .$selectedmood. '>' .$mood. '</option>';
$vbmoods['mood'] .= "\r";
}

if ($vbulletin->options['moodmanagerglobal'])
{
$search_text = '$vbphrase[private_messages_nav]';
$vbulletin->templatecache['navbar'] = str_replace($search_text,

$search_text.fetch_template('quick_mood_change_by_sniper'),$vbulletin->templatecache['navbar']);
}
else
{
eval('$usermoods = "' . fetch_template('quick_mood_change_by_sniper') . '";');
}
}
ajax.php is not in the external directory...

On my main page, the Mood just doesn't even display.

Templates > quick_mood_change_by_sniper:
<img src="images/mood/$bbuserinfo[mood].gif" border="0" />
replace it with:
<img src="http://www.yourdomain.com/forum/images/mood/$bbuserinfo[mood].gif" border="0" />

This hack won't work (unless updated) if you have some vb integrated pages out of the forum folder...

Calibre_k
23 Sep 2006, 03:04
Guys its working now Thank You.

Gaia
23 Sep 2006, 04:30
Nice,

/me installs

steadicamop
23 Sep 2006, 07:22
Exitilus; it should work on any page which uses the navbar template. I have it on my forums, works in the gallery, arcade etc.

Calibre_k; if you enable auto edit, in the admincp -> mood manager it should appear in the PM area, other wise you need to use "$usermoods" in the navbar to place it anywhere you want.

please have a read though the install file, if there are any parts you do not understand, please let me know so I can improve on it.

C_P; I ONLY use FF, so yes it works in FF.

thank you

Any suggestions on how to sort this small issue out - http://www.vbulletin.org/forum/showpost.php?p=1080778&postcount=30 just one line between the mood drop down and another hack - I just can't find any br tags that might cause it....

Thanks!

Jason

-=Sniper=-
23 Sep 2006, 07:58
steadicamop; try disabling the auto edit and do it manually.

NeutralizeR; does it work with the full path then?

Gizmo5h1t3
23 Sep 2006, 09:35
weird this, just tried to selest "worried", and it shows a red x....

checked the directory, and worried aint even there.
on further investigation, a few others werent there either....


dont the images and the product run in synch??

NeutralizeR
23 Sep 2006, 12:15
steadicamop; try disabling the auto edit and do it manually.

NeutralizeR; does it work with the full path then?
Except from the ajax.php section...
How can we state the full path for it?

I can see the mood images and the moods on the list but i can't change them...

-=Sniper=-
23 Sep 2006, 16:41
I need to delete the moods which have no images, as simple as that, not a bug or anything.

NeutralizeRl; try using your domain before ajax.php

C_P
23 Sep 2006, 17:02
Sniper, I know you allow users to place your code "anywhere you want" but maybe you should offer suggestions? I know myself not being a coder, placing anywhere I want, I'd be dropping in at the topp so I can remove it easier if it looks bad. Maybe for each section you could "suggest" a "find this and aftr it place code here"?

-=Sniper=-
23 Sep 2006, 17:14
Sniper, I know you allow users to place your code "anywhere you want" but maybe you should offer suggestions? I know myself not being a coder, placing anywhere I want, I'd be dropping in at the topp so I can remove it easier if it looks bad. Maybe for each section you could "suggest" a "find this and aftr it place code here"?
will do later on :) though my suggested locations would be the auto edits :)

newbe_haselina
23 Sep 2006, 17:17
will do later on :) though my suggested locations would be the auto edits :)

Hi Sniper, that would be great :)
I'm also struggling with that stuff, because I'm everythin but a coder :knockedout:

Thanks for your advice :-)

NeutralizeR
23 Sep 2006, 22:20
I think it looks better this way (at least for my own style):

Download mymood.gif below: (Right click and "Save as...")
https://www.vbulletin.org/forum/

Upload mymood.gif to /forum/images/mood/ folder...

Open your quick_mood_change_by_sniper template:

Replace:
$vbphrase[my_mood]:
with the code below:
<img src="images/mood/mymood.gif" width="72" height="15" border="0" />

Replace:
<script type="text/javascript"> vbmenu_register("moods"); </script>
with the code below: (if you don't want the arrow icon)
<script type="text/javascript">vbmenu_register("moods" ,1);</script>

Result:
http://img230.imageshack.us/img230/6974/snap4qm1.png

For the postbit_legacy template:

Replace:
<if condition="!empty($post[mood])">
<div>
$vbphrase[my_mood]: <img src="images/mood/$post[mood].gif" border="0" />
</div>
</if>
with the code below:
<if condition="!empty($post[mood])">
<div><img src="images/mood/mymood.gif" width="72" height="15" border="0" /> <img src="images/mood/$post[mood].gif" border="0" />
</div>
</if>

Result:
http://img235.imageshack.us/img235/4030/snap3sf2.png

NeutralizeR
23 Sep 2006, 22:39
steadicamop; try disabling the auto edit and do it manually.

NeutralizeR; does it work with the full path then?
Yes, i've solved the vBadvanced CMPS problem...

Add vbmoods to Portal Output Global Variables list.

If you use vBadvanced and the index of it is not located in the same directory with your forum e.g. http://www.msxlabs.org/index.php (my vbadvanced page), http://www.msxlabs.org/forum/ (my forums), you have to edit these template and the plugins:

quick_mood_change_by_sniper template:
Add the bold text:
<img src="http://www.yourdomain.com/forum/images/mood/$bbuserinfo[mood].gif" border="0" />

Plugin Manager > [Mood Manager] - Ajax Update:
die("<img src=\"http://www.yourdomain.com/forum/images/mood/" . $new_mood. ".gif\" border=\"0\" />");

Plugin Manager > [Mood Manager] - Make Drop Down Menu:
ajax_mood.send(\'../forum/ajax.php\', \'do=insertmood&mood=\' + PHP.urlencode(mood));

Thanks for the hack

Emanet-Kaos
23 Sep 2006, 23:29
thanks very much, cool hack :O)

Lionel
24 Sep 2006, 15:56
How did you do it?

create a template adv_portal_mymood
<tr>
<td>$usermoods</td></tr>

here is the module (basically the same as hack. Only this line is added : eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_mymood') . '";');
)

<?php
if ($vbulletin->options['moodmanageronoff'])
{
$vbulletin->templatecache['header'] .= '<script type=\"text/javascript\">
<!--
function update_mood()
{
fetch_object(\'mood_box\').innerHTML = \'Updating...\';
if (ajax_mood.handler.readyState == 4 && ajax_mood.handler.status == 200 && ajax_mood.handler.responseText)
{
fetch_object(\'mood_box\').innerHTML = ajax_mood.handler.responseText;
}
}

function change_mood(mood)
{
ajax_mood = new vB_AJAX_Handler(true);
ajax_mood.onreadystatechange(update_mood);
ajax_mood.send(\'/forums/ajax.php\', \'do=insertmood&mood=\' + PHP.urlencode(mood));
}
//-->
</script>';
$moods = explode("\n", $vbulletin->options['moodmanagermoods']);
foreach ($moods AS $mood)
{
$mood = trim($mood);
if ($mood == $vbulletin->userinfo[mood]) { $selected = ' Selected'; }
$moods[mood] .= '<option value="' .$mood. '"' .$selected. '>' .$mood. '</option>';
$moods[mood] .= "\r";
}
if ($vbulletin->options['moodmanagerglobal'])
{
$search_text = '$vbphrase[private_messages_nav]';
$vbulletin->templatecache['navbar'] = str_replace($search_text,
$search_text.fetch_template('quick_mood_change_by_sniper'),$vbulletin->templatecache['navbar']);
}
else
{

eval('$usermoods = "' . fetch_template('adv_portal_quick_mood_change_by_sniper') . '";');
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_mymood') . '";');
}
}
?>

use shell module

NeutralizeR
24 Sep 2006, 16:20
create a template adv_portal_mymood
<tr>
<td>$usermoods</td></tr>

here is the module (basically the same as hack. Only this line is added : eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_mymood') . '";');
)

<?php
if ($vbulletin->options['moodmanageronoff'])
{
$vbulletin->templatecache['header'] .= '<script type=\"text/javascript\">
<!--
function update_mood()
{
fetch_object(\'mood_box\').innerHTML = \'Updating...\';
if (ajax_mood.handler.readyState == 4 && ajax_mood.handler.status == 200 && ajax_mood.handler.responseText)
{
fetch_object(\'mood_box\').innerHTML = ajax_mood.handler.responseText;
}
}

function change_mood(mood)
{
ajax_mood = new vB_AJAX_Handler(true);
ajax_mood.onreadystatechange(update_mood);
ajax_mood.send(\'/forums/ajax.php\', \'do=insertmood&mood=\' + PHP.urlencode(mood));
}
//-->
</script>';
$moods = explode("\n", $vbulletin->options['moodmanagermoods']);
foreach ($moods AS $mood)
{
$mood = trim($mood);
if ($mood == $vbulletin->userinfo[mood]) { $selected = ' Selected'; }
$moods[mood] .= '<option value="' .$mood. '"' .$selected. '>' .$mood. '</option>';
$moods[mood] .= "\r";
}
if ($vbulletin->options['moodmanagerglobal'])
{
$search_text = '$vbphrase[private_messages_nav]';
$vbulletin->templatecache['navbar'] = str_replace($search_text,
$search_text.fetch_template('quick_mood_change_by_sniper'),$vbulletin->templatecache['navbar']);
}
else
{

eval('$usermoods = "' . fetch_template('adv_portal_quick_mood_change_by_sniper') . '";');
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_mymood') . '";');
}
}
?>

use shell module
Thanks for the reply... I've found an alternative way as i have many non-vbulletin pages in different folders integrated to forum database.

Exitilus
24 Sep 2006, 22:33
Yes, i've solved the vBadvanced CMPS problem...

Add vbmoods to Portal Output Global Variables list.

If you use vBadvanced and the index of it is not located in the same directory with your forum e.g. http://www.msxlabs.org/index.php (my vbadvanced page), http://www.msxlabs.org/forum/ (my forums), you have to edit these template and the plugins:

quick_mood_change_by_sniper template:
Add the bold text:


Plugin Manager > [Mood Manager] - Ajax Update:


Plugin Manager > [Mood Manager] - Make Drop Down Menu:

Thanks for the hack

I also had to add usermoods to the Global Output for vBadvanced to get it working.

Though I'm still having a problem with the final edit. the ../forums/ajax.php\

If I set that it will work on the vbAdvanced Page. But will not work in the main forums. Though what I really need to do is specify a exact path. I have two different folders, gallery and forums. So obviously when I'm in gallery folder the mod doesn't work because of the directory. if I can define the exact location or url .. then it woudl work. Just dunno how :|

NeutralizeR
25 Sep 2006, 00:14
I also had to add usermoods to the Global Output for vBadvanced to get it working.

Though I'm still having a problem with the final edit. the ../forums/ajax.php\

If I set that it will work on the vbAdvanced Page. But will not work in the main forums. Though what I really need to do is specify a exact path. I have two different folders, gallery and forums. So obviously when I'm in gallery folder the mod doesn't work because of the directory. if I can define the exact location or url .. then it woudl work. Just dunno how :|
Did you try /forums/ajax.php ?
****
Can you type all of the custom folders you have?

Exitilus
25 Sep 2006, 01:13
In my public_html directory I have gallery and forums directories.

But I use them in such a way as forums.houseofcrazed.com and gallery.houseofcrazed.com

if I try /forums/ajax.php it will only work on my vbadvanced page.

Morrus
25 Sep 2006, 01:27
Seems to work fine. Even got it displaying in my blog area.

However, I can't seem to get it to show up in the postbit. Wherever I place it, nothing happens. Any ideas?

I addition, if the user has not slected a mood, I get a broken image. Right-clicking indicates it's trying to find an image with no name (images/moods/.gif).

Adrian Schneider
25 Sep 2006, 01:36
Cool hack... may add it to one of my sites.

Morrus
25 Sep 2006, 01:49
How will Users know what my mood is?

You know where on the left people have there avatar how can I have my moods there so other users can view my mood?

Gread mod I must say, Thank you.

Same problme here - doing the postbit edit in the install instructions has no effect. Did you manage to solve it?

Kihon Kata
25 Sep 2006, 03:39
Sniper, question.

The table seems to be extra tall where and opens up a kinda large space where the hack goes. LOok at my forums here (http://www.makeuptalk.com/forums) and you'll see what I'm talking about

icemanic
25 Sep 2006, 08:02
hey, this is weird, my mods and admins can see it, the drop down ajax mod, and can change moods, but the drop down ajax mood menu box is missing from registered users, how do i get this to be there?

murrtex
25 Sep 2006, 08:20
love,yehaw,worried,stressed,phsciadelic,paranoid,hungover gifs are absent in the gif pack.
have you ??

-=Sniper=-
25 Sep 2006, 10:09
Anyone, If you have the OLD "Quick Mood Changer By Sniper" installed, uninstall it.

I'll update it so users have the need to change the image patch can do so though the admincp, rather than edit the plugin and the update on the instructions.

Morrus; it should display nothing if the user has "no mood" selected, make sure the user has a mood selected for it to disaply in the postbit.

Kihon Kata; I'm gona look at that later on, I'm starting last year at uni this weekm so not had as much time.

icemanic; it should display for all members, are you using the auto edit or you edited the templates your self?

murrtex; some mood images are there but the mood names do not match, I'm gona fix that, other than that you will have find some more moods, as I don't have any more.

Kihon Kata
25 Sep 2006, 13:31
Kihon Kata; I'm gona look at that later on, I'm starting last year at uni this weekm so not had as much time.

Thanks very much Sniper. I've included a snapshot to better show you :)

Morrus
25 Sep 2006, 15:17
Morrus; it should display nothing if the user has "no mood" selected, make sure the user has a mood selected for it to disaply in the postbit.

Gimme some credit! :)

I had a mood selected, and the moods are displaying just fine in the profile. It's the postbit only where the problem is arising.

icemanic
25 Sep 2006, 16:10
SNIPER: I am using auto-edit, i have logged in as admin and i see mood dropbox and change moods, if i log in as a regular user, i see no mood dropbox and cannot change moods i have even reverted templates fully for the navbar to try to see what may go wrong but problem persists

-=Sniper=-
25 Sep 2006, 23:31
ok, I think a manual edit might help, I will update tomorrow after uni with a suggested location.

Morrus; PM admin access to have a look so I can see whats going wrong.

Exitilus
26 Sep 2006, 00:17
Meh .... I guess there is no way to specify the actual path to ajax.php ? (Either with URL or Web Folder). Been trying to figure it out but no luck :|

-=Sniper=-
26 Sep 2006, 00:19
Exitilus; I would need admin access so I can try and fix the problem but I won't be able to until later on, on sunday.

I will update the hack, I've fixed a template issue on another users site, just need to update the hack now.

icemanic
26 Sep 2006, 01:00
i tried a manual edit of templates but cannot get $usermoods to show up in navbar, all i get is a bold "My Mood" to the right of private message total #
there is no ajax code or programming or menu dropbox.........

but on the other hand, the postbit edit seems to display a mood that was previously set

what must i do?

also, ihave PM's off for regular users, if this may be a conflict.......

BellyBelly
26 Sep 2006, 01:36
I hope this hasn't already been mentioned, I am lost - but its all gone in well and I want to know how I can make it so that you can see someone's mood without going into their profile - e.g. having it with their user details next to the posts? Have I done something wrong?

Also something further down the track perhaps, am I able to change the images for just text, to save the load on the busier forums?

ETA: Some people can see the moods in the posts and most can't? Weird...

Exitilus
26 Sep 2006, 02:28
Exitilus; I would need admin access so I can try and fix the problem but I won't be able to until later on, on sunday.

I will update the hack, I've fixed a template issue on another users site, just need to update the hack now.

I'll send you a PM with some Information.

hotwheels
26 Sep 2006, 02:31
Thanks sniper, another fine job.

BellyBelly
26 Sep 2006, 04:57
Update - I have most working but some people you still cant see their mood - when you go into their profile, it says, 'my mood' but theres a white box with a red cross. If you check the properties it is referencing the file: .gif - no filename just extention. Any ideas?

Throtex
26 Sep 2006, 13:17
I think it looks better this way (at least for my own style):

Download mymood.gif below: (Right click and "Save as...")
http://img63.imageshack.us/img63/4379/mymoodtl6.gif
God, some of you people make me wish I graduated past crayons :D Your postbits look phenomenal, NeutralizeR!


This hack was an instant hit on my board ... thank you, Sniper!


One quick question -- the variable you stick in the navbar to get the mood selector to show up doesn't appear to be in scope on the navbar if using vbAdvanced. Anybody know off-hand how to bring it into scope?

-=Sniper=-
26 Sep 2006, 17:40
icemanic; yes that can be a problem, do the manual edit instead.

Throtex; thanks, but not quite sure what you mean?

Throtex
26 Sep 2006, 18:06
Throtex; thanks, but not quite sure what you mean?

It's nothing to do with your hack, really ... but to use with vbAdvanced you can add the "usermoods" variable to the global variable list ... but then the image path is off (relative path) and images will be broken (it looks in /images/mood rather than /forums/images/mood). I'll just have to go in and hard-code my path. :)

icemanic
26 Sep 2006, 23:34
i tried to do a manual edit, but like i mentioned, all i get is a boldfaced "My Mood" where there should be the drop down menu ajax box but.... and no drop down menu/etc

FSFwebmaster
27 Sep 2006, 04:26
where do i stick steps 4 & 5 to make this work. anywhere is just no working for me :P just want it to show up like in the demo picture. can you give me a more specific place please

GrendelKhan{TSU
27 Sep 2006, 11:59
how many queries does this add to the boards? is there any issue with server load or with big boards?

looks great :)

-=Sniper=-
27 Sep 2006, 15:11
icemanic; have you disabled the auto edit is well?

FSFwebmaster; just enable the auto edits in the admincp, thats what the demo uses.

GrendelKhan{TSU; it uses the datamanager to update the user mood, you will have NO server load issues.

StarshipTrooper
27 Sep 2006, 17:59
Exitilus; it should work on any page which uses the navbar template. I have it on my forums, works in the gallery, arcade etc.

Hi,

This is an awesome hack. It runs well on my forums, but is there a way to get it to work with vbPortal? vbPortal uses "P_block_navbar" instead of "navbar".

Regards,

Nathan
Webmaster@BattlestarGalacticaClub.com

-=Sniper=-
28 Sep 2006, 23:11
you will need the asks the guys over at vbPortal for help.

I will issue the next update during the weekend.

FSFwebmaster
29 Sep 2006, 09:09
how do i turn on the auto edit?

GlitterKill
29 Sep 2006, 14:47
I went through and remade the missing smilies as well as added a new "Pimpin" one. :) Here they are. (Like already stated in this thread... some are not missing, just mispelled in the options such as In Love, Psychadelic and Yeehaw). Maybe we can get others to share their new mood/icons as well? :)

StarshipTrooper
29 Sep 2006, 16:19
you will need the asks the guys over at vbPortal for help.

Hi,

Okay, will do. I'll post a link here if they manage to get it up and running with vbPortal. GlitterKill, thanks for posting the new moods. Just added them to my forums!

Regards,

Nathan

Throtex
29 Sep 2006, 19:36
I went through and remade the missing smilies as well as added a new "Pimpin" one. :) Here they are. (Like already stated in this thread... some are not missing, just mispelled in the options such as In Love, Psychadelic and Yeehaw). Maybe we can get others to share their new mood/icons as well? :)
Awesome!

oberheimhaven
29 Sep 2006, 21:21
Awesome another great hack with zero issues on install 3.6.0

Thxs
MarkAnthony

davelacey
29 Sep 2006, 22:37
Sweet hack. *clicks install*
Thankyou.

And nicely done, GlitterKill. Thanks to you also. :)

oberheimhaven
01 Oct 2006, 01:36
One minor question where do i put the mood file for cmps? Is this compat thanks other than that I had no problem at all thxs again!

frosch68
05 Oct 2006, 07:01
i would like to have the mood icons in the detail of whosonline

what should i insert there ?

thanks !!

TheBlackPoet
05 Oct 2006, 08:24
yeah i completed deleted the mood hack and the made sure it was out of the code... and its majic.... still there.... like a 3 day old house guest..

i like the hack, i just want to move to another location.... but it must like the spot it got..

TVNettet
05 Oct 2006, 08:45
Nice one thx!!

paul41598
05 Oct 2006, 16:38
Database error in vBulletin 3.6.1:

Invalid SQL:
UPDATE user SET
mood = 'Angelic'
WHERE userid = 1;

MySQL Error : Unknown column 'mood' in 'field list'
Error Number : 1054

transitbus
05 Oct 2006, 20:27
Well had to reinstall it to get it working but it works now :/

One more thing, the option to turn off and on is too confusing. Can you make it an off or on radio button instead of yes/no? As it stands it asks if you want the ability to turn it off/on and the answers are yes/no but which is off and which is on?

WESH(UK)
06 Oct 2006, 03:12
Just installed this in 5 minutes flat and works a treat!!!
Nice easy instructions..

This is why vBulletin rocks! Thanks dude...:laugh:

paul41598
06 Oct 2006, 12:20
Id like to see the dropdown to change a mood in your postbit rather the navbar. Any way?

adonfun
06 Oct 2006, 13:20
Great Hack! :) Going to install in on 3.6.2 :)

Wheemer
07 Oct 2006, 05:34
Id like to see the dropdown to change a mood in your postbit rather the navbar. Any way?
That option is already built in...

This is a nice mod, I love how it makes the template edits automatically, this should be the standard method of making mods.

paul41598
08 Oct 2006, 01:35
That option is already built in...

This is a nice mod, I love how it makes the template edits automatically, this should be the standard method of making mods.
um, no..

the mood is displayed in the postbit, but not the actual dropdown selection

Aclikyano
08 Oct 2006, 05:42
some reason my server load SKYROCKETED after install...

nice hack tho.

Shazz
08 Oct 2006, 05:51
I get this Red X if they haven't chosen a mood :(

Kanustep
08 Oct 2006, 12:48
Great Sniper, what software you use to capture the animation?

ravi
08 Oct 2006, 17:02
Sniper thanks for this nice hack. Everything is great except for users who has not set their mood, a red x shows in internet explorer.

One more thing I noticed is somehow after I installed this hack on Vb 3.6.1, only post count of userid = 1 has become zero. I rebuilt user post counters and I cannot recreate it again.

-=Sniper=-
08 Oct 2006, 18:09
HACK UPDATED

ravi; Shazz; it should be fixed in the latest version, upgrade and let me know

Kanustep; screenflash

Aclikyano; the hack uses ZERO queries when displaying the mood, and uses the datamanager to update the mood, so I can't say what could be causing your server load.

paul41598; yes its possible, you can use this code
$vbphrase[my_mood]: <a href="#" id="moods"><if condition="!empty($bbuserinfo[mood])"><img src="images/mood/$bbuserinfo[mood].gif" border="0" /><else />$vbphrase[change_mood]</if></a> <script type="text/javascript"> vbmenu_register("moods"); </script> but you will need to add conditions, so only the logged in user can see the option and others see his/her normal mood.

ravi
08 Oct 2006, 19:31
I have installed this update . Works nice with following issues.

After we change the mood the small inverted triangle icon disappears untill page is refreshed(same in IE and Firefox)
After we change mood the dropdown menu does not disappear in Firefox untill we click the mouse somewhere on the page. Please see the image below.
http://img15.imgspot.com/u/06/280/15/moodchange1160335263.gif

I have tried to upgrade and also uninstall and install same results. In template memberinfo , adding mood manager code under $customfields doesn't display user mood in profile view, but if we put the same code elsewhere it shows up.

Thank you

Shazz
08 Oct 2006, 19:41
Thax ill try it out now :)

-=Sniper=-
08 Oct 2006, 19:55
ravi; please download the new zip it contains the updated template, as I made it without the little triangle, should not be there.

After we change the mood the small inverted triangle icon disappears untill page is refreshed(same in IE and Firefox)
After we change mood the dropdown menu does not disappear in Firefox untill we click the mouse somewhere on the page. Please see the image below.thats the way the vbulletin menus work, I can't change it.

Shazz
08 Oct 2006, 19:56
*Re downloads the zip again...

Shazz
08 Oct 2006, 20:00
That fixed the triangle problem ! :)

oberheimhaven
08 Oct 2006, 20:32
Will this work VBcmps? where so I load image files for vbcmps?
thxs
MarkAnthony

-=Sniper=-
08 Oct 2006, 21:09
you can try but I will only provide support for the vbulletin only version, sorry.

Kaleem
08 Oct 2006, 23:05
Working fine thanks for the Update :)

adonfun
08 Oct 2006, 23:38
You did a good job wih the mood menu! 100% Good :)

Dragonsfury
09 Oct 2006, 01:32
How could I make it display a users mood under thier avatar.. I know it's a template edit but what would the code be

Dragonsfury
09 Oct 2006, 01:46
ok I'm lame.. I found in the readme of all places.... sheesh who woulda thunk it..

paul41598
09 Oct 2006, 18:26
paul41598; yes its possible, you can use this code
$vbphrase[my_mood]: <a href="#" id="moods"><if condition="!empty($bbuserinfo[mood])"><img src="images/mood/$bbuserinfo[mood].gif" border="0" /><else />$vbphrase[change_mood]</if></a> <script type="text/javascript"> vbmenu_register("moods"); </script> but you will need to add conditions, so only the logged in user can see the option and others see his/her normal mood.

Dont think that works too well sniper :(

category
09 Oct 2006, 19:22
does it only work in the navbar? becuase my navbar is in my forumhome will it work?

oberheimhaven
09 Oct 2006, 19:57
Where would I put the images? For vbcmps???? Its showing up minus images where do i put them anyone
' Thxs

hotwheels
10 Oct 2006, 00:33
Hey sniper, if you want, i have a mood image file with about 120 different moods.....
I am not able to post the file here for some reason........

hotwheels
10 Oct 2006, 11:58
For those that want a bunch of moods per some of the email request's i recieved.....there are about 120 moods in this zip and i added them to the .xml file also, which is inside the zip file, but it doesn't seem to change the settings.......If you use these mood images here....

goto your admincp, after you uploaded the images, then vbulletin options, and locate sniper's mood menu, delete all of his mood image name's and then just copy and paste this list in it's place: (This list here is censored, if you go into the xml and copy the list from in there, you won't have the censored words)

Aggressive
Amazed
Amused
Angelic
Angry
Apprehensive
Approved
+++++++
Asleep
Bahahaha
Bashful
+++++ed
+++++y
Blah
Blowme
Bookworm
Bored
Breezy
Brooding
Busy
Buzzed
Chatty
Cheeky
Cheerful
Cloud_9
Cold
Confused
Cool
Crackhead
Crappy
Curmudgeon
Cynical
Daring
Dead
Depressed
Devilish
Disapprove
Doh
Doubtful
Drunk
Dunce
Errrrrr
Fine
Flirty
FootMouth
++++you
Gay
Gloomy
Goofy
Grumpy
Hacker
HaHa
Hangover
Happy
Horny
Hot
Hotflash
Hungover
Hungry
IDB
In Love
Innocent
Inpain
Inspired
In_Love
joker
Lonely
Loser
Love
Lurking
Mad
Mellow
Nerdy
Onphone
Ornery
Paranoid
Party
Persnickety
Pensive
Pimp
Pissedoff
Psychadelic
Question
Relaxed
Roflol
Sad
Sassy
Scared
Shh
Shocked
Sick
Sleepy
Smokin
Sneaky
Starving
Stoned
Stressed
Stuck
Studly
sunshine
Suspicious
Talkative
Tell
Thinking
Tolerant
Tired
Torn
Twisted
Vilified
Volatile
Wasted
Where
Wicked
Woot
Worried
Yeehaw

Then click save...........and you will have all of these moods to choose from.....

If there is a mood you don't want in the list, then just delete it from this list in snipers menu and click save.

GrendelKhan{TSU
10 Oct 2006, 14:44
doh! just installed newest version.. 1.2.3

but now the moods display NEXT to the private messges. :/ yikes!

how do I fix that? or can you make a quick check/fix update?

see here: http://www.clantsu.org/forums/index.php

hotwheels
10 Oct 2006, 15:25
Looks like you may have forgotten the <br /> , go back into your navbar templates, and locate $vbphrase[private_messages_nav] then place the <br />$usermoods underneath the above code.......

engager
10 Oct 2006, 15:48
Well done, hotwheels, on your contribution! Greatly appreciated, m8! Thanks also to, -=Sniper=- , for this great hack! :) A super addition to the forum!

Br.

GrendelKhan{TSU
10 Oct 2006, 16:17
Looks like you may have forgotten the <br /> , go back into your navbar templates, and locate $vbphrase[private_messages_nav] then place the <br />$usermoods underneath the above code.......

cool thanks!

(interestingly..I didn't "do" anything. just imported new versoin of product and overwrote :/ ::confused: dunno.) anyway all better..thanks! :)

hotwheels
10 Oct 2006, 16:28
not a problem, glad to offer help.......

category
10 Oct 2006, 19:51
so can anyone tell me will this hack works if i put it in my forumhome?

hotwheels
10 Oct 2006, 21:03
It gives your user a chance to show what kind of mood they are in......grumpy, happy, hungry, etc. Just put's up a little gif in the user's postbit showing such.....

-=Sniper=-
10 Oct 2006, 23:05
so can anyone tell me will this hack works if i put it in my forumhome?it should do but I can't say for sure...

Kuimera
11 Oct 2006, 04:33
Tks for the update -=Sniper=- *

category
11 Oct 2006, 18:59
ahh doesnt work for me :( guess i have to unistall it

hotwheels
12 Oct 2006, 00:53
What's it doin category?

category
12 Oct 2006, 18:51
just doesnt loads at all

johnstires
13 Oct 2006, 21:53
How can I set this up so it is just text, rather than an image. I want to add a ton of moods but would like it to be just text.

I added a text entry to test, but it just showed up blank.

Great Hack!

-=Sniper=-
13 Oct 2006, 22:05
How can I set this up so it is just text, rather than an image. I want to add a ton of moods but would like it to be just text.

I added a text entry to test, but it just showed up blank.

Great Hack!

thats what I have on my site, text only. Will post it during the weekend sometime if I get the time.

johnstires
13 Oct 2006, 22:21
I think by adding and choosing a text option I broke it. I tried deleting the text option but that didn't fix it. I also tried uploading an image but that didn't work either. My mood is just blank.

is there a way to refresh?

My other members have it working. But thier profile pages shows a duplicate mood. One at the top of the custom fields, another at the bottom. <edit> I figured the duplication out, I had the auto file edits on and did the edits manually myself.

Invalid ID
14 Oct 2006, 01:34
Good, it's nice :)

Is it possible to display it with all the posts ... under Join Date?

Invalid ID
14 Oct 2006, 02:09
I think by editing postbit you mean to display it on the posts as well, but it's not working.

It's showing the mood only in the profiles.

Invalid ID
14 Oct 2006, 12:34
Done.. it's working.. Thanks :)

Aclikyano
14 Oct 2006, 22:04
:) ...

KevNJ
14 Oct 2006, 23:14
* clicks install *

* current mood - cool *

pretty neat thanks!



edit i tried the edit in post 62
http://www.vbulletin.org/forum/showpost.php?p=1081814&postcount=62

cause im using vba cmps and this doesnt show up. but that doesnt work. any help ?

Ophelia
15 Oct 2006, 03:46
How would I get this to show up when we go to our Photopost? In the Welcome ... username, it says "My Mood:" but doesn't show the graphic.

johnstires
15 Oct 2006, 04:50
How would I get this to show up when we go to our Photopost? In the Welcome ... username, it says "My Mood:" but doesn't show the graphic.


Try this, it worked for vba cmps:

http://www.vbulletin.org/forum/showpost.php?p=1081814&postcount=62

Ophelia
15 Oct 2006, 05:22
Try this, it worked for vba cmps:

http://www.vbulletin.org/forum/showpost.php?p=1081814&postcount=62

Is this just specific to CMPS, or you suppose it will work for Photopost too?

KevNJ
15 Oct 2006, 05:26
Try this, it worked for vba cmps:

http://www.vbulletin.org/forum/showpost.php?p=1081814&postcount=62

Tried that as stated above.. didnt work.



edit: was missing the " ;" guess i deleted it earlier.. works now :)

KevNJ
15 Oct 2006, 05:32
Is this just specific to CMPS, or you suppose it will work for Photopost too?

im using vb gallery and photopost and vbgallery run pretty much off the exact settings... so this should work without problems.

Ophelia
15 Oct 2006, 15:36
Editing, I found what I was looking for.

KevNJ
16 Oct 2006, 21:55
For those that want a bunch of moods per some of the email request's i recieved.....there are about 120 moods in this zip and i added them to the .xml file also, which is inside the zip file, but it doesn't seem to change the settings.......If you use these mood images here....

goto your admincp, after you uploaded the images, then vbulletin options, and locate sniper's mood menu, delete all of his mood image name's and then just copy and paste this list in it's place: (This list here is censored, if you go into the xml and copy the list from in there, you won't have the censored words)

Then click save...........and you will have all of these moods to choose from.....

If there is a mood you don't want in the list, then just delete it from this list in snipers menu and click save.



Works great thanks!!

hotwheels
17 Oct 2006, 19:28
you are very welcome..........

johnstires
18 Oct 2006, 00:17
thats what I have on my site, text only. Will post it during the weekend sometime if I get the time.

Hey Sniper, have you been able to get around to this?

Greek76
18 Oct 2006, 18:44
For some reason in a members profile the mood is shown twice, once on top and once in the bottom... Is their a way to fix this? Thanks.. Great mod by the way..

johnstires
18 Oct 2006, 21:29
For some reason in a members profile the mood is shown twice, once on top and once in the bottom... Is their a way to fix this? Thanks.. Great mod by the way..

I had this same problem. Go to vBulletin Options > [Sniper] Mood Manager > Auto Edit Member Info

and set to No.

Right now you have added the code twice. Once here and once with the manual edt to the template.

category
18 Oct 2006, 21:39
hey anybody can help me add the quick mood to forumhome?

FleaBag
18 Oct 2006, 23:30
Fabulous hack - worked right out of the box for me. Thank you! :)

dimeola
21 Oct 2006, 17:58
thank youuuu :D

Carmen27
22 Oct 2006, 03:13
This works great on my forum but not on my CMPS (vbadvance)
Any suggestions or am I doing something wrong. It's just showing blank and I can't see the graphics but I can see them in the forum..

http://www.hispanicmilitarywives.com

Carmen27
22 Oct 2006, 03:37
I read all the threads in this board and did the changes to the Global, but i still can't change my mood from the vbadvanced portal. I can't change either from the Arcade and Gallery. But it's fine on the forum. Does anyone have any know how to make it work? Carmen

teenhut
22 Oct 2006, 07:30
I added postbit legacy code.

The mood does not show up in the post bit.
Is it only for default template?

please see : - www.teenhut.net/forums.php

Or this link : - http://www.teenhut.net/showpost.php?p=37946&postcount=1992

Please help me!

nabeelaejaz
22 Oct 2006, 10:06
There is a background color specified in Ajax ToolTip file, how do i change that. Its overwriting the orginal color that I intended. please help. thank you.

abramelin
22 Oct 2006, 10:50
where can i change the "updating..." phrase?

EMBX
22 Oct 2006, 23:25
Works for me, very nice hack VB 3.6.2 :classic:

Now I only have to remake the images in Dutch :eek:

Thank you

Ooops, *click Install *

Greek76
23 Oct 2006, 00:55
I have another problem with it , when a user chooses another mood, it gets stuck on update so you have to refresh your forum in order for the new mood to pop up any ideas? I had to disable temporarily until I can get that fixed. Also like the other user mentioned is their a way to get it for vbadvanced?

captainslater
23 Oct 2006, 18:09
German phrases and images can be found on the official german hackforum (http://www.vbhacks-germany.org/showthread.php?t=5541).

Exitilus
24 Oct 2006, 21:30
I've managed to come up with a fix for those of you whom are having trouble getting this working in seperate directories / folders than your forum directory. Simply edit this file and input your forum path and upload it.

I created a PHP file that just points to the forums ajax.php. Make sure you DO NOT UPLOAD THIS INTO YOUR FORUM DIRECTORY ...

You also need to add Portal Output Global Variables to your VB Advanced page of:

usermoods
vbmoods

erhanerhan_5
25 Oct 2006, 06:39
hi all,
i have a question;
i installed this hack at the localhot. is working...

but i installed my forums not working. why??

oldengine
26 Oct 2006, 03:26
Yes, i've solved the vBadvanced CMPS problem...

Add vbmoods to Portal Output Global Variables list.

If you use vBadvanced and the index of it is not located in the same directory with your forum e.g. http://www.msxlabs.org/index.php (my vbadvanced page), http://www.msxlabs.org/forum/ (my forums), you have to edit these template and the plugins:

quick_mood_change_by_sniper template:
Add the bold text:
Plugin Manager > [Mood Manager] - Ajax Update:
Plugin Manager > [Mood Manager] - Make Drop Down Menu:


I made the edits. I now have the image OK, but you cannot change moods in vBAdvanced Links or PPvBGallery.

Shazz
26 Oct 2006, 03:45
in vBAdvanced yes you can

Carmen27
26 Oct 2006, 04:54
I've managed to come up with a fix for those of you whom are having trouble getting this working in seperate directories / folders than your forum directory. Simply edit this file and input your forum path and upload it.

I created a PHP file that just points to the forums ajax.php. Make sure you DO NOT UPLOAD THIS INTO YOUR FORUM DIRECTORY ...

You also need to add Portal Output Global Variables to your VB Advanced page of:

usermoods
vbmoods

Nice, works great on the vbadvance..Thanks.. Carmen

Inferno Dragon
26 Oct 2006, 17:39
I had a old version of this hack working fine on my 3.5.x forum, I just updated my forum to vb3.6.2 and installed this hack successfully (fresh install..after removing the old mod).

Now, the problem is whenever I try to change the mod from the navigationbar dropdown..it gives me the following error:

Parse error: syntax error, unexpected '<' in /home/illusion/public_html/ajax.php(44) : eval()'d code on line 1


EDIT: Sorry..this error was due to a old plugin..I just disable it and now it's working fine..great hack! :)

|oR|Greg
26 Oct 2006, 20:10
I made a very minor update to this.

In the postbit_ template (whichever one you're using), I added to the IMG line:
alt="$post[mood]"
In the event that images aren't showing for some reason.

Benj
29 Oct 2006, 17:47
any ideas how i can get this to work with the groups hack (/groups)

johnstires
30 Oct 2006, 21:18
I made a very minor update to this.

In the postbit_ template (whichever one you're using), I added to the IMG line:
alt="$post[mood]"
In the event that images aren't showing for some reason.

This works great for the postbit but how does this work for the navbar? Currently if the image doesn't show in the navbar the mood ajax is not accessible. I'd like to add moods without images, but currently images are required.

big dan
31 Oct 2006, 20:36
Nice Mod, Thank you much! :)

Battle_Ring
05 Nov 2006, 04:26
is there a way to make it so say you post wit ha mood of happy then you change it later to mad your old posts dont also change to mad

thepub
05 Nov 2006, 19:45
I installed this and it worked wonderfully, then 3 minutes later it stopped working for me completely. Some members say it works for them but it isn't working for me at all. Any advice on what I can do???

iran.gs
06 Nov 2006, 14:06
Re Installed l had ur old one and it was conflicting i remove
$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 -->

and now everything works fine ............. 3.62

thenetbox
06 Nov 2006, 15:07
Does this also show any sort of statistics like how many people have what moods?

Loxor
06 Nov 2006, 18:05
works brilliantly a welcome addition thank you

rinkrat
07 Nov 2006, 02:54
Works great. Good for the board ;)

Thanks for this!

Wheels
07 Nov 2006, 07:26
Typo in Admin....

"Type in all the moods you wany here, press ENTER after each mood"

Shouldn't it be "Type in all the moods you want here....."

Great Plug-in though! :)

rinkrat
07 Nov 2006, 16:12
Wht? No HORNY? THat is how I feel 90% of the day.

The Itchy One
07 Nov 2006, 22:09
it worked for a while, now it just shows "My Mood:"

My mood = Disgruntled :(

tobybird
08 Nov 2006, 00:20
Very sweet. One thing to note... The image Psychadelic.gif is spelled incorrectly. If you choose this option you will just get a blank mood and be unable to select another. Simply changing the spelling to Psychedelic.gif took care of the issue.

Clicked Install. Thanks for the great hack!

hotwheels
09 Nov 2006, 22:46
Just for those that would like to try something a bit different, i have set up animated moodycons for this mod. You can find them located here (here).

So far, i there are over 50 people using the animated moodycons, but i do need to warn you that a few of them are ADULT rated......

Hotwheels

Romeos Tune
11 Nov 2006, 01:04
Mine is working in the navbar but not from my vbadvanced portal page. The mood you've already selected is there but you can't change it. No moods show up in the dropdown. This was working before upgrading to 3.63. Any ideas?

gooberface
12 Nov 2006, 03:10
http://i128.photobucket.com/albums/p166/openyoureyes7/example.gif

Can anybody help me get this to look like that? I don't mind the "Change Mood" box that shows up with the scroll down bar, and actually prefer it. But I would like the default "Change Mood / No Mood" to show as that "none.gif" image that is on top there in that example. I have saved the file and it's ready to go. Also, rather than the drop down simply have text in it, I'd like it to go ahead and show the images like it does in that picture above. But again, I don't mind the actual drop down menu, I don't need to change that.

I have tried tons of things, but couldn't figure it out. If someone understands exactly what to do without much trouble, could you please help me out? I really appreciate it. Thanks

Polo
13 Nov 2006, 02:30
works great on 3.5.3

amnesia623
13 Nov 2006, 05:23
anyway to get the original graphics file for this so I can adjust the moods to my color scheme?

Kayden
13 Nov 2006, 16:18
Installed. Thanks.

hotwheels
13 Nov 2006, 16:19
if you use fireworks 8, you can change the color of the moods blocks........

InTeNsE-HuMoR
13 Nov 2006, 21:31
Great mod! Finaly got it installed. Thanks :D

ubblite
18 Nov 2006, 08:56
This hack doesn't work for me with vb3.6.3...

in admincp/vboptions/sniper - mood manager

every time I try to save the settings I get a "Page not found" message, so I can't enable this hack at all.

Cocko
19 Nov 2006, 16:17
I've managed to come up with a fix for those of you whom are having trouble getting this working in seperate directories / folders than your forum directory. Simply edit this file and input your forum path and upload it.

I created a PHP file that just points to the forums ajax.php. Make sure you DO NOT UPLOAD THIS INTO YOUR FORUM DIRECTORY ...

You also need to add Portal Output Global Variables to your VB Advanced page of:

usermoods
vbmoods

added varables in vba cmps - ok. just went fine.
but there is noway for gallery (pp pro).

tried to find out your hint uploading that chdir php, changed
in plugin "make drop down menu" from ajax.php to chdir.php
no effect. changing mood in gallery says "updating.." thats it. :(

putting full url pointing to vb3 directory also fails.

somebody solved issue with different (sub) directories ?

Exitilus
19 Nov 2006, 21:25
added varables in vba cmps - ok. just went fine.
but there is noway for gallery (pp pro).

tried to find out your hint uploading that chdir php, changed
in plugin "make drop down menu" from ajax.php to chdir.php
no effect. changing mood in gallery says "updating.." thats it. :(

putting full url pointing to vb3 directory also fails.

somebody solved issue with different (sub) directories ?

you keep the file called ajax.php ... all you do is change the forum path inside the file.

isanda
20 Nov 2006, 15:27
I am having the problem with getting the mood to appear in the postbit.

<div>
$vbphrase[posts]: $post[posts]
</div>
<if condition="!empty($post[mood])">
<div>
$vbphrase[my_mood]: <img src="images/mood/$post[mood].gif" border="0" />
</div>
</if>


This is what I have in the postbit?

Can anyone help???

Exitilus
20 Nov 2006, 21:20
it looks right. Try re-importing the product.

mikeylikesitz
21 Nov 2006, 03:14
i cant get this to show up in the navbar, am i missing something?

xfaethorx
28 Nov 2006, 16:20
i found a little issue with the install which some others may have encountered.

the following moods DONT work and will cause your uses to NOT be able to change the mood and will display nothing in the navbar and on post bits.

hung over fails
in love fails
paranoid fails
worried fails

delete them from the user options in the admin cp as they DONT have a corresponding graphic (from what I can see).

if you need to reset a users mood

nip into the admin panel and if you have execute sql writes do the following

update user set mood = '' where username ='user-with-broken-mood'

that will set the mood back to none and they can select a working one again.

this is how i found out which ones weren't working for me.

hotwheels
28 Nov 2006, 21:06
Try these moods: moodycons (moodycons)

isanda
02 Dec 2006, 21:01
it looks right. Try re-importing the product.

Still can't get it to show in postbit after reinstall. anybody else have this problem??

ubblite
03 Dec 2006, 03:45
Still can't get it to show in postbit after reinstall. anybody else have this problem??
I take it the image path is set correctly, correct?

$vbphrase[my_mood]: <img src="images/mood/$post[mood].gif" border="0" />

isanda
03 Dec 2006, 18:11
I take it the image path is set correctly, correct?

$vbphrase[my_mood]: <img src="images/mood/$post[mood].gif" border="0" />

Yes the path is OK....It is working fine in the User CP page.

s0lidgr0und
05 Dec 2006, 21:45
I didn't see this addressed anywhere in here, but I also only skimmed.

Say I want to add a few custom moods. After designing the mood buttons and adding their names into the admincp, how do I associate the new icon files with the words in the dropdown menu?

hotwheels
06 Dec 2006, 15:05
Added some adult animated moodycons (moodycons)

hotwheels
06 Dec 2006, 19:57
Still can't get it to show in postbit after reinstall. anybody else have this problem??

All you should have to do in order to get it to work in your postbit, is go to your admincp, click on Styles & Templates, then style manager. Now click on the [<< >>] and locate postbit templates, open it........now depending on if your have your postbit at the top, you would select "postbit", if you have your postbit on the side, you would select "postbit_legacy"..

With the correct one open, look for <div>
$vbphrase[posts]: $post[posts]
</div>

and directly under that code you put <if condition="!empty($post[mood])">
<div>
$vbphrase[my_mood]: <img src="images/mood/$post[mood].gif" border="0" />
</div>
</if>

and that will put the moods in your post bit........

hotwheels
06 Dec 2006, 20:00
I didn't see this addressed anywhere in here, but I also only skimmed.

Say I want to add a few custom moods. After designing the mood buttons and adding their names into the admincp, how do I associate the new icon files with the words in the dropdown menu?


After you make your buttons, they need to be .gif's......Make sure that the .gif you are going to upload, say smile.gif, will need to be Smile.gif and upload that gif to your /forums/images/mood file. Now go back to your admincp and where you put the name of your new mood, be sure it too begins with a capitol letter: Smilies

and that's should do it for ya. All the new moods should begin with capitol letters.....

hotwheels

s0lidgr0und
07 Dec 2006, 00:21
Thank you.

hotwheels
07 Dec 2006, 13:46
you are very welcome.......

JD45
13 Dec 2006, 20:30
Thanks for the easy to install hack

East_Side_Boyz7
14 Dec 2006, 16:22
Is there any way to make this stuff show up outside of the navbar? I want to use it in my custom bars on the right where I display other information, but to no avail this isn't working.

eNtitY~
14 Dec 2006, 20:12
Is there a way to make the moods appear on vBadadvanced too? The mood dropdown doesn't show on that page.

East_Side_Boyz7
14 Dec 2006, 20:43
So, has no one at ALL had any problems using this outside of the navbit template? I cannot use it anywhere but in navbit, and that's more than frustrating.

eNtitY~
15 Dec 2006, 00:10
My Psycadelic mood is broken, and when someones chooses it they can't switch off of it since the image link is broken. I'm trying to fix it though.

Exitilus
15 Dec 2006, 00:37
Is there a way to make the moods appear on vBadadvanced too? The mood dropdown doesn't show on that page.

Yup. Works perfectly fine. You need to add the following Portal Global Output Variables:

vbmoods
usermoods

If your VBAdvanced is in a different directory than the forums then look for a file I posted earlier in this thread that will allow it to work.

My Psycadelic mood is broken, and when someones chooses it they can't switch off of it since the image link is broken. I'm trying to fix it though.

Need to make sure the Image & Name of the Mood are the same. If you don't have the image I do and I can post it :)

eNtitY~
15 Dec 2006, 00:49
Could you be more specific? Sorry I'm pretty knew to most of this. Like a detailed sorta walkthrough to get it working on vBad would be sweet. :)

Also the XML file's Psychadelic read 'Psychadelic' and the file is Psychadelic.gif so thats why it wasn't working. Most of you would want to fix that before you upload it.

ACruz
15 Dec 2006, 02:26
Installed a few days ago, originally was working on all members but now a handfull cnat change their mood its just a broken image regardless what mood they select. ?

eNtitY~
15 Dec 2006, 03:05
Installed a few days ago, originally was working on all members but now a handfull cnat change their mood its just a broken image regardless what mood they select. ?

No it happens when they select the 'Psychadelic' mood. Their's an error in the XML file which causes it to mess up. Once it doesn't display an image the user then can't change his/her mood.

If you uninstall the Mood product by going to AdminCP -> Plug in's and Products -> manage products. Find where it says "[Sniper] - Mood Manager" and uninstall it. Then reupload this XML file

R-n-R
16 Dec 2006, 04:17
About 50 to 60% of my Members can not get the Mood to select, they are saying once they select the Mood it stops doing any thing and then I have others that its working fine.

Any ideas as to what might be the issue, something I could look for to find the problem? Thanks.

soulface
16 Dec 2006, 18:49
No it happens when they select the 'Psychadelic' mood. Their's an error in the XML file which causes it to mess up. Once it doesn't display an image the user then can't change his/her mood.

If you uninstall the Mood product by going to AdminCP -> Plug in's and Products -> manage products. Find where it says "[Sniper] - Mood Manager" and uninstall it. Then reupload this XML file


Thanks eNtitY. your product file working fine!

Mupetz
16 Dec 2006, 21:05
The mod works fine , installed. Thanks
One single problem :
I use the Legacy (Vertical) Postbit Template, so the members info are left sided, if u know what i mean :)
The thing is : horizontal works ( the mood apears )
Vertical doesnt work :|

Please reply.
Thanks

East_Side_Boyz7
17 Dec 2006, 01:39
I'm glad this mod is being properly supported. :(

Shazz
17 Dec 2006, 03:06
I'm glad this mod is being properly supported. :(

Its not thats why there is no check there :)

Mupetz
17 Dec 2006, 16:44
The mod works fine , installed. Thanks
One single problem :
I use the Legacy (Vertical) Postbit Template, so the members info are left sided, if u know what i mean :)
The thing is : horizontal works ( the mood apears )
Vertical doesnt work :|

Please reply.
Thanks
DOH, my wrong ; i had to add the code in postbit_legacy template not In the postbit template

Thank you :D

OziloZ
20 Dec 2006, 18:08
Hi, in my board lots of users cannot change their moods.But some of users can change. How is this being? They were do all things but not worked. I apologize for my english if it's bad :)

tygersclaw
31 Dec 2006, 17:12
Well, installed this on 2 boards and on both boards the Admins and Mods can see and select a mood, but not registered members.

I double checked to ensure I did not miss any steps and "Auto Edit Member Info" is selected.

Any ideas or assistance???

RaceJunkie
31 Dec 2006, 18:45
Could you be more specific? Sorry I'm pretty knew to most of this. Like a detailed sorta walkthrough to get it working on vBad would be sweet. :)



AdminCp>>>>vBa CMPS>>>>Default Settings>>>>
Look for Portal Output Global Variables

Add in the box
vbmoods
usermoods


Click Save at bottom of the page..

Brew
31 Dec 2006, 21:59
Request:

Update for adding "Changing Mood" in Who's Online?

Right now WOL displays:

Unknown Location
/forums/images/mood/Psychedelic.gif

Also....The window doesn't close when a selection is made.

Otherwise it's working great in my vb3.6.4 setup...awesome hack!

Thanks!

Brew
31 Dec 2006, 22:04
AdminCp>>>>vBa CMPS>>>>Default Settings>>>>
Look for Portal Output Global Variables

Add in the box
vbmoods
usermoods


Click Save at bottom of the page..

This didn't work for me :cool:

Brew
31 Dec 2006, 23:39
I figured out that Plugin Based Template Cache will mess with this mod.

Disable that and this mod works pretty good :smoke:

TonicWater
01 Jan 2007, 10:17
thx for the hack. i would love if the hack would save my current mod, when i write an post. so that everybody can see what was my mood when i wrote this post.

gunitman247
01 Jan 2007, 16:44
I figured out that Plugin Based Template Cache will mess with this mod.

Disable that and this mod works pretty good :smoke:
Where do you disable that at?

Brew
01 Jan 2007, 16:59
Where do you disable that at?

Ok I take my post back. You don't necessarily have to keep the "Plugin Based Template Cache" (PBTC) disabled.

But to keep using the PBTC you need to do a few things. You have to disable the PBTC cache, delete the files it created (in directory forums/templates) then reload a page with the welcomebit on it.....I actually reloaded several times to be sure that the new welcomebit info got put into the DB cache.

Once you're pretty sure that the new DB cache is updated with this mod then turn back on the Plugin Based Template Cache.

It's working for me now :cool:

To turn on/off PBTC go to [vBulletin Options >> Plugin Based Template Cache].

gunitman247
01 Jan 2007, 17:59
Ok I take my post back. You don't necessarily have to keep the "Plugin Based Template Cache" (PBTC) disabled.

But to keep using the PBTC you need to do a few things. You have to disable the PBTC cache, delete the files it created (in directory forums/templates) then reload a page with the welcomebit on it.....I actually reloaded several times to be sure that the new welcomebit info got put into the DB cache.

Once you're pretty sure that the new DB cache is updated with this mod then turn back on the Plugin Based Template Cache.

It's working for me now :cool:

To turn on/off PBTC go to [vBulletin Options >> Plugin Based Template Cache].
I dont have vBulletin Options >> Plugin Based Template Cache anywhere. wtf.

ThorstenA
01 Jan 2007, 18:18
is it possible to save mood status in profile field of users? This way there would be no database changes.

Brew
01 Jan 2007, 18:59
I dont have vBulletin Options >> Plugin Based Template Cache anywhere. wtf.

I'm sorry...I didn't add the complete info :confused:

You can get the template cache system here:

http://www.vbulletin.org/forum/showthread.php?t=121876&highlight=plugin+based+template+system

gunitman247
01 Jan 2007, 19:11
I'm sorry...I didn't add the complete info :confused:

You can get the template cache system here:

http://www.vbulletin.org/forum/showthread.php?t=121876&highlight=plugin+based+template+system
haha awesome. I thought i was crazy. Thanks man!

gunitman247
01 Jan 2007, 20:35
well its still not working
i added that ajax thing.
usermoods
vbmoods in portal global whatevers
tried what brew said. what is goin on?

http://www.globalsigalliance.com

Exitilus
01 Jan 2007, 21:26
You don't need the TEmplate Cache thing for this to work so you know. So if you installed that under the impression it was needed you can remove it.