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 10-10-2014, 11:13 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 111,645
Abronsyth is on a distinguished road
Default Remove WYSIWYG Editor

I'm hoping this is pretty simple.

I'd like to remove the "What you see is what you get" editor from the shoutbox and private messages.

I just don't want users to use obnoxious fonts sizes and colors/etc, so I'd prefer it to be simplified, like the pet bio/etc :)

Thanks,
Abron
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #2  
Old 10-13-2014, 08: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: 327,302
Hall of Famer is on a distinguished road
Default

You just have to replace the HTML form that contains WYGIWYS editor to a standard HTML textarea. It should be doable.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 10-24-2014, 09:48 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 111,645
Abronsyth is on a distinguished road
Default

Having trouble figuring out which files to look at. I've checked the base files, lang, and view for both messages and shoutbox, but couldn't find anything related.

What files should I be looking in..?
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #4  
Old 12-29-2014, 01:59 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 111,645
Abronsyth is on a distinguished road
Default

Still haven't figured out where to change this, if anyone possibly knows.
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #5  
Old 12-29-2014, 03:51 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,255
IntoRain is on a distinguished road
Default

In shoutboxview.php:
PHP Code:
    public function index(){
        
$mysidia Registry::get("mysidia");
        
$document $this->document;
        
$document->setTitle($this->lang->title);
        
$document->addLangvar($this->lang->default);
        
        
$shoutbox $this->getField("shoutbox");
        
$this->display($shoutbox);        
        
//$ckEditor = $shoutbox->editor;//comment or delete this       
        
if($mysidia->input->post("comment")){
            
$document->addLangvar($this->lang->complete);
            
$this->refresh(5);
            return;
        }

        
$shoutboxForm = new Form("shoutbox""shoutbox""post");
        
$shoutboxForm->add(new Comment($mysidia->lang->noticeTRUE));//change this to TRUE to make a linebreak
                 //comment or delete this:
        //$shoutboxForm->add(new Comment($ckEditor->editor("comment", "CKEditor for Mys v1.3.4")));
      
        
$shoutTextArea = new TextArea("comment"""445);//add this line
        
$shoutboxForm->add($shoutTextArea);//add this line
        
$shoutboxForm->add(new Button("Shout It!""submit""submit"));
        
$document->add($shoutboxForm);
    } 
I commented the changes, so it should be easy to find them ^^
__________________


asp.net stole my soul.
Reply With Quote
  #6  
Old 12-29-2014, 06:11 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 111,645
Abronsyth is on a distinguished road
Default

Ah, thank you very much! And the comments should help me fix up the other areas, as well!

Thank you <3

Edit: Yes! Managed to get messages fixed up, as well! Commented code is amazing, haha, thank you again!
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 12-30-2014 at 10:47 AM.
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
PHP in editor? SilverDragonTears Questions and Supports 5 05-02-2012 10:43 PM
Page Editor Glitches AlexC Questions and Supports 11 04-28-2012 08:44 AM
Remove Sidebar? SilverDragonTears Questions and Supports 0 06-03-2011 08:42 PM
Remove Adoptables? Blues Questions and Supports 3 07-28-2009 03:08 PM
Remove Search Bar LilPixie Questions and Supports 3 02-12-2009 04:26 PM


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

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