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
  #21  
Old 01-24-2011, 02:56 AM
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: 333,770
Hall of Famer is on a distinguished road
Default

I was talking about the actual contents in it, like this:

__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #22  
Old 01-24-2011, 03:24 AM
RoconzaArt's Avatar
RoconzaArt RoconzaArt is offline
Member
 
Join Date: Jan 2011
Location: NJ Shore (and proud of it)
Posts: 479
Gender: Female
Credits: 45,915
RoconzaArt is an unknown quantity at this point
Default

My MYSQL look different so I can screen shot it easy.

http://fc08.deviantart.net/fs71/f/20...in-d37x8i9.png
__________________
Reply With Quote
  #23  
Old 01-24-2011, 03:27 AM
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: 333,770
Hall of Famer is on a distinguished road
Default

umm this is so strange, I cant seem to find out why you are having such a problem on your site at this point. Your script files look just fine, or maybe I could be wrong. Did you happen to install some other addons that may cause compatibility issue against this one? If so, I may try to recode doadopt.php and nadopt.php for you tomorrow when I have time. I am sorry you are still having problem with this modification, it is supposed to be an easy edit.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #24  
Old 01-24-2011, 03:34 AM
RoconzaArt's Avatar
RoconzaArt RoconzaArt is offline
Member
 
Join Date: Jan 2011
Location: NJ Shore (and proud of it)
Posts: 479
Gender: Female
Credits: 45,915
RoconzaArt is an unknown quantity at this point
Default

Wait I did install fadillzzz's Secure Random Adoption Process mod come to think of it.

http://www.mysidiaadoptables.com/for...ead.php?t=1783
__________________
Reply With Quote
  #25  
Old 01-24-2011, 03:42 AM
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: 333,770
Hall of Famer is on a distinguished road
Default

I see, I will check for compatibility of his script with mine, perhaps this is what causes your problem? Lemme see if I can find out something for you then Roconza.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #26  
Old 01-24-2011, 08:06 AM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,319
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

That's probably the issue. Fadilzzz's script replaces the doadopt.php if you use the fix for the promocodes, and he may not be counting correctly.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #27  
Old 01-24-2011, 09:17 AM
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: 333,770
Hall of Famer is on a distinguished road
Default

I will take a look into his script and see what causes the incompatibility issue. It may not be the cause of Roconza's problem anyway, but I should give it a shot.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #28  
Old 01-24-2011, 10:08 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,860
fadillzzz is an unknown quantity at this point
Default

Quote:
Originally Posted by RoconzaArt View Post
Wait I did install fadillzzz's Secure Random Adoption Process mod come to think of it.

http://www.mysidiaadoptables.com/for...ead.php?t=1783
You forgot to change the method for passing the variable to doadopt.php.
Make a backup of your current doadopt.php and use this code instead
PHP Code:
 <?php

// **********************************************************************
// Mysidia Adoptables Script: doadopt.php
// Copyright 2011 Mysidia Adoptables staff team
// For help and support: http://www.mysidiaadoptables.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// This file actually processes the adoption of a pet...
// **********************************************************************

$id $_SESSION["id"];
$id preg_replace("/[^a-zA-Z0-9s]/"""$id);
$id secure($id);

$promocode $_REQUEST["promocode"];
$promocode preg_replace("/[^a-zA-Z0-9\\040.]/"""$promocode);
$promocode secure($promocode);

$name $_REQUEST["name"];
$name preg_replace("/[^a-zA-Z0-9\\040.]/"""$name);
$name secure($name);  
$genderratio $_GET["genderratio"];
$genderratio preg_replace("/[^a-zA-Z0-9\\040.]/"""$genderratio);
$genderratio secure($genderratio); 

if(
$isloggedin == "yes"){

// I guess the first thing to do is see if we have a valid adoptable ID submitted...

if($id == "" or !is_numeric($id)){

$article_title $err_idnoexist;
$article_content $err_idnoexist_text;

}
else{

// The adoptable ID appears to be valid, so we need to double check that it is valid by pulling up the adoptable in the DB

$query "SELECT * FROM ".$prefix."adoptables WHERE id='$id'";
$result mysql_query($query);
$num mysql_numrows($result);

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

$aid=@mysql_result($result,$i,"id"); //The adoptable's ID
$type=@mysql_result($result,$i,"type");
$description=@mysql_result($result,$i,"description");
$eggimage=@mysql_result($result,$i,"eggimage");
$genderratio=@mysql_result($result,$i,"genderratio"); 

$i++;
}

if(
$id == $aid){

// The ID submitted matches an existing adoptable type

$canadopt canadopt($aid"adopting"$promocode);

// If we can adopt this creature, do the adoption
// Otherwise we show an error...

if($canadopt == "yes"){

// **********************************************************************
// BEGIN the actual adoption process
// **********************************************************************

// First we see if we have a custom name.
// If not, we use the default name

if($name == ""){
$name $type;
}

//The gender mod
if($genderratio >= and $genderratio 101) {
$tempgender rand(0100);
if(
$tempgender >= and $tempgender $genderratio) {
$gender "Female";
unset(
$tempgender);
}
else {
$gender "Male";
unset(
$tempgender);
}
}
else {
$gender "Genderless";
}  

// Now we determine if we are using alternate images or not

$alts getaltstatus($id00);

// Now we actually process the adoption and add it to the database...
// We need a unique code for the adoptable so we can show it to the user when we're done here...

$code rand(120000);


mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','fortrade','no','$gender')");

// Adoption complete, show the user a confirmation screen...
// We need to show the adoptable info from the database...

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

//Loop out code
$i=0;
while (
$i 1) {
 
$id=@mysql_result($result,$i,"aid"); 


$i++;
}


$article_title $name." adopted successfully";
$article_content "<img src='".$eggimage."'><br>".$congrats1." ".$name.".  You can now manage ".$name." on the 
<a href='myadopts.php'>My Adopts</a> page.<br><br><b><a href='myadopts.php?act=manage&id="
.$id."'>Click Here to Manage ".$name."</a><br>
<a href='myadopts.php?act=bbcode&id="
.$id."'>Click Here to get BBCodes / HTML Codes for ".$name."</a></b><br><br>
Be sure and <a href='levelup.php?id="
.$id.">feed</a> ".$name." with clicks so that they grow!";



// **********************************************************************
// END the actual adoption process
// **********************************************************************


}
else{

$article_title $accden;
$article_content $adoptnoper;

}


// End the if for if $id == $aid
else{

// Adoptable does not exist, show an error.

$article_title $err_idnoexist;
$article_content $err_idnoexist_text;

// End the else for if $id == $aid


// End the valid ID input else test statement (bulk of code goes above here)


// End the log in check IF
else{

// Guests cannot adopt pets, so why bother...
$article_title $guesttitleerror;
$article_content $guesterror;

// End the log in check ELSE 

// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>
Also please note that I've added a fix for people who use promo code on their adoptables site.
Reply With Quote
  #29  
Old 01-24-2011, 10:12 AM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,319
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Thank you fadillzzz
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #30  
Old 01-24-2011, 10:40 AM
RoconzaArt's Avatar
RoconzaArt RoconzaArt is offline
Member
 
Join Date: Jan 2011
Location: NJ Shore (and proud of it)
Posts: 479
Gender: Female
Credits: 45,915
RoconzaArt is an unknown quantity at this point
Default

I dunno why but it still will not work for me.
__________________
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
Mys v1.3.3 Gender Ratio Mod for Mys v1.3.3 Hall of Famer Mys v1.3.x Mods 17 05-23-2019 03:34 PM
Mys v1.3.2 Gender Ratio Mod for Mys v1.3.2 Hall of Famer Mys v1.3.x Mods 6 01-08-2013 02:02 PM
Mys v1.3.1 Gender Ratio Mod for v1.3.1 Hall of Famer Mys v1.3.x Mods 15 08-17-2012 03:25 AM
Hall of Famer's HP system Hall of Famer Mys v1.1.x Mods 13 04-25-2012 07:08 AM
Hall of Famer's Gender Ratio Mod v1.2 Hall of Famer Mys v1.2.x Mods 45 04-02-2012 12:42 PM


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

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