|
Flames
May 18, 2011 19:37:35 GMT -8
Post by Wormopolis on May 18, 2011 19:37:35 GMT -8
a folder on fire sort of defeats the purpose of the code really.. I was intending to eliminate the folder column completely and put something animated in the title cell
|
|
|
Post by Streamstrider on May 18, 2011 22:01:36 GMT -8
Isn't there a separate column beside the folder column? Why not put the flame and ice backgrounds there? Or even replace the icon/fill the column with the appropriate background?
|
|
|
Flames
May 18, 2011 22:28:41 GMT -8
Post by Wormopolis on May 18, 2011 22:28:41 GMT -8
the topic icon?
|
|
|
Flames
May 19, 2011 8:42:41 GMT -8
Post by Streamstrider on May 19, 2011 8:42:41 GMT -8
This is kind of what I was thinking, either with or without the folder icons. (If you choose to remove the folder icons, you might need to come up with a way to indicate that a thread is locked. Personally, I think the folders could be kept. The topic icons are the ones that seem a little silly to me.)
Here's an idea for indicators, if you choose to remove the folders and can do something like this:- Locked [Normal] :: Ice Crystals or Something Cold Feeling
- Locked [Stickied or Announced] :: Blue Fire Instead of Red
- Announcement/Sticky [Unlocked] :: Maintain Blue Fire (Or put blue explosion)
- Posted in Within 1 Week :: Bright Flame
- Posted in Within 2 Weeks :: Medium Flame
- Posted in Within 3 or 4 Weeks :: Low Flame
- Post in Within 5 or More Weeks :: Sparks
Depending on the code, I would suppose it would be possible for admins to replace the original images if they so choose. (Though I would think the code would have to do background, and not simply input an image, because it might look funny if the cell is wider or taller than the image.)
|
|
|
Flames
May 19, 2011 19:08:24 GMT -8
Post by Wormopolis on May 19, 2011 19:08:24 GMT -8
this board in particular uses topic icons to denote request status.. so I need them here. in general though, I like your idea...
the code would have an array setup for images and post age. I was thinking of making it by days, so 0 days (today) would have an image, 1 day (yesterday) would have a different one, and you could then setup your own range of days after that. if it fell into one range but not the next it goes with the last image it found. different images for stuckied/locked/announce couldalso be a seperate array. all images would become backgrounds.
what Im currently thnking is having the flames START in the folder icon area.. and decrease in height the farther left.. but Im researching CSS to see if thats even possible.
|
|
|
Flames
May 19, 2011 20:14:17 GMT -8
Post by Streamstrider on May 19, 2011 20:14:17 GMT -8
What if you made different versions to allow for the use of either column? That way, people who use the topic icons can keep them and replace the folders, while those who don't need either the folders or the topic icons could just not deal with it.
Like, having an option in the code to keep or not keep the topic icon column.
|
|
|
Flames
May 19, 2011 20:52:22 GMT -8
Post by Wormopolis on May 19, 2011 20:52:22 GMT -8
not really different versions.. that would be a nightmare to support. it would be better to just have a variable in the code that allowed you to use one or the other or both
|
|
|
Post by Streamstrider on May 19, 2011 22:42:33 GMT -8
Yeah, that's what I meant in the last part of my post. XD
|
|
hobo
Not New Member
Posts: 38
hobo said 0 great things
|
Flames
May 20, 2011 14:26:26 GMT -8
Post by hobo on May 20, 2011 14:26:26 GMT -8
ANYWAYS!
|
|
|
Flames
May 21, 2011 3:32:35 GMT -8
Post by Wormopolis on May 21, 2011 3:32:35 GMT -8
I actually have the CSS make the flame lower based on age of posts currently. Im only using 1 image. I also randomized the horizontal repeat so 2 adjacent cells dont look exactly alike anymore.
|
|
hobo
Not New Member
Posts: 38
hobo said 0 great things
|
Flames
May 22, 2011 11:42:17 GMT -8
Post by hobo on May 22, 2011 11:42:17 GMT -8
so can you post the code for making the flames? i want it!!!
|
|
|
Flames
May 22, 2011 18:57:27 GMT -8
Post by Wormopolis on May 22, 2011 18:57:27 GMT -8
<script type="text/javascript"> <!-- // hot threads by Wormopolis // www.wormocodes.com // keep header intact
var tstArray=['jan','feb','mar','apr','may','jun','jul','aug','sept','oct','nov','dec']; var snuffFire=14; //days before flame is totally snuffed out
if (pb_action=='boardindex') { var todayDate=new Date(); for (tds=document.getElementsByTagName('td'), tt=0; tt<tds.length; tt++) { if (tds[tt].width=='48%' && tds[tt].nextSibling.nextSibling.nextSibling.nextSibling.width=='20%') { var lpcell=tds[tt].nextSibling.nextSibling.nextSibling.nextSibling; var dayPerc; if (lpcell.innerHTML.match('Today')) dayPerc=100; else if (lpcell.innerHTML.match('Yesterday')) dayPerc=90; else if (lpcell.innerHTML.match(/>(.*?)\s(\d+), (\d+),/)) { tmpMnth=RegExp.$1; tmpDate=RegExp.$2; tmpYr=RegExp.$3; for (mm=0; mm<tstArray.length; mm++) if (tmpMnth.toLowerCase()==tstArray[mm]) {tmpMnth=mm; break;} var tmpdt=new Date(); tmpdt.setMonth(tmpMnth); tmpdt.setDate(tmpDate); tmpdt.setFullYear(tmpYr); tmp=(todayDate-tmpdt)/(1000*60*60*24); dayPerc=(tmp > snuffFire ? 0 : 90 - parseInt((tmp/snuffFire)*90) ); } if (dayPerc > 0) { tds[tt].style.backgroundImage="url(http://i197.photobucket.com/albums/aa250/WORMOPOLIS/Flamesexample2.gif)"; tds[tt].style.backgroundPosition= parseInt(Math.random()*100)+'% '+dayPerc+'%'; tds[tt].style.backgroundRepeat="repeat-x"; for (cn=tds[tt].getElementsByTagName('font'), cc=0; cc<cn.length; cc++) cn[cc].style.backgroundColor=tds[tt].bgColor; } } } } // --> </script>
|
|
|
Flames
May 24, 2011 5:51:37 GMT -8
Post by Streamstrider on May 24, 2011 5:51:37 GMT -8
I like what you did with it, Wormo. Looks more seamless than before.
|
|
|
Flames
May 24, 2011 22:34:56 GMT -8
Post by Wormopolis on May 24, 2011 22:34:56 GMT -8
havent done anything with icicle images... might have to come back to it.
|
|
|
Flames
May 31, 2011 21:44:05 GMT -8
Post by Streamstrider on May 31, 2011 21:44:05 GMT -8
Does it go in the header or footer? (And can it just be used for one board instead of all of them?)
|
|