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)

hambil 03-27-2007 09:20 PM

Okay, since people are doing this against advice, and now I feel bad that I am causing problems for the author of this wonderful hack, I will try to make the directions clearer. However, I still recommend not doing it, and if you do go forward BACK UP first.

Step 1:
In the quick_mood_change_by_sniper template find:
HTML 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>
and replace with:
HTML Code:

<span style="vertical-align: middle;">$vbphrase[my_mood]: </span><a href="#" id="moods"><if condition="!empty($bbuserinfo[mood])"><img style="vertical-align: middle;" src="images/mood/$bbuserinfo[mood].gif" border="0" /><else />$vbphrase[change_mood]</if></a>
Step 2:
In the "[Mood Manager] - Ajax Update" plugin find:
PHP Code:

        die("<img src=\"images/mood/" $new_mood".gif\" border=\"0\" />"); 

and replace with:
PHP Code:

        die("<img style=\"vertical-align: middle;\" src=\"images/mood/" $new_mood".gif\" border=\"0\" />"); 

Step 3:
In the postbit and/or postbit_legacy templates find:
HTML Code:

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

and replace with:
HTML Code:

                                <if condition="!empty($post[mood])">
                                <div>
                                        <span style="vertical-align: middle;">$vbphrase[my_mood]:</span> <img style="vertical-align: middle;" src="images/mood/$post[mood].gif" border="0" />
                                </div>
                                </if>

Step 4:
In the "[Mood Manager] - Make Drop Down Menu" hook find:
PHP Code:

    $vbmoods['mood'] .= '<option value="' .$mood'"' .$selectedmood'>' .$mood'</option>'

and replace with:
PHP Code:

$vbmoods['mood'] .= '<optgroup style="background-image: url(images/mood/' .$mood'.gif); height: 15px; width: 72px;"><option value="' .$mood'"' .$selectedmood'></option></optgroup>'

Step 5:
In vBulletin Options -> [Sniper] Mood Manager change "In Love" to "InLove"

Step 6:
In your images/mood directory on your server rename "In Love.gif" to "InLove.gif" and rename Psychadelic.gif to Psychedelic.gif

You should be good to go. But again, PLEASE use with caution, or better yet wait for the author of this hack to decide what to do with this. Thanks :)

deezelpope 03-27-2007 09:25 PM

Oh no, no! I know your intentions were good! Stuff happens, I know this.

I looked at everything you did, and did what you said, it just didn't work for me. No big deal.

And I don't think you're causing problems at all...you're just trying to improve an already awesome hack!

The alignment coding went swimmingly...putting the mood images in the drop-down just didn't go so well. But it's ok.

You don't have anything to feel bad about!

dbirosel 03-27-2007 09:50 PM

So far it's working great. Just gotta do the images in the list. We'll see how that goes, and i'll update everyone. So far great job hambil. I like when things look organize and clean. :)

hambil 03-27-2007 09:53 PM

Wow, I just realized this has been changed to not supported. I'm contacting the author for permission to be added to the support list for this hack, so it can be changed back to supported again.

dbirosel 03-27-2007 10:02 PM

Hey Hambil, for the image list of moods, it doesn't work. For the url i tried many variations. From full url, to the simplest form. If possible, you think you can help me out on this? I think having this addition will be really great for my members. :D Thank alot!

hambil 03-27-2007 10:06 PM

Sure. PM me your site details.

-=Sniper=- 03-27-2007 11:39 PM

hambil has volunteered to support this hack, while I hope to do the same in a couple of months or so.

hambil 03-27-2007 11:42 PM

Thanks Sniper! I will be releasing a version with my latest edits once I've worked with a couple of you to make sure it won't break anything. Anyone who wants to 'beta' this change please PM me.

-=Sniper=- 03-28-2007 12:13 AM

n/p please let me know via pm/email when you have a updated version ready, so I can update the attachment. thanks

kaptanblack 03-28-2007 03:58 PM

Thanks...

Installed ;)


All times are GMT. The time now is 02:22 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.01495 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_html_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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