Phoca Download Section List Layout problem

Phoca Download - download manager
jade
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 30 Jul 2008, 12:07
Contact:

Phoca Download Section List Layout problem

Post by jade »

Phoca Download Section List Layout
In the main menu there are two options

index.php?option=com_phocadownload&view=sections(ok)

index.php?option=com_phocadownload&view=sectionsx(500)
500 - View class not found [class, file]: phocadownloadViewsectionsx,

Where can changes "Details" and "Download" styles css In the frontend?

Phoca Download frontend
https://www.phoca.cz/documentation/index ... -component
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Section List Layout problem

Post by Jan »

Hi,
index.php?option=com_phocadownload&view=sectionsx(500)
... sorry I don't understand, where is this link ???

CSS:
components\com_phocadownload\assets\phocadownload-.....css

Jan
If you find Phoca extensions useful, please support the project
jade
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 30 Jul 2008, 12:07
Contact:

Re: Phoca Download Section List Layout problem

Post by jade »

Forgive me for poor English

Phoca Download Section List Layout
In the main menu there are two options
Image
No.1
Image
The first option can use, no problem

No.2
Image
The second option in 500 errors, can not be used

In the original language documents inside, "Details" and "Download" styles can show normal

Code: Select all

DETAILS=Details
DOWNLOAD=Download
Image

But when translated into Chinese, "Details" and "Download" styles incorrect on a show, is not displayed on the same line inside

Code: Select all

DETAILS=详情
DOWNLOAD=下载
Image

I chose the blue style, I would like to know where should be amended.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Section List Layout problem

Post by Jan »

Hi, I don't have any second link ???

The blue style is here:
components/com_phocadownload/assets/phocadownload-blue.css

but I have no idea why the Chinese characters are so displayed ???

Try to change this classes:

Code: Select all

#phoca-dl-category-box .download {
	border-top:1px solid #00CC00;
	border-right:1px solid #008F00;
	border-bottom:1px solid #008F00;
	border-left:1px solid #00CC00;
	margin:1px 0px 1px 3px;
	background: #008F00 url('images/bg-download.png') 0 0 repeat-x;
	
}
#phoca-dl-category-box .download div {
	border:1px solid #fff;
	background: transparent url('images/icon-download.png') 3px center no-repeat;
	padding:3px 10px 3px 25px;
}
#phoca-dl-category-box .download div a {
	color:#fff;
	font-weight:bold;
}

#phoca-dl-category-box .details{
	border-top:1px solid #FFB200;
	border-right:1px solid #B37D00;
	border-bottom:1px solid #B37D00;
	border-left:1px solid #FFB200;
	margin:1px 0px 1px 3px;
	background: #B37D00 url('images/bg-details.png') 0 0 repeat-x;
	
}
#phoca-dl-category-box .details div {
	border:1px solid #fff;
	background: transparent url('images/icon-details.png') 3px center no-repeat;
	padding:3px 10px 3px 25px;
}
#phoca-dl-category-box .details div a {
	color:#fff;
	font-weight:bold;
}
Jan
If you find Phoca extensions useful, please support the project
abokuo
Phoca Member
Phoca Member
Posts: 26
Joined: 28 May 2010, 12:17

Re: Phoca Download Section List Layout problem

Post by abokuo »

Hello, I found a simple way to fix this problem :
please edit file: "\components\com_phocadownload\views\category\tmpl\default.php" if you already installed
Phoca Download Components, or edit file: "\front\views\category\tmpl\default.php" in components zip file,
then add few html tags:

line 277: find

Code: Select all

$playerOutput .= '<div class="pdplay'.$this->tmpl['button_style'].'"><div>';
replace with:

Code: Select all

$playerOutput .= '<nobr><div class="pdplay'.$this->tmpl['button_style'].'"><div>';
line 284: find

Code: Select all

$playerOutput .= '</div></div>';
replace with:

Code: Select all

$playerOutput .= '</nobr></div></div>';
line 298: find

Code: Select all

$previewOutput.= '<div class="pdpreview'.$this->tmpl['button_style'].'"><div>';
replace with:

Code: Select all

$previewOutput.= '<nobr><div class="pdpreview'.$this->tmpl['button_style'].'"><div>';
line 311: find

Code: Select all

$previewOutput.= '</div></div>';
replace with:

Code: Select all

$previewOutput.= '</nobr></div></div>';
line 318: find

Code: Select all

$detailOutput.= '<div class="pddetails'.$this->tmpl['button_style'].'"><div>';
replace with:

Code: Select all

$detailOutput.= '<nobr><div class="pddetails'.$this->tmpl['button_style'].'"><div>';
line 320: find

Code: Select all

$detailOutput.= '</div></div>';
replace with:

Code: Select all

$detailOutput.= '</nobr></div></div>';
line 324: find

Code: Select all

$downloadOutput .= '<div class="pddownload'.$this->tmpl['button_style'].'"><div>';
replace with:

Code: Select all

$downloadOutput .= '<nobr><div class="pddownload'.$this->tmpl['button_style'].'"><div>';
line 328: find

Code: Select all

$downloadOutput .= '</div></div>';
replace with:

Code: Select all

$downloadOutput .= '</nobr></div></div>';
you can see how it works at http://www.abokuo.com/2010-05-12-03-39- ... ory/5.html, i hope it will be useful.
Thank Jan that create Phoca Download components, it's wonderful! :twisted:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Section List Layout problem

Post by Jan »

Hi, thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
Post Reply