1
luftikus143
wfdownloads - doc thumbnail on homepage

Hi,

I would like to display the thumbnail (i.e. the cover) of my recently added document(s) on the homepage. I have a block there, displaying the titles. But it seems like being a bit more fancy coding to enable the thumbnal display then there too.

Thanks for any hints.

2
luftikus143
Re: wfdownloads - doc thumbnail on homepage

Here is the solution:

in wfdownloads_block_new.html the command
<img src="<{$download.screenshot}>" />
must be added;

in wfdownloads_top.php the line
$download['screenshot'] = XOOPS_URL "/" $xoopsModuleConfig['screenshots'] . "/" $myrow['screenshot'];
must be added;

and the query must look like this:
$result $xoopsDB->query("SELECT lid, cid, title, date, hits, screenshot FROM ..."

Login

Who's Online

191 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 191


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