|
Posted by Krustov on 02/27/06 23:47
<comp.lang.php , Iván Sánchez Ortega , i.punto.sanchez--@rroba--
mirame.punto.net>
<ra4cd3-7f5.ln1@blackspark.escomposlinux.org>
<Mon, 27 Feb 2006 21:32:47 +0100>
> > <?php $string="<title>" . "$web" . " , " . "$name" . " , " . "Demo" .
> > "</title>"; ?>
> > <?php print $string; ?>
>
> <?php
> echo "<title>$web , $name , Demo</title>";
> ?>
>
That was what I did at first , Changed to it this .
<?php
$phpgb_web=str_replace("http://","",$phpgb_web); $info="Guestbook Home";
if ($phpgb_title==1) {$string="<title>" . "$phpgb_web" . " , " .
"$phpgb_name" . " , " . "$info" . "</title>";}
if ($phpgb_title==2) {$string="<title>" . "$phpgb_name" . " , " .
"$info" . "</title>";}
if ($phpgb_title==3) {$string="<title>" . "$info" . "</title>";}
print $string;
?>
With the config file being like this .
$phpgb_title="1";
#
# This is what will be shown in the browser title bar at the top left
#
# 1 = www.yourdomain.com , Website Name , Guestbook
# 2 = Website Name , Guestbook
# 3 = Guestbook
#
Not related to the above - but also have this in the config file .
$phpgb_background_colour="#FFFFFF";
#
# You can change the background colour if you want
#
$phpgb_background_image="none";
#
# The background image is optional - as a default its not used - 2
options are available
#
# ="none";
# ="url(phpgb_images/demo.jpg)";
#
With this in the actual webpage .
<body text="Red" link="Red" vlink="Red" alink="Red" style="background-
color: <?php print $phpgb_background_colour; ?>; background-image: <?php
print $phpgb_background_image; ?>;">
From a script I release a while ago I noticed some users hacked the
script around a bit when they wanted to use a background image and more
often than not screwed things up .
Not interested in background images myself - but its clear some users
are so it looks and fits into the rest of their website .
Navigation:
[Reply to this message]
|