phpBB Mood Swings

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.
Locked
User avatar
ogzblgnr
Registered User
Posts: 18
Joined: Tue Sep 04, 2007 2:50 pm
Location: Turkey
Contact:

Re: phpBB Mood Swings

Post by ogzblgnr » Sun May 31, 2009 4:21 am

First you should install with AutoMod or copy the codes/files manually, then you should run install.php .
Image

Xanta Media
Registered User
Posts: 213
Joined: Sat Dec 27, 2008 4:33 pm

Re: phpBB Mood Swings

Post by Xanta Media » Sun May 31, 2009 9:00 am

Dan27 wrote:I have just put this MOD on and it is great! :D

I have used some smilies found in the Style Database :)

IS it possible though, because I have mine set to both that is says this:

Code: Select all

Mood: Happy
[Picture here]
So I have it like above, because at the moment it is:

Code: Select all

Mood: [Picture here] Happy
Thanks, Dan.
Sorry dan27 I forgot about this! Heres the code you need to change:

Open includes/functions_mood.php

Find:

Code: Select all

$mood = '<img src="' . $phpbb_root_path . 'images/moods/' . $row['mood_image'] . '" alt="' . $row['mood_name'] . '" title="' . $row['mood_name'] . '" />' . $row['mood_name'] . '';
Replace, with:

Code: Select all

$mood =  $row['mood_name'] . '<br /><img src="' . $phpbb_root_path . 'images/moods/' . $row['mood_image'] . '" alt="' . $row['mood_name'] . '" title="' . $row['mood_name'] . '" />';
I have tested it and it works fine.

Xanta Media
Registered User
Posts: 213
Joined: Sat Dec 27, 2008 4:33 pm

Re: phpBB Mood Swings

Post by Xanta Media » Sun May 31, 2009 9:04 am

Abera wrote:This is what I get. I can not install, nor uninstall. Now what? I used Automod and then ran the install.php that took it to UMIL . It says that it installed, but it didn't and Automod said it did.


phpBB Mood Swings
PHP Version: 5.2.9
DBMS: MySQL(i) 5.0.75-community-log
phpBB3 Version: 3.0.4

Test images inserted.
SQL ERROR Table 'g_phpbb.MOODS_DATA_TABLE' doesn't exist
Try going into the installer and running uninstall the install again.

Abera
Registered User
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: phpBB Mood Swings

Post by Abera » Sun May 31, 2009 1:23 pm

Xanta Media wrote:
Abera wrote:This is what I get. I can not install, nor uninstall. Now what? I used Automod and then ran the install.php that took it to UMIL . It says that it installed, but it didn't and Automod said it did.


phpBB Mood Swings
PHP Version: 5.2.9
DBMS: MySQL(i) 5.0.75-community-log
phpBB3 Version: 3.0.4

Test images inserted.
SQL ERROR Table 'g_phpbb.MOODS_DATA_TABLE' doesn't exist
Try going into the installer and running uninstall the install again.
When I try to uninstall again I get this:

One or more install actions failed. Please review the actions below, make any adjustments and retry. You may continue with the installation even though some of the actions failed. This is not recommended and may cause your board to not function correctly.

Wouldn't it be easier to insert the db table than risk the forum?

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Database: `g_phpbb`
--

-- --------------------------------------------------------

--
-- Table structure for table `phpbb_moods`
--

CREATE TABLE `phpbb_moods` (
`mood_id` mediumint(8) unsigned NOT NULL auto_increment,
`mood_name` varchar(255) collate utf8_bin NOT NULL default '',
`mood_image` varchar(255) collate utf8_bin NOT NULL default '',
PRIMARY KEY (`mood_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=7 ;

--
-- Dumping data for table `phpbb_moods`
--

INSERT INTO `phpbb_moods` (`mood_id`, `mood_name`, `mood_image`) VALUES
(1, 'Angry', 'angry.png'),
(2, 'Cool', 'cool.png'),
(3, 'Happy', 'happy.png'),
(4, 'Sad', 'sad.png'),
(5, 'Scream', 'scream.png'),
(6, 'Tired', 'tired.png');

Xanta Media
Registered User
Posts: 213
Joined: Sat Dec 27, 2008 4:33 pm

Re: phpBB Mood Swings

Post by Xanta Media » Mon Jun 01, 2009 12:58 am

Yes, you can do that. But don't forget you use a different table prefix so use g_phpbb_moods

User avatar
sixtvs
Registered User
Posts: 215
Joined: Thu Feb 14, 2008 8:39 am
Location: Virginia Beach, VA
Contact:

Re: phpBB Mood Swings

Post by sixtvs » Mon Jun 01, 2009 11:05 am

What would be nice is if, you have the image on profile mod, your current mood could also be showing.
People sleep peacefully at night only because rough men stand ready to fight for them!

User avatar
Epick One
Registered User
Posts: 27
Joined: Mon Jul 28, 2008 6:24 pm

Re: phpBB Mood Swings

Post by Epick One » Tue Jun 02, 2009 10:34 am

Thank very nice modification, it installed great with automod on phpbb3.0.5
Pyscho Streets Down Town - Music's Best Creations.

sitwi
Registered User
Posts: 83
Joined: Fri Jul 21, 2006 10:53 am
Contact:

Re: phpBB Mood Swings

Post by sitwi » Tue Jun 02, 2009 9:08 pm

This would be fantastic if the front page showed the latest updated "moods".

I have a portal where it would make a great block.

xalexlx
Registered User
Posts: 20
Joined: Tue Jun 02, 2009 8:17 pm

Re: phpBB Mood Swings

Post by xalexlx » Tue Jun 02, 2009 9:45 pm

will this work for 3.0.5

Xanta Media
Registered User
Posts: 213
Joined: Sat Dec 27, 2008 4:33 pm

Re: phpBB Mood Swings

Post by Xanta Media » Tue Jun 02, 2009 10:13 pm

xalexlx wrote:will this work for 3.0.5
See the post 2 above yours, I have also tested it and it works fine.

Xanta Media
Registered User
Posts: 213
Joined: Sat Dec 27, 2008 4:33 pm

Re: phpBB Mood Swings

Post by Xanta Media » Tue Jun 02, 2009 10:15 pm

sitwi wrote:This would be fantastic if the front page showed the latest updated "moods".

I have a portal where it would make a great block.
This will not work because there is no record of the time the mood is updated and I have no plans to add any feature like that.

User avatar
sixtvs
Registered User
Posts: 215
Joined: Thu Feb 14, 2008 8:39 am
Location: Virginia Beach, VA
Contact:

Re: phpBB Mood Swings

Post by sixtvs » Thu Jun 04, 2009 9:18 pm

I installed the add-on so that the image will show up on the UCP. Unfortunately, this is what I get above my header.

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3836: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3256)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3838: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3256)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3839: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3256)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3840: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3256)
People sleep peacefully at night only because rough men stand ready to fight for them!

Xanta Media
Registered User
Posts: 213
Joined: Sat Dec 27, 2008 4:33 pm

Re: phpBB Mood Swings

Post by Xanta Media » Fri Jun 05, 2009 12:43 am

sixtvs wrote:I installed the add-on so that the image will show up on the UCP. Unfortunately, this is what I get above my header.

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 44: Use of undefined constant USER_MOOD_TEXT - assumed 'USER_MOOD_TEXT'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 48: Use of undefined constant USER_MOOD_IMAGE - assumed 'USER_MOOD_IMAGE'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 52: Use of undefined constant USER_MOOD_BOTH - assumed 'USER_MOOD_BOTH'
[phpBB Debug] PHP Notice: in file /includes/functions_mood.php on line 57: Undefined variable: mood
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3836: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3256)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3838: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3256)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3839: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3256)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3840: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3256)
Did you read the line in the post you downloaded it from and in the install instructions that tells you that you need update the mod to v1.0.1 before you install the add-on?

The update is available on my site, it was submitted for validation here about a month ago so won't be available here until that is done.

User avatar
sixtvs
Registered User
Posts: 215
Joined: Thu Feb 14, 2008 8:39 am
Location: Virginia Beach, VA
Contact:

Re: phpBB Mood Swings

Post by sixtvs » Fri Jun 05, 2009 2:14 am

Xanta Media wrote:Did you read the line in the post you downloaded it from and in the install instructions that tells you that you need update the mod to v1.0.1 before you install the add-on?

The update is available on my site, it was submitted for validation here about a month ago so won't be available here until that is done.
Now I remember. My apologies. You see, what I did was remove the mod and then updated the php and then reloaded it again. Sorry.
People sleep peacefully at night only because rough men stand ready to fight for them!

mr.max
Registered User
Posts: 24
Joined: Wed Jan 30, 2008 10:22 pm

Re: phpBB Mood Swings

Post by mr.max » Sat Jun 06, 2009 7:39 pm

I got some minor thingies in my template don't working: When I get my mouse at image it don't do that "alt" thing saying the mood name.
In UCP I can sellect my mood but don't appears that image preview.

Got any idea if this is about template or just something i missed?

Locked

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