by TheCrow December 9th 2014, 10:15 pm
I am trying to add the
#perfix code to a forum but the perfixes won't show. I am trying to use these codes. I will send you the information of the forum and login details via pm
Here are the code i am trying to use but won't work:
JS (placement: in all the pages and tested only in the topics - same result)
- Code:
jQuery(document).ready(function(){jQuery(".tcl.tdtopics, .module a, .tcr a, .posthead a, .pun-crumbs p, .pun h2, .module .main-head, .pun h3, .pun input, .pun select, .pun th").each(function(){jQuery(this).html(jQuery(this).html().replace(/testperfix/g,"<span id='testperfix'>Test Perfix:</span> "))})});
function tagprefixo(){jQuery("input[name=subject]").val(jQuery("select[name=tags4]").val()+jQuery("input[name=subject]").val())}jQuery(document).ready(function(){jQuery('input[name="subject"]').after('<dd/><select name=tags4 onchange=tagprefixo()><option value="">Χωρίς θέμα</option><option value="testperfix">Test Perfix: </option>')});
jQuery(document).ready(function(){var b=jQuery("input[value=reply]").val();"reply"==b?jQuery("select[name=tags4]").css("display","none"):"quote"==b&&jQuery("select[name=tags4]").css("display","none")});
and
CSS - Code:
#testperfix{background:#0079FF;border-radius:3px;color:#fff;font-size:9px!important;font-weight:bold;margin:1px;padding:2px 3px;text-shadow:0 0 5px #808080}
For some reason the perfix box won't show anywhere...