Welcome, Guest. Please Login or Register.
April 26, 2024, 05:28:26 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

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


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

..... Odd. Lemme go back and revise some code in Moods.php.
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


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

Try this:

Open up Moods.php and:

find this:
   global $filename5, $moodname5;
add after:
     global $settings;
find this:
   if (($user['memberGroup'] != "Administrator") AND ($action != "change_mood")) { fatal_error($moodtxt[9]); }
   if ($action == "Add Moods") { add_moods2(); }
   if ($action == "add_moods") { add_moods(); }
   if ($action == "Modify Moods") { modify_moods2(); }
   if ($action == "edit_moods") { modify_moods(); }
   if ($action == "delete_mood") { delete_mood(); }
   if ($action == "change_mood") { change_mood(); }

Replace with:
   if ($settings[7] == "Administrator") {
      if ($action == "Add Moods") { add_moods2(); }
      if ($action == "add_moods") { add_moods(); }
      if ($action == "Modify Moods") { modify_moods2(); }
      if ($action == "edit_moods") { modify_moods(); }
      if ($action == "delete_mood") { delete_mood(); }
   }
   if ($action == "change_mood") { change_mood(); }
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

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

Can't find those from the file.
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #18 on: May 27, 2002, 12:02:11 PM »
Reply with quote

In Moods.php?! They're the first few lines just about.
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[DONE] Moods mod v1.0
« Reply #19 on: May 27, 2002, 12:04:00 PM »
Reply with quote

Quote from: Jedi~ on May 27, 2002, 12:02:11 PMIn Moods.php?! They're the first few lines just about.

I can't find the global attributes. The if statements I can find.
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #20 on: May 27, 2002, 01:26:26 PM »
Reply with quote

They're pretty much the first thing in the file...

<?php 

####################################
## Moods.php                      ##
####################################
## Part of the Moods mod by Jedi  ##
## For YaBBSE                     ##
####################################

function moods() {
   global 
$username$db_prefix$moodtxt$action$mood$mood_fn$sourcedir$id;
   global 
$settings;
   global 
$filename$moodname$filename2$moodname2;
   global 
$filename3$moodname3$filename4$moodname4;
   global 
$filename5$moodname5;
>
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[DONE] Moods mod v1.0
« Reply #21 on: May 27, 2002, 01:27:43 PM »
Reply with quote

I just downloaded the moods pack again and the Moods.php says:

####################################
## Moods.php                      ##
####################################
## Part of the Moods mod by Jedi  ##
## For YaBBSE                     ##
####################################

function moods() {
   global $username, $db_prefix, $moodtxt, $action, $mood, $mood_fn, $sourcedir, $id;
   global $HTTP_POST_VARS;
   
   if (($action != "change_mood") AND ($action != "Add Moods") AND ($action != "Modify Moods") AND ($action != "delete_mood")) { template_header(); }
   
   $result = mysql_query("SELECT * FROM {$db_prefix}members WHERE (memberName='$username')");
   if (!$result) { fatal_error(mysql_error()); }
   $user = mysql_fetch_assoc($result);
   
   $action = str_replace("+", " ", $action);
   if (($user['memberGroup'] != "Administrator") AND ($action != "change_mood")) { fatal_error($moodtxt[9]); }
   if ($action == "Add Moods") { add_moods2(); }
   if ($action == "add_moods") { add_moods(); }
   if ($action == "Modify Moods") { modify_moods2(); }
   if ($action == "edit_moods") { modify_moods(); }
   if ($action == "delete_mood") { delete_mood(); }
   if ($action == "change_mood") { change_mood(); }
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #22 on: May 27, 2002, 01:28:51 PM »
Reply with quote

Ah yes, the updated version, just add it under

global $HTTP_POST_VARS;
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[DONE] Moods mod v1.0
« Reply #23 on: May 27, 2002, 01:33:39 PM »
Reply with quote

Now I only get an empty page with just the top menu. I think I'm gonna give up with this mod :)
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #24 on: May 27, 2002, 01:37:16 PM »
Reply with quote

Suit yourself, I haven't had this problem before, but I'll look into it while you have it off.
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[DONE] Moods mod v1.0
« Reply #25 on: June 06, 2002, 11:54:08 PM »
Reply with quote

Have you noticed that also BoardNation is suffering from the same? They also have the extra info when viewing the board as guest. And they have the moods mod installed.
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #26 on: June 07, 2002, 01:19:54 AM »
Reply with quote

Yes, and I also have Don't show avatar option installed over there, I'm trying to figure out which one it is at this very second.
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Moods mod v1.0
« Reply #27 on: June 07, 2002, 01:27:13 AM »
Reply with quote

It's  not the moods mod causing this, it's the Don't show avatar mod causing this (alone, not a bug with both installed.)
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[DONE] Moods mod v1.0
« Reply #28 on: June 07, 2002, 07:50:13 AM »
Reply with quote

Ok, can we expect a fix soon? :)
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:[DONE] Moods mod v1.0
« Reply #29 on: June 07, 2002, 07:51:34 AM »
Reply with quote

Found it :P
Logged
Pages: 1 [2] 3 4 ... 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.023 seconds with 20 queries.