View Single Post
  #37  
Old 12-06-2005, 06:53 PM
dai-kun dai-kun is offline
 
Join Date: Jul 2005
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OPEN postbit/postbit_legacy:

FIND:

Code:
				<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
				<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
			</div>
BELOW, ADD:

Code:
                                <!-- mood hack display start -->
				<br /><if condition="$post[fieldX] != ''"><div class="smallfont">
				Current Mood: <img src="images/mood/$post[fieldX].gif" title="$post[fieldX]" align="center">
				</div></if>
                                <!-- mood hack display end -->
FIND:

Code:
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
BELOW, ADD:

Code:
<br />
My Mood: 
<!-- / dropdown mood select by sniper -->
<if condition="$post[userid] == $bbuserinfo[userid]">
<form action="index.php" method="post" id="moodform">
	<input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="do" value="newmood" />
	<input type="hidden" name="userid" value="$bbuserinfo[userid]" />
		<select name="mood" onchange="this.form.submit();">		
			<option value=" " <if condition="$bbuserinfo[FIELDXX] == ''">selected</if>>No Mood</option>
			<option value="Aggressive" <if condition="$bbuserinfo[FIELDXX] == Aggressive">selected</if>>Aggressive</option>
			<option value="Amazed" <if condition="$bbuserinfo[FIELDXX] == Amazed">selected</if>>Amazed</option>
			<option value="Amused" <if condition="$bbuserinfo[FIELDXX] == Amused">selected</if>>Amused</option>
			<option value="Angelic" <if condition="$bbuserinfo[FIELDXX] == Angelic">selected</if>>Angelic</option>
			<option value="Angry" <if condition="$bbuserinfo[FIELDXX] == Angry">selected</if>>Angry</option>
			<option value="Asleep" <if condition="$bbuserinfo[FIELDXX] == Asleep">selected</if>>Asleep</option>
			<option value="+++++y" <if condition="$bbuserinfo[FIELDXX] == +++++y">selected</if>>+++++y</option>
			<option value="Blah" <if condition="$bbuserinfo[FIELDXX] == Blah">selected</if>>Blah</option>
			<option value="Bored" <if condition="$bbuserinfo[FIELDXX] == Bored">selected</if>>Bored</option>
			<option value="Breezy" <if condition="$bbuserinfo[FIELDXX] == Breezy">selected</if>>Breezy</option>
			<option value="Brooding" <if condition="$bbuserinfo[FIELDXX] == Brooding">selected</if>>Brooding</option>
			<option value="Busy" <if condition="$bbuserinfo[FIELDXX] == Busy">selected</if>>Busy</option>
			<option value="Buzzed" <if condition="$bbuserinfo[FIELDXX] == Buzzed">selected</if>>Buzzed</option>
			<option value="Cheeky" <if condition="$bbuserinfo[FIELDXX] == Cheeky">selected</if>>Cheeky</option>
			<option value="Cheerful" <if condition="$bbuserinfo[FIELDXX] == Cheerful">selected</if>>Cheerful</option>
			<option value="Cold" <if condition="$bbuserinfo[FIELDXX] == Cold">selected</if>>Cold</option>
			<option value="Confused" <if condition="$bbuserinfo[FIELDXX] == Confused">selected</if>>Confused</option>
			<option value="Cool" <if condition="$bbuserinfo[FIELDXX] == Cool">selected</if>>Cool</option>
			<option value="Daring" <if condition="$bbuserinfo[FIELDXX] == Daring">selected</if>>Daring</option>
			<option value="Dead" <if condition="$bbuserinfo[FIELDXX] == Dead">selected</if>>Dead</option>
			<option value="Devilish" <if condition="$bbuserinfo[FIELDXX] == Devilish">selected</if>>Devilish</option>
			<option value="Fine" <if condition="$bbuserinfo[FIELDXX] == Fine">selected</if>>Fine</option>
			<option value="Goofy" <if condition="$bbuserinfo[FIELDXX] == Goofy">selected</if>>Goofy</option>
			<option value="Grumpy" <if condition="$bbuserinfo[FIELDXX] == Grumpy">selected</if>>Grumpy</option>
			<option value="Happy" <if condition="$bbuserinfo[FIELDXX] == Happy">selected</if>>Happy</option>
			<option value="Hot" <if condition="$bbuserinfo[FIELDXX] == Hot">selected</if>>Hot</option>
			<option value="In Love" <if condition="$bbuserinfo[FIELDXX] == 'In Love'">selected</if>>In Love</option>
			<option value="Innocent" <if condition="$bbuserinfo[FIELDXX] == Innocent">selected</if>>Innocent</option>
			<option value="Inspired" <if condition="$bbuserinfo[FIELDXX] == Inspired">selected</if>>Inspired</option>
			<option value="Lonely" <if condition="$bbuserinfo[FIELDXX] == Lonely">selected</if>>Lonely</option>
			<option value="Lurking" <if condition="$bbuserinfo[FIELDXX] == Lurking">selected</if>>Lurking</option>
			<option value="Mellow" <if condition="$bbuserinfo[FIELDXX] == Mellow">selected</if>>Mellow</option>
			<option value="Pensive" <if condition="$bbuserinfo[FIELDXX] == Pensive">selected</if>>Pensive</option>
			<option value="Psychadelic" <if condition="$bbuserinfo[FIELDXX] == Psychadelic">selected</if>>Psychadelic</option>
			<option value="Relaxed" <if condition="$bbuserinfo[FIELDXX] == Relaxed">selected</if>>Relaxed</option>
			<option value="Sad" <if condition="$bbuserinfo[FIELDXX] == Sad">selected</if>>Sad</option>
			<option value="Scared" <if condition="$bbuserinfo[FIELDXX] == Scared">selected</if>>Scared</option>
			<option value="Shocked" <if condition="$bbuserinfo[FIELDXX] == Shocked">selected</if>>Shocked</option>
			<option value="Sick" <if condition="$bbuserinfo[FIELDXX] == Sick">selected</if>>Sick</option>
			<option value="Sneaky" <if condition="$bbuserinfo[FIELDXX] == Sneaky">selected</if>>Sneaky</option>
      			<option value="Tired" <if condition="$bbuserinfo[FIELDXX] == Tired">selected</if>>Tired</option>
		</select>
	</form></if>
<!-- / dropdown mood select by sniper -->
Remember to change ur fieldx to ur mood field.
You will get an error if you're admin.
Regular members seem to work fine though.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01328 seconds
  • Memory Usage 1,811KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete