Description Box MOD?

Does anyone know how to change the description box so it doesn't allow you to change font or anything. I just want it to be set to one font. Please view pic attached, pretty much I want the part outlined in red to be removed. Thank you.

descbox.png · 8.7K · 68 views
SGeeZyyy
Quote · 8 Dec 2010

do you want to remove tinyMce editor from your site?

open your templates/base/scripts/BxBaseConfig.php

now, see this code

function BxBaseConfig($site) {

bla bla bla here

}

then change that above function to this function

function BxBaseConfig($site) {
$anon_mode = getParam('anon_mode');

//$this -> bEnableCustomization             = getParam('enable_customization') == 'on' ? 1 : 0;
$this -> bAnonymousMode                    = $anon_mode;

$this -> aTinyMceSelectors = array('group_edit_html', 'story_edit_area', 'classfiedsTextArea', 'blogText', 'comment_textarea', 'form_input_html');
$sSelectors = implode('|', $this -> aTinyMceSelectors);

$this -> iTinyMceEditorWidthJS = '630px';
$this -> sTinyMceEditorJS = '';

$this -> sTinyMceEditorCompactJS = '';

$this -> iTinyMceEditorWidthMiniJS = '270px';
$this -> sTinyMceEditorMiniJS = '';

$this -> sTinyMceEditorMicroJS = '';
}

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 9 Dec 2010

Can you tell me exactly which part to replace, because blah blah blah is a little hard to follow lol. Thanks for the help. I found the file and everything you lost me at:  function BxBaseConfig($site) {

bla bla bla here

}

SGeeZyyy
Quote · 9 Dec 2010

you should see this below code on your original file

$this -> sTinyMceEditorJS = '
<!-- tinyMCE gz -->    
<script type="text/javascript" src="' . $site['plugins'] . 'tiny_mce/tiny_mce_gzip.js"></script>
<script type="text/javascript">
tinyMCE_GZ.init({
plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,directionality,fullscreen",
themes : "advanced",
languages : "en",
disk_cache : true,
debug : false
});

if (window.attachEvent)
window.attachEvent( "onload", InitTiny );
else
window.addEventListener( "load", InitTiny, false);

function InitTiny() {
// Notice: The simple theme does not use all options some of them are limited to the advanced theme
tinyMCE.init({
convert_urls : false,
mode : "specific_textareas",
theme : "advanced",

editor_selector : /(' . $sSelectors . ')/,

plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,directionality,fullscreen",

theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,image,separator,search,replace,separator",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,separator,forecolor,backcolor",
theme_advanced_buttons3_add : "emotions",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",

plugi2n_insertdate_dateFormat : "%Y-%m-%d",
plugi2n_insertdate_timeFormat : "%H:%M:%S",            
theme_advanced_resizing : false,
theme_advanced_resize_horizontal : false,

entity_encoding : "raw",

paste_use_dialog : false,
paste_auto_cleanup_on_paste : true,
paste_convert_headers_to_strong : false,
paste_strip_class_attributes : "all",
paste_remove_spans : false,
paste_remove_styles : false
});
}
</script>
<!-- /tinyMCE -->';

 

now, delete all of this function's content

so the code will be like this:


$this -> sTinyMceEditorJS = '';

 

and do the same thing for

$this -> sTinyMceEditorCompactJS = ''bla bla bla;

$this -> sTinyMceEditorMiniJS = 'bla bla bla';

$this -> sTinyMceEditorMicroJS = ''bla bla bla;

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 9 Dec 2010

No thats not working, I get an error message when I try to go to my site. Maybe Im doing something wrong

SGeeZyyy
Quote · 9 Dec 2010

be carefull, may be you delete '}' or something else.

that's why i just say on my first post,

 

open your templates/base/scripts/BxBaseConfig.php

now, see this code

function BxBaseConfig($site) {

bla bla bla here

}

then change that above function to this function

function BxBaseConfig($site) {
$anon_mode = getParam('anon_mode');

//$this -> bEnableCustomization             = getParam('enable_customization') == 'on' ? 1 : 0;
$this -> bAnonymousMode                    = $anon_mode;

$this -> aTinyMceSelectors = array('group_edit_html', 'story_edit_area', 'classfiedsTextArea', 'blogText', 'comment_textarea', 'form_input_html');
$sSelectors = implode('|', $this -> aTinyMceSelectors);

$this -> iTinyMceEditorWidthJS = '630px';
$this -> sTinyMceEditorJS = '';

$this -> sTinyMceEditorCompactJS = '';

$this -> iTinyMceEditorWidthMiniJS = '270px';
$this -> sTinyMceEditorMiniJS = '';

$this -> sTinyMceEditorMicroJS = '';
}

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 9 Dec 2010

Ok what I'm doing is Highlighting everything [including function BxBaseConfig($site)] and down and replacing it with the code you gave. and its giving me error.

SGeeZyyy
Quote · 9 Dec 2010

see my below attached image

editor-code.jpg · 48.1K · 66 views
=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 9 Dec 2010

and what does the error say? ^_^

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 9 Dec 2010

Error code: Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home/sgeezyyy/public_html/templates/base/scripts/BxBaseConfig.php on line 100

I attached pic of what mine looks like.

code.png · 31.4K · 62 views
SGeeZyyy
Quote · 9 Dec 2010

add '}' on line 101

don't forget '?>'

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 9 Dec 2010

That did it. Thanks a bunch. Also would you know how I can change the size of the same box?

SGeeZyyy
Quote · 9 Dec 2010

?

SGeeZyyy
Quote · 9 Dec 2010

still on the same function,

you should see this code:

$this -> iTinyMceEditorWidthJS = '630px';

$this -> iTinyMceEditorWidthMiniJS = '270px';

 

JUST CHANGE THAT VALUE AND YOU'RE DONE  ^_^

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 10 Dec 2010

Perfect! Thank you!

SGeeZyyy
Quote · 10 Dec 2010

YOU'RE WELLCOME......EEEEE..E..

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 10 Dec 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.