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, 09: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: 27,751
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, 10:13 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 111,618
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, 10: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: 27,751
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, 10: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: 493,528
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, 07: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: 27,751
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


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 03:01 PM
Affiliate buttons? Bibarel Feedback and Suggestions 0 01-16-2012 02:46 PM
Better Messages Buttons Inf3rnal Mys v1.2.x Mods 2 10-28-2011 12:11 PM
Submit form Cindykt Questions and Supports 2 08-30-2011 08:47 AM
Alonaria - Human Form alonaria Art Gallery 6 02-26-2011 12:09 PM


All times are GMT -5. The time now is 12:24 AM.

Currently Active Users: 1168 (0 members and 1168 guests)
Threads: 4,081, Posts: 32,032, 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