boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Imood/DeadJournal like moods plugin (PsuedoMoods)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
Ogre



Joined: 18 Feb 2003
Posts: 11

PostPosted: Sat Apr 12, 2003 8:43 am    Post subject: Imood/DeadJournal like moods plugin (PsuedoMoods) Reply with quote

First, don't ask about the name, I have no idea why I named it that, hehe.

Anyway, my wife wanted to have the same type of 'moods' support on her blog that DeadJournal offers, and I noticed nobody had really made any graphical sided one. The only thing close was a moderated thread, and b2customfields. (Which, BTW, I'd like to talk to the author of that about processes of making them integratable) Anyway, it's pretty user friendly, and supports both styles of mood images, simple images with no text on them (Live/DeadJournal style), and images with text included in them(iMood style). All you need to do is follow the simple readme file steps and then all the images dumped in your mood folder will populate into the dropdown listing for you. (Which isn't ordered at all, if enough people ask I'll add a sort routine to it)

Ease of use: Simple
Time to make: 20 minutes + half hour debuging/making distro
Listening material: Laziest Men on Mars (kekekeke)

Download Here and enjoy. (Same thing as anywhere else, post any problems here if you have any, here's hoping not, hehe)
Back to top
View user's profile Send private message AIM Address
ianforest



Joined: 26 Jul 2002
Posts: 7
Location: Brighton, UK

PostPosted: Sun Apr 13, 2003 9:10 am    Post subject: Reply with quote

You seriously need to edit the readme file for this. You reference the file psuedomood.php by both psuedomood.php and psuedomoodS.php - which is it? With or without the 's' ?

Also further down the readme you reference the file b2edit.form.php. Not being a big B2 modder myself I searched for the file expecting it to be in the root, then after about 5 minutes found it in the b2-include directory.

You need to be more clear as to where the b2edit.form.php file is!!!

And then after all that, it didn't show any mood images, just a missing gif file even though it's referenced correcting in the pseudomood.php file. Grrrr
Back to top
View user's profile Send private message Send e-mail
Ogre



Joined: 18 Feb 2003
Posts: 11

PostPosted: Mon Apr 14, 2003 3:12 am    Post subject: Reply with quote

Wait...it took you five minutes for you to figure out if it wasn't in the root folder to check the others? RRRRrrrrrrrrrrrrrright. >_>

And nobody is immune to making typos, so settle down. As for the rest, show me where the hell you are testing it and I can tell you the problem. The two friends of mine that I had test the readme for installation had no problems and I didn't need to answer any of their questions. Show me the page and tell me the directory they are in, I can give you the answer.

EDIT: Anyway, typos are fixed, notes added for the unassuming newbies.
_________________
Certifiably Insane, and loving it.
The Blargh | My Board Masterpiece (home of Assault Battle)
Back to top
View user's profile Send private message AIM Address
oakie



Joined: 09 Apr 2003
Posts: 7

PostPosted: Thu Apr 17, 2003 3:51 am    Post subject: Thanks Reply with quote

I followed the instructions and got it running without a hitch.

I haven't gotten around to adding my own mood .gifs, but maybe later.

Prior to this installation, I hadn't really seen livejournal or deadjournal so I didn't know what I was installing exactly.

For those of you who are also not familiar, this hack puts a drop down menu in your admin panel that says "moods".

When you make a new posting on your b2, you just click the mood drop down menu and pick a mood like "lucky" .

It adds a small icon (currently smilies), but does not add 'text' , so your mood is a smilie but not a description.

The smilies included have been built with text as part of the graphic but in my case the text is very light colored so it is barely distinguishable on my white background. Like this:

Still, the hack does work and you can grab other mood icons on the net or make your own.

in fact, OGRE recommends you do just that in the readme file.


Anyhow, thanks for the simple hack OGRE !
Back to top
View user's profile Send private message
Ogre



Joined: 18 Feb 2003
Posts: 11

PostPosted: Thu Apr 17, 2003 2:45 pm    Post subject: Reply with quote

Heheh, thanks. Glad someone is actually using it (well, other than the wife, hehe) And yeah, I thought it was pretty self explainitory, good to hear it went off without problems. (That's always a plus, especially in a first distro, sets a good benchmark. )

EDIT: Oh yeah, it will display plain text next to the gif, you just need to set it to 'DeadJournal' mode, or $imagetext=0; (just edit the exsisting line)

EDIT 2: Slight error on my part, line 37 should actually be:
$name=substr($row[post_mood],0,-4);
_________________
Certifiably Insane, and loving it.
The Blargh | My Board Masterpiece (home of Assault Battle)
Back to top
View user's profile Send private message AIM Address
nullswitch



Joined: 07 Mar 2003
Posts: 14
Location: Carnegie Mellon, Pittsburgh

PostPosted: Wed Apr 30, 2003 10:08 pm    Post subject: Some tweaks and tada it works Reply with quote

Great Hack but I had to go through some loops to get it working (and thus delaying my studies for an exam tomorrow.. ah well)

Anyways, in the readme it says:
Code:
Now, hunt for this line: (line 180 in base code)
/-------
$query = "UPDATE $tableposts SET post_content=\"$content\", post_title=\"$post_title\", post_category=\"$post_category\"".$datemodif." WHERE ID=$post_ID";
-------/
And replace with this:
/-------
$query = "UPDATE $tableposts SET post_content=\"$content\", post_title=\"$post_title\", post_category=\"$post_category\"".$datemodif.",post_mood=\"post_mood\" WHERE ID=$post_ID";
-------/


and if you note, the 2nd post_mood=\"post_mood\" lacks the $ sign in front of it. So I fixed that problem so it could correctly reference the input from the drop down moodbox. However, for both the edit and post functions, I also had to make the $post_mood variable, using:

Code:
$post_mood = addslashes($HTTP_POST_VARS["post_mood"]);
which sould be inserted in the similar lines above the other two insertions.

-EDIT- You only need to use the above code if YOU ARE NOT USING GLOABLS (as in register_gloabals is OFF in ur php.ini) I do this just because I wanna be a php conforming g33k

I am pretty sure I didn't miss anything in the readme and that is what I had to do to get it working. Maybe some forgotten changes between releases? Anyways, great scipt, I'll be using it
_________________
"Whatever you do, at least be of some use"


Last edited by nullswitch on Thu May 01, 2003 8:55 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Ogre



Joined: 18 Feb 2003
Posts: 11

PostPosted: Thu May 01, 2003 7:26 pm    Post subject: Reply with quote

Yeah, I caught those typo/oversights a day or two ago, figuring nobody cared, I didn't bother updating it. >_> *goes to do that*

And the second part you CAN do without, but if you don't have register_globals running, it's required, so better safe than sorry.
_________________
Certifiably Insane, and loving it.
The Blargh | My Board Masterpiece (home of Assault Battle)
Back to top
View user's profile Send private message AIM Address
blackc2004



Joined: 28 Feb 2002
Posts: 10

PostPosted: Thu May 15, 2003 5:52 pm    Post subject: Reply with quote

Hi, I have installed this hack and it worked great for me, after re-reading the directions (I should learn not to do this type of stuff when on cold meds!)

Anyways, I was just wondering what exactly the second variable does...

// Specify what style of mood images they are, text included, or not. 0 equals no,
// much like Live/Deadjournal style, 1 equals yes, like iMood account images.
$imagetext=1;

No matter what I change it too, it doesn't seem to really do ANYTHING?

Is this something that's going to be implemented later on, because from the description it seems to me like it would add the description of the smilie next to it, if that isn't already containted in the image itself.

Thanks.
Back to top
View user's profile Send private message Visit poster's website AIM Address
blackc2004



Joined: 28 Feb 2002
Posts: 10

PostPosted: Thu May 15, 2003 6:28 pm    Post subject: Reply with quote

I figured it out, you need to change this line...

Code:

                if($row[post_mood]){
                        $name=substr($row[mood],0,-4);


To:

Code:

                if($row[post_mood]){
                        $name=substr($row[post_mood],0,-4);

Back to top
View user's profile Send private message Visit poster's website AIM Address
co-dependent



Joined: 29 Jun 2003
Posts: 8

PostPosted: Mon Jul 07, 2003 3:37 am    Post subject: Reply with quote

Is there a complete instructionfile? I'm sure it's understandable to you people, but I'm quite new and can't really follow all the new codes to be inserted here and there -- plus which one is base code? =o.

Thanks Very Happy
Back to top
View user's profile Send private message
Mizkie



Joined: 19 Mar 2003
Posts: 51
Location: Bloomington, IN

PostPosted: Mon Jul 14, 2003 10:38 pm    Post subject: Reply with quote

what would be the file to edit so I could add more moods?
_________________
Mick

HSS = High School Sucks
Back to top
View user's profile Send private message Visit poster's website AIM Address
CleverAlea



Joined: 06 Apr 2003
Posts: 10
Location: Tennessee

PostPosted: Tue Aug 19, 2003 10:11 pm    Post subject: Reply with quote

Hm, this hack wasn't too hard to install, but for some reason, I now have to publish and then edit my entries before they will show up on my main page. I have a strong feeling that this has something to do with the modifications being made to the b2edit.php file.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
kilj00ydnb



Joined: 10 Sep 2003
Posts: 2
Location: NC

PostPosted: Wed Sep 10, 2003 10:16 am    Post subject: Reply with quote

can anyone post what exactly needs to be edited in order to get this working with b2customfields... ive searched the forum and all links are dead or either point back here.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
starxduzt



Joined: 13 Sep 2003
Posts: 2
Location: Tampa, FL

PostPosted: Sat Sep 13, 2003 6:20 am    Post subject: Reply with quote

I get the drop down working and everything but nothing is showing up. I'm also using customfields but the other hack I saw, the link didn't work. Any idea what's wrong?
Back to top
View user's profile Send private message Visit poster's website
joan



Joined: 22 Dec 2003
Posts: 9

PostPosted: Mon Dec 29, 2003 5:47 pm    Post subject: Reply with quote

The download link isn't working. Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group