I would like to display a link to the home page of my website.
How can I do this?
Offline
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-)
Offline
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
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
Yes, create it, it's a local file, it means it is yours.
8-)
Offline
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
Why u don't try it?
Offline
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
Offline
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
Hi
Now I get strange errors
If I go to GALLERY and click on submenu :Company Gallery"
Can you advise?
Thank you
Only that on your file:
<?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
./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 ?>
Offline
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 :
<? $conf['links'] = array( 'http://www.interaustralia.com/index.htm' => 'My home', ); ?>
Offline
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
***************************
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-)
Offline