// BB Codes For Mod News - Fangree_Craig
if ((file_exists (INCLUDES. "na_bbcodes_settings.php")) && $ settings [ 'tinymce_enabled']! == 1) {
require_once INCLUDES. "na_bbcodes_settings.php";
}
[table]
[thead]
[tr]
[td]head 1[/td][td]head 2[/td]
[/tr]
[/thead]
[code]
It's gonna be very tough...
[code]
| head 1 | head 2|
|---|---|
<?php echo $code; ?>
code
<bbCode>
<pre>
echo „<script type=’text/javascript’ src=’“.INCLUDES.“drag.js’></script>n“;
</pre>
</bbCode>
Do stránky theme.php (své šablony vzhledu, kterou používáte) poté dáme následující kód-zápis:
<bbCode>
<pre>
echo „
<div id=’i1′ style=’position:absolute; top:5px; left:750px; width:250px; height:300px; z-index: 11;’>
<table width=’250′ height=’300′border=’0′>
<tr><td><img src=’../../images/xxxx.png’></td></tr></table>
</div>
<script language=’javascript’>
new dragElement(‘i1′);
</script>n“;
</pre>
</bbCode>
$news_text = $data['news_extended'] ? parse_textarea("<p>".$data['news_news']."</p><p>".$data['news_extended']."</p>") : parse_textarea("<p>".$data['news_news']."</p>");
$data = $bbcode ? parseubb($data) : $data;
$data = $decode ? html_entity_decode(stripslashes($data), ENT_QUOTES, $locale['charset']) : $data;
$data = $decode ? html_entity_decode(stripslashes($data), ENT_QUOTES, $locale['charset']) : $data;
$data = $bbcode ? parseubb($data) : $data;
# Remove UTF-8 BOM and marker character in input, if present.
$text = preg_replace('{^\xEF\xBB\xBF|\x1A}', '', $text);
# Standardize line endings:
# DOS to Unix and Mac to Unix
$text = preg_replace('{\r\n?}', "\n", $text);
<code>
<pre>
echo < p >There was indented 4 spaces. And entities appear !!! < / p >
<p>This has been indented 4 spaces.</p>
</pre>
</code>
/*
[code]
* Adds a rule to
(markdown) to translate to <code>
*/
$mcode_count = substr_count($text, ""); // obtained
Category Forum
Content Administration - 9Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions