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 - Basil Beard

Pages: 1 2 [3] 4 5 ... 16
31
This shouldn't be too hard to code. php has a built in date function that allows you to extract the current date. You can use that, along with an if-statement, to not show any bank functions if the time isn't right. In shop-bank.php find

Code: [Select]
isAllowedTo('shop_bank');


and add
Code: [Select]
if (//put your time frame here. Google the php date function to find how this works) {

and add the end add

Code: [Select]
}
else {
        $context['shop_buy_message'] = 'You are not allowed to access the bank at this time';
// Set the page title

$context['page_title'] = $txt['shop'] . ' - ' . $txt['shop_bank'];

// Use the 'message' template

$context['sub_template'] = 'message';

}

A couple of examples of how your if statement might work:

Taking the Sabbith(bank closed on sunday)
Code: [Select]
if (date('w') != 0) {

Only weekends:
Code: [Select]
if (date('w') == 0 || date('w') == 6) {

Only open 9-5
Code: [Select]
if (9 <= date('G') < 17) {

Of course, there are many many other things you can do. Look here for how the date function works:
http://us.php.net/date

Edited by Daniel15: Fixed formatting

32
Modifications / Re: SMFPets Version 0.2
« on: June 06, 2007, 12:35:11 am »
Hunger and Happiness drop by a couple each day, with a min of zero. Skills cannot be used if either stat is below five, so you need to keep everything up.

Sorry I havn't had much time to work on this recently. Could someone just make a list of the current bugs people have been having(like the quotes screwing up the whole pet system), and I will try to get on it?

33
Modifications / Re: SMFPets Version 0.2
« on: May 20, 2007, 01:14:27 pm »
[whispers quietly] Anything that puts people off of using I.E. is probably best called a feature not a bug.[/whispers quietly]

Some people don't like to annoy their users by making them switch browsers. Some people are just stubborn and don't want to change--and would probably be annoyed if their admin forced the change upon them by making the site unusable in IE. =P

34
Modifications / Re: SMFPets Version 0.2
« on: May 14, 2007, 11:29:57 pm »
Are you using the latest version? Becuase your problem has to do with apparent quote marks in the pet description--an issue I thought i fixed. <_<

35
Modifications / Re: SMFPets Version 0.2
« on: May 10, 2007, 05:46:35 am »
Most likely something happened where instead of copying and pasting the right file, I copied and pasted a link. Can you provide me with your profile.template.php and profile.php files?

36
Modifications / Re: SMFPets Version 0.2
« on: May 08, 2007, 10:51:48 am »
o_0. I never actually link to my site with the mod. There is no way it should possible be linking there. (If I understand your problem correctly)

37
Modifications / Re: SMFPets Version 0.2
« on: May 07, 2007, 11:08:00 am »
Yeah. I remember comming across a bug like that, but don't recall off the top of my head how I fixed it. Sorry.

38
Modifications / Re: SMFPets Version 0.2
« on: May 06, 2007, 11:50:36 pm »
Aes-Sedai: Let me know if the error appears again. It could just be an issue with low level pets or something. =)

Joshuxx: There is only one official thread. The first thread was created for me asking questions about making it a package. The second was for the first two versions of the mod. I did not have powers to move topics when this subboard was released, so I just choose to create a new topic for the latest update. Feel free to examine the old thread, I don't recall what all is there but its only a few pages. Its not like it would take you too long. 

39
Modifications / Re: SMFPets Version 0.2
« on: May 05, 2007, 10:57:35 pm »
What level is your pet? You sure it isn't like, 2 PM tomorrow?

40
Modifications / Re: SMFPets Version 0.2
« on: May 05, 2007, 11:18:46 am »
Upgrade to 0.2. The issue is fixed there. I am sorry, but I do not want to offer support for previous versions, esp when the issue is with a problem I already fixed.  :buck2:

41
Modifications / Re: SMFPets Version 0.2
« on: May 04, 2007, 10:18:20 pm »
There is a folder called "starter pets" which contains 6 starter pets. You can either use those as they are, or look there for how to create pets. It has a number of skills, so that should help  :)

42
Modifications / Re: SMFPets Version 0.2
« on: May 02, 2007, 04:37:17 am »
I would assume that you are visiting top pets there, correct? Maybe I never put the update to actually fix top pets in the install. Like, I missed it. And then I installed it and it didn't work and I thought I fixed it  O0

43
Modifications / Re: SMFPets Version 0.2
« on: May 01, 2007, 11:36:21 pm »
Clearly 0.2 did not install itself correctly. Or 0.0 and 0.1 did not uninstall themselves correctly and that messed up 0.2's installation. I'm inclined to think the latter because it worked fine when I just installed 0.2. But who knows. When you installed 0.2, did you get any errors? This is hard for me... because it worked for me... so should work for you :P

44
Modifications / Re: SMFPets Version 0.2
« on: May 01, 2007, 09:44:42 pm »
Pet names are linked to the pet page of the owner of the pet.  :)

What does your Shop-Subs file look like? load_pets should be there  :)

45
Modifications / Re: SMFPets Version 0.2
« on: May 01, 2007, 02:59:42 am »
Well I mean, the uninstall should work because it simply reverses everything the install did. But if you changed anything around by yourself, then yeah, the uninstall wouldn't work. (Note that the uninstall should just remove the pet-engine.php and Shop-pets.php files and replace them, so you do not need to worry about changes made there)

Pages: 1 2 [3] 4 5 ... 16