Simple Mood

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Nixxie1981
Registered User
Posts: 176
Joined: Mon Jun 30, 2008 7:50 am

Re: Simple Mood

Post by Nixxie1981 »

Nixxie1981
Registered User
Posts: 176
Joined: Mon Jun 30, 2008 7:50 am

Re: Simple Mood

Post by Nixxie1981 »

this is my overall header file if it helps:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<!--
	phpBB style name: prosilver
	Based on style:   prosilver (this is the default phpBB3 style)
	Original author:  Tom Beddard ( http://www.subBlue.com/ )
	Modified by:      
	
	NOTE: This page was generated by phpBB, the free open-source bulletin board package.
	      The phpBB Group is not responsible for the content of this page and forum. For more information
	      about phpBB please visit http://www.phpbb.com
-->

<script type="text/javascript">
// <![CDATA[
	var jump_page = '{LA_JUMP_PAGE}:';
	var on_page = '{ON_PAGE}';
	var per_page = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';
	var style_cookie = 'phpBBstyle';
	var onload_functions = new Array();
	var onunload_functions = new Array();

	<!-- IF S_USER_PM_POPUP -->
		if ({S_NEW_PM})
		{
			var url = '{UA_POPUP_PM}';
			window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
		}
	<!-- ENDIF -->

	/**
	* Find a member
	*/
	function find_username(url)
	{
		popup(url, 760, 570, '_usersearch');
		return false;
	}

	/**
	* New function for handling multiple calls to window.onload and window.unload by pentapenguin
	*/
	window.onload = function()
	{
		for (var i = 0; i < onload_functions.length; i++)
		{
			eval(onload_functions[i]);
		}
	}

	window.onunload = function()
	{
		for (var i = 0; i < onunload_functions.length; i++)
		{
			eval(onunload_functions[i]);
		}
	}

// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/tooltip.js"></script>

<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />

<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
	<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->

<!-- INCLUDE prime_bbcode_spoiler.html -->
<link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon" />
</head>

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
<div class="outside">
<div class="top-left"></div><div class="top-right"></div>
<div class="inside">
<div class="notopgap">

<div id="wrap">
	<a id="top" name="top" accesskey="t"></a>
	<div id="page-header">
		<div class="headerbar">
			<div class="inner"><span class="corners-top"><span></span></span>
<div style="height: 200px ;">
			<div id="site-description">
				<p style="display: none;"><a href="#start_here">{L_SKIP}</a></p>
			</div>
		</div>

			<span class="corners-bottom"><span></span></span></div>
		</div>

		<div class="navbar">
			<div class="inner"><span class="corners-top"><span></span></span>

			<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
			<ul class="linklist leftside">
				<li class="icon-ucp">
						<a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="u">{L_PROFILE}</a>
						<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF --> &bull; 
					<a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
<!-- IF S_USER_LOGGED_IN --> &bull; <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF -->
&bull; <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a>
					<!-- IF U_RESTORE_PERMISSIONS --> &bull;
					<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
					<!-- ENDIF -->
				</li>
			</ul>
			<!-- ENDIF -->
			

			<ul class="linklist rightside">
				<li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
				<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH --><li class="icon-search"><a href="{U_SEARCH}" title="{L_SEARCH}">{L_SEARCH}</a></li><!-- ENDIF -->
				<!-- IF not S_IS_BOT -->
					<!-- IF S_DISPLAY_MEMBERLIST --><li class="icon-members"><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}">{L_MEMBERLIST}</a></li><!-- ENDIF -->
					<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
					<li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l">{L_LOGIN_LOGOUT}</a></li>
				<!-- ENDIF -->
			</ul>

			<span class="corners-bottom"><span></span></span></div>
		</div>

	</div>

	<a name="start_here"></a>
	
	<div id="page-body">
	<div class="navbar"><div class="inner"><span class="corners-top"><span></span></span>
<ul class="linklist leftside">
            <li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>
         </ul>
		 <span class="corners-bottom"><span></span></span></div>
		</div>
		 <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) --> 
		<div id="message" class="rules">
			<div class="inner"><span class="corners-top"><span></span></span>
				<strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
			<span class="corners-bottom"><span></span></span></div>
		</div>
		<!-- ENDIF -->
<!-- INCLUDE announcement_centre.html -->
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Simple Mood

Post by mtrs »

Open
styles/ktukpink/template/overall_header.html
Find

Code: Select all

            <li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>
         </ul>
After add

Code: Select all

		 <ul class="linklist rightside">
 				<!-- BEGIN custom_fields2 -->
					<!-- IF custom_fields2.PROFILE_FIELD_ID eq "mood" -->       
						<li class="rightside"><strong>{L_MY_MOOD}:</strong> <a href="{U_PROFILE_MOOD}" title="{L_CHANGE_MOOD}"><img src="{T_IMAGES_PATH}mood/{custom_fields2.PROFILE_FIELD_VALUE}.gif" alt="{custom_fields2.PROFILE_FIELD_VALUE}"/></a>&nbsp;&nbsp;</li>
					<!-- ENDIF -->
				<!-- END custom_fields2 -->
		 </ul>
I abandoned all of my mods.
Nixxie1981
Registered User
Posts: 176
Joined: Mon Jun 30, 2008 7:50 am

Re: Simple Mood

Post by Nixxie1981 »

Thankyou!

now how do I Create a dropdown box custom profile field?
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Simple Mood

Post by mtrs »

You should read DIY (Do it yourself) instructions at the end of MOD install.xml file.
Go to
ACP -> USERS AND GROUPS -> Custom profile fields
Create a dropdown box type custom profile field
Create a dropdown box type custom profile field
create_dropdown_mood.png (32.34 KiB) Viewed 689 times
Add moods and custom profile field configurations
Add moods and custom profile field configurations
add_dropdown_moods.png (46.45 KiB) Viewed 689 times
I abandoned all of my mods.
Br33zer
Registered User
Posts: 76
Joined: Fri Sep 19, 2008 7:07 pm
Contact:

Re: Simple Mood

Post by Br33zer »

I have done exactly the same as the MOD says. But I get only the text in bold but not the images. I have uploaded my own mood images in images/mood.

Style: Prosilver [Redstripe]

PhpBB: 3.0.5

URL: http://desiforum.byethost5.com/forum/index.php

What could be wrong?
Visit: http://www.gossipall.com/ For the latest news, images and other stuff of entertainment.
Visit: http://www.easyrecipesmenu.com/ For Easy Recipes.
Br33zer
Registered User
Posts: 76
Joined: Fri Sep 19, 2008 7:07 pm
Contact:

Re: Simple Mood

Post by Br33zer »

Sorrie, it's working now. I had actually given the path wrong.

images/moods instead of images/mood :lol:

Thanx for this MOD ;)
Visit: http://www.gossipall.com/ For the latest news, images and other stuff of entertainment.
Visit: http://www.easyrecipesmenu.com/ For Easy Recipes.
Br33zer
Registered User
Posts: 76
Joined: Fri Sep 19, 2008 7:07 pm
Contact:

Re: Simple Mood

Post by Br33zer »

Hey I have noticed this after quite some time.

Image


When I lick on Members tab from the index I see this. Why aren't moods images showing?
Visit: http://www.gossipall.com/ For the latest news, images and other stuff of entertainment.
Visit: http://www.easyrecipesmenu.com/ For Easy Recipes.
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Simple Mood

Post by mtrs »

Check your edits in
styles/prosilver/template/memberlist_body.html

and also enable custom profile fields for memberlist at
ACP -> General -> Load Settings -> Custom profile fields
I abandoned all of my mods.
Br33zer
Registered User
Posts: 76
Joined: Fri Sep 19, 2008 7:07 pm
Contact:

Re: Simple Mood

Post by Br33zer »

Hi,

I have rechecked it. Everything is fine. Don't know why it isn't showing. Also a member who has Admin permissions is not able to change his mood from UCP while other members can do it. Why is it so?

lol, thanks for tha ACP>Load Settings thingy...its showing now.

But about my second question? Also a member who has Admin permissions is not able to change his mood from UCP while other members can do it. Why is it so?
Visit: http://www.gossipall.com/ For the latest news, images and other stuff of entertainment.
Visit: http://www.easyrecipesmenu.com/ For Easy Recipes.
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Simple Mood

Post by mtrs »

UCP mood change is nothing to do with permissions, this mod does not affect any permission. So, either admin or a normal user, should be able change mood at UCP profile page.
I abandoned all of my mods.
Scudstorm
Registered User
Posts: 8
Joined: Thu Nov 26, 2009 4:37 pm

Re: Simple Mood

Post by Scudstorm »

I was thinking that if you add your own images, you have to name them the same as in the options where you can choose them. So i took some Smilies as Images, they are in the same path as the original images, have new names on German, in the Custom Profile Field also the same name, but they dont show up. Only the bold Mood Name, but not the smilie. What can i do?

Solved:

Uninstalled the Mod via Automod, reinstalled, purged cache etc - now showing
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Simple Mood

Post by mtrs »

Image names should be like url names.
ö, ü, Ö, etc are not allowed. Limited number of ASCII characters in file names can be allowed though.
I abandoned all of my mods.
Scudstorm
Registered User
Posts: 8
Joined: Thu Nov 26, 2009 4:37 pm

Re: Simple Mood

Post by Scudstorm »

Now the next weird thing came up. Its not a problem, but it would be great to solve this...

http://wowl.org/phpbb3/viewtopic.php?f=1&t=91

If iam not logged in, the Mood Field is named "Stimmunglage" in German, but as soon as iam logged in, its "My Mood" again.

Ive changed the language file - but nothing to see...
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Simple Mood

Post by mtrs »

DIY wrote:Field identification: mood
("mood" name cannot be changed)
Field name/title presented to the user: Mood
("Mood" name name can be changed)
Also change the language title for the Mood, and make sure guest language is German
I abandoned all of my mods.
Locked

Return to “[3.0.x] MOD Database Releases”