Alanoll Posted August 18, 2004 Share Posted August 18, 2004 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. Link to comment Share on other sites More sharing options...
prathapml Posted August 18, 2004 Share Posted August 18, 2004 Yup!Both seem to be good ideas. Not that I was missing those features, but the idea is good. Link to comment Share on other sites More sharing options...
CoffeeFiend Posted August 29, 2004 Share Posted August 29, 2004 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. Link to comment Share on other sites More sharing options...
prathapml Posted August 29, 2004 Share Posted August 29, 2004 @crahakThat's nice then - we'll just have to wait and see if that suggestion is found to be good enough...... Link to comment Share on other sites More sharing options...
CoffeeFiend Posted August 29, 2004 Share Posted August 29, 2004 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... Link to comment Share on other sites More sharing options...
prathapml Posted August 29, 2004 Share Posted August 29, 2004 @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. Link to comment Share on other sites More sharing options...
CoffeeFiend Posted August 29, 2004 Share Posted August 29, 2004 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) Link to comment Share on other sites More sharing options...
CoffeeFiend Posted August 29, 2004 Share Posted August 29, 2004 Nobody's got comments on the screenies? I guess it's not a much visited section of the website either... Link to comment Share on other sites More sharing options...
Alanoll Posted August 29, 2004 Author Share Posted August 29, 2004 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. Link to comment Share on other sites More sharing options...
xper Posted August 29, 2004 Share Posted August 29, 2004 No forums hack until IPB 2.0 final is out. Sorry. Link to comment Share on other sites More sharing options...
CoffeeFiend Posted August 29, 2004 Share Posted August 29, 2004 Okie When's it supposed to be final anyways? Link to comment Share on other sites More sharing options...
prathapml Posted August 29, 2004 Share Posted August 29, 2004 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now