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
  #1  
Old 12-22-2010, 04:05 PM
redheadturkey redheadturkey is offline
Senior Member
 
Join Date: Jan 2010
Posts: 136
Gender: Female
Credits: 10,147
redheadturkey is on a distinguished road
Default Anna's New Mods -- UPDATED ! Mod added at the bottom!

Mod. 1 Show/Battle Mod


This first mod simply is an easy show/battle mod -- members go there from a link in Manage Adopts === be sure to add a link there.

First, that mile long query towards the beginning you ---will-- need to modify -- I have many specialized fields that I need called up, yours will likely be very different! It will still work if you don't change it, but it will give that little 'I cant find this!' error, ie rows invalid or whatever.

Code:
<b><a href='show.php?id=".$id."'><img src='templates/icons/paw.gif' border=0>Entry Level - For Kritter Kash and Advancement in Rank -- I'd like to enter the Entry Show with ".$name."</a><br>
<br>
Put that link there in Manage with the other links for every one of these 'show' pages you make. Needless to say change the names and wording on all this as your own site dictates.

Such as the below. under --Start Rewards --

Go into lang.php in the Inc folder and just make these whatever you want/need. But here's the code on the show page, you can of course rename!

Code:
$article_title = $lang_gave4."".$name." one ".$lang_unit4;
    $article_content = "<img src='".$image."'><br>".$lang_gave4."".$name." one ".$lang_unit4.".<br>".$lang_levelup_encourage4;
Again, tweakable.

Whatever your currency, whatever you want them to win points wise or money wise or both, this basic mod -- a takeoff on levelup -- will give you a rough draft to go by!

Code:
  //Get currency on level up
                  
                  $query = "SELECT * FROM `adopts_users` WHERE `username`='$loggedinname'";
                  $result = mysql_query($query);
                  $num = mysql_numrows($result);
                  
                  $i = 0;
                  while ($i < 1) {
                      $money = @mysql_result($result, $i, "money");
                      
                      // Change this number 10 to the number of currency you want users to earn on level up  
                      $newbalance = $money + 500;
                      
                      $i++;
                  }
                  
                  mysql_query("UPDATE `adopts_users` SET `money`='" . $newbalance . "' WHERE `username`='$loggedinname'");
                  
                  
                  $article_content = $article_content . "<div align='center'><br />You have earned 500 more KK for this Kritter's status in the 

Exhibition! <br />You now have  " . $newbalance . " Kritter Kash.</div>";
You can really do anything you want with this, reward/penalize etc. I have it set to allow ten go rounds of our various shows---you can adjust that too:


Code:
// Check what the number for the query is...

$result = mysql_query($query);
$num = mysql_numrows($result);

    if($num < 10){

    // The number of results is still zero, so we did not vote on this adoptable yet today...
    
    // Now we see if the adoptable is frozen by its owner.  If it is, we do not level...

    if($isfrozen == "yes"){

    $article_title = $lang_isfrozen_title;
    $article_content = $lang_isfrozen_explain;
Just set 10 to however many times you want each pet to be able to battle/show!

Hope this helps, enjoy! The file is attached.


Mod. 2 Swap Meet Sales Mod

Works with the Abandon and Doadoptab php codes ( not mine but great coding!! ) ---Swap Meet allows you to have a working sales thread for your pets --- can be altered to use any currency you like, just have to alter the places where it says 'kk'. That's the currency I use ( kritter kash ).

You want to add these links to Myadopts Manage section:

Code:
<a href='myadopts.php?act=setprice&id=".$id."'><img src='templates/icons/paw.gif' border=0> Set KK Price for ".$name."</a><br>



<a href='myadopts.php?act=kill&id=".$id."'><img src='templates/icons/paw.gif' border=0> List For KK Sale ".$name."</a><br>
the "Kill" act basically becomes where you send them to the sales, and here is the code for that:

Code:
else if($act == "kill"){



// We are selling an adoptable for pc here...                       //




if(is_numeric($id)){

// Now we see if the adoptable actually exists...

$query = "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='$loggedinname' and aid='$id'";
$result = mysql_query($query);
$num = mysql_numrows($result);

//Loop out code
$i=0;
while ($i < 1) {




$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$owner=@mysql_result($result,$i,"owner");
$name=@mysql_result($result,$i,"name");
$totalclicks=@mysql_result($result,$i,"totalclicks");
$showpoints=@mysql_result($result,$i,"showpoints");
$eggimage=@mysql_result($result,$i,"eggimage");
$code=@mysql_result($result,$i,"code");
$imageurl=@mysql_result($result,$i,"imageurl");
$usealternates=@mysql_result($result,$i,"usealternates");
$stud=@mysql_result($result,$i,"stud");
$gender=@mysql_result($result,$i,"gender");
$date=@mysql_result($result,$i,"date");
$lastbredtime=@mysql_result($result,$i,"lastbredtime");
$mother=@mysql_result($result,$i,"mother");
$father=@mysql_result($result,$i,"father");
$price=@mysql_result($result,$i,"price");
$mate=@mysql_result($result,$i,"mate");
$studfee= @mysql_result($result,$i,"studfee");
$royal= @mysql_result($result,$i,"royal");
$kp_price= @mysql_result($result,$i,"kp_price");
$item= @mysql_result($result,$i,"item");
$married= @mysql_result($result,$i,"married");
$honeymoon= @mysql_result($result,$i,"honeymoon");
$proposal= @mysql_result($result,$i,"proposal");
$prowess= @mysql_result($result,$i,"prowess");
$shop= @mysql_result($result,$i,"shop");
$value= @mysql_result($result,$i,"value");
$usealternates2=@mysql_result($result,$i,"usealternates2");
$usealternates3=@mysql_result($result,$i,"usealternates3");
$usealternates4=@mysql_result($result,$i,"usealternates4");
$usealternates5=@mysql_result($result,$i,"usealternates5");
$usealternates6=@mysql_result($result,$i,"usealternates6");
$usealternates7=@mysql_result($result,$i,"usealternates7");
$usealternates8=@mysql_result($result,$i,"usealternates8");
$usealternates9=@mysql_result($result,$i,"usealternates9");
$usealternates10=@mysql_result($result,$i,"usealternates10");
$usealternates11=@mysql_result($result,$i,"usealternates11");
$usealternates12=@mysql_result($result,$i,"usealternates12");
$usealternates13=@mysql_result($result,$i,"usealternates13");
$usealternates14=@mysql_result($result,$i,"usealternates14");
$usealternates15=@mysql_result($result,$i,"usealternates15");
$usealternates16=@mysql_result($result,$i,"usealternates16");
$usealternates17=@mysql_result($result,$i,"usealternates17");
$usealternates18=@mysql_result($result,$i,"usealternates18");
$usealternates19=@mysql_result($result,$i,"usealternates19");
$usealternates20=@mysql_result($result,$i,"usealternates20");
$usealternates21=@mysql_result($result,$i,"usealternates21");
$usealternates22=@mysql_result($result,$i,"usealternates22");
$usealternates23=@mysql_result($result,$i,"usealternates23");
$usealternates24=@mysql_result($result,$i,"usealternates24");
$usealternates25=@mysql_result($result,$i,"usealternates25");
$usealternates26=@mysql_result($result,$i,"usealternates26");
$usealternates27=@mysql_result($result,$i,"usealternates27");
$usealternates28=@mysql_result($result,$i,"usealternates28");
$usealternates29=@mysql_result($result,$i,"usealternates29");
$usealternates30=@mysql_result($result,$i,"usealternates30");
$usealternates31=@mysql_result($result,$i,"usealternates31");
$usealternates32=@mysql_result($result,$i,"usealternates32");
$usealternates33=@mysql_result($result,$i,"usealternates33");
$usealternates34=@mysql_result($result,$i,"usealternates34");
$usealternates35=@mysql_result($result,$i,"usealternates35");
$usealternates36=@mysql_result($result,$i,"usealternates36");
$usealternates37=@mysql_result($result,$i,"usealternates37");
$usealternates38=@mysql_result($result,$i,"usealternates38");
$usealternates39=@mysql_result($result,$i,"usealternates39");
$usealternates40=@mysql_result($result,$i,"usealternates40");
$usealternates41=@mysql_result($result,$i,"usealternates41");
$usealternates42=@mysql_result($result,$i,"usealternates42");
$usealternates43=@mysql_result($result,$i,"usealternates43");
$usealternates44=@mysql_result($result,$i,"usealternates44");
$usealternates45=@mysql_result($result,$i,"usealternates45");
$usealternates46=@mysql_result($result,$i,"usealternates46");
$usealternates47=@mysql_result($result,$i,"usealternates47");
$usealternates48=@mysql_result($result,$i,"usealternates48");
$usealternates49=@mysql_result($result,$i,"usealternates49");
$usealternates50=@mysql_result($result,$i,"usealternates50");
$status=@mysql_result($result,$i,"status");
$usealternates51=@mysql_result($result,$i,"usealternates51");
$usealternates52=@mysql_result($result,$i,"usealternates52");
$usealternates53=@mysql_result($result,$i,"usealternates53");
$usealternates54=@mysql_result($result,$i,"usealternates54");
$usealternates55=@mysql_result($result,$i,"usealternates55");
$usealternates56=@mysql_result($result,$i,"usealternates56");
$usealternates57=@mysql_result($result,$i,"usealternates57");
$usealternates58=@mysql_result($result,$i,"usealternates58");
$usealternates59=@mysql_result($result,$i,"usealternates59");
$usealternates60=@mysql_result($result,$i,"usealternates60");
$i++;
}

if($aid == $id){

$image = getcurrentimage($id); // Get the image for the adopt...

if($more == ""){

$article_title = "Setting for KK Sale ".$name;
$article_content = "<img src='".$image."'><br><br><br><br><br>
<center><b><a href='myadopts.php?act=kill&id=".$id."&more=confirm'><img src='templates/icons/dollar.gif' border=0> Sell ".$name." <img src='templates/icons/dollar.jpg' border=0></a></b><br><br>
<b><a href='myadopts.php'><img src='templates/icons/yes.gif' border=0> WAIT, DO NOT SELL ".$name."!  I've changed my mind. <img src='templates/icons/yes.gif' border=0></a></b></center><br>";




}
else if($more == "confirm"){

// Actually run the execution



$query = "UPDATE ".$prefix."owned_adoptables SET shop='yes' WHERE aid='".$id."'";



 
mysql_query($query);





$article_title = $lang_kill_title_complete;
$article_content = $lang_kill_complete;




}

else{

$article_title = "Invalid Action";
$article_content = "Invalid Action Specified";

}


}
else{

$article_title = $err_idnoexist;
$article_content = $err_idnoexist_text;

}
}
else{

$article_title = $err_idnoexist;
$article_content = $err_idnoexist_text;

}

}
else{

// No valid action specified :: show an error

$article_title = $lang_invalid_action_title;
$article_content = $lang_invalid_action;

}



}
else{

$article_title = $accden;
$article_content = $reqlogin;

} // End is logged in check else
Just replace the ENTIRE "Kill" code in Myadopts with that. On mine, that's the last code before the template.

You will need to add "shop" as a field in Owned_Adoptables --

shop varchar (120) utf8_general_ci Not NULL no

And if you don't have it already, "price":

price int (20) Not NULL 100


Last thing! ( I think lol )

Add this to MyAdopts, just above the new "Kill" code:

Code:
else if($act == "setprice"){

// We are pricing an adoptable

if(is_numeric($id)){

// Now we see if the adoptable actually exists...

$query = "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='$loggedinname' and aid='$id'";
$result = mysql_query($query);
$num = mysql_numrows($result);

//Loop out code
$i=0;
while ($i < 1) {


$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$owner=@mysql_result($result,$i,"owner");
$name=@mysql_result($result,$i,"name");
$totalclicks=@mysql_result($result,$i,"totalclicks");
$showpoints=@mysql_result($result,$i,"showpoints");
$eggimage=@mysql_result($result,$i,"eggimage");
$code=@mysql_result($result,$i,"code");
$imageurl=@mysql_result($result,$i,"imageurl");
$usealternates=@mysql_result($result,$i,"usealternates");
$stud=@mysql_result($result,$i,"stud");
$gender=@mysql_result($result,$i,"gender");
$date=@mysql_result($result,$i,"date");
$lastbredtime=@mysql_result($result,$i,"lastbredtime");
$mother=@mysql_result($result,$i,"mother");
$father=@mysql_result($result,$i,"father");
$price=@mysql_result($result,$i,"price");
$mate=@mysql_result($result,$i,"mate");
$studfee= @mysql_result($result,$i,"studfee");
$royal= @mysql_result($result,$i,"royal");
$kp_price= @mysql_result($result,$i,"kp_price");
$item= @mysql_result($result,$i,"item");
$married= @mysql_result($result,$i,"married");
$honeymoon= @mysql_result($result,$i,"honeymoon");
$proposal= @mysql_result($result,$i,"proposal");
$prowess= @mysql_result($result,$i,"prowess");
$shop= @mysql_result($result,$i,"shop");
$value= @mysql_result($result,$i,"value");
$usealternates2=@mysql_result($result,$i,"usealternates2");
$usealternates3=@mysql_result($result,$i,"usealternates3");
$usealternates4=@mysql_result($result,$i,"usealternates4");
$usealternates5=@mysql_result($result,$i,"usealternates5");
$usealternates6=@mysql_result($result,$i,"usealternates6");
$usealternates7=@mysql_result($result,$i,"usealternates7");
$usealternates8=@mysql_result($result,$i,"usealternates8");
$usealternates9=@mysql_result($result,$i,"usealternates9");
$usealternates10=@mysql_result($result,$i,"usealternates10");
$usealternates11=@mysql_result($result,$i,"usealternates11");
$usealternates12=@mysql_result($result,$i,"usealternates12");
$usealternates13=@mysql_result($result,$i,"usealternates13");
$usealternates14=@mysql_result($result,$i,"usealternates14");
$usealternates15=@mysql_result($result,$i,"usealternates15");
$usealternates16=@mysql_result($result,$i,"usealternates16");
$usealternates17=@mysql_result($result,$i,"usealternates17");
$usealternates18=@mysql_result($result,$i,"usealternates18");
$usealternates19=@mysql_result($result,$i,"usealternates19");
$usealternates20=@mysql_result($result,$i,"usealternates20");
$usealternates21=@mysql_result($result,$i,"usealternates21");
$usealternates22=@mysql_result($result,$i,"usealternates22");
$usealternates23=@mysql_result($result,$i,"usealternates23");
$usealternates24=@mysql_result($result,$i,"usealternates24");
$usealternates25=@mysql_result($result,$i,"usealternates25");
$usealternates26=@mysql_result($result,$i,"usealternates26");
$usealternates27=@mysql_result($result,$i,"usealternates27");
$usealternates28=@mysql_result($result,$i,"usealternates28");
$usealternates29=@mysql_result($result,$i,"usealternates29");
$usealternates30=@mysql_result($result,$i,"usealternates30");
$usealternates31=@mysql_result($result,$i,"usealternates31");
$usealternates32=@mysql_result($result,$i,"usealternates32");
$usealternates33=@mysql_result($result,$i,"usealternates33");
$usealternates34=@mysql_result($result,$i,"usealternates34");
$usealternates35=@mysql_result($result,$i,"usealternates35");
$usealternates36=@mysql_result($result,$i,"usealternates36");
$usealternates37=@mysql_result($result,$i,"usealternates37");
$usealternates38=@mysql_result($result,$i,"usealternates38");
$usealternates39=@mysql_result($result,$i,"usealternates39");
$usealternates40=@mysql_result($result,$i,"usealternates40");
$usealternates41=@mysql_result($result,$i,"usealternates41");
$usealternates42=@mysql_result($result,$i,"usealternates42");
$usealternates43=@mysql_result($result,$i,"usealternates43");
$usealternates44=@mysql_result($result,$i,"usealternates44");
$usealternates45=@mysql_result($result,$i,"usealternates45");
$usealternates46=@mysql_result($result,$i,"usealternates46");
$usealternates47=@mysql_result($result,$i,"usealternates47");
$usealternates48=@mysql_result($result,$i,"usealternates48");
$usealternates49=@mysql_result($result,$i,"usealternates49");
$usealternates50=@mysql_result($result,$i,"usealternates50");
$status=@mysql_result($result,$i,"status");
$usealternates51=@mysql_result($result,$i,"usealternates51");
$usealternates52=@mysql_result($result,$i,"usealternates52");
$usealternates53=@mysql_result($result,$i,"usealternates53");
$usealternates54=@mysql_result($result,$i,"usealternates54");
$usealternates55=@mysql_result($result,$i,"usealternates55");
$usealternates56=@mysql_result($result,$i,"usealternates56");
$usealternates57=@mysql_result($result,$i,"usealternates57");
$usealternates58=@mysql_result($result,$i,"usealternates58");
$usealternates59=@mysql_result($result,$i,"usealternates59");
$usealternates60=@mysql_result($result,$i,"usealternates60");


$i++;
}

if($aid == $id){

$image = getcurrentimage($id);

if($isfrozen != "yes"){

if($more == ""){

$article_title = "Set Price for " .$name;
$article_content = "<img src='".$image."'><br>".$lang_rename3."<br>

<form name='form1' method='get' action='myadopts.php'>
  <p>Kritter Price: 
    <input name='more' type='text' id='more'>
    <input name='id' type='hidden' id='id' value='".$id."'>
    <input name='act' type='hidden' id='act' value='setprice'>
</p>
  <p>
    <input type='submit' name='Submit' value='Set The Price'>
</p>
</form>";

}
else{

// We are pricing the adoptable

// The adoptable exists, so now we can price it...

$query = "UPDATE ".$prefix."owned_adoptables SET price='".$more."' WHERE aid='".$id."' and owner='".$loggedinname."'";
mysql_query($query);


$article_title = $lang_rename_success_title2;
$article_content = "<img src='".$image."'><br>".$lang_rename_success2."".$more.".  You can now manage ".$name." on the <a href='myadopts.php?act=manage&id=".$id."'>Krittery </a> page.";

}
}
else{

// We cannot rename a frozen adoptable...

$article_title = $lang_frozen_title;
$article_content = $lang_frozen."<a href='manage.php?act=freeze&id=".$id."&more=unfreeze'>unfreeze</a> ".$lang_frozen2;

}


}
else{

$article_title = $err_idnoexist;
$article_content = $err_idnoexist_text;

}
}
else{

$article_title = $err_idnoexist;
$article_content = $err_idnoexist_text;

}

}
I think that's it :)




NEW Mod: Image Splicer :)

This features a dropdown to choose two images from owned_adoptables--- you can obviously tweak this many ways!

This will take the image of the pet that comes up in the left box, and layer it with the image in the middle box--- the first image is TOTALLY changed, be aware of this, there is no undo for it!

Be smart and play around with this first!

soup.php

Code:
<?
include("inc/functions.php");
include("inc/config.php");

$themeurl = grabanysetting("themeurl");
$links = getlinks();
$ads = getads("any");
$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");
$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

function show_combo($table, $field, $id, $where = "")
{
global $prefix; 

  $result = mysql_query("select * from " . $prefix . $table . " " . $where . " order by " . $field);
  
  while ($row = mysql_fetch_array($result))
  {
    if ($row['aid'] == $id) $s = " selected"; else $s = "";
    echo "<option value='" . $row['aid'] . "'" . $s . ">" . $row[$field] . "</option>";
  }
}

function lookup($table, $field, $id)
{
global $prefix; 


  $result = mysql_query("select " . $field . " from " . $prefix . $table . " where aid ='".$id."' ");
  $row = mysql_fetch_array($result);
  return $row[0];
}

?>
<html>
<head>

<title>Make Soup!</title>
</head>
<body><img src="http://yoursite.com/images/yourimage.png">
<style>
body, table { font-family: verdana; font-size: 12px; }
</style>

<?php
if ($isloggedin != "yes") {
?>
You must login to use this page. Click <a href='http://www.yoursite.com'>HERE</a> to go Home Page
<?
}
else
{ 

  $archivo1 = "";
  $archivo2 = "";
  if (isset($_POST['send']) or isset($_POST['view']))
  {
    $archivo1 = lookup("owned_adoptables", "imageurl", $_POST['i1']);
    $archivo2 = lookup("owned_adoptables", "imageurl", $_POST['i2']);

    echo "<span style='font-size: 10px;'><br></span>";
    echo "<span style='font-size: 10px;'><br></span>";
    echo "<br>";
  }
  
?>

<p>TEXT TO INTRODUCE THE PAGE</p><b>

<form method=post enctype="multipart/form-data">
<input type=hidden name=MAX_FILE_SIZE value=2000000>
<table>
<tr>
  <td><b>1. PET I'D LIKE TO CHANGE, PERMANENTLY!:</b></td>
  <td><br>
    <select name=i1>
    <?
    $w = "WHERE owner = '$loggedinname'"; 
    show_combo("owned_adoptables", "name", $_POST['i1'], $w); 
    ?></select><br>
    <!-- <input type=file size=50 name=archivo1 value=''> -->
  </td>
</tr>
<tr><p></p>
  <td><br><br><b>2. PET I'M BORROWING FROM:</b></td>
  <td>
    <select name=i2>    
$w = "WHERE owner = '$loggedinname'"; 
<? show_combo("owned_adoptables", "name", $_POST['i2'],$w); ?></select>
    <!-- <input type=file size=50 name=archivo2 value=''> -->
  </td>
</tr>
<tr>
  <td colspan=2>
    <br>
   <p> <b><input type=submit value="VIEW PETS FIRST>>" name=view><br><br>    </p><br> <br>
<input type=submit value="ALTER MY PET - I AM READY!! >>" name=send>&nbsp;&nbsp;
<br></b>



  </td>
</tr>
<? if ($archivo1 != "") { ?>
<tr>
  <td colspan=2>
  <table>
  <tr>
  <td>
    <img style='border: 2px solid #ffaa00;' src='<? echo $archivo1; ?>' border=0 width=300>
  </td>
  <td width=20>&nbsp;</td><br><br>
  <td>  <p></p>
    <img style='border: 2px solid #ffaa00;' src='<? echo $archivo2; ?>' border=0 width=300>
  </td>
  <td width=20>&nbsp;</td>
  <? if (isset($_POST['send'])) { ?>
  <td>  
    <img style='border: 2px solid #ffaa00;' src='soup2.php?archivo1=<? echo urlencode($archivo1); ?>&archivo2=<? echo 

urlencode($archivo2); ?>' border=0 width=300>
  </td>
  <? } ?>
  </tr>
  </td>
</tr>
<? } ?>
</table>
</form>
<? } ?><img src="http://yoursite.com/yourimage">
</body>
</html>
soup2.php

Code:
<?
  $im1 = load_image($_GET['archivo1']);
  $im2 = load_image($_GET['archivo2']);

  header("Content-Type: image/png");

  $yf = max(ceil(imagesy($im1) * 300 / imagesx($im1)), ceil(imagesy($im2) * 300 / imagesx($im2)));

  $xf = imagesx($im2);
  $yf = imagesy($im2);
  
  $imclear1 = imagecreatetruecolor($xf, $yf);
  $imclear2 = imagecreatetruecolor($xf, $yf);

  if (imagecopyresampled($imclear1, $im1, 0, 0, 0, 0, $xf, $yf, imagesx($im1), imagesy($im1)) == false) echo "error al copiar<br>"; 
  //if (imagecopyresampled($imclear2, $im2, 0, 0, 0, 0, $xf, $yf, imagesx($im2), imagesy($im2)) == false) echo "error al copiar<br>"; 

  $cc = imagecolorallocate($im2, 255, 255, 255);
  @imagecolortransparent($im2, $cc);

  if (imagecopymerge($imclear1, $im2, 0, 0, 0, 0, $xf, $yf, 50) == false) echo "error al copiar<br>"; 

  @imagepng($imclear1);
  
  $a = explode("/", $_GET['archivo1']);
  $name = $a[count($a) - 1];
  @imagepng($imclear1, "images/" . $name);
  exit();
  
function load_image($file)
{

  $ext = explode(".", $file);
  $ext = strtolower($ext[count($ext)-1]);

  switch ($ext)
  {
    case "gif":
      $im = imagecreatefromgif($file);
      break;
    case "png":
      $im = imagecreatefrompng($file);
      break;
    case "jpg":
    case "jpeg":
      $im = imagecreatefromjpeg($file);
      break;
  }
  
  return $im;
   
}
      
?>
Attached Files
File Type: php show.php (15.1 KB, 4 views)
File Type: php swap_meet.php (11.5 KB, 2 views)
File Type: php doadoptab.php (14.4 KB, 1 views)
File Type: php abandon.php (18.3 KB, 1 views)
Reply With Quote
  #2  
Old 12-22-2010, 10:14 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: 329,584
Hall of Famer is on a distinguished road
Default RE: Anna's New Mods -- Merry Xmas - UPDATED !

Oh this looks really great Anna, glad you are willing to share all these. I am sure many people will find it useful, and some will be added for our future official releases too. ^^
Reply With Quote
  #3  
Old 12-23-2010, 06:04 AM
PokePets PokePets is offline
Premium Member
 
Join Date: Jun 2010
Posts: 228
Gender: Male
Credits: 19,201
PokePets
Default RE: Anna's New Mods -- Merry Xmas - UPDATED !

I gone try this out, already thank you =D
__________________________________________________ _________________________
Reply With Quote
  #4  
Old 12-24-2010, 05:23 PM
sensacion sensacion is offline
Member
 
Join Date: Mar 2010
Posts: 24
Credits: 2,713
sensacion
Default RE: Anna's New Mods -- Merry Xmas - UPDATED !

thanks for your input, I'll go try it, and we are awaiting the compilation of Hamer Hall promised
Reply With Quote
  #5  
Old 12-24-2010, 05:53 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: 329,584
Hall of Famer is on a distinguished road
Default RE: Anna's New Mods -- Merry Xmas - UPDATED !

Well it is ready to be released. I actually have BMR's permission to make it an official release now, so not an unofficial one. XD You can download this one from megaupload already if you dont want to wait for BMR to announce this official release later:
http://www.megaupload.com/?d=5KYLHQRK

And Anna I think your scripts can be included in future releases. ^^
Reply With Quote
  #6  
Old 12-24-2010, 06:40 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: 329,584
Hall of Famer is on a distinguished road
Default RE: Anna's New Mods -- Merry Xmas - UPDATED !

And btw Anna, whats the difference with your adandon/re-adoption system compared to Bokkun's? Just curious.
Reply With Quote
  #7  
Old 12-24-2010, 07:09 PM
redheadturkey redheadturkey is offline
Senior Member
 
Join Date: Jan 2010
Posts: 136
Gender: Female
Credits: 10,147
redheadturkey is on a distinguished road
Default RE: Anna's New Mods -- Merry Xmas - UPDATED !

Quote:
Originally Posted by Hall of Famer
And btw Anna, whats the difference with your adandon/re-adoption system compared to Bokkun's? Just curious.
Mine is just an add on to that, basically, that allows an actual way to buy and sell the pets in a functional setting ---- it allows for the use of the 'money' mod, and so far I've had it work just great! :)

I use two currencies, basing the second on the money mod as well, and I have two forms of 'swap meet' that we offer. It shows what all is avail and then works with abandon to make the purchase happen !

My designation for being avail for sale is the 'shop' field I have added for owned_adoptables ---- yes or no being the choices--- then I let members choose to price and sell, with a form for that in My adopts !

Check out Kritter Kingdom and you will see it in action! :)
Reply With Quote
  #8  
Old 12-24-2010, 07:25 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: 329,584
Hall of Famer is on a distinguished road
Default RE: Anna's New Mods -- Merry Xmas - UPDATED !

Oh two currencies? Whats the exchange rate for them? ^^

So you actually integrate the cash and abandon system? That sounds so great! I was wondering if its possible to create a bank mod base on cash mod? Just curious. ^^

And Kritter Kingdom looks so amazing, nice job on that Anna. XD
Reply With Quote
  #9  
Old 12-24-2010, 07:30 PM
redheadturkey redheadturkey is offline
Senior Member
 
Join Date: Jan 2010
Posts: 136
Gender: Female
Credits: 10,147
redheadturkey is on a distinguished road
Default RE: Anna's New Mods -- Merry Xmas - UPDATED !

thank youuu!! :)


Yes they are all integrated! I would love to do a bank system --- thats actually a great idea! But yes its a real way to buy and sell Pets --- I had to figure out a way to get that to work so just plugged away at it!


A Kritter Kash is worth about 50,000 Kritter Points! KK and KP hehehe.

Wait no thats backwards!!

the other way around hahahah!
Reply With Quote
  #10  
Old 12-24-2010, 07:46 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: 329,584
Hall of Famer is on a distinguished road
Default RE: Anna's New Mods -- Merry Xmas - UPDATED !

Yeah, thank you for considering Anna. I will still need dev staff and members to brainstorm and come out what we need for an adoptable system. Then I will be assigning invididual job to each coder, should be fun. ^^
Reply With Quote
Reply

Thread Tools
Display Modes

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
Certain Items Won't Be Added? AlexC Questions and Supports 4 03-27-2012 03:22 PM
Anna's Mods :) redheadturkey Mys v1.1.x Mods 16 02-15-2011 04:39 PM
Updated banlist Hall of Famer Other Chat 23 01-15-2011 09:37 PM
Adoptables not being added Ashje Questions and Supports 2 12-16-2009 11:35 PM
Modification Out-Dated New one will be added. Bloodrun Addons/Mods Graveyard 19 05-23-2009 01:52 AM


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

Currently Active Users: 544 (0 members and 544 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