eZ Forum: Drop Smilies or Provide Clean Code Posting

Author Message

Alex Jones

Monday 28 July 2003 7:12:38 am

While the smilies are a cute touch, I think they get in the way of reading and copying posted code; to the detriment of all users. So, I ask that you disable the use of smilies in the forums, or that you provide an easy method for people to wrap their code with a tag that will ensure the characters are not converted into smilies.

It would be grand if we could have the latter, especially if it could preserve spacing. I.e. set up a tag equivalent to HTML's "pre" or "code".

Either way, I think it is more important for the posted code to be understandable and accurate than to have the ability to display smilies.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Bård Farstad

Monday 28 July 2003 7:39:44 am

There are some cases where smilies messes up the forum messages, true. It was added as a quick example of how you can extend the template language in eZ publish.

Mabye we should add, as you say, a tag which will be rendered and handled like code.

My untouched code here.

This should probably be an extension to the word2image operator used for smilies.

-bård

Documentation: http://ez.no/doc

Alex Jones

Monday 28 July 2003 8:10:35 am

That would be ideal. :) Thanks!

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Thursday 28 August 2003 7:35:07 am

Bård, is there any chance of this getting implemented in the near future?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Jan Borsodi

Thursday 28 August 2003 7:46:04 am

We are planning to some other upgrades on ez.no in about a week or so, we'll try to do this as well when we start.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Alex Jones

Thursday 28 August 2003 7:54:57 am

Great! Thanks for the update.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Monday 01 December 2003 7:24:45 am

Is there any chance of this getting fixed soon? While this isn't a big issue, it is very annoying when we try to copy code shown in the forums. It should also be very straightforward to fix as it is just the addition of a new tag and perhaps a message announcing the capability.

Please please please implement this one small change.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Georg Franz

Monday 01 December 2003 7:42:10 am

Hi Alex,

yes, you are right, it's annoying.

But I think, it's not necessary to add tags like "pre" ord "code" (but they can be usefull).

The problem is the wordtoimage-operator which is working with "str_replace" and not with a preg_match.

Therefor I've written an update, have a look at
http://ez.no/developer/ez_publish_3/contributions/wordtoimage_operator_update

With my version php-code should not be altered. (Moreover, it detects smiles like ;-)))))

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Alex Jones

Monday 01 December 2003 7:50:33 am

Emil, that too would be a vast improvement! I would be happy either way, I just want code to render properly. :)

Thanks for providing the update!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Tuesday 02 December 2003 7:56:36 am

Actually, I think a PRE tag is needed as it would also preserve indented lines which would make it much easier to read code that is posted. Having it set to a fixed-width font would be helpful as well.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Monday 05 January 2004 9:10:51 am

eZ Crew, is there any chance of having this added to the forum in the near future? It owuld certainly make life much easier.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Bård Farstad

Tuesday 06 January 2004 12:05:54 am

I'm going to update ez.no in a week or so, I will probably add a code/pre/literal tag you can use in the forums.

--bård

Documentation: http://ez.no/doc

Alex Jones

Tuesday 06 January 2004 6:13:05 am

That's great Bård! Thanks.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:38:32
Script start
Timing: Jan 18 2025 10:38:32
Module start 'layout'
Timing: Jan 18 2025 10:38:32
Module start 'content'
Timing: Jan 18 2025 10:38:32
Module end 'content'
Timing: Jan 18 2025 10:38:32
Script end

Main resources:

Total runtime0.5755 sec
Peak memory usage4,096.0000 KB
Database Queries91

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.1406152.6406
Module start 'layout' 0.00650.0031 740.781339.4766
Module start 'content' 0.00960.5644 780.2578740.9297
Module end 'content' 0.57400.0015 1,521.187528.1250
Script end 0.5754  1,549.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5918160.0002
Check MTime0.00120.2140160.0001
Mysql Total
Database connection0.00140.248510.0014
Mysqli_queries0.481483.6503910.0053
Looping result0.00080.1403890.0000
Template Total0.548795.320.2744
Template load0.00200.349120.0010
Template processing0.546794.997720.2733
Template load and register function0.00010.014110.0001
states
state_id_array0.00020.042210.0002
state_identifier_array0.00070.115920.0003
Override
Cache load0.00200.3420660.0000
Sytem overhead
Fetch class attribute can translate value0.00040.075940.0001
Fetch class attribute name0.00110.1954170.0001
XML
Image XML parsing0.00280.483740.0007
class_abstraction
Instantiating content class attribute0.00010.0098260.0000
General
dbfile0.00110.1864360.0000
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
13content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
13content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 47
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs