[p2pu-dev] Fwd: [p2pu-espanol] problemas en p2pu.org para embeber codigo en los forum

Martín Olivera martin.olivera at gmail.com
Thu Jan 27 14:53:27 UTC 2011


I think that instruct all the people to use <code> tags would be the easiest
solution, thank you very much


2011/1/27 Charles Tanton <charles at parkroad.co.za>

> Aah - so you're saying it displays fine on the site, but it's in the email
> notification that it's an issue?
>
> (I tested on my local site and if I enter the code you sent in between the
> <code> tag it displays all the html and the php highlighted when on the site
> at least. E.g.
> <code>
> <html>
> <body>
>   This is an example, running on <?php echo date("d/m/Y H:i:s"); ?>
>   This is a <a href="<?php echo $URL ?>">dinamic link</a>
> </body>
> </html>
> </code>
>
> ).
>
>
>
> On 27 January 2011 16:26, Martín Olivera <martin.olivera at gmail.com> wrote:
>
>>
>>
>> 2011/1/27 Charles Tanton <charles at parkroad.co.za>
>>
>> Sorry about the problem Martin -
>>
>>
>> no problem with the problem, I am a developer too, so I can understand why
>> the problem is there. It is due to problems interpreting comments, filters
>> and escaping... but I am not sure if we we could find a compromise-solution
>> that really help our communcation in the course
>>
>> just two examples w/code
>>
>> suppose I want to share this
>>
>> <html>
>> <body>
>>   This is an example, running on <?php echo date("d/m/Y H:i:s"); ?>
>>   This is a <a href="<?php echo $URL ?>">dinamic link</a>
>> </body>
>> </html>
>>
>> I observed that it is different too what you may see on site and what you
>> see in the mail sent by subscription, probably because of filtering or HTML
>> included in mails...
>>
>>
>>
>>
>>> to see if we can fix it on the P2PU site, can you give me an exact
>>> example of code where it's stripping out the html so that I have something
>>> to work from. It may just be a matter of re-arranging the order of the
>>> filters that get applied to that field.
>>>
>>>
>>> On 27 January 2011 00:29, Martín Olivera <martin.olivera at gmail.com>wrote:
>>>
>>>>
>>>>
>>>> 2011/1/26 Charles Tanton <charles at parkroad.co.za>
>>>>
>>>> I've enabled the code filter module as  a quick fix - BUT, when they
>>>>> want to add code, they will need to disable the rich text editor and enter
>>>>> the code into the plain text field. They can re-enable the editor if they
>>>>> want and the code they've added should display fine. But, if you enter code
>>>>> into the field with the editor enabled it won't work. There may be a better
>>>>> way but on short notice, this should be good enough.
>>>>>
>>>>> Entering php code will have syntax highlighting. See
>>>>> http://drupal.org/project/codefilter for the module description.
>>>>>
>>>>
>>>> I've found problems with this using forum comments
>>>>
>>>> pure php code is highlighted, but
>>>>
>>>> html tags are not displayed, except sorrounding it with <code>
>>>>
>>>> parts of PHP + HTML mixed code (very frequently used) is misinterpreted
>>>>
>>>> I may understand the problem and I can write comments regarding on it,
>>>> but I cannot ask students for understanding this issues, while they are
>>>> learning PHP for the first time :(
>>>>
>>>> I think it would be better if I'd set up a google group or something
>>>> like this, or if you have a better solution... I wouldn't like to put p2pu
>>>> content outside the site itself, but I guess it would be a problem for
>>>> understanding
>>>>
>>>>
>>>>
>>>>>
>>>>> On 26 January 2011 20:01, Stian Håklev <shaklev at gmail.com> wrote:
>>>>>
>>>>>> There is a problem from the Spanish group with embedding PHP codes in
>>>>>> the discussion forums, with < and > getting stripped. Could we look into
>>>>>> this?
>>>>>>
>>>>>> Stian
>>>>>>
>>>>>>
>>>>>> ---------- Forwarded message ----------
>>>>>> From: Martín Olivera <martin.olivera at gmail.com>
>>>>>> Date: 2011/1/26
>>>>>> Subject: [p2pu-espanol] problemas en p2pu.org para embeber codigo en
>>>>>> los forum
>>>>>> To: p2pu-espanol at googlegroups.com
>>>>>>
>>>>>>
>>>>>> estoy viendo que no podemos embeber codigo PHP en los foros de
>>>>>> P2PU.org pues interpreta de diversas maneras las etiquetas < > y cosas que
>>>>>> escribimos se ven mal y son enviadas tambien mal por e-mail
>>>>>>
>>>>>> Hay alguna otra forma provista por P2PU para comunicarnos que no tenga
>>>>>> estas limitaciones con el codigo? estoy coordinando un curso de PHP y es muy
>>>>>> dificil no poder compartir los ejemplos y comentar codigo en los propios
>>>>>> foros...
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Martín Olivera
>>>>>> *@ NODOSOL http://www.nodosol.org *- Software Libre, impulsando el
>>>>>> desarrollo local
>>>>>> + blog en http://blog.martinolivera.com.ar
>>>>>> + microblog identi.ca <http://identi.ca/martinolivera> & twitter
>>>>>> @martinolivera
>>>>>> + Asociación SOLAR Software Libre Argentina - http://www.solar.org.ar
>>>>>> + Comunidad GINGA Argentina - http://comunidad.ginga.org.ar
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> http://reganmian.net/blog -- Random Stuff that Matters
>>>>>>
>>>>>>  --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "p2pu-dev" group.
>>>>>> To post to this group, send email to p2pu-dev at googlegroups.com.
>>>>>> To unsubscribe from this group, send email to
>>>>>> p2pu-dev+unsubscribe at googlegroups.com<p2pu-dev%2Bunsubscribe at googlegroups.com>
>>>>>> .
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/p2pu-dev?hl=en.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Martín Olivera
>>>> *@ NODOSOL http://www.nodosol.org *- Software Libre, impulsando el
>>>> desarrollo local
>>>> + blog en http://blog.martinolivera.com.ar
>>>> + microblog identi.ca <http://identi.ca/martinolivera> & twitter
>>>> @martinolivera
>>>> + Asociación SOLAR Software Libre Argentina - http://www.solar.org.ar
>>>> + Comunidad GINGA Argentina - http://comunidad.ginga.org.ar
>>>>
>>>
>>>
>>
>>
>> --
>> Martín Olivera
>> *@ NODOSOL http://www.nodosol.org *- Software Libre, impulsando el
>> desarrollo local
>> + blog en http://blog.martinolivera.com.ar
>> + microblog identi.ca <http://identi.ca/martinolivera> & twitter
>> @martinolivera
>> + Asociación SOLAR Software Libre Argentina - http://www.solar.org.ar
>> + Comunidad GINGA Argentina - http://comunidad.ginga.org.ar
>>
>
>


-- 
Martín Olivera
*@ NODOSOL http://www.nodosol.org *- Software Libre, impulsando el
desarrollo local
+ blog en http://blog.martinolivera.com.ar
+ microblog identi.ca <http://identi.ca/martinolivera> & twitter
@martinolivera
+ Asociación SOLAR Software Libre Argentina - http://www.solar.org.ar
+ Comunidad GINGA Argentina - http://comunidad.ginga.org.ar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p2pu.org/pipermail/p2pu-dev/attachments/20110127/9fdc3d58/attachment-0001.html>


More information about the p2pu-dev mailing list