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 12-02-2009, 12:50 PM
gjac1 gjac1 is offline
Member
 
Join Date: Feb 2009
Posts: 101
Credits: 8,461
gjac1
Default Edit No Name ??[Answered]

If a member chooses not to name there adoptable when adopting it, the script will just name it what name to creator gave it.

Is there any way to change it so that if a member adopts something but doesnt name it, it give it a defualt name of something like "Egg" ??

Thanks
Reply With Quote
  #2  
Old 12-02-2009, 01:35 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,283
Arianna will become famous soon enough
Default RE: Edit No Name ??

In my install, it automatically gives it the name of the pet species, if there isn't a name inputted. I guess you could add, on the doadopt, something, but I'm too busy now. xD Good luck.
Reply With Quote
  #3  
Old 12-02-2009, 01:50 PM
gjac1 gjac1 is offline
Member
 
Join Date: Feb 2009
Posts: 101
Credits: 8,461
gjac1
Default RE: Edit No Name ??

Thanks for the reply Arianna :)

In my install it also give it the name of the species, but thats what i want to change, if no name is inputted i want it to be called something like "Egg" instead of the species.

Thanks again
Reply With Quote
  #4  
Old 12-02-2009, 04:24 PM
Haylzee Haylzee is offline
Member
 
Join Date: Jun 2009
Posts: 34
Credits: 537
Haylzee
Default RE: Edit No Name ??

On your doadopt.php it should contain a section of code that says if the name is ' ' (blank) the name = type of adoptable, like this:

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

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

I think you could just change $type; to "egg"; and it would work?
Reply With Quote
  #5  
Old 12-02-2009, 04:25 PM
Fireballchad Fireballchad is offline
Member
 
Join Date: Aug 2009
Posts: 49
Credits: 8,195
Fireballchad
Default RE: Edit No Name ??

alright in your doadopt.php file around line 129 is this:
PHP Code:
if($name == ""){
$name $type;


You should change $type to whatever you want
Example:
PHP Code:
if($name == ""){
$name "Egg";

You need the "" in order for it to work :D cheers let me know if this helps![hr]
Quote:
Originally Posted by Haylzee
On your doadopt.php it should contain a section of code that says if the name is ' ' (blank) the name = type of adoptable, like this:

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

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

I think you could just change $type; to "egg"; and it would work?
Yay for posting at the same time basicly :) lol
Reply With Quote
  #6  
Old 12-03-2009, 05:23 AM
gjac1 gjac1 is offline
Member
 
Join Date: Feb 2009
Posts: 101
Credits: 8,461
gjac1
Default RE: Edit No Name ??

I am sure i tried this and it didnt work...but it worked perfectly, thank you both :)

I think i might have missed out the "" around the word egg :s
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
How to edit both menu's? Skaiya Questions and Supports 6 04-01-2014 03:03 PM
How to edit Side Bar? Abronsyth Questions and Supports 6 12-11-2012 04:09 PM
My art edit solskenn Art Gallery 6 04-03-2012 09:58 PM
Cant edit levels... kristhasirah Questions and Supports 3 09-11-2011 06:01 PM
Where to edit content and side-menu? [Answered] Quillink Questions and Supports 2 06-04-2009 03:26 PM


All times are GMT -5. The time now is 04:33 AM.

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