vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Mood Manager - with AJAX mood update. (https://vborg.vbsupport.ru/showthread.php?t=127220)

vitrag24 09-19-2007 02:48 PM

no problem in hack.. you must have done osme mistake.
Gr8 hack.

yoyoyoyo 09-19-2007 03:24 PM

Quote:

Originally Posted by vitrag24 (Post 1342473)
no problem in hack.. you must have done osme mistake.
Gr8 hack.

This mod is buggy, as others have pointed out as well.

Let's look at the install procedure:
1) install product
2) upload files
3) make simple edits in the postbit and navbar and memberinfo templates
4) configure the mood manager in the ACP

Please explain how user error when installing (which did not happen, since the only thing that was required of me was the template edits) could cause the type of database errors that I posted about (where it is looking for the ajax file outside of the forum directory)?

vitrag24 09-19-2007 03:28 PM

Quote:

Originally Posted by yoyoyoyo (Post 1342492)
This mod is buggy, as others have pointed out as well.

Let's look at the install procedure:
1) install product
2) upload files
3) make simple edits in the postbit and navbar and memberinfo templates
4) configure the mood manager in the ACP

Please explain how user error when installing (which did not happen, since the only thing that was required of me was the template edits) could cause the type of database errors that I posted about (where it is looking for the ajax file outside of the forum directory)?

sometimes we did mistake unknowingly.
well you can check my forum.it's working
checkout my signature.

yoyoyoyo 09-19-2007 05:54 PM

Quote:

Originally Posted by vitrag24 (Post 1342495)
sometimes we did mistake unknowingly.
well you can check my forum.it's working
checkout my signature.

A bug can be a bug if it only happens some of the time. The fact is that there is nothing in the code I added in the template edits to make the mod look for the ajax.php file outside of the forum structure - that is foolish to suggest. All of that code is in the plugin, and I did not edit or alter the plugin. I am happy that the mod works fine for you - more power to you - it does not work for me.

Littlebit 09-19-2007 07:16 PM

Ah, I didn't do this. I'll try again thanks :)
Quote:

Originally Posted by DS MrSinister (Post 1333160)
...need to upload the images folder to root directory of the main site to work


yoyoyoyo 09-19-2007 07:32 PM

Sniper - I dug through the error logs and raw access logs and discovered that the error described above happens when someone activates the mood manager via the navbar while on the vbadvanced index page, so I would appreciate it if you would fix that so people with vbadvanced can use it.

Veronica Vain 09-20-2007 01:45 AM

It is still not showing up in my postbit, I have tried and tried and reinstalled and uninstalled. Can any one help me? Especially the creater of the hack?

vitrag24 09-20-2007 07:11 AM

Quote:

Originally Posted by Veronica Vain (Post 1342827)
It is still not showing up in my postbit, I have tried and tried and reinstalled and uninstalled. Can any one help me? Especially the creater of the hack?

you need to edit templates manually.
i had similer prb before doing template mkodification.

and alswo check spelling of mood/moods.

vnairp11 09-20-2007 07:33 AM

I had that issue too after adding <if condition="!empty($post[mood])">
<div>
$vbphrase[my_mood]: <img src="images/mood/$post[mood].gif" border="0" />
</div>
</if>

to the postbit template according to the readme instructions it solved the issue :)

SuperTaz 09-20-2007 07:37 AM

Does anyone have this working for Version 3.6.8?

vnairp11 09-20-2007 07:38 AM

However, images and moods disappearing int he pull down box when you are the vbadvancedpage, gallery, arcade etc is annoying does it have some hook system.

yoyoyoyo 09-20-2007 09:36 AM

Quote:

Originally Posted by vnairp11 (Post 1342978)
I had that issue too after adding
Quote:

<if condition="!empty($post[mood])">
<div>
$vbphrase[my_mood]: <img src="images/mood/$post[mood].gif" border="0" />
</div>
</if>
to the postbit template according to the readme instructions it solved the issue :)

I did the manual edits, but that is not compliant with vbadvanced. to be compliant with vbadvanced it needs to be:
Quote:

<if condition="!empty($post[mood])">
<div>
$vbphrase[my_mood]: <img src="$vboptions[bburl]/images/mood/$post[mood].gif" border="0" />
</div>
</if>
however, that fix still does not fix the issue regarding this hack looking for the ajax.php outside the forum directory - that needs to be fixed in the plugin. If you don't believe me try looking at your server's error log - I bet you will see a lot of errors there about the ajax.php not being found (while using this hack)

djbaxter 09-20-2007 12:35 PM

Quote:

Originally Posted by Warden-B- (Post 1342979)
Does anyone have this working for Version 3.6.8?

Yes. It's working fine with 3.6.8 for me.

Quote:

Originally Posted by yoyoyoyo (Post 1343021)
I did the manual edits, but that is not compliant with vbadvanced. to be compliant with vbadvanced it needs to be:

however, that fix still does not fix the issue regarding this hack looking for the ajax.php outside the forum directory
- that needs to be fixed in the plugin. If you don't believe me try looking at your server's error log - I bet you will see a lot of errors there about the ajax.php not being found (while using this hack)

If you are not using vBAdvanced, this add-on works fine and does not produce that error. Thus, your conclusion that this add-on needs to be fixed seems somewhat dubious. It would appear that it is vBAdvanced that is causing your error, n'est-ce pas?

import-houston 09-21-2007 06:41 AM

very good mood manger

yoyoyoyo 09-21-2007 10:54 PM

Quote:

Originally Posted by djbaxter (Post 1343107)
If you are not using vBAdvanced, this add-on works fine and does not produce that error. Thus, your conclusion that this add-on needs to be fixed seems somewhat dubious. It would appear that it is vBAdvanced that is causing your error, n'est-ce pas?

Well, considering that vbAdvanced is the single most popular CMPS for vBulletin it is kind of silly not to want your hacks to be compliant. The fact is that "$vboptions[bburl]/" is a vBulletin phrase/option and not a vbAdvanced option/phrase. The language is already built in to vBulletin, so why not use it when writing a hack, it it will make your hack more compliant with other very popular mods? Also, the way the code is written, this error will occur with ANYONE that uses a CMPS, not just vbAdvanced.

jlp09550 09-22-2007 01:49 AM

How can I add the $membermood variable to other templates? My skin is designed with the member bar in the header template.

Konstantinos 09-23-2007 04:18 PM

Do you want to display mood images in the dropdown instead of mood names?

Doesnt work

tmffirework 09-26-2007 08:25 AM

I have a question. I use a template without the

Code:

$vbphrase[private_messages_nav]
in the Navbar, but in the header. But if I place:

Code:

<br />$usermoods
In the Heather (where stands that oder code) I doesn't work? Where else can I plase the last code?

Shinou 09-26-2007 09:29 AM

Not showing up for me, Only "My mood:" and nothing else, any help here?

Fungsten 09-26-2007 04:49 PM

Quote:

Originally Posted by Shinou (Post 1347376)
Not showing up for me, Only "My mood:" and nothing else, any help here?

I think I had something like that also. Go back and check your installation.

PurpleButterfly 09-28-2007 10:53 AM

Can anyone help me, please? Everything shows up but the graphics, which I've double checked to ensure proper URL. When I click on "change mood", I get the dropdown menu with mood names, but no images and it also won't allow me to actually click on anything (can't select mood). I have pored through this thread and spent hours trying to solve...any help would be greatly appreciated! :)

PurpleButterfly 09-28-2007 11:20 AM

Also wanted to mention that I'm using the latest vBulletin 3.6.8

I can manually change the moods for individual users via the AdminCP...the image shows up but again, no click-ability or images in the drop-down.

:(

PurpleButterfly 09-28-2007 05:50 PM

Anyone? *help*

https://vborg.vbsupport.ru/external/2007/10/24.gif

PurpleButterfly 09-30-2007 12:15 AM

Waaaaaaahhhh, nobody loves me. :(

Shazz 09-30-2007 05:38 AM

Posting continuously can result in infraction account/suspension. I wouldn't recommend it

PurpleButterfly 09-30-2007 06:03 PM

Thank you to the mod author who responded quickly and kindly to my PM...turns out I only needed a minor security setting adjusted on my PC! I am still getting "no mood" and an empty drop-down when on the "new posts" page, but we can live with that. So if anyone else has installed, can change moods from the admin panel, sees text mood names but can't click within the dropdown, check your Java and security settings! ;)

Also, for anyone interested in a different style of moods, I found this wonderful set of mood bears that I am using. They are perfect for family-friendly and/or Christian sites! :)

PurpleButterfly 09-30-2007 06:04 PM

Quote:

Originally Posted by Shazz (Post 1350014)
Posting continuously can result in infraction account/suspension. I wouldn't recommend it

Eep, I had no idea...I'm sorry. :(

deezelpope 09-30-2007 06:39 PM

Quote:

Originally Posted by PurpleButterfly (Post 1350327)

Also, for anyone interested in a different style of moods, I found this wonderful set of mood bears that I am using. They are perfect for family-friendly and/or Christian sites! :)

OMG! Are those ever ADORABLE!!!:) Thanks for posting the link!:D

demojames 10-02-2007 07:01 PM

Quote:

Originally Posted by PurpleButterfly (Post 1350327)
Thank you to the mod author who responded quickly and kindly to my PM...turns out I only needed a minor security setting adjusted on my PC! I am still getting "no mood" and an empty drop-down when on the "new posts" page, but we can live with that. So if anyone else has installed, can change moods from the admin panel, sees text mood names but can't click within the dropdown, check your Java and security settings! ;)

I notice the same thing make sure the image folder that has the images are marked "mood" not "moods".

It should be /images/mood not /images/moods. Then they should show up!

sinn3d 10-10-2007 08:44 AM

Hi,

First thankyou for this great mod.

I have a problem though.

When selecting the none image mood, it disable the mood and i cant do anything to turn it back on. I had to reinstall the plugin before it works again, How can i fix current problem (Look at attached image thanks)

connkid25 10-10-2007 02:11 PM

Has anyone figured out how to add the dropdown to the users "edit profile" page? I got it in there and then the save changes button no longer works. It would be great to add it above $customfields[regular] in the modifyprofile template. Any ideas on how to get that to work?

djbaxter 10-10-2007 02:29 PM

Quote:

Originally Posted by connkid25 (Post 1356896)
Has anyone figured out how to add the dropdown to the users "edit profile" page? I got it in there and then the save changes button no longer works. It would be great to add it above $customfields[regular] in the modifyprofile template. Any ideas on how to get that to work?

I couldn't get that to work either. However, I admit I didn't try very hard since the change mood appears on every page just under # of private messages. Having it in modifyprofile as well would probably be superfluous.

connkid25 10-10-2007 02:39 PM

Quote:

Originally Posted by djbaxter (Post 1356906)
I couldn't get that to work either. However, I admit I didn't try very hard since the change mood appears on every page just under # of private messages. Having it in modifyprofile as well would probably be superfluous.

Yeah but I removed it from under the private messages because I have a ton of pages that are outside of the forums that use the navbar. I have almost a youtube type area, personals etc that it refuses to work with. The best option on mine is just to add it to the profile page.

rwilkins108 10-11-2007 12:49 AM

I've made some changes in this that I thought would be good for updating this plugin. For the most part, the changes only affect image drop downs.

#1 I've gotten rid of the multiple optgroups and replaced them with just options. This has resulted in a much smaller code size, plus, the selected image is no longer blurred out and it looks much better and is faster.

#2 Since I've got a lot of animated .gifs and they have different sizes, I had a problem with overlapping images and it was hard to select those moods. So what I've done is made the size of the selections changeable. I made the size the biggest gif I had, in my case 36px x 100px. This makes the selections more spaced out, but I think it looks nicer. These changes have my defaults in them. I've also separated out the style info into a css tag, so that should make the code smaller as well.

Hopefully you'll find this useful.

If you're not comfortable making these changes, please don't or at least back things up...

The changes are in 2 places:
#1 replace the contents of the template quick_mood_change_by_sniper with
Code:

<!-- / dropdown mood select by sniper start -->
<style>
.moods_option {
 height: 36px; width: 100px; background-repeat: no-repeat; background-position: center;
}
</style>

<div class="vbmenu_popup" id="moods_menu" style="display:none">
<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td class="thead" valign="middle">$vbphrase[change_mood]:</td>
    </tr>
    <tr>
        <td class="alt1" valign="middle">
        <form action="index.php?do=ajax_mood_update" method="post" id="mood_form">
            <input type="hidden" name="s" value="$session[sessionhash]" />
                <select name="mood" size="7" onchange="change_mood(this.value);">
                    <option style="text-align: center;" value=""<if condition="empty($bbuserinfo[mood])"> Selected</if>>$vbphrase[no_mood]</option>
                    $vbmoods[mood]
                </select>
        </form>
        </td>
    </tr>
</table>
</div>

<div><strong>$vbphrase[change_mood]:</strong> <a href="#" id="moods"><if condition="!empty($bbuserinfo[mood])"><img src="$vboptions[bburl]/images/mood/$bbuserinfo[mood].gif" border="0" align="absmiddle"/><else />$vbphrase[change_mood]</if></a> <script type="text/javascript"> vbmenu_register("moods", 1); </script></div>
<!-- / dropdown mood select by sniper end -->



#2
replace the contents of the plugin [Mood Manager] - Make Drop Down Menu with
PHP Code:

if ($vbulletin->options['moodmanageronoff'] AND $vbulletin->userinfo['userid'] AND !in_array($vbulletin->userinfo['usergroupid'], explode("|"$vbulletin->options['moodmanagerusergroup'])))
{
    
$vbulletin->templatecache['header'] .= '<script type=\"text/javascript\">
<!--
    function update_mood()
    {
        fetch_object(\'moods\').innerHTML = \'Updating...\';
        if (ajax_mood.handler.readyState == 4 && ajax_mood.handler.status == 200 && ajax_mood.handler.responseText)
        {
            fetch_object(\'moods\').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']);
if (
$vbulletin->options['moodmanagerimages'] && !eregi("MSIE"$_SERVER['HTTP_USER_AGENT'])) 
{
    
$vbmoods['mood'] .= '<optgroup>';
}
foreach (
$moodslist AS $mood)
{
    
$mood trim($mood);

    if (
$mood == $vbulletin->userinfo['mood']) { $selectedmood ' Selected'; } else { $selectedmood ''; }

    if (!
$vbulletin->options['moodmanagerimages'] || eregi("MSIE"$_SERVER['HTTP_USER_AGENT']))
    {
        
$vbmoods['mood'] .= '<option value="' .$mood'"' .$selectedmood'>' .$mood'</option>';
    }
    else
    {
        
$vbmoods['mood'] .= '<option class="moods_option" style="background-image: url(images/mood/' .$mood'.gif);" value="' .$mood'"' .$selectedmood'></option>';
    }
    
}
if (
$vbulletin->options['moodmanagerimages'] && !eregi("MSIE"$_SERVER['HTTP_USER_AGENT'])) 
{
    
$vbmoods['mood'] .= '</optgroup>';
}

    if (
$vbulletin->options['moodmanagerglobal'])
    {
        
$search_text '$vbphrase[private_messages_nav]';
        
$vbulletin->templatecache['navbar'] = str_replace($search_text$search_text "<br />" fetch_template('quick_mood_change_by_sniper'), $vbulletin->templatecache['navbar']);
    }
    else
    {
        eval(
'$usermoods = "' fetch_template('quick_mood_change_by_sniper') . '";');
    }


To change the size of the amount of space each gif takes, modify
.moods_option
height: 36px; width: 100px;
to the size you want.


Here's a picture of what it looks like on my site:
(Sorry for the poor quality animated gif!)
https://vborg.vbsupport.ru/external/2007/10/18.gif

you can try it out on my site by registering on http://www.u-assist.com

connkid25 10-11-2007 10:43 AM

Quote:

Originally Posted by connkid25 (Post 1356896)
Has anyone figured out how to add the dropdown to the users "edit profile" page? I got it in there and then the save changes button no longer works. It would be great to add it above $customfields[regular] in the modifyprofile template. Any ideas on how to get that to work?

Forget about my above message. I created a new VB page (mood.php) and added the link in the User CP sidebar. It works good and actually looks better! Thanks for this awesome hack!

connkid25 10-12-2007 02:25 PM

Hey everyone, im just uploading this as this is how I created a new page and placed the link in the User CP. This will drop the location under the private messages and create a new page that uses forum permissions. You can edit the text of the new page and customize it as you wish.

Unregistered and banned users will not be able to access the page. I have included all the code and instructions in the zip file.

I did it this way because its a pain to get this to work in areas outside of the forums but the mood manager is an awesome addition to anyones forums!

vitrag24 10-12-2007 03:08 PM

Quote:

Originally Posted by connkid25 (Post 1358289)
Hey everyone, im just uploading this as this is how I created a new page and placed the link in the User CP. This will drop the location under the private messages and create a new page that uses forum permissions. You can edit the text of the new page and customize it as you wish.

Unregistered and banned users will not be able to access the page. I have included all the code and instructions in the zip file.

I did it this way because its a pain to get this to work in areas outside of the forums but the mood manager is an awesome addition to anyones forums!

i didnt understand wht you have did?
mood wont be shown below usercp and posts?

connkid25 10-12-2007 03:53 PM

Quote:

Originally Posted by vitrag24 (Post 1358317)
i didnt understand wht you have did?
mood wont be shown below usercp and posts?

All this does is changes the mood dropdown and places it in its own page. This is so you dont have to have it under the private messages. Nothing else changes just the dropdown location. Also, only members have access to the new page and the link will be in the user control panel where they edit their profile.

vitrag24 10-13-2007 05:06 PM

Then i don't think it is worth to change..
as below pm is cool for me.
:)
Do you have added more gifs/moods which i can use in same version installed earlier??

rwilkins108 10-13-2007 07:55 PM

If someone posts a mod or an addition to a mod, you don't have to write and say not interested, just don't take it and move along...


All times are GMT. The time now is 07:16 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.02177 seconds
  • Memory Usage 1,882KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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