Page 1 of 1
A good idea from some forum members
#1
Posted 17 August 2004 - 10:51 PM
Since this is the place to suggest stuff (i think anyway)
http://www.msfn.org/board/index.php?showto...ndpost&p=169731
That 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.
http://www.msfn.org/board/index.php?showto...ndpost&p=169731
That 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.
#2
Posted 17 August 2004 - 11:53 PM
Yup!
Both seem to be good ideas. Not that I was missing those features, but the idea is good.
Both seem to be good ideas. Not that I was missing those features, but the idea is good.
#3
Posted 29 August 2004 - 02:02 AM
Actually, it's not that hard to add at all...
You can save a page locally and see for yourself
Along with any java script somewhere at the top of the page add this:
This is the part that actually shows/hide the CODE sections
Getting 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:
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.
You can save a page locally and see for yourself
Along 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 sections
Getting 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.
#4
Posted 29 August 2004 - 02:12 AM
@crahak
That's nice then - we'll just have to wait and see if that suggestion is found to be good enough......
That's nice then - we'll just have to wait and see if that suggestion is found to be good enough......
#5
Posted 29 August 2004 - 02:32 AM
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...
#6
Posted 29 August 2004 - 02:39 AM
@crahak
no 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.
no 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.
#7
Posted 29 August 2004 - 02:44 AM
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)
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)
#8
Posted 29 August 2004 - 10:51 AM
Nobody's got comments on the screenies? I guess it's not a much visited section of the website either...
#9
Posted 29 August 2004 - 10:59 AM
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.
But the final decision is determined by xper most likely.
Share this topic:
Page 1 of 1



Help
Back to top










