Копирайте емотиконката и поставете файла в директорията "images".
Текст с променящ се цвят
BBcode
Код:
[rainbow]{TEXT}[/rainbow]
HTML
Код:
<b> <script> var text="{TEXT}" var speed=80 if (document.all||document.getElementById){ document.write('<span id="highlight">' + text + '</span>') var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight } else document.write(text) var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0") var r=1 var g=1 var b=1 var seq=1 function changetext(){ rainbow="#"+hex[r]+hex[g]+hex[b] storetext.style.color=rainbow } function change(){ if (seq==6){ b-- if (b==0) seq=1 } if (seq==5){ r++ if (r==12) seq=6 } if (seq==4){ g-- if (g==0) seq=5 } if (seq==3){ b++ if (b==12) seq=4 } if (seq==2){ r-- if (r==0) seq=3 } if (seq==1){ g++ if (g==12) seq=2 } changetext() } function starteffect(){ if (document.all||document.getElementById) flash=setInterval("change()",speed) } starteffect() </script> </b>
Помощен ред
Код:
Текст с променящ се цвят: [rainbow]текст[/rainbow]
[b]Текст, видим само от регистрирани
Отворете файла "viewtopic.php" и намерете следния код:
[/b]
Код:
$rowset[$row['post_id']] = array(
НАД него добавете:
Код:
// Mod for members bbcode if ($user->data['user_id'] == ANONYMOUS) {
Вмъкване на картинка в текст: [ImgBox=left, right][img]http://www.domain.com/Images/Image.jpg[/img] [i]Кратко описание на картинката[/i][/ImgBox]
Забележка: Променливите "left" и "right" означават подравняване на картинката отляво или отдясно. Форматирането на картинката и текста, загравени в този ББ код може да бъде различно от показаното. Преди текста "Кратко описание на картинката" е добре да се натисне ENTER, за да може описанието да се центрира под картинката. Същинският текст се разполага отвън ББ кода. Същинския текст може да бъде заграден в ББ кода за подравняване от двете страни, описан по горе.
[b]Преводач от различни езици
Създайте "php" файл с име "xlate.php", със следния код и го запишете в главната директория на форума:
[/b]
Код:
<?php /** * See http://www.bin-co.com/php/scripts/load/ * Version : 1.00.A */ //Get result language $the_lang1 = $_GET['lang1']; //Get result language $the_lang2 = $_GET['lang2']; //Get the text to translate $the_text = $_GET['text']; //Clean Text of any "{" $the_text = str_replace("{", "", $the_text); //Clean Text of any "}" $the_text = str_replace("}", "", $the_text); //Replace spaces with %20 in text message $the_text = str_replace(" ", "%20", $the_text); //Set up the call NOTE: English is the default source language. Change the two-letter country code after "langpair=" to modify this $the_addr = "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&langpair=".$the_lang1."%7C".$the_lang2."&q=".$the_text; //Make the call $contents = load($the_addr); //Slice off the front end $contents = substr($contents, 36); //Find the end of the translated string $the_strpos = strpos($contents, ""}"); //Use this as the total length for our translation $contents = substr($contents, 0, $the_strpos); //Now that we have the translation string, do something with it--insert text into post echo "document.writeln('<pre>');"; echo "document.writeln('".$contents."');"; echo "document.writeln('</pre>');"; //End of program, start of functions function load($url,$options=array('method'=>'get','return_info'=>false)) { $url_parts = parse_url($url); $info = array(//Currently only supported by curl. 'http_code' => 200 ); $response = '';
///////////////////////////// Curl ///////////////////////////////////// //If curl is available, use curl to get the data. if(function_exists("curl_init") and (!(isset($options['use']) and $options['use'] == 'fsocketopen'))) { //Don't user curl if it is specifically stated to user fsocketopen in the options if(isset($options['method']) and $options['method'] == 'post') { $page = $url_parts['scheme'] . '://' . $url_parts['host'] . $url_parts['path']; } else { $page = $url; }
$ch = curl_init($url_parts['host']);
curl_setopt($ch, CURLOPT_URL, $page); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //Just return the data - not print the whole thing. curl_setopt($ch, CURLOPT_HEADER, true); //We need the headers curl_setopt($ch, CURLOPT_NOBODY, false); //The content - if true, will not download the contents if(isset($options['method']) and $options['method'] == 'post' and $url_parts['query']) { curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $url_parts['query']); } //Set the headers our spiders sends curl_setopt($ch, CURLOPT_USERAGENT, $send_header['User-Agent']); //The Name of the UserAgent we will be using $custom_headers = array("Accept: " . $send_header['Accept'] ); if(isset($options['modified_since'])) array_push($custom_headers,"If-Modified-Since: ".gmdate('D, d M Y H:i:s \G\M\T',strtotime($options['modified_since']))); curl_setopt($ch, CURLOPT_HTTPHEADER, $custom_headers);
$response = curl_exec($ch); $info = curl_getinfo($ch); //Some information on the fetch curl_close($ch);
//////////////////////////////////////////// FSockOpen ////////////////////////////// } else { //If there is no curl, use fsocketopen if(isset($url_parts['query'])) { if(isset($options['method']) and $options['method'] == 'post') $page = $url_parts['path']; else $page = $url_parts['path'] . '?' . $url_parts['query']; } else { $page = $url_parts['path']; }
$fp = fsockopen($url_parts['host'], 80, $errno, $errstr, 30); if ($fp) { $out = ''; if(isset($options['method']) and $options['method'] == 'post' and isset($url_parts['query'])) { $out .= "POST $page HTTP/1.1\r\n"; } else { $out .= "GET $page HTTP/1.0\r\n"; //HTTP/1.0 is much easier to handle than HTTP/1.1 } $out .= "Host: $url_parts[host]\r\n"; $out .= "Accept: $send_header[Accept]\r\n"; $out .= "User-Agent: {$send_header['User-Agent']}\r\n"; if(isset($options['modified_since'])) $out .= "If-Modified-Since: ".gmdate('D, d M Y H:i:s \G\M\T',strtotime($options['modified_since'])) ."\r\n";
$out .= "Connection: Close\r\n";
//HTTP Basic Authorization support if(isset($url_parts['user']) and isset($url_parts['pass'])) { $out .= "Authorization: Basic ".base64_encode($url_parts['user'].':'.$url_parts['pass']) . "\r\n"; }
//If the request is post - pass the data in a special way. if(isset($options['method']) and $options['method'] == 'post' and $url_parts['query']) { $out .= "Content-Type: application/x-www-form-urlencoded\r\n"; $out .= 'Content-Length: ' . strlen($url_parts['query']) . "\r\n"; $out .= "\r\n" . $url_parts['query']; } $out .= "\r\n";
ar Arabic bg Bulgarian ca Catalan zh Chinese (Simplified) hr Croatian cs Czech da Danish nl Dutch tl Filipino fi Finnish fr French de German el Greek iw Hebrew hi Hindi id Indonesian it Italian ja Japanese ko Korean lv Latvian lt Lithuanian no Norwegian pl Polish pt Portuguese ro Romanian ru Russian sr Serbian sk Slovak sl Slovenian es Spanish sv Swedish uk Ukrainian vi Vietnamese
Видео от Vbox7: [vbox] (само името на файла; пример: 6004bd3e ) [/vbox]
[b]Windows Media Video
BBcode
[/b]
Код:
[wmv]{SIMPLETEXT}[/wmv]
HTML
Код:
<object id="MediaPlayer" width=420 height=350 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
Свалете този файл, разархивирайте и го поставете в главната директория на форума. Ако сте инсталирали BBcode за MP3 Player не е нужно да сваляте файла още веднъж. СВАЛИ
Може да бъде поставен навсякъде в мненията или описането на форумите. Могат да бъдат създавани различни един от друг канали или да се свързва със съществуващи вече канали. Трябва да въведете свой нов ник, никовете от форума не се прехвърлят автоматично.
Може да бъде поставен навсякъде в мненията или описанието на форумите. Могат да бъдат създавани различни един от друг прозорци. Трябва да въведете свой нов ник, никовете от форума не се прехвърлят автоматично. Може да регистрирате своя ник в системата и да го запазите за себе си. Необходимо е да създадете предварително свой shoutbox с уникално име на сайта на [You must be registered and logged in to see this link.] и да напишете това име между таговете.
BBcode
[/b]
Код:
[shoutbox]{TEXT}[/shoutbox]
HTML
Код:
<noscript>Разрешете Javascript, за да използвате пълните възможности <a href="http://www.freeshoutbox.net/">shoutbox</a><br /></noscript><iframe src="http://{TEXT}.freeshoutbox.net/" height="200" width="600" frameborder="0"></iframe>