SparkyLinux Forums

Development => Suggestions => Topic started by: perknh on August 19, 2014, 10:53:47 PM

Title: A Spoiler Button For Posting The Results Of Commands
Post by: perknh on August 19, 2014, 10:53:47 PM
If there's one thing I've learned over the last couple of days, it is this: when you run commands such as dmesg and lsmod, the results can take an enormous amount of space -- pages of space!  This is why a spoiler button could become very, very handy here at Sparky.  A spoiler button takes a page of code and puts it into a very small and condensed space.  Here's an example:

http://forum.peppermintos.com/index.php/topic,858.msg7414.html#msg7414

After what I've seen with the results of the command dmesg, I bet such a tool would become very popular around here quite quickly.   ;)

Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: way12go on August 22, 2014, 01:35:43 PM
Yeah! It will be handy. I read your wifi post. Damn I'm not an expert to understand any of it but, it was very interesting. The funny thing is there was no error. You just removed something and completely forgot about it and then when the problem is solved, you got reminded of it that it was your silly mistake.  :)
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: perknh on August 22, 2014, 02:14:23 PM
Hello way12go,

That's exactly what it was -- my silly mistake.  I saw they had a Network Manager (called Manage Networks), and I thought it looked like a better replacement to the default System Tray.  Yes, "my silly mistake" -- that's a good way of putting it.  ;)

The funny thing is, way12go, we may have discovered a bug with the LXDE Network Manager during this whole process.  But we'll have to wait and see if MoroS encounters the same problem on his computer.  If he does, we've discovered a bug -- and all because of my silly mistake! 

This may be an LXDE issue, or maybe it's just an issue with my laptop and that LXDE applet.  This we don't know yet.

Thanks for writing,

perknh

An update a couple of hours later:

According to pavroo -- our Global Moderator and Senior Member -- there's nothing to report. So, no, we didn't even find a bug out of that whole exercise.  Ouch!

Now, way12go, as for your comment, that a spoiler would "be handy."  Yes, spoilers take those long strings of code and get them out of the way until needed. Spoilers can help clean up posts, make reading easier, and save a lot of page space.

Of course, it's one thing to say spoilers would be helpful, but it's another thing to add the spoiler feature to Sparky's Forum.  I'm sure it's easier said than done.

I'm just sharing an idea that many people have found useful when dealing with long strings of code.
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: way12go on August 23, 2014, 02:36:14 AM
As you said "It's easier said than done" If you read pavroo's signature the message is similar.
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: perknh on August 23, 2014, 03:28:10 AM
It's so true.  What looks so simple to do can often take years to learn.
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: way12go on August 23, 2014, 06:12:16 AM
This is my blog

You will see a similar image.
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: perknh on August 23, 2014, 02:22:07 PM
I found it, way12go, and that's pretty cool that you have your own blog.  You got some philosophy in there, and some mathematical theory.  Interesting stuff. 

And that got me to thinking. A spoiler would be as helpful to a forum on mathematics as they are to forums with lots of computer code.  On a mathematics site a spoiler would take those long mathematical formulas and tuck them away until someone wants or needs to review them again.

Thank you for sharing your blog with me.  It's very impressive.

perknh
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: pavroo on August 23, 2014, 02:48:10 PM
QuoteA spoiler would be as helpful to a forum on mathematics as they are to forums with lots of computer code.
That's true.
I tried to find a mod to get the functionality but I couldn't.
If you know how to do that let me know, please.
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: perknh on August 23, 2014, 09:49:04 PM
Here we are, pavroo, compliments of PCNetSpec over at Peppermint forum.  ;)

We hope this helps:

http://forum.peppermintos.com/index.php/topic,884.msg7633.html#msg7633

Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: pavroo on August 23, 2014, 10:29:54 PM
Thank's a lot.
Installed already!
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: perknh on August 23, 2014, 11:58:05 PM
Click to view:

[spoiler]It looks great, pavroo!  When people learn how to use it, they going to like it a lot.  With the combination of increased page size and the spoiler tool, code is going to get a lot easier to work with here at Sparky. 

By the way, I just succumbed to temptation.  I just had to try it out!   :)[/spoiler]
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: pavroo on August 24, 2014, 02:34:41 AM
I was the only way to find out does it work or not :)
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: way12go on August 24, 2014, 03:54:20 AM
Awesome.
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: PCNetSpec on August 24, 2014, 05:01:58 PM
If an admin goes to

Administration Center > Modification Settings > Miscellaneous

I found it useful to change:-

Default spoiler title: Spoiler (click here to view)

and save.

So the default spoiler title looks like this:-

[spoiler=Spoiler (click here to view)]just sayin ;)[/spoiler]

[EDIT]

Another suggestion might be to reset your SMF theme(s) to "Return to topics after posting by default." .. instead of it returning you to the board index (as it did me when I first made this posting .. yet oddly not after the edit)

BTW, if any of this seems a bit presumptuous of me .. just ignore me ;)

OK, now off to test drive your distro....
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: pavroo on August 24, 2014, 06:19:59 PM
The spoiler done (added the text).
The second one not found yet :(
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: PCNetSpec on August 24, 2014, 07:12:31 PM
Go to

Administration Center > Themes and Layout > Member options

Then (one at a time) for EVERY listed theme select "Change current options for all members using this theme"

Find the line for "Return to topics after posting by default."

Set the drop menu for that item to "Change" .. and put a tick in the box.

Make sure that's the ONLY ticked item, and the ONLY one set to "Change"

Click the "Save" button.

Repeat those steps for your other themes.

then  make a test posting to see if it returns you to the topic rather than to the board menu.




Just testing the spoiler .. please ignore
[spoiler]That's makes it slightly easier to understand than just "Spoiler" :)[/spoiler]
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: pavroo on August 24, 2014, 08:34:06 PM
Done!
Thank's again, no much time for everything.
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: PCNetSpec on August 24, 2014, 08:36:38 PM
No problem :)
Title: Re: A Spoiler Button For Posting The Results Of Commands
Post by: way12go on August 24, 2014, 09:38:33 PM
Dear Friend perknh,

This is my video...