WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Rejected Click on nick & quick quote in bb3 Sat Oct 02, 2010 4:36 pm

Lucky

Lucky
Registered Member
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:

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>
and save it. After dont forget to add.

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>

2Rejected Re: Click on nick & quick quote in bb3 Sun Oct 03, 2010 10:59 am

YanOri

YanOri
Registered Member
Registered Member
the quick quote thingy, its the coolest of all Smile

thank you for the wonderful tuto..

3Rejected Re: Click on nick & quick quote in bb3 Sun Oct 03, 2010 3:52 pm

Lucky

Lucky
Registered Member
Registered Member
Dimon, enjoy Wink

4Rejected Re: Click on nick & quick quote in bb3 Sun Oct 03, 2010 5:42 pm

YanOri

YanOri
Registered Member
Registered Member
Lucky wrote:Dimon, enjoy Wink

thanks, also... i don't find this on forumotion's help forum ? :O

5Rejected Re: Click on nick & quick quote in bb3 Sun Oct 03, 2010 9:35 pm

ankillien

ankillien
Administrator
Administrator
Hi Lucky,

Thanks for the tutorial but I don't find any thing to lean from it Neutral

It can't be considered to be a tutorial unless it explains 'how stuff works'. Here, you are just giving a copy-paste code and bingo but members won't get anything to learn from them. What we expect is to know how the javascript works Smile

Can you explain it?

6Rejected Re: Click on nick & quick quote in bb3 Sun Oct 03, 2010 9:41 pm

Lucky

Lucky
Registered Member
Registered Member
Hi, ankillien!
I explain here http://www.webartzforum.com/suggestions-f9/click-on-nick-quick-quote-t1736.htm#25952
Or you like me to copy that in the first post?

The problem is - i don't speak english good. So you have to try it, if you still don't understand even with screenshots. Smile

7Rejected Re: Click on nick & quick quote in bb3 Sun Oct 03, 2010 9:48 pm

ankillien

ankillien
Administrator
Administrator
No, I didn't mean that.

We can understand what does the code do but we can't understand how. You are just providing a copy-paste code to members which can't be considered as a tutorial since a tutorial should have something to learn from Smile

8Rejected Re: Click on nick & quick quote in bb3 Sun Oct 03, 2010 9:51 pm

YanOri

YanOri
Registered Member
Registered Member
@Lucky ... How does this code work is what ankillien meant

9Rejected Re: Click on nick & quick quote in bb3 Sun Oct 03, 2010 10:06 pm

Lucky

Lucky
Registered Member
Registered Member
Laughing i don't know how. I use it more then 1 year & want to share with you.

10Rejected Re: Click on nick & quick quote in bb3 Sun Oct 31, 2010 4:08 pm

ankillien

ankillien
Administrator
Administrator
Lucky wrote:I use it more then 1 year & want to share with you.

Well, sharing is good but we actually expect to learn something from tutorials instead of just get some codes to copy-paste. We appreciate your contribution though Very Happy

Tutorial Rejected

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum