August 18, 200422 yr Since this is the place to suggest stuff (i think anyway)http://www.msfn.org/board/index.php?showto...ndpost&p=169731That post and the one right below it bring up some good points. I have no idea if it can be implemented or how, but the idea is a good one.
August 18, 200422 yr Yup!Both seem to be good ideas. Not that I was missing those features, but the idea is good.
August 29, 200421 yr Actually, it's not that hard to add at all...You can save a page locally and see for yourselfAlong with any java script somewhere at the top of the page add this:function CodeToggle(foo) { if (document.getElementById(foo).style.display == "none") { document.getElementById(foo).style.display = "inline"; } else {document.getElementById(foo).style.display = "none"; }}This is the part that actually shows/hide the CODE sectionsGetting there. Now we only miss 2 things for each CODE section generated in php (not that hard to add, either)1) Right after <b>CODE</b>, make it add:<a href="javascript:CodeToggle('colexp1');">+-</a> (with a space before). It will display "+-" as a hyperlink just besides where it says CODE in bold over the code block (this is the link that calls the javascript and that will make it toggle between expanded/collapsed)2) Almost right after that (past the </td></tr><tr><td id="CODE"><!--ec1--> immediately following it), make it add <span id="colexp1"> and </span> after the post (just before <!--c2--></td></tr> )Of course colexp1 (named like this as in collapse/expand #1), does have to increment for each code box (numbers only have to be unique, not consecutive or anything). A simple couter could take care of that (or any counter that goes up with each post on the page...)Tada! 5 minutes and you got the functionnality. (ok, the +- hyperlink isn't the prettiest thing possible, but you can do whatever you want... perhaps make <b>CODE</b> itself the hyperlink - maybe even with no underlining... sky's the limit) It's also very conservative on bandwidth/server resources and will not prevent anything from working with non-CSS compliant browsers or browsers with no JS enabled. Not bad for a 5 minute tweak? CSS+js rocks I'm not sure of who's the actual webmaster, or if someone can or can't do something like this. I could adapt a copy of the page myself too... I could also provide some screenshots if desired.
August 29, 200421 yr @crahakThat's nice then - we'll just have to wait and see if that suggestion is found to be good enough......
August 29, 200421 yr I was going to post screenshots but I'd have to find a place to host them first... at 5:30am (no, not an early bird-quite the contrary). I wish I could just have attached them, they're 1.28kb and 422 byte huge (.png's work well for this). I might post them later today, it looks good enough for me anyways...
August 29, 200421 yr @crahakno problem - I understood what you mean, and yes it'd be nice to have it as suggested.As for hosting for screenshots (and more), do you need more than 40 MB? If 40 MB of free hosting is enough, go here http://members.freewebs.com/ and sign up. And then post links to the screen-shot here.
August 29, 200421 yr Nevermind... I managed to find and sign up for some quality free hosting in less than 5 mintues, thanks to google Here comes the screenshots:Hopefully I don't exceed my bandwidth limit hosting such huge files, that's almost 2 whole kilobytes per page load [note] I clipped the right... didn't show much anyways. Also note the l33t registry tweak (ok, nm)
August 29, 200421 yr Nobody's got comments on the screenies? I guess it's not a much visited section of the website either...
August 29, 200421 yr Author I personally find it to be just fine. Simplistic so it's not confusing, and hopefully not that much more load on the server.But the final decision is determined by xper most likely.
August 29, 200421 yr You can check it up yourself at the IPB makers' home page. I'd say maybe 2 months before its final and we have it up and running here.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now