• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Znote Acc TFS 1.X Codes

Solution
Supported BB-codes, could easily be extended by just adding whatever you need in the $tags array:

https://github.com/Znote/ZnoteAAC/blob/master/index.php#L58-L75
PHP:
function TransformToBBCode($string) {
    $tags = array(
        '[center]{$1}[/center]' => '<center>$1</center>',
        '[b]{$1}[/b]' => '<b>$1</b>',
        '[size={$1}]{$2}[/size]' => '<font size="$1">$2</font>',
        '[img]{$1}[/img]'    => '<a href="$1" target="_BLANK"><img src="$1" alt="image" style="width: 100%"></a>',
        '[link]{$1}[/link]'    => '<a href="$1">$1</a>',
        '[link={$1}]{$2}[/link]'   => '<a href="$1" target="_BLANK">$2</a>',
        '[color={$1}]{$2}[/color]' => '<font color="$1">$2</font>',
        '[*]{$1}[/*]' => '<li>$1</li>',
        '[youtube]{$1}[/youtube]' => '<div class="youtube"><div...
Znote AAC's admin news panel (What you generally use to add a new news article) uses a WYSIWYG editor (NicEdit.js). When using that you just use the buttons exactly like you can in this forum - the BB code tags probably work too.
Outside of that, to manipulate text inside the individual pages, you can play with basic html tags.
HTML:
<b> Bold text </b>
<u> Underline text </u>
<strong> Important text </strong>
<i> Italic text </i>
<em> Emphasized text </em>
<mark> Marked text </mark>
<small> Small text </small>
<del> Deleted text </del>
<ins> Inserted text </ins>
<sub> Subscript text </sub>
<sup> Superscript text </sup>

As for font color, the following will work but shouldn't really be used anymore
HTML:
<font color="red">Red writing</font>
Instead you should use something more like
HTML:
<p style="color:red;">Red paragraph</p>

Hopefully some of that answers your question!
 
Last edited:
Supported BB-codes, could easily be extended by just adding whatever you need in the $tags array:

https://github.com/Znote/ZnoteAAC/blob/master/index.php#L58-L75
PHP:
function TransformToBBCode($string) {
    $tags = array(
        '[center]{$1}[/center]' => '<center>$1</center>',
        '[b]{$1}[/b]' => '<b>$1</b>',
        '[size={$1}]{$2}[/size]' => '<font size="$1">$2</font>',
        '[img]{$1}[/img]'    => '<a href="$1" target="_BLANK"><img src="$1" alt="image" style="width: 100%"></a>',
        '[link]{$1}[/link]'    => '<a href="$1">$1</a>',
        '[link={$1}]{$2}[/link]'   => '<a href="$1" target="_BLANK">$2</a>',
        '[color={$1}]{$2}[/color]' => '<font color="$1">$2</font>',
        '[*]{$1}[/*]' => '<li>$1</li>',
        '[youtube]{$1}[/youtube]' => '<div class="youtube"><div class="aspectratio"><iframe src="//www.youtube.com/embed/$1" frameborder="0" allowfullscreen></iframe></div></div>',
    );
    foreach ($tags as $tag => $value) {
        $code = preg_replace('/placeholder([0-9]+)/', '(.*?)', preg_quote(preg_replace('/\{\$([0-9]+)\}/', 'placeholder$1', $tag), '/'));
        $string = preg_replace('/'.$code.'/i', $value, $string);
    }
    return $string;
}

Code:
[center]TEXT[/center],
[b]TEXT[/b],
[size=NUMBER]TEXT[/size],
[img]TEXT[/img],
[link]TEXT[/link],
[link=URL]TEXT[/link],
[color=NAME]TEXT[/color],
[*]TEXT[/*],
[youtube]VIDEO-ID[/youtube]
 
Solution
@Znote , thanks!
One more, how do i make for example a tab on the Znote site connected into another one?
Explaination-> "Account" i click it and it pops up into otland without have to enter another panel then click a link?
The thing i want for this is Facebook, havn't found any source of this so need help to create it
 
layout/menu.php
Add a new menu option, like the following:
HTML:
<li><a href="https://www.facebook.com">Facebook</a></li>
That code takes you to a page where you can click "Facebook" to get to the facebook site, i don't want that i want it directly into Facebook
And got any clue on how to add a News Ticker into the latest news menu?
 
Last edited:
Back
Top