Welcome, Guest. Please Login or Register.
November 28, 2024, 08:25:48 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.3.1] Moods mod v1.0 « previous next »
Pages: [1] 2 3 ... 8 Reply Ignore Print
Author Topic: [Done 1.3.1] Moods mod v1.0  (Read 45477 times)
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
[Done 1.3.1] Moods mod v1.0
« on: May 22, 2002, 08:05:48 PM »
Reply with quote

This mod allows you to select your mood and it displays in all of your posts. It's always the current mood, not your mood of the time of the post. This mood is displayed in your profile and above "posts:" in the message index. Just a little fun feature  You can easily add more moods in the "Mod Settings" area, it'll be the second thing down, as well as edit the mood name, filename, and order.

This is version 1.0. 4 things, a mod file and a script to update your database automatically to work with moods, and it allows you to add some basic moods right off (you have the choice if you want to or not.) and the Moods.php file itself.

A upgrade file for upgrading for version 0.95 is included, just upload it to the same dir as Settings.php and run it and delete it. Don't do this if you are installing the moods mod for the first time.

moods.zip

The moods are located in just the normal YaBBImages directory. Upload the php script to your base directory (where Settings.php is) and run it, it will auto connect, select the right database, the right prefix, etc. Just add the first mood(s)
You must add the <yabb mood> tag somewhere in your template for this to work.
Then make sure you upload Moods.php to your Sources dir.

If you've already installed an older version of this, the steps are simple. Uninstall the old mod, install the new one (not the install script.)

Enjoy!
Jedi

----------------------------
Version history

1.0
  • Fixed another install bug
  • Fixed profile mood
  • Fixed a few bugs while trying to add/edit moods
  • Fixed a display problem
  • Added support for other file extensions.
0.9.6
  • Fixed a possible install bug
0.9.5
  • New "edit moods" function
  • Added order change (in edit)
  • Added delete (in edit)
  • You can add up to 5 moods at a time now
  • All bugs should be fixed now
  • Actions condensed into Moods.php
  • Fixed random order on selection at top
  • Sort of a second beta
0.9.3
  • Beta release
  • Fixed the profile to not show anything about moods if the user hasn't chose one.
  • Fixed a small txt error
  • Fixed 2 small display errors
  • Wrote a script to make the dbmodifications plus pre-add some moods
« Last Edit: August 23, 2002, 07:31:40 AM by Nemesis » Logged
bad-d3v1L
Jr. Member
**
Posts: 74


ICQ - 89166331yogi33@hotmail.com WWW
Re:[DONE] Moods mod v1.0
« Reply #1 on: May 23, 2002, 10:28:00 AM »
Reply with quote

Any screenshot or a board where we can see the mod in action?
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #2 on: May 23, 2002, 10:44:06 AM »
Reply with quote

Sure thing, here you go:

Selecting your mood (wherever you place <yabb mood> in the template.)


Displaying of mood (posts and profile.):
 

Adding new moods:


Editing moods:
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[DONE] Moods mod v1.0
« Reply #3 on: May 23, 2002, 12:47:22 PM »
Reply with quote

Thx. :)
Logged

HariZ
Noobie
*
Posts: 37


Yeah like it or not

ICQ - 51495151harryvisser@hotmail.com WWW
Re:[DONE] Moods mod v1.0
« Reply #4 on: May 23, 2002, 03:21:58 PM »
Reply with quote

I've updated the Subs.php, Profile.php, Display.php, ModSettings.php, english.lng and index.php files and uploaded them to the right directory's. After that, I upload Moods.php to the Sources dir. and install_moods.php to the root of YaBBSE and I get the following message when running install_moods.php:

Parse error: parse error in /www/htdocs/fiskaaf/kvbsite/forum/install_moods.php on line 68

I am sure I have uploaded the file as ASCII.

Plz somebody help me! :-\

What did I do wrong or do I need to change?
Logged

Sunshine takes me to a place where I'm living free
Lamb - Sweet
HariZ
Noobie
*
Posts: 37


Yeah like it or not

ICQ - 51495151harryvisser@hotmail.com WWW
Re:[DONE] Moods mod v1.0
« Reply #5 on: May 23, 2002, 03:57:06 PM »
Reply with quote

A friend of mine has already found my problem!

There is a wrong line in the install_moods.php file.

The line:
echo("Done, apply the mod and upload the new files now. If you already have, then enjoy <img src="$imagesdir/smiley.gif ");

Should be:
echo("Done, apply the mod and upload the new files now. If you already have, then enjoy <img src='$imagesdir/smiley.gif' ");


The line included in the install_moods.php with the 1.0 package causes the echo line to close (because of the first ") which should not be happening. The line I've posted works correctly so maybe it's usefull to change this in the .mod file.
Logged

Sunshine takes me to a place where I'm living free
Lamb - Sweet
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[DONE] Moods mod v1.0
« Reply #6 on: May 23, 2002, 06:45:12 PM »
Reply with quote

I noticed a couple of odd things. In the .php file which updates for 0.95 it has $db_host in it, I think it should be $db_server.

Also the buttons Modify Moods, Add Moods are hardcoded and can't be translated.
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #7 on: May 24, 2002, 03:35:02 AM »
Reply with quote

The buttons themselves? I'll fix it in 1.1.

host? Hmm, must of been tired, change it to server.

Here's the correct solution:

On the end of line 68 change:
<img src="$imagesdir/simely.gif");

to:
<img src=\"$imagesdir/simely.gif\");


1.1 will include moods in IM's which I forgot (again)
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[DONE] Moods mod v1.0
« Reply #8 on: May 24, 2002, 06:34:15 PM »
Reply with quote

Didn't help. Now I get a parse error in 69 !
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #9 on: May 25, 2002, 02:43:00 PM »
Reply with quote

Doh, forget that, change the end of that line to this:

<img src=\"$imagesdir/simely.gif\">");
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[DONE] Moods mod v1.0
« Reply #10 on: May 25, 2002, 03:53:45 PM »
Reply with quote

Does this work with the bugfix installed?
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #11 on: May 25, 2002, 03:54:29 PM »
Reply with quote

Yes, I wrote it on a 1.3.1 board..............
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[DONE] Moods mod v1.0
« Reply #12 on: May 27, 2002, 09:45:25 AM »
Reply with quote

Ok, found another big problem. When I try to change a page on the Message Index it says that only admins are allowed to modify moods. What the hell is that? I took the mod out and it fixed it....
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #13 on: May 27, 2002, 11:32:22 AM »
Reply with quote

When you try to what?
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[DONE] Moods mod v1.0
« Reply #14 on: May 27, 2002, 11:40:18 AM »
Reply with quote

Quote from: Jedi~ on May 27, 2002, 11:32:22 AMWhen you try to what?

In the messageindex when you have messages more than one page there are the page numbers in the top. 1 2 3 4 etc. When I click 2 it says that you must be an admin to modify moods.
Logged
Pages: [1] 2 3 ... 8 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.3.1] Moods mod v1.0 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.034 seconds with 20 queries.