New View - PICTURE VIEW

Phoca Download - download manager
cohenu
Phoca Member
Phoca Member
Posts: 28
Joined: 30 Jan 2010, 14:22

New View - PICTURE VIEW

Post by cohenu »

When you go to file view there is 2 preview images and there is no link,so I change it and this is what I have changed so far:

Code: Select all

        if ((int)$this->tmpl['display_file_view'] == 1) {
   
		$images = '<table border="0" width="65%">';

        			//Specific icons
			if (isset($valueDoc->image_filename_spec1) && $valueDoc->image_filename_spec1 != '') {
				$iconPath	= PhocaDownloadHelper::getPathSet('icon');
				$iconPath	= str_replace ( '../', JURI::base(true).'/', $iconPath['orig_rel_ds']);
				$images .= '<tr><td width="32%"><a href="'.$iconPath . $valueDoc->image_filename_spec1.'" target="_blank"><img src="'.$iconPath . $valueDoc->image_filename_spec1.'" alt="" width="100%" height="130px"/></a></td>';
                $images .= '<td width="1%">&nbsp;</td>';
            } 
			if (isset($valueDoc->image_filename_spec2) && $valueDoc->image_filename_spec2 != '') {
				$iconPath	= PhocaDownloadHelper::getPathSet('icon');
				$iconPath	= str_replace ( '../', JURI::base(true).'/', $iconPath['orig_rel_ds']);
				$images .= '<td width="33%"><a href="'.$iconPath . $valueDoc->image_filename_spec2.'" target="_blank"><img src="'.$iconPath . $valueDoc->image_filename_spec2.'" alt="" width="100%" height="130px"/></a></td>';
			} 
            $images .= '</tr>';
            $images .='</table><br/>';

        echo $images;
	}
instead to open those pictures in a new blank page, is it possible to to open it in a new view? so the pictures will be "inside" the site?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: New View - PICTURE VIEW

Post by Jan »

Hi, sorry I don't understand which pictures you mean? do you mean preview of pictures. If yes, then you can skip the modal of popup but yes, then new view must be created in MVC of the component in frontend + navigation back ... but as I didn't do such modification, cannot give any advice there :-(

Jan
If you find Phoca extensions useful, please support the project
cohenu
Phoca Member
Phoca Member
Posts: 28
Joined: 30 Jan 2010, 14:22

Re: New View - PICTURE VIEW

Post by cohenu »

Yes the preview picture 10x again Jan I will try to do it...
Post Reply