1
kaper
HTML, not only xcodes!
  • 2003/11/5 13:04

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


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

2
Shine
Re: HTML, not only xcodes!
  • 2003/11/5 15:16

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


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

3
kaper
Re: HTML, not only xcodes!
  • 2003/11/5 16:13

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


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

4
Shine
Re: HTML, not only xcodes!
  • 2003/11/5 17:36

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


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

5
kaper
Re: HTML, not only xcodes!
  • 2003/11/6 9:40

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


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 !!?

Login

Who's Online

185 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits