vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Mood Hack (https://vborg.vbsupport.ru/showthread.php?t=81637)

|Jordan| 05-16-2005 10:00 PM

Mood Hack
 
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.

Marco van Herwaarden 05-17-2005 02:36 PM

Quote:

I have not formally asked his permission due to the open source nature of the hacks at vbulletin.org
Open Source does not mean you can just take bits & pieces and make your own software out of it. I suggest you contact him yourself, to avoid miscommunications.

boo.3 05-17-2005 02:37 PM

nice!

may i ask a question... how do you make the avatars and stuff on the left side? mines on top?

or is that just the style?

|Jordan| 05-17-2005 02:37 PM

Oops :(

I pm'd him, haven't received response yet.

I released it now because i was scared someone else would release a mood hack and all my work would be for nothing :(

|Jordan| 05-17-2005 02:38 PM

It's all style related, you just need to move code around. (i made that style too, not releasing it though)

caliman 05-17-2005 03:08 PM

YOU RULE JORDAN! Thanks so much for this. I really appreciate it. Clicking install! (I will install tonight.)


Quote:

Originally Posted by boo.3
nice!

may i ask a question... how do you make the avatars and stuff on the left side? mines on top?

or is that just the style?

Thats actually an option in adminCP somewhere. Something about using a vB2 look I think.

Hellspire 05-17-2005 03:12 PM

Yes, that is known as the postbit template. Legacy is the v2 look. Although Jordon obviously has a few modifcations to the legacy template. Wouldn't take more than 5 minutes of time, to modify a default legacy theme to match his if you know html and the vb conditionals.

|Jordan| 05-17-2005 03:16 PM

I didn't know how to make the hack with just template modifcations, so i went with this.

boo.3 05-17-2005 03:19 PM

ok got it thanks!

yoyoyoyo 05-17-2005 04:03 PM

this hack didn't work for me at first. I followed the instructions, however there was no image displayed in the postbit - it only said : "current mood:" and no image. Then I noticed that the folder is named "moods" and in the instructions it says to use the name "mood" instead, so after I changed that it worked fine. Also, there was no blank .html in the image folder to prevent folks from snooping inside the image folder, so I changed that as well. I also added the names of the moods to the "alt" tag, so now when people hover over the mood icon it says the name of the emotion as well.


All times are GMT. The time now is 01:46 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.01284 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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