Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 12-23-2016, 06:09 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,087
parayna is on a distinguished road
Default

Yeah, they are ahah XD No problem! ^_^
Reply With Quote
  #12  
Old 05-03-2017, 09:08 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,041
kristhasirah
Default

if you change the $petbioForm->buildTextArea with

PHP Code:
        $petbioForm->buildTextArea("petbio",$bio)->buildButton("Change Bio""submit""submit"); 
the current bio will be displayed in the text box that way if the user want to edit instead of rewriting the full bio
for this code to work you must also add the stripslashes code posted by parayna =)

in the end it must look like this:
PHP Code:
        $bio stripslashes($adopt->getPetbio()); 
        
$petbioForm = new FormBuilder("petbioform""""post");
        
$petbioForm->buildTextArea("petbio",$bio)->buildButton("Change Bio""submit""submit");
        
$document->add($petbioForm); 
in case i dint explain well ^^
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


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

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