Jump to content

Search the Community

Showing results for tags 'Editor'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • WebFlake
    • Announcements and Updates
    • WebFlake Support
    • Member Introductions
    • Off-topic Lounge
    • Archives
  • Webmasters
    • Webmaster Lounge
    • Marketplace (Hire, Buy, Sell, Trade)
    • Coupons and Deals
    • Hosting
    • Website and Graphics Design
    • Website Showcase
  • Invision Community Suite
    • Invision Community Suite 4.7
    • Invision Support
    • Invision Requests
    • Invision Tutorials
    • Invision Beta
  • XenForo
    • XenForo 2.2
    • XenForo Support
    • XenForo Requests
    • XenForo Tutorials
  • WordPress
    • WordPress Content
    • WordPress Support
    • WordPress Requests
    • WordPress Tutorials
  • Unsupported Software
    • IPB 3.4 Legacy
    • IPS 4.x Legacy

Categories

  • Invision Community Suite 4.7
    • Applications and Plugins
    • Themes
    • Translations
    • Invision Extras
  • Invision Community Suite 4.6
    • Applications and Plugins
    • Themes
    • Translations
    • Invision Extras
  • Invision Community Suite 4.5
    • Applications and Plugins
    • Themes
    • Translations
    • Invision Extras
  • XenForo 2.2
    • Add-ons
    • Styles
    • Translations
    • Miscellaneous
  • XenForo 2.1
    • Add-ons
    • Styles
    • Translations
    • Miscellaneous
  • Wordpress
    • Themes
    • Plugins
  • ThemeForest
    • HTML
    • CMS
    • UI Design
    • JavaScript Code
  • CodeCanyon
    • PHP Scripts
    • JavaScript
    • CSS
    • HTML5
  • Graphics & Design
    • Emoticons & Smileys
    • Ranks & Badges
    • PSD & AI Designs
  • Unsupported Software
    • IPB 3.4
    • Invision Community Suite 4.4
    • Invision Community Suite 4.3
    • IPS Community Suite 4.2
    • IPS Community Suite 4.1
    • XenForo 2.0
    • MyBB 1.8

Product Groups

  • WebFlake Creative Designs
  • WebFlake Donation Bundles

Blogs


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Version

Found 3 results

  1. I installed a Shoutbox Bot to remind people to follow the rules and also to promote the forums VIP package. But when I go to add the messages I run into this error. messages.php <?php /** * @author -RAW- * @copyright 2012 * @link http://invisionlegacy.com * @filesource Shoutbox Bot * @version 1.0.1 */ if ( !defined('IN_ACP') ) { print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files."; exit(); } class admin_shoutbox_bot_messages_messages extends ipsCommand { public $html; public function doExecute( ipsRegistry $registry ) { /* Load Skin and Lang */ $this->html = $this->registry->output->loadTemplate( 'cp_skin_messages' ); $this->html->form_code = '&amp;module=messages&amp;section=messages'; $this->html->form_code_js = '&module=messages&section=messages'; $this->registry->class_localization->loadLanguageFile( array( 'admin_shoutbox_bot' ), 'shoutbox_bot' ); switch ( $this->request['do'] ) { case 'add': $this->form('add'); break; case 'doadd': $this->form('doadd'); break; case 'edit': $this->form('edit'); break; case 'doedit': $this->form('doedit'); break; case 'delete': $this->form('delete'); break; case 'manage': default: //$this->registry->output->html .= $this->html->manage($form); $this->manage(); break; } /* Output */ $this->registry->output->html_main .= $this->registry->output->global_template->global_frame_wrapper(); $this->registry->output->sendOutput(); } public function manage() { $start = intval( $this->request['st'] ) >= 0 ? intval( $this->request['st'] ) : 0; $count = $this->DB->buildAndFetch( array( 'select' => 'count(*) as cnt', 'from' => 'shoutbox_bot_messages' ) ); $pagination = $this->registry->output->generatePagination( array( 'totalItems' => $count['cnt'], 'itemsPerPage' => 10, 'currentStartValue' => $start, 'baseUrl' => $this->settings['base_url'] . "&" . $this->html->form_code, ) ); $this->DB->build( array('select' => 's.*', 'from' => array( 'shoutbox_bot_messages' => 's' ), 'order' => 's.shout_id DESC', 'limit' => array( $start, 10 ), 'add_join' => array( 0 => array( 'select' => 'm.member_id, m.member_group_id, m.members_display_name, m.members_seo_name, mgroup_others', 'from' => array( 'members' => 'm' ), 'where' => 'm.member_id=s.shout_mid', 'type' => 'left'))) ); $this->DB->execute(); /* Any PM? */ if ( $this->DB->getTotalRows() ) { while ( $row = $this->DB->fetch() ) { $allShouts[] = $row; } } /* Show page */ $this->registry->output->html .= $this->html->manage( $allShouts, $pagination ); } public function form( $type = 'add' ) { $form = array(); $st = $this->request['st']; if ( $type == 'add' ) { $formContent['shout_message'] = IPSText::getTextClass( 'editor' )->showEditor( $data['shout_message'], 'shout_message' ); $formContent['shout_enable'] = $this->registry->output->formYesNo( 'shout_enable', 1 ); $this->registry->output->html .= $this->html->add( $formContent ); } if ( $type == 'doadd' ) { $classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/editor/composite.php', 'classes_editor_composite' ); $_editor = new $classToLoad(); $_editor->setAllowHtml( $this->memberData['g_dohtml'] ); $_editor->setRteEnabled( true ); $text = $_editor->process( $_POST['shout_message'] ); /* Parse post */ IPSText::getTextClass('bbcode')->parse_smilies = 1; IPSText::getTextClass('bbcode')->parse_nl2br = 1; IPSText::getTextClass('bbcode')->parse_html = 0;//$this->memberData['g_dohtml']; IPSText::getTextClass('bbcode')->parse_bbcode = 1; $text = IPSText::getTextClass( 'bbcode' )->preDbParse( $text ); $saveArray = array( 'shout_message' => $text, 'shout_enable' => $this->request['shout_enable']); $this->DB->insert( 'shoutbox_bot_messages', $saveArray ); $message = "{$this->lang->words['sbBot_msgadded']}"; $this->registry->output->redirect( $this->settings['base_url'].$this->html->form_code. "&amp;st=" . $this->request['st'], $message ); } if ( $type == 'delete' ) { /* INIT */ $id = intval( $this->request['id'] ); if ( ! $id ) { $this->registry->output->showError( $this->lang->words['errorNoId'], 'MP001' ); } /* Delete it */ $this->DB->delete( 'shoutbox_bot_messages', 'shout_id='.$id ); /* Set message */ $message = "{$this->lang->words['sbBot_msgdeleted']}"; $this->registry->output->redirect( $this->settings['base_url'].$this->html->form_code. "&amp;st=" . $this->request['st'], $message ); $this->registry->output->redirect( $this->settings['base_url'].$this->html->form_code. "&amp;st=" . $this->request['st'], $message ); } if ( $type == 'edit' ) { $data = $this->DB->buildAndFetch( array( 'select' => '*', 'from' => 'shoutbox_bot_messages', 'where' => "shout_id='".$this->request['id']."'",) ); $formContent['shout_enable'] = $this->registry->output->formYesNo( 'shout_enable', $data['shout_enable'] ); $formContent['shout_message'] = IPSText::getTextClass( 'editor' )->showEditor( $data['shout_message'], 'shout_message' ); $this->registry->output->html .= $this->html->edit( $formContent,$memb ); } if ( $type == 'doedit') { $messageId = intval( $this->request['id'] ); /* Set BBCode parser */ $classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/editor/composite.php', 'classes_editor_composite' ); $_editor = new $classToLoad(); $_editor->setAllowHtml( $this->memberData['g_dohtml'] ); $_editor->setRteEnabled( true ); $text = $_editor->process( $_POST['shout_message'] ); /* Parse post */ IPSText::getTextClass('bbcode')->parse_smilies = 1; IPSText::getTextClass('bbcode')->parse_nl2br = 1; IPSText::getTextClass('bbcode')->parse_html = 0;//$this->memberData['g_dohtml']; IPSText::getTextClass('bbcode')->parse_bbcode = 1; $text = IPSText::getTextClass( 'bbcode' )->preDbParse( $text ); $saveArray = array( 'shout_message' => $text, 'shout_enable' => $this->request['shout_enable']); $this->DB->update( 'shoutbox_bot_messages', $saveArray, 'shout_id=' . $messageId ); $message = "{$this->lang->words['sbBot_msgupdated']}"; $this->registry->output->redirect( $this->settings['base_url'].$this->html->form_code. "&amp;st=" . $this->request['st'], $message ); } } }
  2. This will enable you to change the default white background of the different editors to match your skin. Standard Editor Login to the Admin CP Click on the Look & Feel Tab Click on the Skin name Click on CSS Click on ipb_editor.css Find this code: #ipboard_body .input_rte { width: 100%; height: 250px;} Change the code to (replacing the colours with the hex value of your choice): #ipboard_body .input_rte { background-color: #000; color: #fff; width: 100%; height: 250px;} Rich Text Editor Open the folder publicjs Open the file ips.editor.js (save a copy in case you make a mistake) Find the following (line 1100 if not changed) ips_frame_html += " background: #FFFFFF;n"; Add this underneath: ips_frame_html += " color: #fff;n"; Your code should look like this (replacing the colours with the hex value of your choice): ips_frame_html += " background: #000;n"; ips_frame_html += " color: #fff;n"; Save the file. You will need to hard refresh (Ctrl + F5) on Windows.
  3. hey does anyone know how to remove the shoutbox copyright...
×
×
  • Create New...