Jump to content

Changing Title for Logo


Go to solution Solved by oldwizard,

Recommended Posts

Hi guys, i´m having trouble to change the text header for a logo on my simple ecard site, but so far i only tried to change it on the css, with no acceptable results.

I think the awser is on the php code, i don´t no, i need your help, please.

 

 

class pagebuilder
{
var $relpath; // relative path to the main directory
var $windowtitle;
var $pagetitle;
var $bodyargs;
var $headervalues;
var $languageredirect;
var $langargs;
var $langdir = 'ltr';
function pagebuilder($relpath = '', $languageredirect='')
{
global $defaultLang;
$this->relpath = $relpath;
$this->windowtitle = $GLOBALS['siteName'];
$this->pagetitle = $GLOBALS['siteName'];
$this->languageredirect = ($languageredirect != '') ? $languageredirect : $_SERVER['PHP_SELF'];
if (!isset($_SESSION['setLang'])) $_SESSION['setLang'] = $defaultLang;
}
function showHeader($pagetitle = '')
{
 
 
Any idea in how to take site name from there and put site logo?
 
Change it from this:
 
1812.jpg
 
 
To this:
 
1811.jpg
 
 
 
Link to comment
https://forums.phpfreaks.com/topic/284777-changing-title-for-logo/
Share on other sites

Is it this piece of code?

 

 

session_start();
 
include_once('inc/adodb/adodb.inc.php');
include_once('config.php');
include_once('inc/UIfunctions.php');
include_once('inc/pager.php');
 
$row = (isset($_GET['row'])) ? (int)$_GET['row'] : 0;
$catSearch = (isset($_GET['catSearch'])) ? (int)$_GET['catSearch'] : false;
deleteFromSession('to_email, cardtext, music');
if (isset($_GET['reply'])) $_SESSION['reply'] = $_GET['reply'];
 
$page = new pagebuilder;
include_once('inc/setLang.php');
$page->langargs = "&row=$row&catSearch=$catSearch";
$page->showHeader();
 
 
$limit = $rowsPerPage * $cardsPerRow;
 
$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
$conn = &ADONewConnection('mysql');
if (!$conn->Connect($dbhost,$dbuser,$dbpass,$dbdatabase))
{
echo "Error: Could not connect to database";
$page->showFooter();
exit;
}
Edited by oldwizard

This is all the code from page builder:

 

class pagebuilder
{
var $relpath; // relative path to the main directory
var $windowtitle;
var $pagetitle;
var $bodyargs;
var $headervalues;
var $languageredirect;
var $langargs;
var $langdir = 'ltr';
function pagebuilder($relpath = '', $languageredirect='')
{
global $defaultLang;
$this->relpath = $relpath;
$this->windowtitle = $GLOBALS['siteName'];
$this->pagetitle = $GLOBALS['siteName'];
$this->languageredirect = ($languageredirect != '') ? $languageredirect : $_SERVER['PHP_SELF'];
if (!isset($_SESSION['setLang'])) $_SESSION['setLang'] = $defaultLang;
}
function showHeader($pagetitle = '')
{
global $lang;
if ($pagetitle != '') $this->pagetitle = $pagetitle;
if (isset($GLOBALS['langdir'])) $this->langdir = $GLOBALS['langdir'];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="<? echo $this->langdir;?>">
<head>
<? echo $this->headervalues;?>
<title><? echo $this->windowtitle;?></title>
<link href="<? echo $this->relpath;?>css/style.css" rel="stylesheet" type="text/css">
<body <? echo $this->bodyargs;?>>
<table width="100%">
<tr>
<td><span class="title"><? echo $this->pagetitle;?></span></td>
<td align="right">
<?
if (isset($_SESSION['auth_user']))
{
echo $GLOBALS['uifunc01'].$_SESSION['auth_user']?>  <a href="<? echo $this->relpath;?>admin/admin.php">[<? echo $GLOBALS['nav05'];?>]</a>  <a href="<? echo $this->relpath;?>admin/changePass.php">[<? echo $GLOBALS['nav06'];?>]</a>  <a href="<? echo $this->relpath;?>logout.php">[<? echo $GLOBALS['nav07'];?>]</a><?
}
else
{
if ($GLOBALS['showLoginLink'] == 'yes')
{
?><a href="login.php">[<? echo $GLOBALS['nav08'];?>]</a><?
}
else echo " ";
}
?>
</td>
</tr>
<tr>
<td colspan="2"><? $this->drawLine(); ?></td>
</tr>
<?
// Display flags for each language if more than one language file is setup in config.php
if (count($lang) > 1)
{
?><tr><td colspan="2" align="right"><?
foreach($lang as $langid=>$langvalue)
{
?>
<a href="<? echo $this->languageredirect;?>?setLang=<? echo $langid.$this->langargs;?>"><img src="<? echo $this->relpath;?>images/siteImages/flags/<? echo $langvalue['flag']?>" border="0" title="<? echo $langvalue['desc']?>"></a>
<?
}
?></td></tr></table><?
}
else
{
?></table><br><?
}
}
 
function showFooter()
{
?>
<br><br>
<table width="100%">
<tr>
<td colspan="2"><? $this->drawLine();?></td>
</tr>
<tr>
<td><? echo $GLOBALS['nav09'];?> <a href="http://www.oldwizardnetwork.com">Oldwizard Network</a> v<? echo $GLOBALS['gCardsVersion'];?></td><td align="right"><? $this->showLink($this->relpath.'index.php','['.$GLOBALS['siteName'].' '.$GLOBALS['nav03'].']');?></td>
</tr>
</table>
 
</body>
</html>
<?
}
 
function drawLine()
{
?>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="horizontalLine"><img src="<? echo $this->relpath;?>images/siteImages/shim.gif" border="0" height="2" width="1"></td>
</tr>
</table>
<?
}
 
function showLink($link, $linktext, $target='')
{
if ($target) $target = "target=\"$target\"";
echo "<a href=\"$link\" $target>$linktext</a>";
}
 
/*

 Don´t i have to change something here?

 

global $defaultLang;
$this->relpath = $relpath;
$this->windowtitle = $GLOBALS['siteName'];
$this->pagetitle = $GLOBALS['siteName'];
$this->languageredirect = ($languageredirect != '') ? 
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.