Hi bbcz2551
I was stucked in the same problem few days and I get a part of the solution !
I m not a php developper so any advice is welcome.
This is the solution I founded
You have to add this function in the file : \oc-includes\osclass\helpers\hMessages.php
function twitter_show_flash_message($section = 'pubMessages', $class = "flashmessage", $id = "flashmessage") {
$messages = Session::newInstance()->_getMessage($section);
if (is_array($messages)) {
foreach ($messages as $message) {
echo '<div id="flash_js"></div>';
if (isset($message['msg']) && $message['msg'] != '') {
echo '<div class="alert-message ' . $message['type'] . '">' ;
echo '<a class="close" href="#">×</a>';
echo '<p>' . $message['msg'] . '</p>';
echo '</div>' ;
} else if($message!='') {
echo '<div id="' . $id . '" class="' . $class . '">';
echo osc_apply_filter('flash_message_text', $message);
echo '</div>';
} else {
echo '<div id="' . $id . '" class="' . $class . '" style="display:none;">';
echo osc_apply_filter('flash_message_text', '');
echo '</div>';
}
}
}
Session::newInstance()->_dropMessage($section);
}
I tried to put the code directly in the root of my theme \oc-content\themes\twitter\function.php but it doesnt work
Hope it helps !