You are here: Re: %20 in the browser title bar « PHP Programming Language « IT news, forums, messages
Re: %20 in the browser title bar

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация