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
<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
<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:
<img border='0' width='120' height='120' src='".$boardurl."/Sources/shop/pet_images/".$this->breed_img."' alt='".$this->breed."' />
Replace with:
<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:
<img border='0' ' src='".$boardurl."/Sources/shop/pet_images/".$pet->breed_img."' alt='".$pet->breed."' />
Replace with:
<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?