Hi,
I am still working on my page, but there are not too much things left. I have 2 questions, I tried to find it out by myself today via this Forum and the documentation, but I did not succeed.
First Question: In the Header there is a search box. Is ist possible to delete it? Or alternate to put it into the sidebar? I must have the header space for my Logo.
Sencond Question: In News I have 4 Kategories, where my article are inside. But on the top there is the Kateogry "All News". Is there a chance, that this will not be shown, only ma Kategories?
Regards and Thanks
Ingrid
Comments
2. Yes, but you have to change your theme, specifically the function `printAllNewsCategories()`. Please see the function documentation for details.
Point 1 - Where do I find this? I searched it in the function and in the search php. But there was nothing where I can put it into the sidebar. Anyway I would prefer that it is not visible on the page.
Point 2 - Ok this is too difficult for me, so I will let it as it is.
Regards Ingrid
2. That is is not difficult, you just have to set one parameter differently....
2: Only one - would you tell me which one ;-)
I think you first should get a little familiar with how themes work before you try to modify them. Please take a look at the theming tutorial.
2. Look at the theme's sidebar.php file and look for the function. What to set is documentated here:
http://www.zenphoto.org/documentation/plugins/zenpage/_zp-extensions---zenpage---zenpage-template-functions.php.html#functionprintAllNewsCategories
I read through a lot, in the Forum and also in the Tutorial. But I am not familar with this programmm languages, only partwise if it is similar to html. But php and Java - I do not understand that. I had one a Training in Java, I did not unterstand anything.
2 I read the documentation and I understand it. I could change from True to False (Great that I wanted to), but I did not succeed in "Let ALL NEWS" away.
The documentation says I should leave it empty. But when I do that, page shows an error.
I tried:
a) <div class="menu">
<h3><?php echo gettext("Artikel"); ?></h3><?php printAllNewsCategories(gettext(""),FALSE,"","menu-active"); ?>
</div>
then I tried
b) <div class="menu">
<h3><?php echo gettext("Artikel"); ?></h3><?php printAllNewsCategories(gettext(),FALSE,"","menu-active"); ?>
</div>
Does not work
Then I delete all this - I do not see my articles anymore.
I have 4 Categories and I would like to see them, but I do not like "All Articles" above.
The search form is in every page like this:
`
<?php if (getOption('Allow_search')) {
$album_list = array($_zp_current_album->name);
printSearchForm(NULL, 'search', NULL, 'Search album', NULL, NULL, $album_list);
} ?>
`
Remove that or just comment our the function.
2. `<?php printAllNewsCategories("",TRUE,"","menu-active"); ?>` works as intended (the gettext is not needed if there is no text and only using gettext() is of course an error).
Anway, I really suggest to learn some PHP basics if you want to do more modifications. We expect users to have those or willing to learn them. Everything else exceeds our resources.
you are generally right, that you do not have the time to be an PHP trainer. But let me tell you somehting positive: I need this page quickly because it is an page on Fotos and Reports of Model Yachting and the season has just started.
I never had contact with CMS before, only HTML.
I installed 2 other blogs before. Installation was easy but then I directly got lost so I deleted them immediately. Then I got the tip with Zenphoto and I was absolutely happy on it - for a Newby it is easy to use. Also I like, that I can learn and I learnt a lot in the last 2 weeks.
Most of my questions I start to find out myself, also because it is easy to re-change everything and Learnig by Doing ist my favourite Method.
I have nearly finished now that way, that the page can go online and then I will have more time to learn more about php.
Hope you will have a bit more patience with me now ;-).
So:
Question 2 is solved, it works exactly like I would like to have it, great.
But Question 1: I looked through some php pages an I did not find this part you wrote. I find som "Allow Search" points, but deleting them or not does not make any changes. I took search.php completely from the server, it still works....
So in which php I have to delete it?
And finally a little Yes or No question: My categories are shown in order to the Alphabet. Do I have a chance to change the position?
Thanks a lot
Ingrid
Question 1: `<?php if (getOption('Allow_search')) { printSearchForm("","search","",gettext("Search gallery")); } ?>` that is the part you have to delete. It appears on all main theme files of the Zenpage thems (image.php, album,php, gallery.php, news.php, pages.php).
Delete this or since it is an option you can just disabled it (sorry, actually forgot to tell that- > Options > Themes > Allow search)
Additional question: Well, yes and no. Not with the standard function. You will have to create a custom menu using the menu manager plugin.
Now I was looking for the menu manager plugin and saw therefore I have to do an update. So now I will go to find out, how this works .
Regarding hiring, maybe I will ask you for that with future projects, where can I find you ;-)
first I suceed in updating to 1.3, but it was not easy, I not sure if there is bug? I could not run setup due there was always the fault to make the Folder "Drittanbieter" (I forgot the right name) writeable. I remember this folder in my first setup, but now it has not been there. Finally I came through, because I made all my folder writeabele during the setup and changed it afterwards manual.
Happy to have the new version, I directly found the menu manager, I activated it and now I am lost I know this I could now, if I learnt PhP. I absolutely do not understand (and I searched in the forum and in your textes) what does this mean:
printCustomMenu()
Where? In themeoptions.php?
How? Like it is oder must I use signs before and after?
I tried it out, but for sure it does not work ;-)
Regards
Ingrid
I did that - just put in one of the php files in my theme. But it does not work. I Use the standard Zenpage Theme with some modificatios, but only regarding colours, I did not change functions.
If you place `printCustomMenu()` manually you have of course also to set some parameter so it does know what do to. This is documentated on our functions guide (where you also find a link to a how to read the functions documentation).
Also I have told you several times, that I am a Beginner. A lot of things I do not understand, furthermore all the stuff is in English.
Anyway, I decided to not to waste my time any longer, let it acutally as it is and will look for another system in my language and with support.
We already talked about limits of support on this forum. I really can't explain all details especially for you (the general usage is all the same for all functions, once you understood that it is quite easy... And I started just as you some years ago, you know..).
Sorry if even English is a barrier for you but that is the "lingua franca" of the net. What is your language?
So in short to the `printCustomMenu()` The menu manager operates with menu sets. You can use several ones but you must tell this function which on to use via the parameters. As said the Zenpage theme has support for thatalreay built in (for a menu set "zenpage" which automatically should have been created when you activate the menu manger plugin).
maybe it would be helpfull to show the exactly link? Or setting a search funktion for the Users Guide? A User finds a lot of pages and it sounds really complicate, in the end there are 2 languages for me, english and php ;-). This is sometime too much and the I bekome frustrated and I think to give up.
I know this page is English and my English is not too bad, but the problem is often that cms is new for myself and then English can become to difficult.
Anyway, a lot of times writing here, I had really to concentrate not to write within my home language which is German ;-). I thought often by myself, it could be so much easer, just to write it down in German. But then you will understand it and I will maybe understand your answers better. But a lot of other people not. I could solve some problems already by Searching (yes there I found the Search Button ;-) whithin the forum, and it would not have been helpul, if this would have been written in Spanish oder somehting else.
Ok back to the roots: I have found this button, I could do changes, I could add menu points and menues, everythings works wonderful in the Admin Panel - I can not see one of my changes within my side....
Don't worry, I did not know, that it will take so much effort to get it solved, I hoped it is only one question. I can let it like it is now, it is not soo bad - anyway I know I will think all the time, that it COULD be solved and I will feel angry about myself ;-).
Regards
Ingrid
http://www.zenphoto.org/documentation/plugins/_zp-extensions---menu_manager.php.html#functionprintCustomMenu
Actually what you want to do is really not complicated stuff at all. So as a last attempt: The zenpage theme requires a menu set named "zenpage" which is hardcoded in the theme's sidebar.php's call for `printCustomMenu()`. If you create a new set with another name it will simply not use it unless you change that or use a set named "zenpage".
Well, yeah, I encounter this thinking in German and writing in English dilemma occasionally, too..;-) And what you describe is exactly why I won't give support in German. I did once or twice but as soon as I had to ask my collegue it got really inconvenient...
many thanks for giving me the links and again the new explanation. Now I could read through the things, which are really necesssary for me, I think I would have get lost before in all these different explanations.
And I hope, you will not worry about me now, because I did not succeed.
I understand I have to change the Zenpage menu but I did not anything find in the php files, where I can change it. Therefore I did following:
I went to your link and I copied everyting from print Custom Menu into sidebar.php, once like is - did not work, one with this php parameter before and after. Does not work. Ok let sidebar.php as it is and did the same with function.php. Does not work.
So I give up now. I think you are right, this is the point, I have to learn first a bit of php programming. I can let the menu as it is now, because there are only 4 Kategories and there will not be more ones, so that finally nobody will get confused.
Anyway I will give you the link, if I am ready.
Regards
Ingrid
`
<?php
if(function_exists('printCustomMenu') && getOption('zenpage_custommenu')) { ?>
<?php printCustomMenu('zenpage','list','',"menu-active","submenu","menu-active",2); ?>
<?php
} else {
(...) //The normal stuff with the separate menus for each type (albums, news, pages etc)
}
`
I guess best is indeed you get a little into this stuff at all. It helps in general for future stuff as well.
Anyway the menue set does not work, also not zenpage set, I did there some changes.
Maybe it ist, because I did to much changes too my theme already?
It does not look bad at the moment and I can leave it like it is. Thanks a lot for your patience.