coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: santosh_iit32 on January 08, 2007, 11:32:41 AM

Title: Path to custom header include
Post by: santosh_iit32 on January 08, 2007, 11:32:41 AM
what is this "Path to custom header include"... how do i specify in the "Themes settings"?

i tried like ../page.php and various styles but nothing ever shows up but gives error! I know this sound stupid but could anyone help me with this?
Title: Re: Path to custom header include
Post by: Nibbler on January 08, 2007, 01:04:31 PM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_theme_include_path_start

If you need help to determine the path you need to provide more info.
Title: Re: Path to custom header include
Post by: santosh_iit32 on January 08, 2007, 01:47:25 PM
I want to include this in the header

<?php
define
('override_phpbb_root_path''forum/');
@require(
override_phpbb_root_path 'lb_login.php');
?>


so whats the path?
Title: Re: Path to custom header include
Post by: santosh_iit32 on January 08, 2007, 01:49:30 PM
couldn't find the edit button!

Its a login script for phpbb forum which is integrated with this gallery. I tried creating a file named "file.php" with the codes above and tried to link but couldn't help me please.
Title: Re: Path to custom header include
Post by: Nibbler on January 08, 2007, 03:18:18 PM
Nobody can tell you the path unless you tell us where this file is and where your gallery is.
Title: Re: Path to custom header include
Post by: santosh_iit32 on January 08, 2007, 03:30:36 PM
file is located at the base and the file name is say "file.php" and the gallery is located at the folder "gallery"

The physical path is:

Quotehttp://domain.com/file.php and
http://domain.com/gallery
Title: Re: Path to custom header include
Post by: Joachim Müller on January 08, 2007, 05:32:24 PM
Try ../file.php
Title: Re: Path to custom header include
Post by: santosh_iit32 on January 11, 2007, 02:15:44 AM
i tried that and it gave me an error!!
Title: Re: Path to custom header include
Post by: Joachim Müller on January 11, 2007, 08:35:48 AM
What error? Post real life URLs and paths.
Title: Re: Path to custom header include
Post by: santosh_iit32 on January 11, 2007, 09:13:37 AM
i tried that with a simple page and it works but when i tried with this mod, it doesn't work and so the problem lies in the mod: http://www.phpbb.com/phpBB/viewtopic.php?t=158595 (http://www.phpbb.com/phpBB/viewtopic.php?t=158595)

thank you.
Title: Re: Path to custom header include
Post by: Joachim Müller on January 11, 2007, 09:20:36 AM
You can not include anything - code snippets that require the modification of the file header will not work using the custom_header include. Just use a simple custom mod that checks if a user is logged in and displays a login form (just basic HTML) if it doesn't. Search the board for such a basic loginform hack. We can't help you with third-party phpBB mods.
Title: Re: Path to custom header include
Post by: santosh_iit32 on January 11, 2007, 10:59:01 AM
no problem. thank you so much for the reply.