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 - Extended [Postbit] (https://vborg.vbsupport.ru/showthread.php?t=83488)

paul41598 06-20-2005 10:00 PM

Mood Hack - Extended [Postbit]
 
This is my 2nd hack released. Im no coder by any far means, but I loved the mood hack. However I did not like the fact that you had to goto your USERCP, to update your mood.


Original Credits Goto: MyIS_Jordan


What this mod does:

This modifcation puts the mood dropdown selector inside the postbit instead of the USERCP.

What this means:

Your users are more thankful because its easier to change rather than doing it from your USERCP. :)

What are some features:
  • Added <if> statement, so the dropdown box shows only for that specific user logged in. This makes it so that you cannot select your mood from someone else's postbit dropdown
  • Upon selection of mood, page autorefreshes and takes you back to the current thread you were viewing

Dont forget to click install if you like! :D

Screenshots below:

RichieBoy67 06-21-2005 04:19 PM

It looks like you are lissing instructions in your text file??

paul41598 06-21-2005 04:31 PM

you need to follow the original instructions in the other authors text file. Sorry

RichieBoy67 06-21-2005 04:33 PM

Yes, I know that this is basically an addon but are you sure that you have included everything in your text file that needs to be there???

Great idea by the way!! :)

paul41598 06-21-2005 04:45 PM

yes, what kind of problems are you having?

RichieBoy67 06-21-2005 05:01 PM

The only thing in your text file is just adding some code to postbit legacy.... I am getting nothing at all from doing that... I added it to postbit instead..

paul41598 06-21-2005 05:02 PM

Ok, sorry, I guess I didnt code it for POSTBIT like I should have.

Thats all the code you need though, in addition to the original code m8. THen upload that file.

bigcurt 06-21-2005 05:07 PM

Very nice mod man, congrats!

RichieBoy67 06-21-2005 05:08 PM

Can you please post what you changed???


I just finished installing the other vode a few minutes ago and then you posted this add on :) Great timing...

anyhow, so far this isn't working for me...

paul41598 06-21-2005 05:12 PM

I'll rewrite the instructions and post them in a few

RichieBoy67 06-21-2005 05:19 PM

Thanks :)

paul41598 06-21-2005 05:23 PM

Ok try those instructions. Hopefully I got everything ;)

Exitilus 06-21-2005 05:31 PM

oooohh Nice .. Tag for later :D

KevinL 06-21-2005 05:36 PM

Works perfectly!

Thanks:)

paul41598 06-21-2005 06:47 PM

n/p. Im working on some other mood graphics right now. I wanted more, so Im developing my own. Maybe I'll post them

paul41598 06-22-2005 04:04 AM

Heres a few more that I made if anyone wants to use them. I have the PSD's as well for a (limited time) only.

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/


Enjoy

yoyoyoyo 06-22-2005 05:06 AM

cool thanks.

|Jordan| 06-24-2005 12:13 AM

Damn, those are some sweet mood graphics! Keep up the great work!

am-fs 06-24-2005 05:58 AM

Great Job

Found it
thanks again, I would love the PSD templetes

midnightz 06-24-2005 10:52 PM

Quote:

Originally Posted by am-fs
Great Job

Found it
thanks again, I would love the PSD templetes

I second that! :)

Is there away since I just put in your code version, to have it also show up in profile, so somebody that is viewing a prfile can see the current mood if profile surfin?

Thanks :)

paul41598 06-24-2005 11:21 PM

Just follow MyIs_Jordan's original instructions for the profile part, and it should work fine.

midnightz 06-24-2005 11:28 PM

Ok, I will revert that part :) thx

rb2k1 06-30-2005 05:58 PM

Is there anyway to get this to show in the Member Profile Page? Thanks Guys
~Ross B

paul41598 06-30-2005 08:17 PM

Quote:

Originally Posted by rb2k1
Is there anyway to get this to show in the Member Profile Page? Thanks Guys
~Ross B

Sure,

Just open up MEMBERINFO template and paste this anywhere you want it to show

PHP Code:

<!-- Mood Hack Start -->
<
br />
<if 
condition="$post[mood] == 1">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Aggressive.gif" alt="Aggressive"></div>
</if>
<if 
condition="$post[mood] == 2">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Amazed.gif" alt="Amazed"></div>
</if>
<if 
condition="$post[mood] == 3">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Amused.gif" alt="Amused"></div>
</if>
<if 
condition="$post[mood] == 4">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Angelic.gif" alt="Angelic"></div>
</if>
<if 
condition="$post[mood] == 5">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Angry.gif" alt="Angry"></div>
</if>
<if 
condition="$post[mood] == 6">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Asleep.gif" alt="Asleep"></div>
</if>
<if 
condition="$post[mood] == 7">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/+++++y.gif" alt="+++++y"></div>
</if>
<if 
condition="$post[mood] == 8">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Blah.gif" alt="Blah"></div>
</if>
<if 
condition="$post[mood] == 9">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Bored.gif" alt="Bored"></div>
</if>
<if 
condition="$post[mood] == 10">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Brooding.gif" alt="Brooding"></div>
</if>
<if 
condition="$post[mood] == 11">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Busy.gif" alt="Busy"></div>
</if>
<if 
condition="$post[mood] == 12">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Buzzed.gif" alt="Buzzed"></div>
</if>
<if 
condition="$post[mood] == 13">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Cheeky.gif" alt="Cheeky"></div>
</if>
<if 
condition="$post[mood] == 14">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Cheerful.gif" alt="Cheerful"></div>
</if>
<if 
condition="$post[mood] == 15">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Cold.gif" alt="Cold"></div>
</if>
<if 
condition="$post[mood] == 16">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Confused.gif" alt="Confused"></div>
</if>
<if 
condition="$post[mood] == 17">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Cool.gif" alt="Cool"></div>
</if>
<if 
condition="$post[mood] == 18">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Daring.gif" alt="Daring"></div>
</if>
<if 
condition="$post[mood] == 19">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Dead.gif" alt="Dead"></div>
</if>
<if 
condition="$post[mood] == 20">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Devilish.gif" alt="Devilish"></div>
</if>
<if 
condition="$post[mood] == 21">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Fine.gif" alt="Fine"></div>
</if>
<if 
condition="$post[mood] == 22">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Goofy.gif" alt="Goofy"></div>
</if>
<if 
condition="$post[mood] == 23">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Grumpy.gif" alt="Grumpy"></div>
</if>
<if 
condition="$post[mood] == 24">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Happy.gif" alt="Happy"></div>
</if>
<if 
condition="$post[mood] == 25">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Hot.gif" alt="Hot"></div>
</if>
<if 
condition="$post[mood] == 26">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/In_Love.gif" alt="In Love"></div>
</if>
<if 
condition="$post[mood] == 27">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Innocent.gif" alt="Innocent"></div>
</if>
<if 
condition="$post[mood] == 28">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Inspired.gif" alt="Inspired"></div>
</if>
<if 
condition="$post[mood] == 29">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Lonely.gif" alt="Lonely"></div>
</if>
<if 
condition="$post[mood] == 30">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Lurking.gif" alt="Lurking"></div>
</if>
<if 
condition="$post[mood] == 31">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Mellow.gif" alt="Mellow"></div>
</if>
<if 
condition="$post[mood] == 32">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Pensive.gif" alt="Pensive"></div>
</if>
<if 
condition="$post[mood] == 33">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Psychadelic.gif" alt="Psychadelic"></div>
</if>
<if 
condition="$post[mood] == 34">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Relaxed.gif" alt="Relaxed"></div>
</if>
<if 
condition="$post[mood] == 35">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Sad.gif" alt="Sad"></div>
</if>
<if 
condition="$post[mood] == 36">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Scared.gif" alt="Scared"></div>
</if>
<if 
condition="$post[mood] == 37">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Shocked.gif" alt="Shocked"></div>
</if>
<if 
condition="$post[mood] == 38">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Sick.gif" alt="Sick"></div>
</if>
<if 
condition="$post[mood] == 39">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Sneaky.gif" alt="Sneaky"></div>
</if>
<if 
condition="$post[mood] == 40">
<
br>
<
div class="smallfont">Current Mood: <img src="./images/mood/Tired.gif" alt="Tired"></div>
</if>
<
br />
<!-- 
Mood Hack End --> 


rb2k1 06-30-2005 09:15 PM

Thanks! I didnt realise it was that simple :) You can also add the selector by adding the drop down code right under it.. :)

Thanks Again

mustang_lex 07-05-2005 04:28 PM

I already installed the original MOOD hack. Is there a UPGRADE so i can have the mood setting in both the profile section (which it is now) and in the postbits?

Thank you

SlipNslide281 07-26-2005 06:36 PM

Installed and works great. thanks for this hack. Its sweet.

hotwheels 08-20-2005 01:55 AM

my mysql, says i have an error from the query.......hxxxxx_forums.user doesn't exist

Renada 08-21-2005 03:23 PM

Hi,

I've installed this hack and it works wonderfully. The only problem I have is when I use IE changing the "mood" from the drop-down redirects me back to index.php instead of returning me to showthread.php. If I use Firefox I'm redirected correctly.

Have I done something wrong?

Thanks for any help in solving this.
Renada

hotwheels 08-22-2005 01:55 AM

I installed this in mysql...........when i ran: #### QUERY ####
ALTER TABLE user ADD mood varchar(15) NOT NULL

in mysql query, i was getting an error that hxxxxx_forums.user doesn't exist.

I then changed the query to:#### QUERY ####
ALTER TABLE vb3user ADD mood varchar(15) NOT NULL

and it worked flawlessly......

just thought i would share that with everyone, incase someone else has had this problem. I am using vbulletin 3.07

hotwheels

psypix 08-26-2005 11:06 PM

great hack!! but..

it only displays for admin and not normal forum members...

help!! :)

Scooterpig 08-27-2005 12:18 AM

Great hack Paul and curious if there's any chance you could please portal this over to 3.5..:)

yj_enquirer 08-28-2005 08:03 PM

And another gr8 one released by u Paul.. nice going...

@psypix... it displays for normal members to in my forum.. using 3.0.8.

Ok.. a suggestion.. within the post, I select the mood. It changes the mood however the selection then takes me back to the forum homepage. Anychance one can have it such that I stay on the same page/thread I was on when making the selection.

But other then that... many thanks.. u make my forums look better everyday with your hacks!!! ;)

paul41598 08-29-2005 01:07 PM

Quote:

Originally Posted by yj_enquirer
And another gr8 one released by u Paul.. nice going...

@psypix... it displays for normal members to in my forum.. using 3.0.8.

Ok.. a suggestion.. within the post, I select the mood. It changes the mood however the selection then takes me back to the forum homepage. Anychance one can have it such that I stay on the same page/thread I was on when making the selection.

But other then that... many thanks.. u make my forums look better everyday with your hacks!!! ;)

it shouldnt redirect you back to the homepage, something is wrong. Can you give me a link username password to try out.

Rhoads 08-29-2005 04:05 PM

Thnx for the hack ;)

I have one Uncached templates:

postbit_moodbit

In which php file can I added 'postbit_moodbit',
I tried adding this one to showthread.php but it still remained uncached.

Renada 08-29-2005 05:13 PM

Quote:

Originally Posted by paul41598
it shouldnt redirect you back to the homepage, something is wrong. Can you give me a link username password to try out.

Paul,

I too have the same problem.

www.thinkstop.com

User: test
Password: tester

If you could solve this that would be great :)

(edit: this only occurs in IE - Firefox redirects you back to where you were as it should)

Thanks,
Renada

paul41598 08-29-2005 07:07 PM

seems to be working for me. You click a mood, and it redirects you to the top of the page...or the top of the thread you were on. Thats how I coded it... Firefox does the same for me as well, like its designed to do.

Not sure what the confusion is?

DRL2005: global.php

Rhoads 08-29-2005 07:25 PM

Quote:

Originally Posted by paul41598


DRL2005: global.php

Sorry, but it still uncached :ermm:

paul41598 08-30-2005 12:38 AM

Quote:

Originally Posted by drl2005
Sorry, but it still uncached :ermm:

You did this part:?

######## OPEN showthread.php #########

## FIND:

'pollresult',


## BELOW ADD:

'mood',


Because I dont have any uncached templates...

Rhoads 08-30-2005 03:42 AM

Quote:

Originally Posted by paul41598
You did this part:?

######## OPEN showthread.php #########

## FIND:

'pollresult',


## BELOW ADD:

'mood',


Because I dont have any uncached templates...

Yes I did Paul, :ermm:


All times are GMT. The time now is 12:07 AM.

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.02174 seconds
  • Memory Usage 1,914KB
  • 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
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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