1
infomoz
WF Downloads HTML Description
  • 2009/3/15 22:27

  • infomoz

  • Just popping in

  • Posts: 14

  • Since: 2009/2/26


Hello everyone.
I'm having serious troubles to make the wfdownloads module to accept HTML tags in description of the downloads. I have taked a look into the source code of the module, but in class/download.php file there is a commented line saying no html to description in line 234. I have tried to change many things there, but nothing...
Can anyone help me???? I'm using the wfdownloads version 3.20rc1, that i think is the last version.

I have imported my downloads from mydownloads module to wfdownloads and the description appears with the html tags not interpreted by browser

2
Szico_VII
Re: WF Downloads HTML Description
  • 2009/4/3 15:41

  • Szico_VII

  • Just popping in

  • Posts: 32

  • Since: 2009/4/3 0


Taken from http://community.?????.org/modules/ne ... st_id=29770&topic_id=3232 :

P.S Get WF-Downloads-RC2 first!!!
AND The file you need to edit is download.php (modules/wfdownloads/class)


Quote:
hi!

regarding the description text, i had the problem that as a summary, always the description showed up.
now, this is fixed and also html does work in summary and in description view!

to enable html in summary view: search for the following line(around 217):

$summary = $this->getVar('summary');
right BEFORE this line, insert this one:

$this->initVar('dohtml', XOBJ_DTYPE_INT, 1); //allow html

to enable html in description view: search for the following line(around 236):

$down['description'] = $this->getVar('description'); //no html
do not remove it, even when it says no html!
now, right BEFORE this line, insert this one:

$this->initVar('dohtml', XOBJ_DTYPE_INT, 1); //allow html

now, the description should show up, and also html should work in summary and description view

ps: in admin category configs, you should check "allow html" and maybe disable auto linebreaking. there might be some confusion regarding the german version since it says "disallow html" when it actually means "allow html", as all the other code devoted options are negated.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

62 user(s) are online (30 user(s) are browsing Support Forums)


Members: 0


Guests: 62


more...

Donat-O-Meter

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

Latest GitHub Commits