Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: [FIX] strike validation fix (1.6)  (Read 3249 times)

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
[FIX] strike validation fix (1.6)
« on: May 25, 2007, 07:46:14 am »

Bug Report
http://snewscms.com/forum/index.php?topic=4722.0

Inside admin mode you have a possibility to add the tags <strike></strike> in order to get a striked through text. This do not validate, so changing your snews.php from strike to del as the first do not validate, but the latter do is good...

in //ARTICLE FORM:
Quote
echo html_input('button', 'strike', '', 'Strike', '', 'button', 'onclick="tag(\'strike\')"', '', '', '', '', '', '', '', '');
to:

Quote
echo html_input('button', 'del', '', 'Strike', '', 'button', 'onclick="tag(\'del\')"', '', '', '', '', '', '', '', '');
« Last Edit: October 08, 2007, 05:42:24 pm by Keyrocks »
Logged
"It's only dead fish that goes with the flow... "
Updated

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
[FIX] strike validation fix (1.6)
« Reply #1 on: May 25, 2007, 02:47:44 pm »

And... if you'd still like the button text to say "Strike"... you can leave the word "Strike" in place as shown in blue... without affecting the validation:
Quote
echo html_input('button', 'del', '', 'Strike', '', 'button', 'onclick="tag(\'del\')"', '', '', '', '', '', '', '', '');
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
[FIX] strike validation fix (1.6)
« Reply #2 on: May 25, 2007, 07:17:22 pm »

Hehe, yup, did that myself actually without mentioning it here... Thanks, Dougie.
Logged
"It's only dead fish that goes with the flow... "
Updated