Post by rodesigner on Jan 31, 2013 13:57:38 GMT -8
ok not i am not advanced code person i just copy/paste what brillent minds have figured out>>> i need to know how to get several things that are used on several different clan forum's v4.5 switched to v5 to work (where/how would i put it?) or have made into a plugin? need many things ready befor i go switching all them to v5 because it gets used alot on like i said, several different clan pbforums. and these people get fussy if a color changes lol.
i dont need a tag icon, just ability to type [#username] when writting in a thread , title or everywhere its used and it shows up replaced name for whom ever is reading .
below is the information and code , everything i have used on v4.5 was put into Advanced Hack Manager v1.2 , which i think is kinda like but not really like a plugin program? i liked it because all i had to do was follow simple directions, put definition , then copy code into its place, pick header/footer as directed, pick -skins it showed in. all done.
ok heres really big question as an after thought can Advanced Hack Manager v1.2 still be used? or is it i have to use plugins?
Hey "username", check this out!
warning below is ver 4.5proboard not v5
i dont need a tag icon, just ability to type [#username] when writting in a thread , title or everywhere its used and it shows up replaced name for whom ever is reading .
below is the information and code , everything i have used on v4.5 was put into Advanced Hack Manager v1.2 , which i think is kinda like but not really like a plugin program? i liked it because all i had to do was follow simple directions, put definition , then copy code into its place, pick header/footer as directed, pick -skins it showed in. all done.
ok heres really big question as an after thought can Advanced Hack Manager v1.2 still be used? or is it i have to use plugins?
Hey "username", check this out!
This is a special code that allows you to put a tag like \\#username\\ in a post (or in the subject... he he), which will automatically change to a user's name when they read it. That is, you'd type the code into the post, and whenever someone reads it, the code automatically changes to their display name (which is grabbed from the "Hey X you have..." welcome message). So for me, the subject of this post reads "Hey california, check this out". For you, the subject reads "Hey [#username] , check this out". But this message is not directed at you, [#username] . It was written and posted long before you joined this forum, so how could it have been?
warning below is ver 4.5proboard not v5
<!-- CODE STARTS HERE user's display name in posts -->
<script type="text/javascript">
<!--
/* Code for user's display name in posts or PMs
by california, [a href="http://socal.proboards26.com"]socal.proboards26.com[/a] */
var usercode="\\[#username\\]";
var td=document.getElementsByTagName("td");
var re = new RegExp(usercode,"g");
if(!location.href.match(/headersfooters/) && !document.postForm && !document.ammForm){
if(document.title.match(re)){
document.title=document.title.replace(re, pb_displayname);
}
for(i=0;i<td.length;i++){
if(td[i].innerHTML.match(re)){
td[i].innerHTML = td[i].innerHTML.replace(re, pb_displayname);
}
}
}
// -->
</script>
<!-- CODE ENDS HERE -->