Announcement

#1 2007-05-17 10:57:01

990405
Member
2007-05-13
22

home page link

I would like to display a link to the home page of my website.

How can I do this?

Offline

 

#2 2007-05-17 11:48:00

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: home page link

Create or complete your ./include/config_local.inc.php

PhpWebGallery 1.7

<?php
$conf['links'] = array(
    'http://phpwebgallery.net' =>
              array('label' => 'PWG website',
                    'new_window' => false,
                    'eval_visible' => 'return true;'),
    'http://forum.phpwebgallery.net' =>
              array('label' => 'For ADMIN',
                    'new_window' => true,
                    'eval_visible' => 'return is_admin();'),
    'http://phpwebgallery.net/doc' =>
              array('label' => 'For Guest',
                    'new_window' => true,
                    'eval_visible' => 'return $user[\'is_the_guest\'];'),
    'http://download.gna.org/phpwebgallery/' =>
              array('label' => 'PopUp',
                    'new_window' => true,
                    'nw_name' => 'PopUp',
                    'nw_features' =>
'width=800,height=450,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'),
    );
?>

Summary:

<?php
$conf['links'] = array(
    'http://myhome.net' =>
              array('label' => 'My home',
                    'new_window' => false,
                    'eval_visible' => 'return true;'),
    );
?>

or

<?php
$conf['links'] = array(
    'http://myhome.net' => 'My home', ),
    );
?>

That's it!
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2007-05-18 12:41:25

990405
Member
2007-05-13
22

Re: home page link

Sorry I am a novice, not sure what you intend?

which is the simplest method:

what do you do with:  in which file are these changes made?

<?php
$conf['links'] = array(
    'http://myhome.net' => 'My home', ),
    );
?>

Offline

 

#4 2007-05-28 05:34:25

990405
Member
2007-05-13
22

Re: home page link

I am using version 1.7, I do not  have 

/include/config_local.inc.php

I can only find

    config_default.inc.php

any solution?

Offline

 

#5 2007-05-28 07:36:52

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: home page link

Yes, create it, it's a local file, it means it is yours.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#6 2007-05-28 09:49:04

990405
Member
2007-05-13
22

Re: home page link

Do you mean

create a file called : /include/config_local.inc.php

and save in it

<?php
$conf['links'] = array(
    'http://phpwebgallery.net' =>
              array('label' => 'PWG website',
                    'new_window' => false,
                    'eval_visible' => 'return true;'),
    'http://forum.phpwebgallery.net' =>
              array('label' => 'For ADMIN',
                    'new_window' => true,
                    'eval_visible' => 'return is_admin();'),
    'http://phpwebgallery.net/doc' =>
              array('label' => 'For Guest',
                    'new_window' => true,
                    'eval_visible' => 'return $user[\'is_the_guest\'];'),
    'http://download.gna.org/phpwebgallery/' =>
              array('label' => 'PopUp',
                    'new_window' => true,
                    'nw_name' => 'PopUp',
                    'nw_features' =>
'width=800,height=450,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'),
    );
?>
***************************
what does the following refer to? Do I add all what follows in above file - not clear?
what do you intend
can you clarify what you uintend?

************************
Summary:

    <?php
    $conf['links'] = array(
        'http://myhome.net' =>
                  array('label' => 'My home',
                        'new_window' => false,
                        'eval_visible' => 'return true;'),
        );
    ?>

or

    <?php
    $conf['links'] = array(
        'http://myhome.net' => 'My home', ),
        );
    ?>

Offline

 

#7 2007-05-28 10:03:29

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: home page link

Why u don't try it?


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#8 2007-05-28 10:05:40

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: home page link

990405 wrote:

Sorry I am a novice, not sure what you intend?

which is the simplest method:

what do you do with:  in which file are these changes made?

<?php
$conf['links'] = array(
    'http://myhome.net' => 'My home', ),
    );
?>

Please, stop any new post till you create YOUR ./include/config_local.inc.php


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#9 2007-05-28 18:10:59

Vic
Guest

Re: home page link

I created a file called: config_local.inc.php


I saved in it the following code:

********************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<?php
$conf['links'] = array(
    'http://phpwebgallery.net' =>
              array('label' => 'PWG website',
                    'new_window' => false,
                    'eval_visible' => 'return true;'),
    'http://forum.phpwebgallery.net' =>
              array('label' => 'For ADMIN',
                    'new_window' => true,
                    'eval_visible' => 'return is_admin();'),
    'http://phpwebgallery.net/doc' =>
              array('label' => 'For Guest',
                    'new_window' => true,
                    'eval_visible' => 'return $user[\'is_the_guest\'];'),
    'http://download.gna.org/phpwebgallery/' =>
              array('label' => 'PopUp',
                    'new_window' => true,
                    'nw_name' => 'PopUp',
                    'nw_features' =>
'width=800,height=450,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'),
    );
?>

<?php
    $conf['links'] = array(
        'http://www.interaustralia.com/index.htm' =>
                  array('label' => 'My home',
                        'new_window' => false,
                        'eval_visible' => 'return true;'),
        );
    ?>




</body>
</html>
******************

but I get a blank page.  Is this the correct procedure?

http://interaustralia.com/phpwebgallery … al.inc.php

my home page is
http://www.interaustralia.com/index.htm

 

#10 2007-05-28 18:14:14

Vic
Guest

Re: home page link

Hi
Now I get strange errors
If I go to GALLERY and click on submenu :Company Gallery"
Can you advise?

Thank you

 

#11 2007-05-28 18:48:51

rub
Former Piwigo Team
Lille
2005-08-26
5019

Re: home page link

Only that on your file:

Code:

<?php
$conf['links'] = array(
    'http://phpwebgallery.net' =>
              array('label' => 'PWG website',
                    'new_window' => false,
                    'eval_visible' => 'return true;'),
    'http://forum.phpwebgallery.net' =>
              array('label' => 'For ADMIN',
                    'new_window' => true,
                    'eval_visible' => 'return is_admin();'),
    'http://phpwebgallery.net/doc' =>
              array('label' => 'For Guest',
                    'new_window' => true,
                    'eval_visible' => 'return $user[\'is_the_guest\'];'),
    'http://download.gna.org/phpwebgallery/' =>
              array('label' => 'PopUp',
                    'new_window' => true,
                    'nw_name' => 'PopUp',
                    'nw_features' =>
'width=800,height=450,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'),
    );
?>

Remove HTML code

Offline

 

#12 2007-05-28 18:58:52

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: home page link

./include/config_local.inc.php

Has rub said: What is on line 9?
Which edit program you use?

No space !
No carriage return !!
No new line !!!
after ?>


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#13 2007-05-28 22:41:01

mathiasm
Former Piwigo Team
2006-02-06
2650

Re: home page link

VDigital ,  you're driving too fast for 990405 ! :-)

990405, don't be scared.

Put in you include/config_local.inc.php either the text rub provided or :

Code:

<?
   $conf['links'] = array(
    'http://www.interaustralia.com/index.htm' => 'My home', );
?>

Offline

 

#14 2007-05-29 03:47:15

Vic
Guest

Re: home page link

I inserted into config_local.inc.php
I am not too familiar with php coding
the only following code i inserted was.
am I expected to remove some elements of code
I am using Dreamweaver Mx

*************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?
   $conf['links'] = array(
    'http://www.interaustralia.com/index.htm' => 'My home', );
?>
</body>
</html>
*******************
but am getting strange errors when I go to:
http://www.interaustralia.com/index.htm
and click on
Gallery - sub menu "Company Gallery"

********************

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/interaus/public_html/phpwebgallery/include/config_local.inc.php:8) in /home/interaus/public_html/phpwebgallery/include/user.inc.php on line 60

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/interaus/public_html/phpwebgallery/include/config_local.inc.php:8) in /home/interaus/public_html/phpwebgallery/include/user.inc.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at /home/interaus/public_html/phpwebgallery/include/config_local.inc.php:8) in /home/interaus/public_html/phpwebgallery/include/page_header.php on line 102
Company Gallery
***************************

 

#15 2007-05-29 07:36:17

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: home page link

Dreamweaver:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?
   $conf['links'] = array(
    'http://www.interaustralia.com/index.htm' => 'My home', );
?>
</body>
</html>

Wanted:

<?
   $conf['links'] = array(
    'http://www.interaustralia.com/index.htm' => 'My home', );
?>

Use other products for updating our php modules.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact