S9Y Menus from a Different Location

Having trouble installing serendipity?
Post Reply
keithstric
Regular
Posts: 10
Joined: Sat Jul 03, 2004 5:40 pm
Location: Douglasville, GA
Contact:

S9Y Menus from a Different Location

Post by keithstric »

OK, I know I've made a similar post (http://www.s9y.org/forums/viewtopic.php?t=301). I got static pages to work with the information that Garvin provided me. Now, I've got a photo gallery on my site called Gallery. It's PHP and table driven. I've included this line in the wrapper file for Gallery. It ends up being after the <body> tag but before </body>:
<?php
chdir('/srv/www/htdocs/blog/');
require 'templates/keithstric/layout.php';
?>
However, this produces a PHP error at the top of the page. Farther down in the file I have to "chdir" back to the Gallery directory for that to work. I've removed the 2nd "chdir" but I still get the same PHP error for "serendipity_config.inc.php" with or without the 2nd "chdir". Here's the error:
Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/blog/serendipity_config.inc.php on line 115
Any ideas on what I can do to address this?

Thanks in advance,
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post by jhermanns »

which menues do you need?
keithstric
Regular
Posts: 10
Joined: Sat Jul 03, 2004 5:40 pm
Location: Douglasville, GA
Contact:

Post by keithstric »

Thanks for the reply.
I'm trying to get the right and left side bars. If you goto http://www.keithstric.com/aboutme.php this is what I'm trying to accomplish. Except with gallery.
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post by jhermanns »

i haven't looked into gallery, but i'm sure there's a way to define header and footer files, that are included before/after the actual gallery content. you can put your menues in there?
keithstric
Regular
Posts: 10
Joined: Sat Jul 03, 2004 5:40 pm
Location: Douglasville, GA
Contact:

Post by keithstric »

Thanks, that is the route I'm taking and have almost got it working. Now I'm getting a Gallery error but I think it may be overlookable.

Keith
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post by jhermanns »

cool! i've got to get my gallery tuned a little, too. let's see who's faster ;)
apc
Regular
Posts: 7
Joined: Tue Jul 20, 2004 2:38 am
Location: Brasil
Contact:

Gallery2

Post by apc »

keithstric wrote:Thanks, that is the route I'm taking and have almost got it working. Now I'm getting a Gallery error but I think it may be overlookable.

Keith
I´m get Gallery2 alpha1.It´s very good.

http://sourceforge.net/project/showfile ... _id=124241

Another think:
My calendar (Quickjump) don´t work
My Archives links don´t work
Please, What I to do?

apc (Alberto- from Brasil)

http://www.hostinganime.com/lerdort
:oops:
apc
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Gallery2

Post by garvinhicking »

Hi APC!

Maybe you should create a new topic/item for your problems instead posting to old ones; that may increase your chance for getting better answers :)
apc wrote: Another think:
My calendar (Quickjump) don´t work
My Archives links don´t work
Please, What I to do?
You should check in your installation, what 'rewrite' method you checked. Try to use "no URL rewriting" instead of apache errorhandling or mod_rewrite, because it seems as if your host doesn't support that. What URL is your blog exactly?

(I don't understand your native language and can'T find your blog at http://www.hostinganime.com/lerdort/en/index.php...)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
apc
Regular
Posts: 7
Joined: Tue Jul 20, 2004 2:38 am
Location: Brasil
Contact:

Re: Gallery2

Post by apc »

garvinhicking wrote:Hi APC!

Maybe you should create a new topic/item for your problems instead posting to old ones; that may increase your chance for getting better answers :)
apc wrote: Another think:
My calendar (Quickjump) don´t work
My Archives links don´t work
Please, What I to do?
You should check in your installation, what 'rewrite' method you checked. Try to use "no URL rewriting" instead of apache errorhandling or mod_rewrite, because it seems as if your host doesn't support that. What URL is your blog exactly?

(I don't understand your native language and can'T find your blog at http://www.hostinganime.com/lerdort/en/index.php...)
Hi Garvin
Thanks very muth for all.

I get s9y_200408161337.tar.gz 16 Aug 04, and work very good.

Regard.
Alberto(apc) from Brasil

The Serendipity is fantastic.
apc
Post Reply