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 - inkstains

Pages: 1 ... 11 12 [13]
181
General SMFShop Discussion / Re: SMFPets is Finally Here (0.1 out)
« on: March 17, 2007, 12:26:24 pm »
I don't see why you couldn't do that you'd just need to add a check_pets query or something I'm still novice so I'll have a look but i'm not sure how it would work but yeh i'll have a go unless someone else can offer the answer.

182
General SMFShop Discussion / Re: SMFPets is Finally Here (0.1 out)
« on: March 17, 2007, 12:13:43 pm »
EDIT: TechnoDragon has kindly added to this to make it show/not show depending on pet ownership i'd recommend you use that instead just scroll down for the post


Not sure if anyone else will want to do this but thought i'd throw it up

to add a link to a members profile pets section as shown in the image below




locate Display.template.php

search for

Code: [Select]
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';


and directly below add this

Code: [Select]
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], ';sa=showPets">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/pets.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';



i've attached the image i used for the icon but you can replace it with whatever you want just upload it to the default themse images/icons folder and change the name in the code to correspond to your image name

hope this is of help i know it could have saved me a little time






183
General SMFShop Discussion / Re: SMFPets is Finally Here (0.1 out)
« on: March 17, 2007, 11:07:34 am »
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!!

don't quote me because i am still learing myself

your first problem could be the permissions on the actual pet_images folder in your file manager on cpanel you can click the folder name then go edit permissions and change it from there (but i'd wait till one of the other guys responds on that one)

as for skills they go into pet_breeds folder i'm fair sure the package comes with a blank that you can edit and it's fairly self explanatory though the addition of extra skills is probably something you need a little bit more knowledge about php etc but i imagine people with more experience will post more as they develop them, Basil Beard already posted one up earlier in this thread.


184
SMFShop Announcements / Re: Known bugs in SMFShop 3.0
« on: March 14, 2007, 07:36:30 pm »
Is there a problem installing this on smf 1.1.2? i've got a clean forum install no other mods and when i got and install the shop it appears to work correctly yet i don't have any menu in admin or anything in the store besides a credit report stating i have 10000 credits i read the manage permissions post on page 1 of this thread though that didn't appear applicable to myself as i don't have gallery i still tried it but still no success i also tried copying Shop.template.php file from the SMFShop archive to Themes/default/Shop.template.php but no success there either i've also tried to download the archive again and reinstall but still no luck just wondering if i'm missing something

thanks


EDIT: I've done an upgrade on another forum that was 1.1 RC3 and that worked a treat but i'd still like to get this running on my other forum as well which is 1.1.2


cheers heaps

185
sort of the same problem here


from my computer i can do all the find member functions through IE but with firefox the same problem as above occurs on the view inventory and on members inventory in admin i can search for the member but it will not transfer the name back to the main window when selected

i have another user who has this problem when trying to use find member

An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.

i dont think this is anything to do with smf or smfshop though but an error with his cookie but i'm not sure i've asked him to log out and back in but the same error i've also asked him to clear his cookies still no help


i have followed all instructions on the wiki and changed what was necessary but still am having no luck


sorry to hijack thread but similar problem n all


EDIT: all problems sorted bar the original transer name from the popup to main window


186
General SMFShop Discussion / Re: A couple problems
« on: March 13, 2007, 11:00:21 am »
Very interesting... In my testing, the 'Find Members' button appears to work properly, so I'm not sure why it doesn't work for you :S Have you tried a different web browser (Opera/Firefox/Internet Explorer)?

Quote
Secondly, in my forum, people are known by their Display Name and not their User Name so if you enter the display name, it may say it has worked but it hasn't because the script uses the user name.
That's why the 'Find Members' button is good. If you search for a member's Display Name, and click on it, it will insert their Username into the box.

is there another way to make it work for display name and user name?

187
General SMFShop Discussion / Re: Stealing Credits in 3.0
« on: March 13, 2007, 10:35:42 am »
Yup you found a bug!
to fix it on Steal.php
Replace
Code: [Select]
$_POST['username'] = strtr($_POST['username'], array('\\"' => '"'));
preg_match_all('~"([^"]+)"~', $_POST['username'], $matches);
$userArray = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['username']))));

with
Code: [Select]
$_POST['stealfrom'] = strtr($_POST['stealfrom'], array('\\"' => '"'));
preg_match_all('~"([^"]+)"~', $_POST['stealfrom'], $matches);
$userArray = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['stealfrom']))));

To fix the problem with SMF 1.1's "Find Members" popup
Replace
Code: [Select]
return 'Steal From: <input type="text" name="stealfrom" size="50" />
<a href="' . $scripturl . '?action=findmember;input=username;quote=0;sesc=' . $context['session_id'] . '" onclick="return reqWin(this.href, 350, 400);"><img src="' . $settings['images_url'] . '/icons/assist.gif" border="0" alt="' . $txt['find_members'] . '" /> Find Member</a><br />';

With
Code: [Select]
return 'Steal From: <input type="text" name="stealfrom" id="membername" size="50" />
<a href="' . $scripturl . '?action=findmember;input=membername;quote=0;sesc=' . $context['session_id'] . '" onclick="return reqWin(this.href, 350, 400);"><img src="' . $settings['images_url'] . '/icons/assist.gif" border="0" alt="' . $txt['find_members'] . '" /> Find Member</a><br />';

thanks heaps for that worked a charm

one question though every where else the find member does not work any idea on what code i would need to change to get that back up and running?

thanks

188
General SMFShop Discussion / Re: SMFPets is Finally Here
« 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?

189
Items / Re: Item: Egg your victims avatar
« on: November 08, 2006, 09:18:47 pm »
would it be possible to backup the users current avatar before egging it? and have it selectable in the profile like the egged versions? if this is possible would someone be able to point me in the right direction?

190
Items / Re: Some Name Alteration Items
« on: October 27, 2006, 11:05:28 am »
why can't i download the files? it keeps taking me to the login form then back to the index

EDIT: it was just the first file but i downloaded the whole package instead so all sorted

Pages: 1 ... 11 12 [13]