Permission list with Modul Downloadlinks

imsory

Joined: 2011-11-04
Posts: 6
Posted: Fri, 2011-11-04 20:23

Hello
I downloaded the module Downloadlist.

I want the same access permissions as here.
http://rewalls.com/abstract/51828-seryj-spiral-ingredient.html

in the subject alecmyers wrote that you want to use this code

Quote:
'text' => 'Download photo(%s x %s)','arg1' => $potentialImage->getWidth(),'arg2' => $potentialImage->getHeight())

I tried to insert it in modules/downloadlink/module.inc in these lines

Quote:
$itemTypeNames = $item->itemTypeName();
foreach ($potentialImages as $potentialImage) {
$links[$masterId][] =
array('text' => $this->translate(array('text' => '(%s x %s)','arg1' =>
$potentialImage->getWidth(),'arg2' => $potentialImage->getHeight())),
'params' => array('view' => 'downloadlink.OfferDownload',
'itemId' => $potentialImage->getId()));

But it did not work, help me please