1 Click on nick & quick quote in bb3 Sat Oct 02, 2010 4:36 pm
Lucky
Registered Member
When you make a click on nick-name, you go to user's profile. When you make a click on quote, you quote the whole post.
If you want to receive a result like this:
and if you want to quote just a part of post (highlight a part & press "quote" button) 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 don't want widgets on your forum:
add this code to your invisible widget before all
If you want to receive a result like this:
- Code:
[b]Nick-name,[/b]
and if you want to quote just a part of post (highlight a part & press "quote" button) 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], '; var inn1 = '[quote="'; var inn2 = '"]'; var outt1 = '['+'/quote]'; var txt = '';sch = document.getElementsByTagName("img"); ix = 0;namesch = document.getElementsByTagName("div"); ixis = 0;while(sch[ix]){if (sch[ix].className == "i_icon_quote"){sch[ix].parentNode.href="#bottom";sch[ix].parentNode.onclick = function() {if (document.getSelection) {txt=document.getSelection();}else if (document.selection) {txt=document.selection.createRange().text;}rtx = this.parentNode.parentNode.parentNode.parentNode.getElementsByTagName("div"); ixi = 0;while(rtx[ixi]){if (rtx[ixi].className == "postprofile"){conts = rtx[ixi].getElementsByTagName("a")[1].innerHTML.substring(0,1);if (conts != "<"){document.post.message.value += inn1 + rtx[ixi].getElementsByTagName("a")[1].innerHTML + inn2 + txt + outt1;}else {document.post.message.value += inn1 + rtx[ixi].getElementsByTagName("a")[1].getElementsByTagName("strong")[0].innerHTML + inn2 + txt + outt1;}}ixi++}}}ix++}while(namesch[ixis]){if (namesch[ixis].className == "postprofile"){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!
If you don't want widgets on your forum:
add this code to your invisible widget before all
- Code:
<style>#content-container div#right{display:none;}
#content-container div#content{margin-right:0;}</style>