Html block still not converting to plain text

hi guys,

I know this has been asked before, but I've searched the forum for an answer that will work for me.

I'm trying to add html (specifically Adsense, but any html code) by means of the HTML block in the admin build pages section.

I'm using the little "html" button.

It just comes out as raw code on the home page (visit www.internetcruisingclub.com to see what I mean.

I'm using the Firefox browser.

In the forum itt said to modify the admin/profile.php file to add the tinyMCE code, which I did, but to no avail.

This is my profile.php file where I added the new code (in orange):

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'members.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
require_once( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/scripts/BxTemplProfileView.php" );

$_page['name_index']    = 7;
$_page['css_name']        = 'profile_view.css';

check_logged();

$profileID = getID( $_REQUEST['ID'] );

if( $logged['member'] ) {
$memberID = (int)$_COOKIE['memberID'];
} else {
$memberID = 0;
}

if ( !$profileID ) {
$_page['header'] = "{$site['title']} ". _t("_Member Profile");
$_page['header_text'] = _t("_View profile");
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = MsgBox( _t("_Profile NA") );
PageCode();
exit;
}
<!-- tinyMCE -->
<script language="javascript" type="text/javascript" src="' . $site['plugins'] . 'tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
// Notice: The simple theme does not use all options some of them are limited to the advanced theme
tinyMCE.init({
mode : "textareas",
theme : "advanced",
content_css : "' . $site['base'] . 'css/tiny_mce.css",
editor_selector : "articl",
plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,separator,forecolor,backcolor",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "emotions",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_disable : "link,unlink,insertanchor,image,subscript,superscript,help,anchor,code,styleselect",
plugi2n_insertdate_dateFormat : "%Y-%m-%d",
plugi2n_insertdate_timeFormat : "%H:%M:%S",
paste_use_dialog : false,
theme_advanced_resizing : false,
theme_advanced_resize_horizontal : false,
theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
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 -->

';

// Check if member can view profile
$contact_allowed = contact_allowed($memberID, $profileID);
$check_res = checkAction( $memberID, ACTION_ID_VIEW_PROFILES, true, $profileID );

if ( $check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED
&& !$logged['admin'] && !$logged['moderator'] && $memberID != $profileID && !$contact_allowed )
{
$_page['header'] = "{$site['title']} "._t("_Member Profile");
$_page['header_text'] = "{$site['title']} "._t("_Member Profile");
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = '<center>'. $check_res[CHECK_ACTION_MESSAGE] .'</center><br />';
PageCode();
exit;
}


$oProfile = new BxTemplProfileView( $profileID );

$_page['extra_js']     =
$oTemplConfig -> sTinyMceEditorMiniJS .
$oProfile->oVotingView->getExtraJs() .
$oProfile->oCmtsView->getExtraJs() .
'<script type="text/javascript">urlIconLoading = "'.getTemplateIcon('loading.gif').'";</script>';

$_page['extra_css'] = $oProfile -> genProfileCSS( $profileID ) . $oProfile->oCmtsView->getExtraCss();
$p_arr              = $oProfile -> _aProfile;

if ( !($p_arr['ID'] && ($logged['admin'] || $logged['moderator'] || $oProfile -> owner || $p_arr['Status'] = 'Active') ) )
{
$_page['header'] = "{$site['title']} ". _t("_Member Profile");
$_page['header_text'] = "{$site['title']} ". _t("_Member Profile");
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = '<div class="no_result"><div>' . _t("_Profile NA") .'.</div></div>';
PageCode();
exit;
}

$_page['header']      = process_line_output( $p_arr['NickName'] ) . ": ". htmlspecialchars_adv( $p_arr['Headline'] );
//$_page['header_text'] = process_line_output( $p_arr['Headline'] );

// track profile views
if ( $track_profile_view && $memberID && !$oProfile -> owner )
{
db_res( "DELETE FROM `ProfilesTrack` WHERE `Member` = {$memberID} AND `Profile` = $profileID", 0);
db_res( "INSERT INTO `ProfilesTrack` SET `Arrived` = NOW(), `Member` = {$memberID}, `Profile` = $profileID", 0);
}

$_ni = $_page['name_index'];

//$_page_cont[$_ni]['page_main_code_headers'] = $oProfile -> genColumns(true);
$oPPV = new BxDolProfilePageView($oProfile, $site, $dir);
$_page_cont[$_ni]['page_main_code'] = $oPPV -> getCode();
//$_page_cont[$_ni]['page_main_code'] = $oProfile -> genColumns();


PageCode();

?>

Has anyone any ideas?

Thanks,

Peter

Quote · 31 Jul 2009

When editing HTML BLOCK in the page builder, click the ICON HTML to edit the html source

see the _HTML BLOCK here

http://www.dolphinbugfixing.com/614_MODS/

Live Support http://dolphinbugfixing.com
Quote · 31 Jul 2009
 
 
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.