Eigene Bbcodes? (Technics)
Hat sich erledigt. Es funktioniert!
https://bauforum.wirklichewelt.de/index.php?mode=entry&id=11585
Ich habe die functions.inc.php an zwei Stellen angepasst:
Eine neue Funktion:
function do_bbcode_tweet($action, $attributes, $content, $params, $node_object) { global $settings; if(!is_valid_url($content)) { return false; } else { return '<blockquote class="twitter-tweet" data-lang="de"><a href="'.htmlspecialchars($content).'">Link zum Tweet</a></blockquote><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>'; } }
Eine Ergänzung in function html_format:
if (true) //($settings['bbcode_tweet']==1) { $bbcode->addCode ('tweet', 'usecontent', 'do_bbcode_tweet', array (), 'tweet', array ('block', 'quote'), array ()); }