Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2011, 09:33 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,141
SilverDragonTears is on a distinguished road
Default grr Last Bred

is printing out weird numbers. how can i get it to show the date? I'm getting super annoyed =(
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 08-09-2011 at 10:17 PM.
Reply With Quote
  #2  
Old 08-10-2011, 02:51 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,141
SilverDragonTears is on a distinguished road
Default

This is going to make me lose my mind =(
__________________

Check out SilvaTales
Reply With Quote
  #3  
Old 08-10-2011, 04:58 PM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 5,168
Chibi_Chicken is on a distinguished road
Unhappy

It looks like the last bred just stores the return value of time()
http://php.net/manual/en/function.time.php (for more info)

you could echo out the date with the date function, like:
date('Y-m-d', $lastweek) to see what it is.

beyond that I am not sure, I haven't work with the time() or the breeding script that much.
Reply With Quote
  #4  
Old 08-10-2011, 05:11 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,141
SilverDragonTears is on a distinguished road
Default

where do i put that?
__________________

Check out SilvaTales
Reply With Quote
  #5  
Old 08-10-2011, 05:17 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,141
SilverDragonTears is on a distinguished road
Default

ok I put it like this
PHP Code:
Last bred".date('Y-m-d', $lastweek)." 
and got
Last bred: 1969-12-31
__________________

Check out SilvaTales
Reply With Quote
  #6  
Old 08-10-2011, 05:47 PM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 5,168
Chibi_Chicken is on a distinguished road
Default

well that is a long time ago. so what are you trying to do with the last bred just display it as a date?
Reply With Quote
  #7  
Old 08-10-2011, 05:49 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,141
SilverDragonTears is on a distinguished road
Default

Yes I want it displayed so that the members know when they last bred each pet. And if they haven't been bred yet, display nothing. That's not the hard part though... the hard part is getting it to display the date they were bred.
__________________

Check out SilvaTales
Reply With Quote
  #8  
Old 08-10-2011, 06:24 PM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 5,168
Chibi_Chicken is on a distinguished road
Default

ok, so i understand the problem more now.

so when you get last bred from the adopt it displays
1969-12-31

i would get the adoptable last bred and then display
PHP Code:
echo date('Y-m-d'$lastbred);
echo 
date('Y-m-d'time()); 
See what the difference is, I dont know why it is giving 1969. Sorry I used $lastweek that is a misleading variable.
Reply With Quote
  #9  
Old 08-10-2011, 07:14 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,141
SilverDragonTears is on a distinguished road
Default

neat... it gives me
Last bred: 2011-08-10
2011-08-10;

So I guess I can remove one?
__________________

Check out SilvaTales
Reply With Quote
  #10  
Old 08-10-2011, 07:19 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,141
SilverDragonTears is on a distinguished road
Default

hmmm i'm confused... this is my code.

PHP Code:
if($lastbred == '') {
    
$article_content .= '';
} else {
    
$article_content .= 'Last bred: '.date('Y-m-d'$lastbred).'<br>
           '
.date('Y-m-d'time()). '<br>';


some caught eggs are showing
Last bred: 1969-12-31
2011-08-10
but the rest print nothing including laid eggs which is how it's suppose to be

oh i see why... some say nothing for last bred and some say 0. how can i fix that?

and a pet i bred today shows

Last bred: 2011-08-10
2011-08-10
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 08-10-2011 at 07:24 PM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:40 PM.

Currently Active Users: 860 (0 members and 860 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636