Welcome, Guest. Please Login or Register.
November 06, 2024, 07:40:40 PM
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.51/1.52] YaBB Moods Mod UPDATED 5/20/03 « previous next »
Pages: 1 2 [3] Reply Ignore Print
Author Topic: [Done 1.51/1.52] YaBB Moods Mod UPDATED 5/20/03  (Read 5846 times)
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #30 on: May 24, 2003, 01:09:17 AM »
Reply with quote

That members thing is supposed to be there! It's the part that gets the mood info for the user. As for add moods, it should work. I don't know why you're having to make all those changes in the code... Try uninstalling the mod and then re-installing the latest version found at http://oz.uc.edu/~eshommd/Mods/Moods.zip - that should fix your problems.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #31 on: May 24, 2003, 05:35:09 AM »
Reply with quote

Cool Mod! :D

Spanish translation:
Quote$moodtxt[0] = 'Tu Humor';
$moodtxt[1] = 'Humores:';
$moodtxt[2] = 'Humor del usuario';
$moodtxt[3] = 'Agregar Humores';
$moodtxt[4] = 'Nombre del Humor:';
$moodtxt[5] = 'No se pudo agregar el humor a la base de datos.';
$moodtxt[6] = 'Nombre del Humor:';
$moodtxt[7] = 'Nombre del archivo del Humor:';
$moodtxt[8] = 'Editar Humores';
$moodtxt[9] = 'Solo los administradores pueden hacer cambios a los humores.';
$moodtxt[10] = 'NingĂșn humor fue agregado ya que todos los campos se encuentran en blanco.';
$moodtxt[11] = 'Error al actualizar el humor. Por favor trata nuevamente. Si el problema persiste, contacta al administrador del foro.';
$moodtxt[12] = 'Error al actualizar los humores.';
$moodtxt[13] = 'Orden:';
$moodtxt[14] = 'Borrar Humor';
Logged
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #32 on: May 24, 2003, 06:10:09 AM »
Reply with quote

I installed it but now I get this error when I try to get in the admin :-\

QuoteParse error: parse error, unexpected '<' in /jumpgate/roxette/usersites/runto/content/forum/Sources/Admin.php on line 39

Fatal error: Call to undefined function: admin() in /jumpgate/roxette/usersites/runto/content/forum/index.php on line 322

What can I do?
Thanks in advanced!
Logged
sharkey
Jr. Member
**
Posts: 51


sharkey0903@hotmail.com WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #33 on: May 24, 2003, 10:30:19 PM »
Reply with quote

Quote from: oldiesmann on May 24, 2003, 01:09:17 AM
That members thing is supposed to be there! It's the part that gets the mood info for the user. As for add moods, it should work. I don't know why you're having to make all those changes in the code... Try uninstalling the mod and then re-installing the latest version found at http://oz.uc.edu/~eshommd/Mods/Moods.zip - that should fix your problems.

I'll give it a try when I get a chance. My server seems to be down at the moment  :-\

Are you saying this code is right?

function ChangeMood() {
  global $username, $db_prefix, $moodtxt, $id;
 
  $query = mysql_query("
           SELECT name, filname
           FROM {$db_prefix}members
           WHERE id = '$id'");


??? As far as I can see it can't be right because there are no fields in the members table called name and filname. However name and filename are in the moods database. The way the code stands gave me an sql error when I tried to change my mood. If I change it to:

           SELECT name, filename
           FROM {$db_prefix}moods


I can change my mood no problems. It is displayed correctly in profile, message and board index.
Logged


Visit the Movie Compound![/url]
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #34 on: May 24, 2003, 10:59:56 PM »
Reply with quote

Whoops! You just found another bug. Sorry about that. It should be "moods" (keep the WHERE line in there - that's how I have it set up so users can't set their mood to something other than the available moods). I didn't even notice that. From now on, I'm gonna have to start testing these things out more instead of trying to make changes in two seperate locations - I did a lot of the testing by modifying code online (using net2ftp), so I didn't install this mod before hand...
« Last Edit: May 24, 2003, 11:04:33 PM by oldiesmann » Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #35 on: May 24, 2003, 11:14:51 PM »
Reply with quote

Quote from: CokeCan on May 24, 2003, 06:10:09 AM
I installed it but now I get this error when I try to get in the admin :-\

QuoteParse error: parse error, unexpected '<' in /jumpgate/roxette/usersites/runto/content/forum/Sources/Admin.php on line 39

Fatal error: Call to undefined function: admin() in /jumpgate/roxette/usersites/runto/content/forum/index.php on line 322

What can I do?
Thanks in advanced!

Well, I don't know... It could be a number of things... Chances are, you forgot a ' someplace... Post that line (and a couple lines above and below it) out here and I'll see if I can figure it out for you.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #36 on: May 25, 2003, 04:40:49 AM »
Reply with quote

I found the problem, I installed it using BoardMOD but there's an error at the mod file, it says:

Quote<edit file>
Sources/Admin.php
</edit file>

<search for>
   global $realName, $sourcedir, $recentsender, $db_prefix, $modSettings;
</search for>

<add after>
   global $moodtxt;
</add after<

And should be:
Quote<edit file>
Sources/Admin.php
</edit file>

<search for>
   global $realName, $sourcedir, $recentsender, $db_prefix, $modSettings;
</search for>

<add after>
   global $moodtxt;
</add after>

I will try it now ;)
Logged
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #37 on: May 25, 2003, 04:59:36 AM »
Reply with quote

I keep on having a problem, when I try to instal it using YaBB Board at 75% I get this error "The line to search for is not complete. It seems that some spaces are missing in front of the line. This could sometimes couse errors within the scrip.", I searched for it but didn't found where the problem it is, I just found the last error that I wrote. Can you please try to help me to find where the error it is?

If I ignore this and keep on installing it doesn't shows the moods at the theme (I already added the line there) and if I try to edit the mods I don't find any mod there :-\
Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #38 on: May 26, 2003, 12:56:38 AM »
Reply with quote

Ok. There's an easy way to figure out what line is causing the problem... Do a "step-by-step" installation, which will stop the program after every step. This will allow you to see what is causing the error. Chances are an extra space got inserted somewhere.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
CokeCan
Full Member
***
Posts: 182


WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #39 on: May 26, 2003, 01:39:03 AM »
Reply with quote

Thanks! now it's installed but I still have got a problem :-\ It doesn't show at the forum :( and if I go to "Edit Mood" there aren't any mood :(
Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #40 on: May 27, 2003, 05:18:23 PM »
Reply with quote

Ok... Discovered another minor bug... I put the include stuff in the wrong spot in the AddMoods2() function... Instead of sticking it after the closing } of the for loop, I stuck it at the end of the for loop, so it will only add one mood. This is a simple fix...

in Moods.php
search for:
      include_once("$sourcedir/Admin.php");
      Admin();
   }
}


replace with:
   }
      include_once("$sourcedir/Admin.php");
      Admin();
}


I am still working on the edit moods function, and hope to have it working soon.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
sharkey
Jr. Member
**
Posts: 51


sharkey0903@hotmail.com WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #41 on: June 06, 2003, 02:10:52 AM »
Reply with quote

have you got this working fully yet?
Logged


Visit the Movie Compound![/url]
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.51/1.52] YaBB Moods Mod Updated 5/20/03
« Reply #42 on: June 07, 2003, 04:39:22 PM »
Reply with quote

Nope. Still can't figure out why the Edit Moods stuff won't work. I've tried several different ways of doing it, as well as posting on a lot of online messageboards (including phphelp.com and expertsexchange.com), but nobody can figure it out.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Pages: 1 2 [3] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.51/1.52] YaBB Moods Mod UPDATED 5/20/03 « 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.065 seconds with 21 queries.