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
Position user control panel in category view
-
stonyhubs
- Phoca Newbie

- Posts: 2
- Joined: 15 Dec 2015, 13:03
-
christine
- Phoca Hero

- Posts: 2938
- Joined: 28 Nov 2010, 17:20
Re: Position user control panel in category view
Hi,
I'm not sure what you mean.
In Control Panel categories > Select the ordering > Ascending or Descending
Kind regards, Christine
I'm not sure what you mean.
In Control Panel categories > Select the ordering > Ascending or Descending
Kind regards, Christine
-
christine
- Phoca Hero

- Posts: 2938
- Joined: 28 Nov 2010, 17:20
Re: Position user control panel in category view
Hi stonyhubs,
I made some tests and got successfully result. Before you try below entries etc. make backup first
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:
to here:
put above lines near the top e.g.. after:
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
Finally, on my testsite it looks like this - the images of the gallery are now beneath the upload-form:

Kind regards, Christine
It seems, that I misunderstood your question. So you meant uploadform in frontend?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.
I made some tests and got successfully result. Before you try below entries etc. make backup first
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) {Code: Select all
echo '</div>'. "\n";// end phocagallery-pane
}Code: Select all
if ($this->params->get( 'page_heading' ) != '') {
$heading .= $this->params->get( 'page_heading' );
}Finally, on my testsite it looks like this - the images of the gallery are now beneath the upload-form:

Kind regards, Christine
-
stonyhubs
- Phoca Newbie

- Posts: 2
- Joined: 15 Dec 2015, 13:03
Re: Position user control panel in category view
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
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
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Position user control panel in category view
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.
Jan
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.
Jan
If you find Phoca extensions useful, please support the project