Selected from Linux Selected from PHP
- Ubuntu 17.10 Install google's mod pagespeed for apache - PHP-Ubuntu-Youtube-dl simple script for converting and downloading youtube video or mp3
- Ubuntu SSH tunnel via proxy - PHP while loop with every row with a different color
- Install GoAccess Apache Log Analyzer Tool on Ubuntu 17.10 - PHP use while loop in function
- SSHFS and map folder with a proxy - PHP List Files And Folders As links
- How to connect to SSH server with a proxy - PHP Extract Text From String
➥ Функция за BBCODE + css за стилизиране
Added by admin on 02-05-2017 and keywords: [ Print Article ]
Това е една много проста функция за BBCODE посредством PHP.

function showBBcodes($text) {

// BBcode array
$find = array(

// HTML tags to replace BBcode
$replace = array(
'<span style="text-decoration:underline;">$1</span>',
'<span style="font-size:$1px;">$2</span>',
'<span style="color:$1;">$2</span>',
'<a href="$1">$1</a>',
'<img src="$1" alt="" />',
'<div id=codetop><b>CODE:</b><br /></div><div id=code>$1</div>'

Ето и css-a

background: #EEEEEE;
font-size: 12px;
padding: 0px;
font-weight: bold;
width: 90%;
margin: 0 auto;
margin-top: 20px;
color: red;
background: #EEEEEE;
font-size: 12px;
border: 1px dashed #333333;
padding: 10px;
font-weight: bold;
width: 90%;
margin: 0 auto;

@All rights reserved with Copyright 2018 by Sonik_Blast [ Site Map ] [ RSS ] [ YouTube Mp3 Downloader and converter ]