Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: top menu does not appear  (Read 7815 times)

0 Members and 1 Guest are viewing this topic.

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
top menu does not appear
« on: January 15, 2007, 11:24:17 am »

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
Logged

Nibbler

  • Guest
Re: top menu does not appear
« Reply #1 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.
Logged

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: top menu does not appear
« Reply #2 on: January 15, 2007, 12:24:35 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 ?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: top menu does not appear
« Reply #3 on: January 15, 2007, 11:58:47 pm »

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

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: top menu does not appear
« Reply #4 on: January 19, 2007, 09:28:58 am »

where do I find the theme update guide ?
Logged

Nibbler

  • Guest
Re: top menu does not appear
« Reply #5 on: January 19, 2007, 12:42:25 pm »

Logged

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: top menu does not appear
« Reply #6 on: January 19, 2007, 12:51:26 pm »

thanks a lot
Logged

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: top menu does not appear
« Reply #7 on: January 19, 2007, 01:32:35 pm »

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 ?
Logged

Nibbler

  • Guest
Re: top menu does not appear
« Reply #8 on: January 19, 2007, 01:34:47 pm »

Skip to the instructions for template.html - that is where the problem is.

http://coppermine-gallery.net/demo/cpg14x/docs/theme/edit_template.html
Logged

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: top menu does not appear
« Reply #9 on: January 19, 2007, 01:40:56 pm »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: top menu does not appear
« Reply #10 on: January 20, 2007, 11:47:28 am »

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

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: top menu does not appear
« Reply #11 on: January 20, 2007, 12:11:55 pm »

its attached. thanks

Ali
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: top menu does not appear
« Reply #12 on: January 20, 2007, 12:38:35 pm »

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.
Logged

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: top menu does not appear
« Reply #13 on: January 20, 2007, 12:58:29 pm »

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

Ali
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: top menu does not appear
« Reply #14 on: January 22, 2007, 08:08:14 am »

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
Logged

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: top menu does not appear
« Reply #15 on: January 22, 2007, 08:14:47 am »

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
Logged

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: top menu does not appear
« Reply #16 on: January 22, 2007, 08:25:39 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: top menu does not appear
« Reply #17 on: January 22, 2007, 09:06:39 am »

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

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: top menu does not appear
« Reply #18 on: January 22, 2007, 09:11:46 am »

yes, its fixed, thanks.
should I post a new thread for the last questions ?
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.