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 06-17-2015, 08:04 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,613
Infernette is on a distinguished road
Default Where is the formatting for form buttons?

I need to remove the <br>'s that are automagically placed after buttons in forms; what file handles their formatting? I checked the classes for form and button as well as the css files, and didn't find anything on formatting for the buttons. I haven't actively meddled in forms up until now but my current project requires some mild edits...
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #2  
Old 06-17-2015, 09:13 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 86,937
Kyttias is on a distinguished road
Default

I'll ask HoF directly about this, but the fastest solution I can think of is to find where the form is being built. You might find something like:

PHP Code:
$profileForm->add(new Button("Save Changes""submit""submit")); 
Which is rendering something like this:

HTML Code:
<button id="submit" value="submit" class="btn" name="submit" type="submit">Save Changes
</button>
<br>
I would take it and change it from adding a new Button to adding a new Comment instead, and instead include the html I want rendered exactly (being sure to use single quotes ' inside of double quotes " otherwise things go haywire):

PHP Code:
$profileForm->add(new Comment("<button id='submit' value='submit' class='btn' name='submit' type='submit'>Save Changes</button>"FALSE)); 
Normally, Comments also have linebreaks after them, but setting a final parameter of FALSE negates this. I can't seem to find anything similar to negate the addition of a linebreak after other elements. =T
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #3  
Old 06-17-2015, 09:53 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,613
Infernette is on a distinguished road
Default

Yep! Thank you. I'll still keep searching for all of the locations since I want to know where its rendering for later purposes. :)
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #4  
Old 06-17-2015, 09:57 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: 327,325
Hall of Famer is on a distinguished road
Default

The better way to do this is as follows:

PHP Code:
$submit = new Button("Save Changes""submit""submit");
$submit->setLineBreak(FALSE);
$profileForm->add($submit); 
But of course, Kyttias' approach will work too.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 06-18-2015, 06:47 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,613
Infernette is on a distinguished road
Default

That could be useful; thanks!
__________________
No, I have no idea what I'm doing. But it works. Barely.
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
Whos Online formatting issue LucasA33 Questions and Supports 2 01-08-2014 02:01 PM
Affiliate buttons? Bibarel Feedback and Suggestions 0 01-16-2012 01:46 PM
Better Messages Buttons Inf3rnal Mys v1.2.x Mods 2 10-28-2011 11:11 AM
Submit form Cindykt Questions and Supports 2 08-30-2011 07:47 AM
Alonaria - Human Form alonaria Art Gallery 6 02-26-2011 11:09 AM


All times are GMT -5. The time now is 05:10 AM.

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