english 
Thread Options  Search this Thread  
Post: #1
18-01-2009 00:57 AM (This post was last modified: 22-01-2009 09:55 AM by barryg)
barryg


Joined: 29-10-2008
Posts: 9
Country: United Kingdom
Male barryg is Offline now
Suggestion: Sticky Cells
Hey guys,

Just a simple suggestion really, I find it hard to tell the difference between stickies in forums and normal posts, and thought it'd be useful if you could distinguish by having a different cell background color, like most popular forum software does. I've written a greasemonkey mod for forums I visit, but it'd be great if it was implemented at source!

CODE:
// ==UserScript==
// @name          Change Sticky Style
// @namespace     http://TS_StickyStyle/stickystyle
// @description   Colours in Stickies so they're easier to see
// @include       http://templateshares.net/tsf_forums/forumdisplay.php*
// ==/UserScript==


function changeStickyStyle() {
  var iTD=document.getElementsByTagName('TD');
  for(i=0;i<iTD.length;i  ) 
    if(iTD[i].className=="trow1" && iTD[i].innerHTML.match(/important thread/i) ){ 
      for (u=0;u<4;u  )
        iTD[i u].style.backgroundColor='#C4C4C4';
    }
}

changeStickyStyle();


To see what i'm getting at, change the include to your own site

Post: #2
22-01-2009 22:39 PM
barryg


Joined: 29-10-2008
Posts: 9
Country: United Kingdom
Male barryg is Offline now
Suggestion: Sticky Cells
Any thoughts on this one?

Post: #3
22-01-2009 22:57 PM
parallaxz71


Joined: 11-01-2007
Posts: 5,336
Country: United States of America
Awards:  
Male parallaxz71 is Offline now
Suggestion: Sticky Cells
its user preference but a nice idea.....

Post: #4
06-02-2009 00:49 AM
barryg


Joined: 29-10-2008
Posts: 9
Country: United Kingdom
Male barryg is Offline now
Suggestion: Sticky Cells
Thanks for the response. A different class name for stickied cells would be lovely, it'd then be easier to implement at CSS level

Post: #5
06-02-2009 02:14 AM
aladdin56789


Joined: 29-01-2008
Posts: 181
Country: Netherlands
Male aladdin56789 is Offline now
Suggestion: Sticky Cells
but where to add this Code .. and thanks for your suggestion

Post: #6
06-02-2009 02:41 AM
barryg


Joined: 29-10-2008
Posts: 9
Country: United Kingdom
Male barryg is Offline now
Suggestion: Sticky Cells
That piece of code is just a greasemonkey script for firefox. If you have the greasemonkey addon, you can install it from that, and edit it to include your site name. The forum edits out a few of the plus signs, so if you would like to try it, i'll have to attach it as a .txt

Post: #7
06-02-2009 03:09 AM
aladdin56789


Joined: 29-01-2008
Posts: 181
Country: Netherlands
Male aladdin56789 is Offline now
Suggestion: Sticky Cells
thank you

Quick Reply
Decrease Size
Increase Size
Insert bold text Insert italic text Insert underlined text Align text to the left Align text to the centerr Align text to the right Justify text Insert quoted text Code Insert formatted PHP code Insert formatted SQL code
Colors
Insert hyperlink Insert image Insert email address
Smilies
Insert hidden text



Forum Jump: