MSFN Forum: A good idea from some forum members - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

A good idea from some forum members Rate Topic: -----

#1 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

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.


#2 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

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.

#3 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,031
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

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:

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? :D

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 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

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...... :whistle:

#5 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,031
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

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 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

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. ;)

#7 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,031
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

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 :lol:

Here comes the screenshots:

Posted Image

Posted Image

Hopefully I don't exceed my bandwidth limit hosting such huge files, that's almost 2 whole kilobytes per page load :rolleyes:

[note] I clipped the right... didn't show much anyways. Also note the l33t registry tweak (ok, nm)

#8 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,031
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

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 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

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.

#10 User is offline   xper 

  • Insane Clown
  • Group: Administrator
  • Posts: 15,557
  • Joined: 16-August 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 August 2004 - 12:19 PM

No forums hack until IPB 2.0 final is out. Sorry.

#11 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,031
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 August 2004 - 01:28 PM

Okie :)

When's it supposed to be final anyways?

#12 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 August 2004 - 01:38 PM

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. :D

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy