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 03-27-2012, 02:53 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: 683,071
Hall of Famer is on a distinguished road
Default

Well it isnt really difficult, just find this part in your script:

PHP Code:
             else{
                        
// We are renaming the adoptable

                        // The adoptable exists, so now we can rename it...
                        
$adopts->query("UPDATE {$prefix}owned_adoptables SET name='{$more}' WHERE aid='{$id}' and owner='{$loggedinname}'");

                        
$article_title $lang_rename_success_title;
                        
$article_content "<img src='{$image}'><br />{$lang_rename_success}{$more}
                                            You can now manage 
{$more} on the <a href='myadopts.php?act=manage&id={$id}'>My Adopts</a> page";
                    } 
And replace with:

PHP Code:
             else{
                    
$stmt $adopts->query("SELECT * FROM {$prefix}owned_adoptables WHERE name='{$more}' and aid='{$id}'");
                    
$row $stmt->fetchObject();
                    if(!
is_object($row)){ 
                       
// The name has not yet been used, we are good to go!
                        
$adopts->query("UPDATE  {$prefix}owned_adoptables SET name='{$more}' WHERE aid='{$id}' and  owner='{$loggedinname}'");

                        
$article_title $lang_rename_success_title;
                        
$article_content "<img src='{$image}'><br />{$lang_rename_success}{$more}
                                            You can now manage 
{$more}  on the <a href='myadopts.php?act=manage&id={$id}'>My  Adopts</a> page";
                     }
                     else{
                      
// The name is being used by someone else, so display an error message...
                        
$article_title "An error has occurred";
                        
$article_content "It appears that the name {$more} is taken already.";
                     }
                  } 
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
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
Mys v1.3.4 Know Gender of New Pets Before Naming Kyttias Mys v1.3.x Mods 4 08-04-2018 01:13 AM
Show Gender while Naming Pet & Name Promo Code Pets Kyttias Questions and Supports 5 07-11-2014 02:12 PM
Naming and Changing Help whispwill Suggestions and Feature Requests 10 08-29-2009 02:58 PM


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

Currently Active Users: 4195 (0 members and 4195 guests)
Threads: 4,082, Posts: 32,047, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636