Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Display Signature Once Per Page In Threads; I hate seeing that siggy over and over!
Topic Started: Sep 15 2004, 07:16 PM (2,028 Views)
Zero Tolerance
Member Avatar
Being me is not a good thing.
 *   *   *  
This does what the title says, it will display a user's signature once per page, so if on a page a person has replied more than once, in those 2nd, 3rd, etc.. replies there signature will not be shown.

Also for code's which use signature for storing data (i know one im making does), i made the code just "hide" the signature instead of removing it's contents.

Footers, easy as pie:
Code:
 
<script>
// 1 Signature Per Page In Threads
// Created By Zero Tolerance
// ©2003-2004 Game Zone | Evolution, All Rights Reserved

sigArray = new Array();
sigArray[0] = "";

if(location.href.match(/showtopic=(\d+)/i)){
Div = document.getElementsByTagName('div')
for(d=0;d<Div.length;d++){
 if(Div[d].className == "signature"){
 Hide = 0
  for(s=1;s<sigArray.length;s++){
   if(sigArray[s] == Div[d].innerHTML){
   Hide++
   }
  }
  if(Hide > 0){
  Div[d].style.display = 'none'
  } else {
  sigArray[sigArray.length] = Div[d].innerHTML
  }
 }
}
}
</script>


And questions or problems, let me know, enjoy

- Zero Tolerance
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

Sounds like a good idea. :)
I hate seeing people's sigs over and over on the same page.

Would it be possible to modify it to display the sig in the last of a person's posts instead of the first, and if so, what would I need to change? :unsure:
Quote Post Goto Top
 
Zero Tolerance
Member Avatar
Being me is not a good thing.
 *   *   *  
PhranK
September 15, 2004 08:09 PM
Sounds like a good idea. :)
I hate seeing people's sigs over and over on the same page.

Would it be possible to modify it to display the sig in the last of a person's posts instead of the first, and if so, what would I need to change? :unsure:

It is possible, a simple reverse action of the loop, gimme a couple of secs ill post an edited version for you :)

- Zero Tolerance
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

Sweet.
I hadn't really thought of which way would be better, but being able to choose is always nice. :)
I'll try it both ways and see what it's like.
Quote Post Goto Top
 
Zero Tolerance
Member Avatar
Being me is not a good thing.
 *   *   *  
Code:
 
<script>
// 1 Signature Per Page In Threads - Revsered Action (Shows Last Posts Signature)
// Created By Zero Tolerance
// ©2003-2004 Game Zone | Evolution, All Rights Reserved

sigArray = new Array();
sigArray[0] = "";

if(location.href.match(/showtopic=(\d+)/i)){
Div = document.getElementsByTagName('div')
for(d=(Div.length-1);d>-1;d--){
if(Div[d].className == "signature"){
Hide = 0
 for(s=1;s<sigArray.length;s++){
  if(sigArray[s] == Div[d].innerHTML){
  Hide++
  }
 }
 if(Hide > 0){
 Div[d].style.display = 'none'
 } else {
 sigArray[sigArray.length] = Div[d].innerHTML
 }
}
}
}
</script>


There ya go, enjoy :)

- Zero Tolerance
Offline Profile Quote Post Goto Top
 
Agung
meh!
 *  
where do i put this code in?

edit : nevermind just found it :$
Offline Profile Quote Post Goto Top
 
Ryan_Page
Member
 *  
you are a lifesaver!
Offline Profile Quote Post Goto Top
 
TrueSatan
Member
 *  
I've been using this code for some time and have found it to be without problems so it's rather disappointing to find that's it has stopped working on my board. I made no changes to the board between the last time it worked and now and have tried moving the code around in the wrappers but to no avail. Any ideas?
Offline Profile Quote Post Goto Top
 
lordshaun
join my forum :D
 *   *  
nice im useing this
Offline Profile Quote Post Goto Top
 
CoA
The Shake Zoola
 *   *  
Erm, maybe his host dropped the code. I don't know, personally I don't use it. I'll make a test board and try it out though
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

Um.. nothing is being hosted. :ermm:

*PhranK tests the code

Works fine for me in both IE and Firefox. :eh:
Quote Post Goto Top
 
404
Member
 *   *  
Love it, now I can check on their sigs without going bonkers! :lol:
Offline Profile Quote Post Goto Top
 
Pro-Zac
Member Avatar
Look @ My Sig
 *   *   *  
thanx so much
Offline Profile Quote Post Goto Top
 
XBoNeSX
Member
 *  
code works sweet ! only 1 issue I have now members noticed it only 1 sig per post in thread .. there now using [\quote] so it repeats like code not been added..anyone help with this ?
Offline Profile Quote Post Goto Top
 
IPNDFW333
Member
 *   *  
This does not work for me, Im on IE7.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code Snippets · Next Topic »
Add Reply