Author Topic: More news tweaks?  (Read 2045 times)

dreadnaut

  • Helen`s Lover
  • **
  • Posts: 613
    • View Profile
    • chezDreadnaut
More news tweaks?
« on: August 21, 2013, 11:52:25 AM »
I have another idea on the back of my mind, but I think I need feedback before I touch the relative code.

At the moment one can write anything in the news box. This is nice (images, videos!), although it can lead to serious trouble. I have already fixed the nasty kind, but accepting html and javascript is still a problem.

I'd like to filter more stuff then, but without cutting useful features. I was thinking about:

  • filter all html stuff (I can either remove it silently or make it appear as inactive code)
  • accept links and do smart things: e.g., if one sends a youtube link, the video gets embedded, same with images.


Would that work? Is there anything else that would make sense?

Maybe some text formatting such as *bold text* or ZCTxxx becoming links to the track page?

zaqrack

  • Administrator
  • Addicted to spam
  • *****
  • Posts: 4527
    • View Profile
    • ZakStunts
Re: More news tweaks?
« Reply #1 on: August 21, 2013, 02:05:55 PM »
thanks for the added security!

Since the shoutbox has very limited use, disabling HTML would not be a real issue IMHO. Formatiing is not that necessary either.
auto-links to track pages is space technology :)

Duplode

  • Considering trying out spam
  • *******
  • Posts: 3406
  • Through the astral door - to soar
    • View Profile
    • The Southern Cross Stunts Trophy
Re: More news tweaks?
« Reply #2 on: August 21, 2013, 08:08:31 PM »
I'd like to filter more stuff then, but without cutting useful features. I was thinking about:

  • filter all html stuff (I can either remove it silently or make it appear as inactive code)
  • accept links and do smart things: e.g., if one sends a youtube link, the video gets embedded, same with images.


Would that work? Is there anything else that would make sense?

Maybe some text formatting such as *bold text* or ZCTxxx becoming links to the track page?

Sounds perfect to me. On seeing this topic my gut reaction was "add a Markdown parser"; however, Zak is right in saying that formatting is inessential - little "smart things" like the ones you suggested are far more interesting.
« Last Edit: August 21, 2013, 08:10:22 PM by Duplode »

dreadnaut

  • Helen`s Lover
  • **
  • Posts: 613
    • View Profile
    • chezDreadnaut
Re: More news tweaks?
« Reply #3 on: September 13, 2013, 05:41:18 PM »
Space technology, here we go! 8)   Things that are recognised in the shoutbox:

* stuff like www.something.abc and http/https links become clickable
* links to youtube videos (youtube.com or youtu.be) become tiny video players
* links to an image will show the image itself
* links to forum topics will have the topic title pulled from the database!
* ZCT<number> become links to the track results
* *something* and _something_ can be used to emphasize words

Other suggestions?

Duplode

  • Considering trying out spam
  • *******
  • Posts: 3406
  • Through the astral door - to soar
    • View Profile
    • The Southern Cross Stunts Trophy
Re: More news tweaks?
« Reply #4 on: September 13, 2013, 05:55:52 PM »
* links to forum topics will have the topic title pulled from the database!

That is really cool! 8)

dreadnaut

  • Helen`s Lover
  • **
  • Posts: 613
    • View Profile
    • chezDreadnaut
Re: More news tweaks?
« Reply #5 on: September 13, 2013, 06:30:34 PM »
Aaaand... smileys! All those available in the forum  :o  :P  :-X  ;D

alanrotoi

  • Having only spam addict friends
  • ********
  • Posts: 3982
  • Suck my Indy!
    • View Profile
    • Maite Zaitut, La Vengadora Oscura
Re: More news tweaks?
« Reply #6 on: September 13, 2013, 10:15:20 PM »
Nice work! Thanks!

zaqrack

  • Administrator
  • Addicted to spam
  • *****
  • Posts: 4527
    • View Profile
    • ZakStunts
Re: More news tweaks?
« Reply #7 on: September 14, 2013, 02:45:20 PM »
Mr Awesome!!!! many thanks!

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20048
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Re: More news tweaks?
« Reply #8 on: September 14, 2013, 03:11:01 PM »
Mr Awesome!!!! many thanks!

That was a coming out, huh?

Friker

  • Otto's Student
  • **
  • Posts: 385
    • View Profile
Re: More news tweaks?
« Reply #9 on: September 14, 2013, 04:46:17 PM »
please do no add a feature "- something -" resulting in "somthing" (most hated thing in gtalk..) i also do not like *sth* but it is more tolerable than that dashed thing :-/

dreadnaut

  • Helen`s Lover
  • **
  • Posts: 613
    • View Profile
    • chezDreadnaut
Re: More news tweaks?
« Reply #10 on: September 14, 2013, 11:56:14 PM »
I can probably remove *something* and leave only _something_, since bold does not actually work at that text size.

dreadnaut

  • Helen`s Lover
  • **
  • Posts: 613
    • View Profile
    • chezDreadnaut
Re: More news tweaks?
« Reply #11 on: September 17, 2013, 06:01:48 PM »
I can probably remove *something* and leave only _something_, since bold does not actually work at that text size.

The above, and I added a list of the available shortcuts to the post news page.

dreadnaut

  • Helen`s Lover
  • **
  • Posts: 613
    • View Profile
    • chezDreadnaut
Re: More news tweaks?
« Reply #12 on: November 14, 2013, 06:14:33 PM »
ZCTnnn track names now work in the admin news too. Also, fixed markdown not being markdowned in the archives.