top menu does not appear top menu does not appear
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

top menu does not appear

Started by hozyali, January 15, 2007, 11:24:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hozyali

I have installed and customized the gallery at http://www.bookstocollect.com/gallery/
It was working perfectly fine and recently it started not showing the top menu/navigation.
It just just {MAIN_MENU} instead of showing the actual menu links.

Can anyone help please!

Ali

Nibbler

You can't use a 1.3 based theme with 1.4. Update it following the instructions in the theme update guide.

hozyali

Quote from: Nibbler on January 15, 2007, 12:20:31 PM
You can't use a 1.3 based theme with 1.4. Update it following the instructions in the theme update guide.

But it was working fine 2 days ago ...

will updating theme remove my applied customization ?

Joachim Müller

Do as suggested, read the guide Nibbler refered to. If you do as suggested there, none of your customizations will go away.

hozyali

where do I find the theme update guide ?


hozyali


hozyali

my current theme file contains the following code

Quote<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.10
  $Source$
  $Revision: 3275 $
  $Author: gaugau $
  $Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

?>

and the guide you reffered instructs to enter a lot of code. is that correct ? should I make a new theme with its code instructions ?

Nibbler


hozyali

thanks the issue resolved at http://www.bookstocollect.com/gallery/

but it seems that the links which were edited by me are not displaying anymore.. do I need to place those links again ? if yes, in which file ?

Thanks again.

Joachim Müller

Depends on where you put them in the first place. Zip your old theme and attach the zip to this thread.

hozyali

its attached. thanks

Ali

Joachim Müller

I asked for your old theme (the one you used to run on your gallery before upgrading), not the new one that you already tampered with.

hozyali

sorry my mistake... the old one is attached.

Ali

Joachim Müller

This is pretty straightforward, converting your old theme was very easy. The most important thing I did to convert was undoing your edits that you shouldn't have applied in the first place.

Let's start from scratch: you have based your custom theme on the classic theme, which is perfectly OK. However, it's a custom theme, so you should have given it a unique name (instead of just leaving the name "classic"). This will keep the theme from being overwritten when applying future updates. I have attached a zip file - unzip it into the themes folder of your coppermine install (preserving the folder structure of the zip file). Upload it and then access your coppermine-driven gallery using the "new" custom theme - go to http://www.bookstocollect.com/gallery/?theme=hozyali
By adding the parameter "theme=hozyali" to the address you force the use of your custom theme just for you only, while the rest of the worl would still see the theme you specified in your config (the classic theme in your case). If everything works as expected you should see your coppermine driven gallery as it used to be. Let's then go to Coppermine's config and enable the new theme for everyone who accesses your site: go to config, expand the "Themes settings" section and choose your custom theme (named "hozyali") from the "Theme" dropdown. Scroll to the bottom of the page and apply your changes.
This should give you as well as everybody else the look of your previous gallery look.

Let's then take a look at what I said above on undoing the edits you applied in error:
you have commented out some menu items that you didn't want the user to see. This is not a bright thing to do, as it just means "security by obscurity" - a user who knows his way around could still have entered the url in the address bar manually. Take a look at the upload link for example that you commented out - you better take a look at the groups page instead and disallow your users to upload in the first place if you don't want them to be capable to upload. If a user is not allowed to upload (permissions-wise) he won't see the upload link in the first place, nor will he be able to access the upload screen by entering the URL manually.

A similar thing applies to the custom link that you applied manually ("[Main Picture Gallery]"): instead of harcoding that link into your theme, just go to Coppermine's config and use "Custom menu link name" and "Custom menu link URL".

HTH

Joachim

hozyali

Thanks a lot for your help. I will be working on it this evening. i will let you know I need more help.

Thanks again

Ali

hozyali

Ok, I uploaded the new theme you sent on http://www.bookstocollect.com/gallery..
here is a couple of things I would like to ask.

1- the top navigation links show braces twice with each link. I think they are appearing by default including the ones I mentioned, can you tell me how to remove one ?

2- I want users to be able to upload images in specified albums, so now when I (without logged in) go to this link http://www.bookstocollect.com/gallery/upload.php, it says I dont have permissions, instead can it redirect to the login or register page and then once the user is logged in, he/she can upload images.

Thanks
Ali

Joachim Müller

Please respect the "one question per thread" policy. Is your initial issue reported on this thread (broken theme after upgrade) fixed?

hozyali

yes, its fixed, thanks.
should I post a new thread for the last questions ?