[ABD] Mood

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
DJ Jonny
Registered User
Posts: 145
Joined: Sat Nov 10, 2007 10:58 pm

Re: [BETA] Mood

Post by DJ Jonny »

Sunka wrote:Mood is Superb MOD :mrgreen:
I installed last night, and added 56 new pictures
Only 4,5 hours to install and change codes for all images :mrgreen:
Works great in my forum v3.0.1
lol i have done the same but with some of the images what cum with my forum took ages to add n change the code lol
ham1299
Registered User
Posts: 613
Joined: Mon Sep 11, 2006 2:12 am
Location: USA

Re: [BETA] Mood

Post by ham1299 »

Are there plans to make it so you can add/remove icons via the ACP (kinda the way smilies works)?
Heather
tupeu
Registered User
Posts: 320
Joined: Wed Jul 25, 2007 5:47 pm
Location: roFLmania

Re: [BETA] Mood

Post by tupeu »

Great mod, i also use this !
But i want to change the images and the text for them, how to do that?

I want to use this images:

Image

Image

Image

Image

Image

Image

Image

Image
Last edited by tupeu on Sun May 04, 2008 2:12 am, edited 1 time in total.
Primy
Registered User
Posts: 109
Joined: Sat Dec 01, 2007 5:11 pm

Re: [BETA] Mood

Post by Primy »

ham1299 wrote:Are there plans to make it so you can add/remove icons via the ACP (kinda the way smilies works)?
Yep. Unfortunately I have no long time, but I will try to make that as soon as possible. ;)
Primy
Registered User
Posts: 109
Joined: Sat Dec 01, 2007 5:11 pm

Re: [BETA] Mood

Post by Primy »

Thanks tupeu :)

For the text

Open language/en/common.php
Find:

Code: Select all

	'MOOD_M1'			=> 'Serene',
	'MOOD_M2'			=> 'Happy',
	'MOOD_M3'			=> 'Sad',
	'MOOD_M4'		=> 'Despair',
	'MOOD_M5'			=> 'Angry',
	'MOOD_M6'		=> 'Infuriating',
 
In line find:

Code: Select all

Serene 
Replace with mood you want. You make the same to change other moods (Happy, Sad, Despair, Angry and Infuriating).

Open/language/en/acp/style.php

Find:

Code: Select all

	'IMG_ICON_MOOD_M1'	=> 'Mood: Serene',
	'IMG_ICON_MOOD_M2'	=> 'Mood: Happy',
	'IMG_ICON_MOOD_M3'	=> 'Mood: Sad',
	'IMG_ICON_MOOD_M4'	=> 'Mood: Despair',
	'IMG_ICON_MOOD_M5'	=> 'Mood: Angry',
	'IMG_ICON_MOOD_M6'	=> 'Mood: Infuriating',
In line find:

Code: Select all

Serene
Replace with mood you want. You make the same to change other moods (Happy, Sad, Despair, Angry and Infuriating).

Remember to name the moods in the same manner and order for the two files. E.g. if in common.php there’s:

Code: Select all

'MOOD_M1'			=> 'Grinning',
In style.php it will have to be:

Code: Select all

'IMG_ICON_MOOD_M1'	=> 'Mood: Grinning',

For the images:

Open style/your theme/imageset/ and replace mood icons with ur icons remembering to name them with the same names and extension (icon_mood_m1, icon_mood_m2 etc.).


If u have any problem let me know. ;)
ham1299
Registered User
Posts: 613
Joined: Mon Sep 11, 2006 2:12 am
Location: USA

Re: [BETA] Mood

Post by ham1299 »

Primy wrote:
ham1299 wrote:Are there plans to make it so you can add/remove icons via the ACP (kinda the way smilies works)?
Yep. Unfortunately I have no long time, but I will try to make that as soon as possible. ;)
I understand time constraints! I can be patient! ;)
Heather
timmo
Registered User
Posts: 45
Joined: Mon Apr 21, 2008 11:09 pm

Re: [BETA] Mood

Post by timmo »

cooooooooooool mod i can't wait it
moustafamin
Registered User
Posts: 230
Joined: Thu Aug 30, 2007 8:10 am

Re: [BETA] Mood

Post by moustafamin »

i think the last time mood updated should be added beside the mood as in facebook
DJ Jonny
Registered User
Posts: 145
Joined: Sat Nov 10, 2007 10:58 pm

Re: [BETA] Mood

Post by DJ Jonny »

can any 1 help me put the option into a dropdown list instead of radio buttons i carnt seem to get it working lol problem resolved
tupeu
Registered User
Posts: 320
Joined: Wed Jul 25, 2007 5:47 pm
Location: roFLmania

Re: [BETA] Mood

Post by tupeu »

DJ Jonny wrote:an any 1 help me put the option into a dropdown list instead of radio buttons i carnt seem to get it working lol problem resolved
it would be great if you could share with us how did you do it !
Thank You !
DJ Jonny
Registered User
Posts: 145
Joined: Sat Nov 10, 2007 10:58 pm

Re: [BETA] Mood

Post by DJ Jonny »

Maybe this could be put in the next virsion of this mod to make the ucp_profile_profile_info.html and the acp_users_profile.html a lot tidyer.

To put your options in a dropdown list you just need to: (For SubSilver and Prosilver)

Open: styles/subsilver2/template/ucp_profile_profile_info.html

Find

Code: Select all

	<td class="row1" width="35%"><b class="genmed"><label for="mood_ns">{L_MOOD}:</label> </b><br /><span class="gensmall">{L_MOOD_EXPLAIN}</span></td>
	<td class="row2">
		<label for="mood_m1"><input type="radio" name="mood" id="mood_m1" value="{MOOD_M1}"<!-- IF S_MOOD_M1 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M1}</label>
		<label for="mood_m2"><input type="radio" name="mood" id="mood_m2" value="{MOOD_M2}"<!-- IF S_MOOD_M2 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M2}</label>
		<label for="mood_m3"><input type="radio" name="mood" id="mood_m3" value="{MOOD_M3}"<!-- IF S_MOOD_M3 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M3}</label>
		<label for="mood_m4"><input type="radio" name="mood" id="mood_m4" value="{MOOD_M4}"<!-- IF S_MOOD_M4 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M4}</label>
		<label for="mood_m5"><input type="radio" name="mood" id="mood_m5" value="{MOOD_M5}"<!-- IF S_MOOD_M5 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M5}</label>
		<label for="mood_m6"><input type="radio" name="mood" id="mood_m6" value="{MOOD_M6}"<!-- IF S_MOOD_M6 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M6}</label>
		<label for="mood_ns"><input type="radio" name="mood" id="mood_ns" value="{MOOD_NS}"<!-- IF S_MOOD_NS --> checked="checked"<!-- ENDIF --> /> {L_MOOD_NS}</label>
	</td>
</tr>
Replace with

Code: Select all

	 <td class="row1" width="35%"><b class="genmed"><label for="mood_ns">{L_MOOD}:</label> </b><br /><span class="gensmall">{L_MOOD_EXPLAIN}</span></td>
   <td class="row2">
<select name="mood">
		<option name="mood" id="mood_m1" value="{MOOD_M1}"<!-- IF S_MOOD_M1 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M1}</option>
		<option name="mood" id="mood_m2" value="{MOOD_M2}"<!-- IF S_MOOD_M2 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M2}</option>
		<option name="mood" id="mood_m3" value="{MOOD_M3}"<!-- IF S_MOOD_M3 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M3}</option>
		<option name="mood" id="mood_m4" value="{MOOD_M4}"<!-- IF S_MOOD_M4 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M4}</option>
		<option name="mood" id="mood_m5" value="{MOOD_M5}"<!-- IF S_MOOD_M5 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M5}</option>
		<option name="mood" id="mood_m6" value="{MOOD_M6}"<!-- IF S_MOOD_M6 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M6}</option>
		<option name="mood" id="mood_ns" value="{MOOD_NS}"<!-- IF S_MOOD_NS --> checked="checked"<!-- ENDIF --> /> {L_MOOD_NS}</option>
		</select>

   </td>
</tr>
For proSilver templates

open: styles/prosilver/template/ucp_profile_profile_info.html

Code: Select all

<dt><label for="mood_ns">{L_MOOD}:</label><br /><span>{L_MOOD_EXPLAIN}</span></dt>
		<dd>
			<label for="mood_m1"><input type="radio" name="mood" id="mood_m1" value="{MOOD_M1}"<!-- IF S_MOOD_M1 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M1}</label>
			<label for="mood_m2"><input type="radio" name="mood" id="mood_m2" value="{MOOD_M2}"<!-- IF S_MOOD_M2 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M2}</label>
			<label for="mood_m3"><input type="radio" name="mood" id="mood_m3" value="{MOOD_M3}"<!-- IF S_MOOD_M3 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M3}</label>
			<label for="mood_m4"><input type="radio" name="mood" id="mood_m4" value="{MOOD_M4}"<!-- IF S_MOOD_M4 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M4}</label>
			<label for="mood_m5"><input type="radio" name="mood" id="mood_m5" value="{MOOD_M5}"<!-- IF S_MOOD_M5 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M5}</label>
			<label for="mood_m6"><input type="radio" name="mood" id="mood_m6" value="{MOOD_M6}"<!-- IF S_MOOD_M6 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M6}</label>
			<label for="mood_ns"><input type="radio" name="mood" id="mood_ns" value="{MOOD_NS}"<!-- IF S_MOOD_NS --> checked="checked"<!-- ENDIF --> /> {L_MOOD_NS}</label>
		</dd>
	</dl>
Replace with

Code: Select all

<dt><label for="mood_ns">{L_MOOD}:</label><br /><span>{L_MOOD_EXPLAIN}</span></dt>
		<dd>
<select name="mood">
		<option name="mood" id="mood_m1" value="{MOOD_M1}"<!-- IF S_MOOD_M1 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M1}</option>
		<option name="mood" id="mood_m2" value="{MOOD_M2}"<!-- IF S_MOOD_M2 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M2}</option>
		<option name="mood" id="mood_m3" value="{MOOD_M3}"<!-- IF S_MOOD_M3 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M3}</option>
		<option name="mood" id="mood_m4" value="{MOOD_M4}"<!-- IF S_MOOD_M4 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M4}</option>
		<option name="mood" id="mood_m5" value="{MOOD_M5}"<!-- IF S_MOOD_M5 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M5}</option>
		<option name="mood" id="mood_m6" value="{MOOD_M6}"<!-- IF S_MOOD_M6 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M6}</option>
		<option name="mood" id="mood_ns" value="{MOOD_NS}"<!-- IF S_MOOD_NS --> checked="checked"<!-- ENDIF --> /> {L_MOOD_NS}</option>
		</select>

		</dd>
	</dl>
Open: adm/style/acp_users_profile.html

Find

Code: Select all

<dl>
		<dt><label for="mood_ns">{L_MOOD}:</label><br /><span>{L_MOOD_EXPLAIN}</span></dt>
		<dd>
			<input type="radio" name="mood" id="mood_m1" value="{MOOD_M1}"<!-- IF S_MOOD_M1 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M1}
			<input type="radio" name="mood" id="mood_m2" value="{MOOD_M2}"<!-- IF S_MOOD_M2 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M2}
			<input type="radio" name="mood" id="mood_m3" value="{MOOD_M3}"<!-- IF S_MOOD_M3 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M3}
			<input type="radio" name="mood" id="mood_m4" value="{MOOD_M4}"<!-- IF S_MOOD_M4 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M4}
			<input type="radio" name="mood" id="mood_m5" value="{MOOD_M5}"<!-- IF S_MOOD_M5 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M5}
			<input type="radio" name="mood" id="mood_m6" value="{MOOD_M6}"<!-- IF S_MOOD_M6 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M6}
			<input type="radio" name="mood" id="mood_ns" value="{MOOD_NS}"<!-- IF S_MOOD_NS --> checked="checked"<!-- ENDIF --> /> {L_MOOD_NS}
		</dd>
	</dl>
Replace with

Code: Select all

<dl>
		<dt><label for="mood_ns">{L_MOOD}:</label><br /><span>{L_MOOD_EXPLAIN}</span></dt>
		<dd>
	<select name="mood">
		<option name="mood" id="mood_m1" value="{MOOD_M1}"<!-- IF S_MOOD_M1 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M1}</option>
		<option name="mood" id="mood_m2" value="{MOOD_M2}"<!-- IF S_MOOD_M2 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M2}</option>
		<option name="mood" id="mood_m3" value="{MOOD_M3}"<!-- IF S_MOOD_M3 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M3}</option>
		<option name="mood" id="mood_m4" value="{MOOD_M4}"<!-- IF S_MOOD_M4 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M4}</option>
		<option name="mood" id="mood_m5" value="{MOOD_M5}"<!-- IF S_MOOD_M5 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M5}</option>
		<option name="mood" id="mood_m6" value="{MOOD_M6}"<!-- IF S_MOOD_M6 --> checked="checked"<!-- ENDIF --> /> {L_MOOD_M6}</option>
		<option name="mood" id="mood_ns" value="{MOOD_NS}"<!-- IF S_MOOD_NS --> checked="checked"<!-- ENDIF --> /> {L_MOOD_NS}</option>
		</select>
		</dd>
	</dl>
Any problems with this code give es a shout ;)
Last edited by DJ Jonny on Tue May 06, 2008 12:06 pm, edited 5 times in total.
DJ Jonny
Registered User
Posts: 145
Joined: Sat Nov 10, 2007 10:58 pm

Re: [BETA] Mood

Post by DJ Jonny »

Rite now am stuck on trying to get this mod to show the image and the name of the image , i have tryed editing the functions_mood.php but a just carnt seem to get it working and 1 know how to do this
xxxgamer
Registered User
Posts: 574
Joined: Mon Jul 16, 2007 11:25 pm

Re: [BETA] Mood

Post by xxxgamer »

Works perfectly for me.

Poster above ^^

I had the same problem. Go on admin panel and at the top select styels then your style your using and imageset. Then refresh the imageset and it workded for me :)
DJ Jonny
Registered User
Posts: 145
Joined: Sat Nov 10, 2007 10:58 pm

Re: [BETA] Mood

Post by DJ Jonny »

xxxgamer wrote:Works perfectly for me.

Poster above ^^

I had the same problem. Go on admin panel and at the top select styels then your style your using and imageset. Then refresh the imageset and it workded for me :)

good glad it works ;)

i have it showing the image at the mo but in the functions_mood.php you have an option to set it so it just shows the text instead of an image but what i want is for it to show both the image and the text if you get me
xxxgamer
Registered User
Posts: 574
Joined: Mon Jul 16, 2007 11:25 pm

Re: [BETA] Mood

Post by xxxgamer »

oh hmmm..No idea mate sorry :(

Return to “[3.0.x] Abandoned MODs”