Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Mood (http://www.bvlist.com/showthread.php?t=4913)

sammygo 3rd May 2010 08:30

Mood
 
Someone know this mod ?
I am waiting :drink: Please make sure it works 100% ! Than post it :X ! Thanksss !
http://img252.imageshack.us/img252/3...re17095ra1.png

Tony 3rd May 2010 11:06

yeah if you do a search on tbdev you will find the mod ..

sammygo 3rd May 2010 18:16

Quote:

Originally Posted by Tony (Post 22786)
yeah if you do a search on tbdev you will find the mod ..

Found it but :-?? a little sh*t don't works...
I wonder if someone installed it and can make a tutorial here :) Thanks
:drink::drink:

pdq 4th May 2010 07:22

seems like the thread over there got 'wrecked' when they updated their ipb forums code. it is missing a few parts.

will post working version sometime this week.

=]

\n");
and add this
Code:

$mood_r = mysql_query("SELECT moodpic FROM mood WHERE id=$user[mood] LIMIT 1") or sqlerr();
if (mysql_num_rows($mood_r) == 1)
{
  $mood_a = mysql_fetch_assoc($mood_r);
  $mood = "".format_comment($mood_a["moodpic"])."";
}
if ($user["mood"] > 0) 
print("
\n");
for the image I use smiles
if you'd like to change the images with other smile you must go to your data base and modify moodipc
if you don't want to show smiles and want to put other images you must modify moodipc and put your image name and extension (you must have the image in your pic dir) and you must change
Code:

$mood = "".format_comment($mood_a["moodpic"])."";
to
Code:

$mood = "mood_a["moodpic"]  style='padding:2px'>";
hope you like this and find it useful and easy to install :)

THANKS TO putyn @ TBdev.net
www.tbdev.net/index.php?showtopic=16915
sammygo 4th May 2010 08:06

Hooh
 
This mod will display the user mood in userdetail and is based on zodiac mode

First you have to add this to your data base

Code:

CREATE TABLE `mood` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `name` varchar(50) default NULL,
  `moodpic` varchar(50) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM ;



INSERT INTO `mood` (`id`, `name`, `moodpic`) VALUES
(1, 'Exited', ':w00t:'),
(2, 'Happy', ':smile: '),
(3, 'Cool', ':cool:'),
(4, 'In love', ':wub:'),
(5, 'Sick', ':sick:'),
(6, 'Black Sheep', ':sheep:'),
(7, 'Angry', ':wall:'),
(8, 'Sad', ':''-( ');

after you do that
you have to add one more thing to your data base
Code:

ALTER TABLE `users` ADD `mood` int(10) NOT NULL
my.php
go to
Code:

tr("Stylesheet", "",1);
add under
Code:

$mood = "n";
$mood_r = mysql_query("SELECT id,name FROM mood ORDER BY name") or die;
while ($mood_a = mysql_fetch_array($mood_r))
$mood .= "n";
print("
mood");
takeprofedit.php
go to
Code:

$avatars = ($_POST["avatars"] != "" ? "yes" : "no");
add
Code:

$mood = 0 + $_POST["mood"];
then go to
Code:

$updateset[] = "avatars = '$avatars'";
add under
Code:

$updateset[] = "mood = $mood";
usersdetails.php
now you must decide where you'd like to show the user mood (i have it under avatar)
if you'd like to put this unde avatar go to
Code:

if ($user["avatar"])
    print("
Avatar
mood$mood


All times are GMT +2. The time now is 09:47.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.