Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Aruta

Pages: [1]
1
Modifications / Re: SMFPets Version 0.2
« on: November 27, 2008, 10:39:07 pm »

mmh. Perhaps its a conflict with "Shop Item: Profile Image" mod.

Not a big problem anyway. Pets will probably still work, but they wont show up in the user profiles.

You can offcourse manually edit your profile.php after you install the pet mod. You have to add:

Code: [Select]
//Begin Shop-Pets Mod
//Show the pets owned by the member
function showPets($memID)
{
global $txt, $user_info, $scripturl, $modSettings, $db_prefix;
global $context, $user_profile, $ID_MEMBER, $sourcedir;

loadLanguage('Shop');

$result = db_query("
SELECT *
FROM {$db_prefix}shop_pets
WHERE ownerid = $memID", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result)) {
require($sourcedir . '/shop/pet_engine.php');
require($sourcedir . '/shop/pets_breeds/' . $row['breed'] . '.php');
eval('$temp = new pet_' . $row['breed'] . ';');
$temp->load_values($row['pet_id']);
$context['pets'][$row['pet_id']] = $temp;
}
}

//Loads the pets up!
function load_pets() {
global $sourcedir;

require($sourcedir . '/shop/pet_engine.php');
if ($handle = opendir($sourcedir . "/shop/pets_breeds/")) {
while (false !== ($file = readdir($handle))) {
if (substr($file, -4) == '.php')
{
// Get the name (file name without .php extension)
$name = basename($file, '.php');
require($sourcedir . '/shop/pets_breeds/' . $file);
}
}
}
}

Somewhere before a line that at least looks like this:

Code: [Select]
foreach ($context['posts'] as $counter => $dummy)
$context['posts'][$counter]['can_delete'] &= $context['posts'][$counter]['delete_possible'];
}


2
Modifications / Re: SMFPets Version 0.2
« on: July 08, 2008, 08:54:09 am »
Greetings, great mod for the shop you made here, works great.  The only problem I'm having is on the Pet Leaderboard, when you click on someone's pet there it tries to go to ?action=profile;u=2;sa=showPets but not on the forum's page.  It tries to go to http://sandbox.nomicville.com/index.php?action=profile;u=2;sa=showPets instead of my website.. Any fix for this?

Yup. Its in this thread somewhere.

3
Modifications / Re: SMFPets Version 0.2
« on: June 24, 2008, 03:46:54 am »
hi, is there any instructions on how to manually install this mod?

The zip file includes "install_SMF1-1.xml". All the instructions are in there.

----

I have a problem i cant seem to fix. I checked the thread but i couldnt find this one. After a clean install i keep getting the following errors in the errorlog. The errors apear after viewing the pet hatchery. (index.php?action=shop;do=pets).

8: Trying to get property of non-object
File:
/public/sites/forum.silverrose.nl/Sources/shop/pet_engine.php
Line: 169

8: Undefined offset: 3
File:
/public/sites/forum.silverrose.nl/Sources/shop/pet_engine.php
Line: 169

Im running a fresh install of smf 1.1.5 with shop 3.0 and pets 0.2
I did however restore some old database entries, but i did reset the pet count and maximums in smf_members.
Strange thing is that these errors only seem to pop up when my account visits Pet Central. Other users dont seem to have this problem.

Any help will be very welcome!

4
General SMFShop Discussion / Re: SMFPets is Finally Here
« on: March 16, 2007, 06:48:29 pm »
SMFPets 0.1 now works(I think)

please visit:

http://dev.dansoftaustralia.net/frs/?group_id=10

to download

w00t! thanx man  O0
installing as we speak..

edit: whoops, im getting install errors:

1.     Execute Code     updateScript.php     
2.    Execute Modification    ./Sources/shop/pet_engine.php    Test failed
3.    Execute Modification    ./Themes/default/languages/Shop.english.php    Test successful
4.    Execute Modification    ./Sources/shop/Shop-Subs.php    Test successful
5.    Extract File    ./Sources/shop/items/Food.php

Might be due to the modifications I made to show the pics? Is it ok to install anyway? Ill wait untill I hear something.
Been testing this in a live forum.  ::)

5
General SMFShop Discussion / Re: SMFPets is Finally Here
« on: March 09, 2007, 10:33:12 pm »

No problems here. My default skin is renamed and everything and I now use the WoW Theme by StormLrd.
And I can view the pets.

Maybe xfollowthereaperx can post a screenshot of a user profile?

6
General SMFShop Discussion / Re: SMFPets is Finally Here
« on: March 09, 2007, 02:59:50 am »
Like I have said, I donno how Techno's food item works, but mine had a glitch. I appear I showed how to fix it a few pages ago.

Well this fix works great  for me. My pets can eat again!  :)
Thanx man.

7
General SMFShop Discussion / Re: SMFPets is Finally Here
« on: March 07, 2007, 07:43:31 pm »
I'm a little confused with all the codes going around and I'd like to use some of the new things like viewing people's pets

Ya dont have to code dude. You van view peoples pets bij clikcing on their forum name en clicking on the "view pet" link beneath their profile.

8
General SMFShop Discussion / Re: SMFPets is Finally Here
« on: March 06, 2007, 08:28:19 pm »

Well I fixed most of my problems with the stuff posted here. Is all this going to be added to a new release?

Also I still have 1 problem. I created two breeds now, but since I bought a second pets (diffenent breed) I cant feed my first pet.
When I select the food item the pull-down menu only shows my last pet, not the first.
Is there a way to fix this? If I need to post more info please let me know and I will do that asap.

Thanx in advance!

9
General SMFShop Discussion / Re: SMFPets is Finally Here
« on: February 28, 2007, 10:58:00 pm »
You do not get any errors when trying to buy the bread? What is the breed name?(Both breedname and filename. Actually, giving me the whole breed file might help) That is the only thing that could be causing it.

No errors when buying the breed. When I try to buy a breed now I get the same situation as i get when trying to buy the second breed. I just get a blank notification bar. I must admit that I uploaded the the first breed without buying it. I just edited the blank_pet.php, renamed it and copied it to the directory.  :-[
can that be the problem?

No worries about the extra options, Im really glad with the mod the way it is. And so are my users!  8)


10
General SMFShop Discussion / Re: SMFPets is Finally Here
« on: February 28, 2007, 07:58:27 pm »

Very nice mod!!  O0

Just got some minor bugs to report.

My second breed can not be bought. (first new breed was no problem) As soon as I buy it, the screen changes to where the "you bought this pet" should be, but theres no text there. The Pet also doenst get bought...

This may have something to do with a second bug I found.

In the Pet Hatchery I can see my animals icons, but as soon as i buy them and look them up in "Pet Central" the icons disapear.
Seems its searching for the image in the wrong place. My forum is in "http://www.silverrose.nl/forum/sources/shop/pet_images but in the hatchery its trying to find the image in http://www.silverrose.nl/sources/shop/pet_images




Pages: [1]