News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Mood Bobels

Started by Lord Anubis, May 18, 2008, 01:32:26 AM

Previous topic - Next topic

Trulyana

Very cute mod. I am in need of some help. I decided to install this modification today, to see what it was like. Before I unistalled it, it failed on some of the php scripts. Now, I get a red cross on every users reply box. I have been trying to see if i can find anything associated with this mod in the php scripts, in order to remove it but can't. What do you think is the problem? And what would be the easiest way to remove the red boxes entirely?

Lord Anubis

upload the images to the correct folder

/Themes/default/images/moodbobels/

Trulyana

Quote from: Lord Anubis on June 21, 2008, 05:19:11 PM
upload the images to the correct folder

/Themes/default/images/moodbobels/

That's the thing, I don't have this mod installed anymore, and I am receiving the red box errors because of a failed unistallation due to this software. Do you know how, I can fix this?

Lord Anubis

In
/Themes/default/Display.template.php

Find:

// Did they select a mood?
if(isset($message['member']['options']['bobel']) && !empty($message['member']['options']['bobel']))
{
$bobel = MoodBobel();
echo ' ', $txt['mood_bobel'], ':<br /> <img src="', $settings['default_theme_url'], '/images/moodbobels/', $message['member']['options']['bobel'], '.gif" alt="', $bobel[$message['member']['options']['bobel']], '" /><br /><br />';
}


and delete all of that

Trulyana

Thanks, and Done. :) And than deleted some other codes too, found at the package parser. Very handy.

Lord Anubis


Nephthys

First: Thank you for this great mod!
It works perfect with my forum and all my themes, even it was a little bit tricky to get it so far. But this was not because of this mod. The problem was my ftp prog, that didn't upload everythin correctly.  ;D

I've a little request: with the internet explorer there's a hoovered text, if you move the cursor above the image and I asked myself, if it's possible to add this feature for the firefox too?

Greets
Neph
- under construction -

Lord Anubis

I've been trying to figure that out myself :)

When I find the solution I will post up a new package ;)

Nephthys

Great! Thank you!

I'll wait patiently for the update.  ;)
- under construction -

Rolt

I am going to join the group and post my problem ...

I am using a custom theme template...

The images were not coming up...

I altered the src in the modification.xml file

From This ...
', $txt['mood_bobel'], ':<br /> <img src="', $settings['default_theme_url'], '/images/moodbobels/', $message['member']['options']['bobel'], '.gif" alt="', $bobel[$message['member']['options']['bobel']], '"


To this...
', $txt['mood_bobel'], ':<br /> <img src="', $settings['theme_url'], '/images/moodbobels/', $message['member']['options']['bobel'], '.gif" alt="', $bobel[$message['member']['options']['bobel']], '"


This allowed me to view the gif's in profile (see example pic)


But I still cannot see the gif's in the forums posts (see example2 pic)


Any suggestions to rectify the situation?
Thanks in advance for your help ...


khamseen

Installed it great, only thing I had to do manually was edit the profile.template.php and then for some reason upload the .gif files. Other than that, piece of cake lol.

One question though, if I were to remove some of the moods from the Subs.php file would that prevent them showing up? I ask because I do have some minors visit our site so things like the "Horny" one probably wouldn't go down too well lol.
"In hope we find despair and in despair we find truth." - Myself

Lord Anubis

yes if you remove them from the subs, they will no longer show :)

khamseen

Thanks for the rapid reply there :D
"In hope we find despair and in despair we find truth." - Myself

Ozman69

#73
Quote from: Kimmie on June 07, 2008, 06:57:05 PM
The code for the TP block doesnt work. All I get is a block with a title and nothing else. No drop down menu of any kind.

Lord Anubis, there was a problem with selecting and copying that tp block code.  Same thing happened to me where all of the returns were removed and it ran all together so you had things like \\Something goes hereecho where the echo wasn't on the next line.

I took the task and properly spaced everything out and here is the file in case anyone needs it.  Just open this in your php editor and copy and paste it into your php box.  Worked for me after doing this.

Now for my question.... is there any way to get the mood image to show in ultimate profile?  So that you have both the image and the text to go with it?  Just wondering.

Oz

edit:  replaced the file with a new one to take out the extra spaces before the }'s so you don't get that little error message at the bottom left of IE.  Didn't notice it the first time, sorry about that.

Lord Anubis

I was having problems getting that to work...I will try it again sometime and post back here if I have any success

and yep copying and pasting from SMF code for some reason always does that, happens on the SMF package parser as well...Oddly enough, the copy and paste problem doesn't occur on my site

Ozman69

Quote from: Lord Anubis on August 09, 2008, 02:49:31 AM
I was having problems getting that to work...I will try it again sometime and post back here if I have any success

and yep copying and pasting from SMF code for some reason always does that, happens on the SMF package parser as well...Oddly enough, the copy and paste problem doesn't occur on my site

Thanks.  Much appreciated.

Oz

chinaren

Hey!  I've installed this on my trial board, but whilst it works well, I can't see the images!  When I check the error log, I see this:

Quotehttp://xxx.com/smf/index.php?action=packages;sa=install2;package=118mood_bobels_v2.0.zip

2: opendir(/home/xxx/public_html/smf/Packages/temp/moodbobels) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory
File: /home/xxx/public_html/smf/Sources/Subs-Package.php
Line: 1253

The board is running the default theme and is 1.1.5

Help?  :-[
The Opus Path - The Next Generation of the Written Word

Lord Anubis

Quote from: Lord Anubis on May 22, 2008, 12:11:09 AM
For Version 2.0

MAKE A BACKUP FIRST OF THE display.template.php in case something goes wrong you can replace the file

Open the display.template.php in the themes folder for the classic theme...

Find

// Show their personal text?


Add before


// Did they select a mood?
if(isset($message['member']['options']['bobel']) && !empty($message['member']['options']['bobel']))
{
$bobel = MoodBobel();
echo '

', $txt['mood_bobel'], ':<br /> <img src="', $settings['default_theme_url'], '/images/moodbobels/', $message['member']['options']['bobel'], '.gif" alt="', $bobel[$message['member']['options']['bobel']], '" /><br /><br />';
}



BTW, I would get used to using the package parser if you are going to use a theme other than the default, because you will have to manually install most mods

SMF Package Parser

:)

That should do the trick

AZ-{OVGY}

#78
Quote from: Lord Anubis on June 25, 2008, 06:29:55 PM
I've been trying to figure that out myself :)

When I find the solution I will post up a new package ;)

That would be sweet, this is the only niggle I have with this mod.

EDIT: Just a thought but instead of using alt text why not use title text?  That way I think most browsers should be able to display the text. Hope this helps  ;).

EDIT Again: I've pm'd you with the solution for this.
[nofollow]

Advertisement: