xoops forums

kaper

Just popping in
Posted on: 2003/11/5 13:04
kaper
kaper (Show more)
Just popping in
Posts: 75
Since: 2003/4/26
#1

HTML, not only xcodes!

I want to have HTML processed in a document field. Currently only XCodes work properly and I can't see any switch which would turn on HTML.

I am trying to hack a module to better fit my needs (exactly - Addresses, based on MyLinks). The "Description" field should work with HTML, now works only with XCodes. What should I turn on or hack?

Kaper

Shine

Just can't stay away
Posted on: 2003/11/5 15:16
Shine
Shine (Show more)
Just can't stay away
Posts: 822
Since: 2002/7/22
#2

Re: HTML, not only xcodes!

In that case you are talking about the view address. The entered htmlcode should show properly for visitors.
Just a suggestion which should work:

open up visit.php
Line 71
'description' => $myts->makeTareaData4Show($description,0),

change the 0 (behind description) into 1.

Grtz., Shine

kaper

Just popping in
Posted on: 2003/11/5 16:13
kaper
kaper (Show more)
Just popping in
Posts: 75
Since: 2003/4/26
#3

Re: HTML, not only xcodes!

Maybe I don't understand something. The file modules/addresses/visit.php contains statements like
$xoopsTpl->assign('lang_description'_MD_DESCRIPTIONC);

There are no myts invocation, maybe you mean some other file?.

Anyway, do I understand correctly, that in statement
$myts->makeTareaData4Show($description,0)

the "0" means "turn off HTML"?

Kaper

Shine

Just can't stay away
Posted on: 2003/11/5 17:36
Shine
Shine (Show more)
Just can't stay away
Posts: 822
Since: 2002/7/22
#4

Re: HTML, not only xcodes!

Quote:
Maybe I don't understand something. The file modules/addresses/visit.php contains statements like

$xoopsTpl->assign('lang_description', _MD_DESCRIPTIONC);
There are no myts invocation, maybe you mean some other file?.

Within my reply I didn't refer to the code you are talking about.
This peace of code takes only care of template assignment and language -translation-.

Like I wrote within my reply it is the code:
$myts->makeTareaData4Show($description,0)
within visit.php

I've tried it, turned 0 into 1 and this works. So this 0/1 has to do with html turning on/off.
Just try for yourself.

Grtz., Shine

kaper

Just popping in
Posted on: 2003/11/6 9:40
kaper
kaper (Show more)
Just popping in
Posts: 75
Since: 2003/4/26
#5

Re: HTML, not only xcodes!

Yeah, I expected the myts statements in several lines, each for one field; actually all they were in the longest line, far beyond the right margin. Grep is the winner!

Instead of changing '0' to '1' I just cut off that parameter and it also works, so I guess myts by default accepts HTML.
WHERE IS A GOOD DOCUMENTATION AVAILABLE !!?