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
  #42  
Old 05-20-2005, 07:43 PM
axi axi is offline
 
Join Date: Jan 2005
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same the hack isnt showing in the user cp or nowhere.
Reply With Quote
  #43  
Old 05-20-2005, 07:47 PM
axi axi is offline
 
Join Date: Jan 2005
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh found the problem, added the mood codes way to early to the modifyprofile template!

the code i added it after was correct:

PHP Code:
<td class="panelsurround" align="center">
    <
div class="panel">
        <
div style="width:$stylevar[formwidth_usercp]align="$stylevar[left]"
but i added it too early, there was a second one yes half way in the page and added after the second one and works fine now
Reply With Quote
  #44  
Old 05-20-2005, 07:56 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Polo
I have my own version of the mood hack, but I would like to know if I could use your mood images? they are cool
They're not my images, they're from the mood hack for Yabb.
Reply With Quote
  #45  
Old 05-21-2005, 12:17 AM
angelicGrace angelicGrace is offline
 
Join Date: Jun 2004
Location: Up in the clouds
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by axi
ahh found the problem, added the mood codes way to early to the modifyprofile template!

the code i added it after was correct:

PHP Code:
<td class="panelsurround" align="center">
    <
div class="panel">
        <
div style="width:$stylevar[formwidth_usercp]align="$stylevar[left]"
but i added it too early, there was a second one yes half way in the page and added after the second one and works fine now
Thank you Axi. i didn't even think to look farther down the template. i know better than that too. lol
Reply With Quote
  #46  
Old 05-21-2005, 12:31 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

since adding this hack the avatars on the forum have been resized. Has this happened to anyone else?
Reply With Quote
  #47  
Old 05-21-2005, 05:19 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo
since adding this hack the avatars on the forum have been resized. Has this happened to anyone else?
It shouldn't mess up any avatars, none of the mood hacks functions modify avatar in any way. Have you installed any other hacks lately? Can you provide an example of the messed up pages in question.
Reply With Quote
  #48  
Old 05-21-2005, 09:52 PM
Ebolender Ebolender is offline
 
Join Date: May 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and it works just fine.

:squareeyed: Thanks for this
Reply With Quote
  #49  
Old 06-15-2005, 06:36 PM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wicked i finally got it working. !! The problem i had was I modified the postbit_legacy when I should of did postbit. i really don't know the difference so i left the changes in both :lick: . My only issue and wasn't sure if this was possible is to save the current mood under the drop down box, instead of reverting back to don't display mood .

besides that. It kicks ass
Reply With Quote
  #50  
Old 06-15-2005, 08:20 PM
DJDarknez DJDarknez is offline
 
Join Date: Feb 2005
Location: Chicago
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HELP

"An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'djd_forums.vb3user' doesn't exist"

"Unable to add cookies, header already sent.
File: /home/djd/public_html/forums/includes/functions_showthread.php
Line: 762"

http://forums.djdarknez.net

any of the treads. none of them are viewable.

edit:

i re-uploaded my functions_showthread.php file, so at the very least the threads are viewable. But how to fix?
Reply With Quote
  #51  
Old 06-15-2005, 11:51 PM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DJDarknez
HELP

"An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'djd_forums.vb3user' doesn't exist"

"Unable to add cookies, header already sent.
File: /home/djd/public_html/forums/includes/functions_showthread.php
Line: 762"

http://forums.djdarknez.net

any of the treads. none of them are viewable.

edit:

i re-uploaded my functions_showthread.php file, so at the very least the threads are viewable. But how to fix?
You need to edit the SQL query to point to your user table.

In this case it should be:

Code:
ALTER TABLE .vb3user ADD mood varchar(15) NOT NULL
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 11:18 AM.


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.08386 seconds
  • Memory Usage 2,322KB
  • 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
  • (2)bbcode_php
  • (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