[MODDB] Simple Mood

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
Locked
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

[MODDB] Simple Mood

Post by mtrs » Mon Sep 15, 2008 1:49 pm

Modification Name: Simple Mood
Author: mtrs

Modification Description: Adds a custom profile field defined mood and image to viewtopic, profiles, overall_header and memberlist
Modification Version: 1.0.2 (RC)
Features:
  • New moods can be added at ACP Custom Profile Field
  • Mood name and image name should be same (Int.ASCII)
  • If selected mood doesn't have an image file yet, only a mood text appears instead of image
  • ACP controlled custom profile view in overall header for mood
Demo URL: Demo URL


Modification Download: Simple Mood


Edit: 2008-09-18 - Version 0.0.2
  • My mood icon view on overall_header added
  • UCP mood icon view added
[/size]Edit: 2008-10-17 - Version 0.1.0
  • Small fixes in codes
  • Subsilver2 instructions added
  • Turkish support added
[/size]Edit: 2008-10-18 - Version 0.1.1
  • Language file entries
  • ACP control for overall_header custom profile field view
[/size]Edit: 2008-10-20 - Version 0.1.2
  • Topic page mood icon to UCP link added
[/size]Edit: 2008-10-24 - Version 0.1.3
  • Memberlist mood view added
[/size] Edit: 2008-11-29 - Version 0.1.4
  • tr.xml added
  • unneeded () removed
  • ACP language file copy command added
  • guest and bot check added in functions.php
  • Style files find/add eq-neq change
  • One of two duplicate edits on acp_board.php removed
[/size]Edit: 2008-12-06 - Version 0.1.5
  • acidtech.xml included in contrib folder
Edit: 2009-02-14 - Version 0.1.6
  • MODX 1.2.2
  • Anchor link added
  • Instead of lang_name, field_name used in templates by editing functions_profile_profile.php
  • Mod became less dependent to language file, except title link
[/size]
Last edited by mtrs on Wed Apr 29, 2009 6:01 pm, edited 20 times in total.
I abandoned all of my mods.

Peter77sx
Registered User
Posts: 3253
Joined: Wed Nov 09, 2005 2:51 pm

Re: [ALPHA] Simple Mood (0.0.1)

Post by Peter77sx » Tue Sep 16, 2008 7:47 pm

I like the dropdown box idea. More clean and neat.

Will we get to see a preview of the image when selecting from the dropdown menu?
If not, this would be an request of mine.

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by mtrs » Thu Sep 18, 2008 3:53 pm

Version updated to 0.0.2 , demo images added to first post.
Peter77sx wrote:Will we get to see a preview of the image when selecting from the dropdown menu?
If not, this would be an request of mine.
No preview present, becuase this mod use the custom profile field default dropdown box. It doesn't have a feature like you requested.
However, I added mood image icons to overall header and UCP. Thus, user can see the current mood image before changing.
Also, overall_header mood icon has a link to UCP, so changing mood will be easy.

The difference between version 0.0.1 and- 0.0.2/0.1.0 is overall_header and UCP icon view features.
  • styles/prosilver/template/viewtopic_body.html,
    styles/prosilver/template/memberlist_view.html,
So, only viewtopic_body and or memberlist_view edits in install.xml can work standalone.
  • includes/functions.php, (except the line for lanague file include)
    styles/prosilver/template/overall_header.html,
    styles/prosilver/template/ucp_profile_profile_info.html,
The strike formated file edits needs to be done for overall_header and ucp mood icon view.

Note: Since mood names are also mood_icon_image names, they should have only International ASCII characters.
Last edited by mtrs on Fri Oct 17, 2008 8:05 pm, edited 1 time in total.
I abandoned all of my mods.

Peter77sx
Registered User
Posts: 3253
Joined: Wed Nov 09, 2005 2:51 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by Peter77sx » Sat Oct 04, 2008 10:20 pm

Installed and wroks nice. Would be nice to turn it off.. or not show "Mood" or the image. :)

And if anyone can contribute mood images the size of the demo, that would be great. :P

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by mtrs » Sun Oct 05, 2008 4:02 pm

Peter77sx wrote:Installed and wroks nice. Would be nice to turn it off.. or not show "Mood" or the image. :)
To turn off this mod, you can simply deactivate the "mood" custom profile field.
Also, if users don't select any mood, no mood would show up for them. If you don't upload any mood image, then only mood name appears. But, you need to select identical International ASCII mood and mood image file names (gif).
Peter77sx wrote:And if anyone can contribute mood images the size of the demo, that would be great. :P
That's an issue I need help, there are other mood mods and icons for other boards (vb), but, without permission, I can't integrate their mood images to this package.

I also collected some possible mood names, but as I am not a native English speaker, you may need remove some names.
You need to add these entries to mood custom profile field, and afterwards if you have any proper mood image, give them the same mood_name.gif and upload those mood icon images with same names to phpbb3/images/mood/
____________________________
phpbb3/images/mood/Afraid.gif
.
.

.
phpbb3/images/mood/Yeehaw.gif
_____________________________

These are 60 possible mood names

Code: Select all

Afraid
Alive
Amazed
Amused
Angelic
Angry
Asleep
Bitchy
Bored
Busy
Chatty
Cheeky
Cheerful
Cold
Concerned
Cute
Crazy
Daring
Dead
Depressive
Despair
Drunk
Devilish
Fine
Flirty
Good
Goofy
Grumpy
Hangover
Happy
Hot
In Love
Infuriating
Innocent
Inspired
Lazy
Lonely
Lurking
Mellow
Panic
Paranoid
Pensive
Psychedelic
Relaxed
Sad
Scared
Serene
Shocked
Sick
Skeptic
Sleepy
Sneaky
Stressed
Thoughtful
Tired
Twisted
Unhappy
Wise
Worried
Yeehaw
I abandoned all of my mods.

Peter77sx
Registered User
Posts: 3253
Joined: Wed Nov 09, 2005 2:51 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by Peter77sx » Mon Oct 06, 2008 1:37 am

Thanks for the reply, but in my ucp It shows the 10 images/moods choices but nothing to stop using this. or not show. so that a user himself disables the show of moods. ( not done in acp ) any ideas?

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by mtrs » Mon Oct 06, 2008 6:14 am

Peter77sx wrote:Thanks for the reply, but in my ucp It shows the 10 images/moods choices but nothing to stop using this. or not show. so that a user himself disables the show of moods. ( not done in acp ) any ideas?
Administration Control Panel -> USERS AND GROUPS -> Custom profile fields

Select mood

Visibility option (select one of them below)

Display in user control panel:
The user is able to change this profile field within the user control panel.
or
Display at registration screen:
If this option is enabled, the field will be displayed on registration and able to be changed within the user control panel.

Entries :

?
Afraid
Alive
..
..

Profile type specific options (Click here)

_____________________________

Profile type specific options

Default value: ----------------------------- Good

Option equal to non entered value: ----- ?
Value for a non-entry. If the field is required,
the user gets an error if he choose the option
selected here.

-----------
In short, this is the setting I use. If a user select ? as mood, no mood text or image show up.
I abandoned all of my mods.

christos312
Registered User
Posts: 35
Joined: Thu Jul 17, 2008 3:46 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by christos312 » Mon Oct 06, 2008 7:36 pm

Wow this is really good mod thanks

But i have a question...I have installed the mod but the mood doesn't appear in the viewtopic
I can't give you a link because i installed it to my local forum so i have a screen shot

Image


Oh the picture is too big i think ok this is the direct link
http://i291.photobucket.com/albums/ll2 ... 2/Demo.jpg
Can anyone tell my what i am doing wrong?

Edit: i am using the soul_city style
Thank you very very much ;)
"All This Has Happened Before And It Will Happen Again.."
I am coming for all of you - President Laura Loslin!
The future begins Here!
Fear Gets You Killed, Anger Keeps You Alive! - Kara Thrace(Starbuck)


Image

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by mtrs » Mon Oct 06, 2008 7:46 pm

This mod is really simple to install, I'm glad you liked.
About your question.
Did you enable custom profiles for viewtopic? The bold ones below should be selected Yes.

ACP -> General -> Load Settings

Custom profile fields

Allow styles to display custom profile fields in memberlist: Yes No
Display custom profile fields in user profiles: --------------- Yes No
Display custom profile fields on topic pages: ---------------- Yes No

Also, after template edits purge cache at ACP, and clear browser cache.
I abandoned all of my mods.

christos312
Registered User
Posts: 35
Joined: Thu Jul 17, 2008 3:46 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by christos312 » Mon Oct 06, 2008 7:54 pm

Fantastic Thanks a lot

Again ;) :D
"All This Has Happened Before And It Will Happen Again.."
I am coming for all of you - President Laura Loslin!
The future begins Here!
Fear Gets You Killed, Anger Keeps You Alive! - Kara Thrace(Starbuck)


Image

christos312
Registered User
Posts: 35
Joined: Thu Jul 17, 2008 3:46 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by christos312 » Mon Oct 06, 2008 8:47 pm

Sry for the double post...

But if i want to make My mood to My coffee? (If that is ok with the author of course!!!!! )

Instead of the users choose their mood i want to chose their favorite coffee!

Can you tell me what i have to change in order to do that...?

I am sure i have to change the images , the custom profile fields

But what about the coding and the files?

Thanks again :)
"All This Has Happened Before And It Will Happen Again.."
I am coming for all of you - President Laura Loslin!
The future begins Here!
Fear Gets You Killed, Anger Keeps You Alive! - Kara Thrace(Starbuck)


Image

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by mtrs » Mon Oct 06, 2008 9:13 pm

christos312 wrote:if i want to make My mood to My coffee? (If that is ok with the author of course!!!!! )

Instead of the users choose their mood i want to chose their favorite coffee!

Can you tell me what i have to change in order to do that...?

I am sure i have to change the images , the custom profile fields
Of course, you can use this mod for other purposes, this mod is a custom profile field application. Mood is only an example.

As explained in install instructions, you create a custom profile field with name mood, now you should make it coffee in your case,

Also, at overall_header and ucp, there is My Mood name coming from language file,

In install.xml file
Change the instruction to
language/en/common.php
Find

Code: Select all

	'MSNM'					=> 'MSNM/WLM',
Add after

Code: Select all

	'MY_MOOD'				=> 'My Coffee',
I abandoned all of my mods.

christos312
Registered User
Posts: 35
Joined: Thu Jul 17, 2008 3:46 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by christos312 » Mon Oct 06, 2008 10:04 pm

Ok is working thanks but one more thing

I have rename all the moods to coffee types....

They appear in control panel but in the overall_header and viewtopic the image are the image of the mood...
1.Afraid
2.Alive

And so on

I have rename the image as well ,exactly the names i gave in drop down menu, BUT when i do that then nothing appears

So i rename for example the image
Afraid ==> Frappe
Alive==>Chino
etc etc..

Why is that happening? is there any coding i have to change as well?

Thanks :)
"All This Has Happened Before And It Will Happen Again.."
I am coming for all of you - President Laura Loslin!
The future begins Here!
Fear Gets You Killed, Anger Keeps You Alive! - Kara Thrace(Starbuck)


Image

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [ALPHA] Simple Mood (0.0.2)

Post by mtrs » Mon Oct 06, 2008 10:16 pm

I forgot to mention, in template edits there is

Code: Select all

eq "Mood"
Go to
ACP -> USERS AND GROUPS -> Custom Profile Fields -> Language Specific Options

Field name/title presented to the user: Mood

if you changed the custom profile field name from Mood -> Coffee ,
also change eq "Mood" -> eq "Coffee" in template files
I abandoned all of my mods.

User avatar
Zaid
Registered User
Posts: 590
Joined: Thu Nov 08, 2007 2:06 pm
Location: South Pacific Ocean

Re: [ALPHA] Simple Mood (0.0.2)

Post by Zaid » Thu Oct 16, 2008 3:06 am

dude, i turned custom profile fields from the acp, but dont know much about this bloody custom profile fields thing aye ..because i am new to bb3, previously we used bb2...tell me details on following this

Code: Select all

After installing this modification, purge cache. Create a dropdown box custom profile field: "Mood"
with names seen below, thus the included sample images will be detected correctly. If new moods added, their names should be same with new image names in images/mood/ folder. 
-
Afraid
Alive
Amazed
Amused
Angelic
Angry
Asleep
Bashful
Bitchy
Bored

Locked

Return to “[3.0.x] MODs in Development”