Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #91  
Old 01-31-2011, 12:23 PM
Rozel Rozel is offline
Member
 
Join Date: Jun 2010
Posts: 144
Credits: 12,146
Rozel
Default

Yeah, she said she could not right now. ^^;
Reply With Quote
  #92  
Old 02-06-2011, 02:03 PM
nobackseat nobackseat is offline
Member
 
Join Date: Feb 2011
Posts: 13
Gender: Male
Credits: 1,332
nobackseat is on a distinguished road
Default

I realize this is an old post, but I wanted to touch on some of the techniques here, and hope that it will help any other developers.

PHP Code:
$article_content $article_content."<p>Select 
PHP has the capability built in to append a variable to itself, and it is much easier than reiterating the variable.

PHP Code:
$article_content .= "<p>Select 
Memory resource in this application is tremendous.

There are some simple things here that may seem insignificant, it can make a huge impact.

PHP Code:
$femaleid $_POST['female'];
$maleid $_POST['male'];
$breed $_POST['breed'];

$femaleid secure($femaleid);
$maleid secure($maleid);
$breed secure($breed); 
to


PHP Code:
$femaleid secure$_POST'female' ] );
$maleid    secure$_POST'male' ] );
$breed     secure$_POST'breed' ] ); 

PHP Code:
        $num mysql_num_rows($result);

        
// Loop Out code < this will loop so you select all the rows and not just one
        
$i 0;
        while (
$i $num){ 

to


PHP Code:
// Loop Out code < this will loop so you select all the rows and not just one
$i 0;
while ( 
$i mysql_num_rows$result ) ) {


This is of course, only if you are using it once, and don't need the $num variable anywhere else.

And lastly,

Quote:
$i++;
to
Quote:
++$i;
But that is just me being extremely picky.

The reason for the above is, it is pre-incrementing and it doesn't create a memory reference.

The only difference between the two is, the last one doesn't increment until the end of the string, so in some cases it is not acceptable.

But anyways, yeah. This is not criticizing, I am just offering some tips.

NBS

Last edited by nobackseat; 02-06-2011 at 02:06 PM.
Reply With Quote
  #93  
Old 02-06-2011, 02:19 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 492,438
Hall of Famer is on a distinguished road
Default

Well Arianna has made a new version of Breeding system in this Mys v1.2.0 we are currently developing. I dont see a need to post it atm, but you can assume this one is obsolete.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #94  
Old 02-08-2011, 11:19 AM
elfhome's Avatar
elfhome elfhome is offline
Bella's Personal Maid
 
Join Date: Jan 2009
Location: In the land of Bird Dander...
Posts: 125
Gender: Female
Credits: 13,286
elfhome
Default

I am using this one just to give it a test and I really like it. I can't wait to see the final version in the newest release!
__________________
Makin' time for makin' free art.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation Complete: Site is Completely Blank? Bhavani Questions and Supports 3 09-14-2014 07:43 PM
a more advanced breeding system needed maximillion Questions and Supports 11 06-28-2011 03:37 PM
Help me with the breeding system of Arianna Sensacionsk8 Questions and Supports 2 03-21-2011 12:54 PM
Breeding System Steelghost600 Questions and Supports 4 10-25-2009 03:38 PM
How to make a breeding System? SieghartZeke Questions and Supports 23 10-19-2009 07:11 PM


All times are GMT -5. The time now is 04:26 PM.

Currently Active Users: 672 (0 members and 672 guests)
Threads: 4,081, Posts: 32,032, 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