Author Topic: SMFPets Version 0.2  (Read 161552 times)

Offline David

Re: SMFPets Version 0.2
« Reply #75 on: May 23, 2007, 10:17:58 am »
I suppose you've done littleone's bug fix for sources/Load.php?

Quote
change:
'pets' => $profile['pets'],

to
'pets' => &$profile['pets'],

 Other than that and the pet breeds bug fix posted earlier we await developments.

Offline Celdric

Re: SMFPets Version 0.2
« Reply #76 on: May 23, 2007, 10:30:09 am »
Yes, but didn't help.

Btw, could you solve the problem you posted on site 3?

Code: [Select]
8: Undefined index: profile_show_pets_2
File: /home/****/Themes/default/languages/Shop.english.php (showPets sub template - eval?)
Line: 451

If not, take a look into Shop.english.php. There should be a string
$txt['profile_show_pets2'] = 'Member\'s Pets:';

just correct it to
$txt['profile_show_pets_2'] = 'Member\'s Pets:';

That should work.

Offline David

Re: SMFPets Version 0.2
« Reply #77 on: May 23, 2007, 10:38:05 am »
Thanks...I hadn't fixed it and will now be able so to do (I hope) thanks to you.

Offline Celdric

Re: SMFPets Version 0.2
« Reply #78 on: May 23, 2007, 10:48:21 am »
Anytime.  :)


Here a new one. I just wanted to feed my pet and got this

Code: [Select]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' happy = happy + WHERE pet_id = 4 AND ownerid = 1' at line 1
File: /home/......./public_html/forums/Sources/shop/items/Food.php
Line: 83

Perhaps you have a idea what the reason could be.

Offline David

Re: SMFPets Version 0.2
« Reply #79 on: May 23, 2007, 10:54:38 am »
The only thing that springs immediately to mind is that there were some old food item versions around that wouldn't now work with the latest pets mod version...perhaps you'd make sure that you're using the one from the latest version's pack.

BTW...it's 3 in the morning here so even a night-owl like me needs some sleep...off to zzzzzz see you on the morrow.

Offline Celdric

Re: SMFPets Version 0.2
« Reply #80 on: May 23, 2007, 10:57:00 am »
Well, 4 in the night here.  ;D Good night. And thanks for your replies.

Offline David

Re: SMFPets Version 0.2
« Reply #81 on: May 23, 2007, 06:18:26 pm »
Always a pleasure.

Offline Celdric

Re: SMFPets Version 0.2
« Reply #82 on: May 24, 2007, 02:09:55 am »
Well, it was the wrong food package. Thanks for the tip.

Offline Angel

Re: SMFPets Version 0.2
« Reply #83 on: May 26, 2007, 07:21:53 pm »
hi, i am trying to install the pets mod on my forum, i am using the latest smf forum and shop versions. I have had no problems installing packages until now.

When i try to install the pets mod i get
"Some of the files the package manager needs to modify are not writable."

I have made all the directories writable and i have no idea how to make this work. Is there a way to install the pets mod manually ? or is there something else i can do. I would be grateful for any help, thankyou :)

Offline David

Re: SMFPets Version 0.2
« Reply #84 on: May 26, 2007, 09:09:43 pm »
While you've made the directories writable the files within them may not be at the right CHMOD setting...try using the in-built system in your forum to fix this.

ACP>Packages>Options

Add your FTP details then in Cleanup Permissions select "All files are writable"

Try installing the mod again and if you wish then after doing so you can use the same system to tighten the CHMOD settings of your files.

 If you still have problems then via FTP check to see that your files are at CHMOD 755 or 777 (depending on server settings).

 The above system should be used before installing any mod so as to get the files into the right CHMOD settings.

 If you still need to do a manual install of the mod please refer to:

http://docs.simplemachines.org/index.php?topic=402

and consider using:

http://server.daniel15.com/smf/package.php

...to get the details of what you need to do.

Joshsuxx

  • Guest
Re: SMFPets Version 0.2
« Reply #85 on: May 27, 2007, 01:08:00 am »
also remember too: if your members put   '  into their description, -E.G. =  i know what he's doing

It will completly kill the shop mod, you will need to go into PHPMYADMIN and remove the '

So until this is fixed, i don't see much use of having it, because now my shop is dying all the time because of it!

Any fix for this?

Offline gs123

Re: SMFPets Version 0.2
« Reply #86 on: May 28, 2007, 03:13:37 am »
Anytime.  :)


Here a new one. I just wanted to feed my pet and got this

Code: [Select]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' happy = happy + WHERE pet_id = 4 AND ownerid = 1' at line 1
File: /home/......./public_html/forums/Sources/shop/items/Food.php
Line: 83

Perhaps you have a idea what the reason could be.

I get the same error.  What do you mean by wrong package???? sorry for being a php noob~ In advance, thanks for the reply.  FYI, this is a fresh install of smfshop3 and pet 0.2.
« Last Edit: May 28, 2007, 03:15:57 am by gs123 »

Offline feildmaster

Re: SMFPets Version 0.2
« Reply #87 on: May 28, 2007, 03:27:48 am »
hmm... dunno.

wrong "food.php" is the only thing i can think of... anyway... I just made this and figured i could share it... if you all want...

Code: (Top Pet) [Select]
global $boardurl, $db_prefix, $scripturl;

$result = db_query("
SELECT name, level, age, ownerid, breed
FROM {$db_prefix}shop_pets
ORDER BY level
DESC LIMIT 0,1", __FILE__, __LINE__);

$StrongestPet= mysql_fetch_assoc($result);

$ForumMember = mysql_query("
SELECT realName
FROM {$db_prefix}members
WHERE ID_MEMBER = $StrongestPet[ownerid]");
$MemberName = mysql_fetch_assoc($ForumMember);

echo '
   <table width="100%" height="100%">
     <tr>
        <td align="center">'.$StrongestPet['name'].' the '.$StrongestPet[breed].'
        </td>
     </tr>
        <td align="center">
            <img src="'.$boardurl.'/Sources/shop/pet_images/'.$StrongestPet[breed].'.gif">
        </td>
     </tr>
     <tr>
        <td align="center">
             Level:'.$StrongestPet['level'].'
        </td>
     </tr>
     <tr>
     <tr>
       <td>
         Owner: <a href="'.$scripturl.'?action=profile;u='.$StrongestPet['ownerid'].'">'.$MemberName['realName'].'</a>
       </td>
     </tr>
</table>';

(click on attachment to view a preview.)... It requires people to have their pets images the same name as the breed...

Joshsuxx

  • Guest
Re: SMFPets Version 0.2
« Reply #88 on: May 28, 2007, 08:07:28 pm »
Just thought i would show you guys some of our pets, they are  created by one of our members:



http://img186.imageshack.us/my.php?image=ourpetsgz4.png

Offline gs123

Re: SMFPets Version 0.2
« Reply #89 on: May 29, 2007, 12:40:24 am »
I think I nailed down where the problem is

         $result = db_query("UPDATE {$db_prefix}shop_pets SET hunger = hunger + {$item_info[1]}, happy = happy + {$item_info[2]} WHERE pet_id = {$_POST['petid']} AND ownerid = {$ID_MEMBER}", __FILE__, __LINE__);

The  {$item_info[1]} and  {$item_info[2]} comes out empty!!!

How do I set the values for those two?