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 [bb2] Sat Oct 02, 2010 4:20 pm

Lucky

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

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>
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!

2Rejected Re: Click on nick [bb2] Sun Oct 03, 2010 9:36 pm

ankillien

ankillien
Administrator
Administrator
ankillien wrote: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?

3Rejected Re: Click on nick [bb2] Sun Oct 31, 2010 4:08 pm

ankillien

ankillien
Administrator
Administrator
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