Hello , today I'll give you a JavaScript code to add more Bbcode to your wapkiz forum You'll get left,center, right Url you Bbcode Hidden Advance img Code Rainbow Youtube bb codes. Let's start ,: POST THIS CODE TO YOUR FOOTER PAGE: [php]<script language="javascript"> var msg = document.getElementsByName("sstar"); for (var i = 0; i < msg.length; i++) { var txt = document.getElementsByName("sstar").innerHTML; txt = txt.replace(/\[IMG](.+?)\[\/IMG]/ig, '<a href="$1" title="Full Image"><figure class="figure"><img src="$1" alt="' + document.title + '" style="max-width:100%; margin-bottom: 10px; margin-top: 10px;"/><figcaption>SStar</figcaption></figure></a>'); txt = txt.replace(/(^|[\n ])([\w]+?:\/\/[^ ,\"\n\r\t<]*)/ig, '$1<a href="$2" target="_blank">$2</a>'); txt = txt.replace(/\[LEFT\]/ig, '<div align="left">'); txt = txt.replace(/\[\/LEFT\]/ig, "</div>"); txt = txt.replace(/\[input=(.+?)\]/ig, '<span name="codes"><input type="$1" size="20%" value="'); txt = txt.replace(/\[\/input\]/ig, '"></input></span>'); txt = txt.replace(/\[url\]/ig, '<center><div style="border:1px solid red;padding:3px;color:red" class="brdr">×Dont Spam Here×<br/><a href="https://$1">You Should Add Your Site$1</a></div></center><div style="display:block">'); txt = txt.replace(/\[\/url\]/ig, "</div>"); txt = txt.replace(/\[CENTER\]/ig, '<center>'); txt = txt.replace(/\[\/CENTER\]/ig, "</center>"); txt = txt.replace(/\[RIGHT\]/ig, '<div align="right">'); txt = txt.replace(/\[\/RIGHT\]/ig, "</div>"); txt = txt.replace(/\[EMAIL\](.+?)\[\/EMAIL\]/ig, '<a href="mailto:$1">$1</a>'); txt = txt.replace(/\[SIZE=(.+?)\]/ig, '<font size="$1">'); txt = txt.replace(/\[\/SIZE\]/ig, "</font>"); txt = txt.replace(/\[TEXT\]/ig, '<textarea rows="5" name="textareacodes">'); txt = txt.replace(/\[\/TEXT\]/ig, "</textarea>"); txt = txt.replace(/\[CODE\]/ig, '<div class="bb-code">Code:</div><textarea id="bb-text-code" name="textareacodes">'); txt = txt.replace(/\[\/CODE\]/ig, "</textarea>"); txt = txt.replace(/\[INDENT\]/ig, '<div style="padding-left:10px">'); txt = txt.replace(/\[\/INDENT\]/ig, "</div>"); txt = txt.replace(/\[YOU\]/ig, '<span style="color: #00dd00"><a href="profile/:user_tname:">:user:</a></span>'); txt = txt.replace(/\[FONT=(.+?)\]/ig, '<span style="font-family:$1">'); txt = txt.replace(/\[\/FONT\]/ig, '</span>'); txt = txt.replace(/\[COLOR=(.+?)\]/g, '<font color="$1">'); txt = txt.replace(/\[\/COLOR\]/g, '</font>'); txt = txt.replace(/\[LIST\]/ig, '<ol>'); txt = txt.replace(/\[\/LIST\]/ig, '</li></ol>'); txt = txt.replace(/\[\*]/ig, '</li><li>'); txt = txt.replace(/\[RAINBOW](.+?)\[\/RAINBOW]/ig, '<span name="rainbow">$1</span>'); txt = txt.replace(/\ Spoiler: txt = txt.replace(/\[HIDDEN\]/ig, '<center><div style="border:1px solid red;padding:3px;color:#b0b0b0">Hidden content!</div></center><div style="">'); txt = txt.replace(/\[\/HIDDEN\]/ig, "</div>"); txt = txt.replace(/\<div class=\"wcode\">/ig, '<div class="ytop">CODE</div><div cla... Read more >> file.zip 4.96 Kb. Download:6 New at the top |