Acest script va permite sa cautati materialele necesare pe fiecare sectiune ale forumului.
[spoiler="Exemplu"][/spoiler]
Dupa $BODY$ in General appearance of forum pages punem codul:
Code
<?if($URI_ID$='frMain')?>
<script type="text/javascript">
/* Copyright AllCity ~ http://web-codes.net/ */
var URLForum = 'http://' + location.host + '/forum/';
// Magick function...
$('div.gDivLeft div.gDivRight tr td.forumNameTd').each(function(){
$(this).wrapInner('<div></div>').find('div:first').css('float', 'left').css('width', '75%');
$(this).append($('<div style="float: right; width: 25%;"><form method="post" action="/forum/" onsubmit="this.form.submit();"><input name="kw" size="10" style="display: none;" value="Cauta" onclick="this.select()" title="Cauta doar in aceasta sectiune!" maxlength="30" type="text" /><input type="hidden" name="fid" value="' + $(this).find('a:first').attr('href').replace(URLForum, '') + '" /><input type="hidden" name="user" value="" /><input type="hidden" name="o1" value="0" /><input type="hidden" name="o2" value="0" /><input type="hidden" name="a" value="6" /></form></div>'));
});
// On hover...
$('div.gDivLeft div.gDivRight tr:has("td.forumNameTd")').hover(function(){$(this).find('input:first').show();}, function(){$(this).find('input:first').hide();});
</script>
<?endif?>
[texterror4]Sursa: http://web-codes.net
Traducere: http://maxrom.ucoz.com
Scoaterea Copyright-ului din script va aduce la in atac hack din partea celor de la web-codes. Credeti-ma ei pot.
[/texterror4]