1 Click on nick [bb2] Sat Oct 02, 2010 4:20 pm
Lucky
Registered Member
When you make a click on nick-name, you go to user's profile.
If you want to receive a result like this:
in reply field, you should do the next.
Admin panel -> Modules -> Portal & Widgets -> Forum widgets management. On that page click create a widget:
Use a table type - Choose No for this option.
put into it:
Notice:
- This function is able only with the right side widgets.
- This function is able only when WYSIWYG is off!
If you want to receive a result like this:
- Code:
[b]Nick-name,[/b]
in reply field, you should do the next.
Admin panel -> Modules -> Portal & Widgets -> Forum widgets management. On that page click create a widget:
Use a table type - Choose No for this option.
put into it:
- Code:
<script>
var inn = '['+'b]';
var outt = '['+'/b], ';
namesch = document.getElementsByTagName("span");
ixis = 0;
while(namesch[ixis]){
if (namesch[ixis].className == "name"){
namesch[ixis].getElementsByTagName("a")[1].href = "#bottom";
namesch[ixis].getElementsByTagName("a")[1].onclick = function() {
conts = this.innerHTML.substring(0,1);
if (conts != "<"){ document.post.message.value += inn + this.innerHTML + outt;}
else {document.post.message.value += inn + this.getElementsByTagName("strong")[0].innerHTML + outt;}
}
}
ixis++
}
</script>
Notice:
- This function is able only with the right side widgets.
- This function is able only when WYSIWYG is off!