Position user control panel in category view

Phoca Gallery - image gallery extension
stonyhubs
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 15 Dec 2015, 13:03

Position user control panel in category view

Post by stonyhubs »

Hi,

I am using joomla 3.4.6 and phoca gallery 4.2.2.

Now I need a solution to move the position of "user control panel" in category view from bottom to top under the category-headline.

Is there any idea?

thx

stonyhubs
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: Position user control panel in category view

Post by christine »

Hi,

I'm not sure what you mean.

In Control Panel categories > Select the ordering > Ascending or Descending

Kind regards, Christine
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: Position user control panel in category view

Post by christine »

Hi stonyhubs,
stonyhubs wrote:Now I need a solution to move the position of "user control panel" in category view from bottom to top under the category-headline.
It seems, that I misunderstood your question. So you meant uploadform in frontend?
I made some tests and got successfully result. Before you try below entries etc. make backup first :wink:

Pls note, that it could be different to your file, as I made the gallery and upload form only general items.

In generell, you should make a template override from this file:
a) components/com_phocagallery/views/category/tmpl/default.php

b) creating a "html" file in your template. (except you already have override file!)

c) to copy a) to: \templates\yourTemplate\html\xxxxxx

[cutting out] following in this file:

from here:

Code: Select all

if ($this->tmpl['displaytabs'] > 0) {
to here:

Code: Select all

echo '</div>'. "\n";// end phocagallery-pane
    }
put above lines near the top e.g.. after:

Code: Select all

if ($this->params->get( 'page_heading' ) != '') {
	$heading .= $this->params->get( 'page_heading' );
}
Please note: be carefully during cutting out and inserting in: That means: starting with "if" should end with: "}" An endif must be closed correctly, otherwise you will get syntaxerror. Believe me, I had some before :wink:

Finally, on my testsite it looks like this - the images of the gallery are now beneath the upload-form:

Image


Kind regards, Christine
stonyhubs
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 15 Dec 2015, 13:03

Re: Position user control panel in category view

Post by stonyhubs »

Hi Christine,

sorry, I paused my project for a few weeks ...
Thx, it works fine.

My next problem is the an individual fall back page if the registered user upload an imgae with more than max. resolution or max. filesize. At the moment the index.php is called, but I want an error-message page ...
Is there a configuration option?

Kind regards

Stonyhubs
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Position user control panel in category view

Post by Jan »

Hi, then you should get standard error message and the page should be returning back to the form, so user can upload correct size?

If you need to run error message site, then you need to change the controller of user view, so it will not redirect back to the upload form but to specific error message. :idea:

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