Author Topic: SMFPets is Finally Here (0.1 out)  (Read 106909 times)

Offline Basil Beard

Re: SMFPets is Finally Here
« Reply #75 on: March 09, 2007, 05:49:28 am »
Thats very strange. The package should work for whatever SMF's default skin is called. (not the one that you have set as default). Has anyone else had any problems with this part of the code?
Arrrrr!

Offline Aruta

Re: SMFPets is Finally Here
« Reply #76 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?

Althea

  • Guest
Re: SMFPets is Finally Here
« Reply #77 on: March 12, 2007, 04:37:25 pm »
Nice work on the mod.  Seeing that I really suck with adding any sort of coding at all into anything I'm going to wait to install this on my forum for a little while, but I'm looking forward to when I can ;D

Offline inkstains

Re: SMFPets is Finally Here
« Reply #78 on: March 13, 2007, 02:49:42 am »
first up crazy mod with mad potential really liking it so far. props.

i want to add a link to a members pets just above the "view inventory" link on the left hand side of a members post, any ideas on how i would do this i imagine i need to add similar code to the display.template.php file of my theme as what is in the profile.template.php

profile.template.php code
Code: [Select]
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=showPets">', $txt['profile_show_pets'], '.</a><br />

but there are some differences between the two as you can see from the above and below code


display.template.php
Code: [Select]
<a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
i've tried to edit it but my understanding of php is very limited at the moment (though i'm slowly learning)

any help would be appreciated


my second issue is the lack of displayed pictures in pet central though they show up fine in pet hatchery i've tried the below with each of the options recommended though if i follow the first instruction and paste in the code reccomended i get an error, but with the changing of  $this->breed to $pet->breed it stops bugging out though i still have no images in pet central i've also tried the addition of /forum/ to it with no luck


Thanks Basil Beard. :)

Also, about the Pet Central problems, this should fix it:

In Pet Engine Find:
Code: [Select]
<img border='0' width='120' height='120' src='".$boardurl."/Sources/shop/pet_images/".$this->breed_img."' alt='".$this->breed."' />Replace with:
Code: [Select]
<center><img border='0' src='".$boardurl."$boardurl."[b]/[your forum directory[/b]]/Sources/shop/pet_images/".$this->breed_img."' alt='".$this->breed."' /></center>I'm not 100% sure it'll fix it, but it will also make the image not resize and will be centered. Also do it for both codes you find.

If my fix doesn't work try:
$boardurl."/$sourcedir/shop/pet_images replacing with $boardurl."/[your forum directory]/Sources/shop/pet_images

Edit-
Also for the rest of the image resizing:

Find in Shop Pets:
Code: [Select]
<img border='0' ' src='".$boardurl."/Sources/shop/pet_images/".$pet->breed_img."' alt='".$pet->breed."' />Replace with:
Code: [Select]
<center><img border='0' ' src='".$boardurl."/Sources/shop/pet_images/".$pet->breed_img."' alt='".$pet->breed."' /></center>


any help with any of these would be appreciated



EDIT: I've resorted to creating a new Sources/shop/pet_images/ folder path on the main url and got the images working in pet central but would still like to get it working correctly


EDIT 2: been thinking would it be possible to be able to trade the pets through the trade centre? also could we have a section where a person would be able to design there own pet through a form with a series of inputs like levels to gain, description, skills, etc  i'm fairly sure it would be possible and i'd be keen to do it if no one can be bothered can someone just point me in the right direction. also the battle mod that was mentioned throughout this thread any word on this anything that can be done to help?
« Last Edit: March 13, 2007, 06:48:19 pm by inkstains »

Offline Lady Ambrosia

Re: SMFPets is Finally Here
« Reply #79 on: March 14, 2007, 01:19:54 pm »
First off before I say anything.....*grabs Basil Beard and gives him a HUGE KISS MUAH!! and hug  THEN grabs TechnoDragon and does the same*  THANK YOU THANK YOU THANK YOU!!!  Thank You Basil Beard for creating this WONDERFUL little mod!!   And thank you TechnoDragon for spending time with helping out with different codes and other things to go with it!!!

I've not installed this mod yet, and before installing it to my main forum, I'll install it to my test forum first to test everything out, and make sure that I can do this on my own :D  Should I run into any problems I'll be sure to ask ;)  I'll hopefully get to do that before the week is out.

I see that there are tons of things that people want for the pet mod, but honestly I'm just happy that you have gotten it up and running :D  I can wait for everything else, I feel like this, I'd rather you fix what's wrong or could be wrong with the coding before jumping off into something else for it....and let me tell you it's MUCH appreciated :D

Again THANK YOU THANK YOU THANK YOU!!!!
Ambrosia's Castle - My Personal Site
The Dark Castle - My Forum
Avatar by:  Me

Offline TechnoDragon

Re: SMFPets is Finally Here
« Reply #80 on: March 14, 2007, 02:03:18 pm »
I guess you want to say thank you...

so...YOU'RE WELCOME!

ROFL
Don't tell me to get into shape...I have a shape...It is round!


Offline xfollowthereaperx

Re: SMFPets is Finally Here
« Reply #81 on: March 15, 2007, 11:51:37 am »

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?
I could but I'm not sure how that would help :p

Maybe someone can just post the code I need to edit into display.template.php

Offline Basil Beard

Re: SMFPets is Finally Here
« Reply #82 on: March 16, 2007, 05:22:49 am »
SMFPets 0.1 now works(I think)

please visit:

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

to download
Arrrrr!

Offline Lady Ambrosia

Re: SMFPets is Finally Here
« Reply #83 on: March 16, 2007, 05:55:21 am »
So far so good, I've not had any problems with images or creating new pets or skills in my test forum.  Everything seems to be working WONDERFULLY, you did an AWESOME job on this one Basil Beard!!  And TechnoDragon, I'm having a blast with the few codes that you've made as well.

My only question/request I can think of, is there away to make the pet viewable in the display profile of a post?  I'm not sure how to edit that one.  I only tweak php here and there but to do anything more complex is beyond my skills.  Thanks!

Again AWESOME little addon to the Shop I LOVE IT!!!


EDIT:  I just installed the little update to the pets mod, and so far it's working wonderfully, I like it VERY MUCH!!  Awesome work!!  I can't wait to what else you have in store :D
« Last Edit: March 16, 2007, 06:31:37 am by Lady Ambrosia »
Ambrosia's Castle - My Personal Site
The Dark Castle - My Forum
Avatar by:  Me

Offline Aruta

Re: SMFPets is Finally Here
« Reply #84 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.  ::)
« Last Edit: March 16, 2007, 06:51:06 pm by Aruta »

Offline GhostWriter

Re: SMFPets is Finally Here (0.1 out)
« Reply #85 on: March 16, 2007, 09:28:07 pm »
I uploaded this MOD through package manager andwhen I go to install this is the error I get..

Execute Modification ./Sources/shop/pet_engine.php File not found

I think it is an easy error, but I am not that great with coding and am not sure how to fix it.....

Offline Basil Beard

Re: SMFPets is Finally Here (0.1 out)
« Reply #86 on: March 16, 2007, 10:30:55 pm »
Yeah. The install will probably only work if you are using a fresh version of SMF Pets 0-0. Sorry.

And GhostWriter. Did you install SMFPets 0-0 before installing the upgrade?
Arrrrr!

Offline GhostWriter

Re: SMFPets is Finally Here (0.1 out)
« Reply #87 on: March 16, 2007, 11:16:32 pm »
No.....

Guess I should go and do that one now shouldn't I?

Thanks Basil...

***EDIT***
Alright now I feel like an idiot, I just installed smfpets0.0 and then the upgrade and it works great. Now I may have missed something through out this thread, which knowing me and how tired I am right now I most likely did. But what I want to know is where do you add new pets and these skills that everyone is posting? What file exactly?

Sorry if I reposted something that has already been answered....
« Last Edit: March 16, 2007, 11:26:56 pm by GhostWriter »

Offline Basil Beard

Re: SMFPets is Finally Here (0.1 out)
« Reply #88 on: March 16, 2007, 11:43:26 pm »
Pets are adding by uploading breed files to the pets_breeds dirc located in the shop dirc. Skills are included in said files.
Arrrrr!

Offline GhostWriter

Re: SMFPets is Finally Here (0.1 out)
« Reply #89 on: March 16, 2007, 11:48:31 pm »
Everytime I try to upload a file into the breed directory, I get a an error telling me that the fiel could not be uploaded...

Quote
move /home/ghostte/tmp/cpanel.TMP.7BUrZsxEcWppvgLU, /home/ghostte/public_html/Sources/shop/pet_images/blank1.gif failed: Permission denied
C:\Documents and Settings/owner/\My Documents\blank1.gif (blank1.gif): upload failed
.

Thats the error message...I tried to upload something just inside the shop and it worked, the same with uploaded the same gif into the root and it went through...

Also when I try to create a new file for a new pet I get this error
Quote
[a fatal error or timeout occurred while processing this directive]

I know I have all the access permissions since I am the only one allowed into the cpanel, so I am not sure what could be causing this problem..

Also what I meant about the skills, was the skills that everyone is placing up, where would they be placed..Sorry if I sound stupid about the subject, but my PHP skills are like -10..I am learning though..... :'(

Once again, I am sorry for being such a pain!!
« Last Edit: March 17, 2007, 12:19:28 am by GhostWriter »