Page 1 of 1
Position user control panel in category view
Posted: 15 Dec 2015, 13:38
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
Re: Position user control panel in category view
Posted: 16 Dec 2015, 23:41
by christine
Hi,
I'm not sure what you mean.
In Control Panel categories > Select the ordering > Ascending or Descending
Kind regards, Christine
Re: Position user control panel in category view
Posted: 19 Dec 2015, 20:57
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
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
Finally, on my testsite it looks like this - the images of the gallery are now beneath the upload-form:
Kind regards, Christine
Re: Position user control panel in category view
Posted: 17 Jan 2016, 17:36
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
Re: Position user control panel in category view
Posted: 18 Jan 2016, 13:55
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.
Jan