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: Path to custom header include  (Read 4621 times)

0 Members and 1 Guest are viewing this topic.

santosh_iit32

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Path to custom header include
« 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?
« Last Edit: January 12, 2007, 07:12:52 am by GauGau »
Logged

Nibbler

  • Guest
Re: Path to custom header include
« Reply #1 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.
Logged

santosh_iit32

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Path to custom header include
« Reply #2 on: January 08, 2007, 01:47:25 pm »

I want to include this in the header

Code: [Select]
<?php
define
('override_phpbb_root_path''forum/');
@require(
override_phpbb_root_path 'lb_login.php');
?>

so whats the path?
Logged

santosh_iit32

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Path to custom header include
« Reply #3 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.
Logged

Nibbler

  • Guest
Re: Path to custom header include
« Reply #4 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.
Logged

santosh_iit32

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Path to custom header include
« Reply #5 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:

Quote
http://domain.com/file.php and
http://domain.com/gallery
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Path to custom header include
« Reply #6 on: January 08, 2007, 05:32:24 pm »

Try ../file.php
Logged

santosh_iit32

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Path to custom header include
« Reply #7 on: January 11, 2007, 02:15:44 am »

i tried that and it gave me an error!!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Path to custom header include
« Reply #8 on: January 11, 2007, 08:35:48 am »

What error? Post real life URLs and paths.
Logged

santosh_iit32

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Path to custom header include
« Reply #9 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

thank you.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Path to custom header include
« Reply #10 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.
Logged

santosh_iit32

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Path to custom header include
« Reply #11 on: January 11, 2007, 10:59:01 am »

no problem. thank you so much for the reply.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.