Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mood Hack Details »»
Mood Hack
Version: 1.02, by |Jordan| |Jordan| is offline
Developer Last Online: Sep 2014 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 05-16-2005 Last Update: 05-20-2005 Installs: 62
DB Changes Template Edits
Code Changes  
No support by the author.

Mood Hack

Note: Please update to the latest version, many bugs were fixed.

This if my first hack. Since this is my first hack i don't know how good i'll be at support, but i'll give it a shot.


What does it do?

This hack displays a user's mood in the postbit. The mood is displayed as an image and there are 40 to choose from. Mood can be changed in UserCP=>Edit Profile.

Note: Tested on vBulletin 3.0.5 with security fixes to 3.0.7
It should work in all 3.0.x versions though.

Credits:

This hack is based off "Image Gender in Postbit" written by tnguy3n.

Full credit is given in the text file. I have modified his code to work with this hack.

Update!tnguy3n has pm'd me saying that the modification is ok. Yay

The creation of this hack was inspired by the request of caliman
The hack images are from the Yabb version of this hack, kudos to whomever made them.

Installation information on hack:

Query to run: 1
File modification: 3
Template modication: 2
New Templates: 0
Estimated Installation Time: 4 to 5 minutes.

Changes:

V 1.02 - Fixed some missing code, made no mood option more noticable. To update repeat step two of template modification.

V 1.01 - Fixed image folder name, added ALT tags to images, fixed misnumbered and redundant code. To update repeat step one of template modification.

V 1.00 - Released

Demo: http://www.gamers-union.net/forums/showthread.php?t=204 (Click on any thread)

Addons:
Extended [Postbit]
This addon puts the mood dropdown selector inside the postbit instead of the USERCP.
Credit goes to paul41598

Please Click Install if you find this hack userful. Thanks.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-18-2005, 02:56 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll make the no mood option clearer and fix one mistake i discovered.
Reply With Quote
  #23  
Old 05-18-2005, 04:58 PM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi guys

im trying to install this on vb 3..0.7 but i get an error when trying to run the querie it says:

#1146 - Table 'admin_vbforum.user' doesn't exist

any ideas?
Reply With Quote
  #24  
Old 05-18-2005, 09:00 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xtreme-mobile
hi guys

im trying to install this on vb 3..0.7 but i get an error when trying to run the querie it says:

#1146 - Table 'admin_vbforum.user' doesn't exist

any ideas?
Did you run the sql query?
Reply With Quote
  #25  
Old 05-18-2005, 09:02 PM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats the problem it wont let me run the sql querie

that error above is what i get when i try to run the querie
Reply With Quote
  #26  
Old 05-18-2005, 09:04 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marboosh.Net
Yes,
by the way may a have the PSD file
i want translate it to another language
I dont have the PSD file, images come from the mood hack from Yabb. It's easy to get rid of the text anyhow; just select some of the background that has no text and copy it over the text, then enter the new text.
Reply With Quote
  #27  
Old 05-18-2005, 09:05 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xtreme-mobile
thats the problem it wont let me run the sql querie

that error above is what i get when i try to run the querie
What's your table prefix? (name of user table)
Reply With Quote
  #28  
Old 05-18-2005, 10:10 PM
Deimos Deimos is offline
 
Join Date: Oct 2002
Posts: 529
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got a slight problem with this hack, when a user of mine choose "Tired", it shows the Brooding image instead
I double checked the images themselves and sure enough, the tired image and brooding ones are ok
Any idea why it links to Brooding instead of the Tired one?
Reply With Quote
  #29  
Old 05-18-2005, 10:21 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upgrade to the latest version, just redo both template modification steps.
Reply With Quote
  #30  
Old 05-19-2005, 04:29 AM
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Location: California
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

INSTALLED. Works great. Thanks again for doing this, I owe you some beers Jordan.

Couple little things that would just be icing.

1) It would be nice if when I go to my profile it remembers which one I have selected. Currently it does not and always displays 'Do not display mood.'

2) When one selects a mood, it would be cool if it displayed the selected mood bar in real time in the profile. I am too buzzed on wine to do this, but here is my original code that did this:
Code:
        <script language="JavaScript1.2" type="text/javascript">
        function showmood()
        {
           if (!document.images) return;
           document.images.moodpics.src="http://www.yoursite.com/forums/images/moods/"+document.creator.mood.options[document.creator.mood.selectedIndex].value+".gif";
        }
        </script>
	<td><font size=2><select name="mood" size=6 onChange="showmood()">
                <option selected value="Happy">Happy</option>
                <option value="Aggressive">Aggressive</option>
                <option value="Amazed">Amazed</option>
                <option value="Angry">Angry</option>
               </select></font>
 &nbsp;&nbsp;<img src="http://www.yoursite.com/forums/images/moods/blank.gif" name="moodpics" border=0 hspace=15>
Regardless, thanks again. I really appreciate it.

caliman
Reply With Quote
  #31  
Old 05-19-2005, 06:18 PM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MyIS_Jordan
What's your table prefix? (name of user table)


???? dunno mate how do i find out (noobie to coding )
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10052 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete