vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Quick Mood Changer - addon (https://vborg.vbsupport.ru/showthread.php?t=102270)

GrendelKhan{TSU 12-06-2005 10:39 AM

is it possible for either you or the orginal creator to full phrase this? I know the images will be the same, but it'd be a GREAT thing to be able to do in multiple languages. :)

dboogie2288 12-06-2005 02:12 PM

Well I checked the old PM blinking icon install that I did way back when, but that was from VB 3.0.5, and I never installed it with 3.5

I think that since this is an add on for a mod that is written for 3.5.0, then the add-on should certainly support it. I dont particularly have time to update the system everytime that VB changes a line of code, and I REALLY want this hack to work...oh well, onto another day I suppose.

funinthesun 12-06-2005 03:26 PM

When I try to edit the navbar template I get this error:
Code:

The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/*******/public_html/includes/adminfunctions_template.php(3519) : eval()'d code on line 265
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


-=Sniper=- 12-06-2005 03:40 PM

I really don't know why it doesnt work correctly in 3.5.0 but it does in 3.5.1 so I suggest upgrading to see it fixes the problem.

dano 12-06-2005 04:13 PM

Quote:

Originally Posted by dai-kun
thanks, worked perfectly!

I was able to change it to show up in postbits ^^

Can you please post the instructions as to how you did this? I would love to have this in postbits.

dai-kun 12-06-2005 06:53 PM

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.

funinthesun 12-06-2005 07:02 PM

Is the only option to upgrade to 3.5.1? :confused:

Rickie3 12-06-2005 10:08 PM

yea i dont want to have to upgrade to 3.5.1,as my forum is running sweet 3.5.0,there has to be a fix for this problem,as the original mood hack is for 3.5.0,and this add on is 3.5.1

dboogie2288 12-06-2005 10:41 PM

Quote:

Originally Posted by Rickie3
yea i dont want to have to upgrade to 3.5.1,as my forum is running sweet 3.5.0,there has to be a fix for this problem,as the original mood hack is for 3.5.0,and this add on is 3.5.1

Thats where I was coming from...

The postbit hack doesnt work either.

poprulz 12-07-2005 01:27 PM

Code:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/local/psa/home/vhosts/mallupride.com/httpdocs/forums/includes/adminfunctions_template.php(3519) : eval()'d code on line 163

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

and b4 that when i was installing it as a product.. it said it not a product..rather a plugin. so i copy pasted the php code and made it a plugin.

maybe its not compatible with 3.5.0

and did anyone try the postbit hack for 3.5.0? does it really work?


All times are GMT. The time now is 10:16 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.01477 seconds
  • Memory Usage 1,772KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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