|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Member Join Date: Oct 2006
Posts: 123
![]() | Hi, im having a few problems. Ive had my site designed and the designer had said to me he had done it in a way when the header or footer is changed it would effect all pages. now after playing around and changing some stuff my self i have found out that this link shows the header <? require("includes/config.php"); fnHeader(); ?> how can i edit the header so it appears on all pages. becuase ive removed that line from the homepage and now have inserted the whole header code. but this only changed the home page. I just want to remove some txt and replace it with a gif image, so please some if you know how i can do that i would really appreciate it. I have been trying to get in contact with the orginal designer but his not answer or replying not sure whats happend. if you see page http://www.aussiepages.com.au/example1.php and then example http://www.aussiepages.com.au/example2.php example1 contains the fnHeader and example 2 doesnt. I want my pages too look like example 2 I cant manually change everypage especially pages that are coded in away that read password, change passwords, result.php which has the results.php?CID=47 changing results.php would stuff things up big time. ive already stuffed up a few pages by changing it manually and now i need to get them fixed up and re coded. thanks everyone for your help. |
| |
|
| |||||||
| | #2 |
| Member Join Date: Oct 2006
Posts: 123
![]() | Hi if it helps this is whats included in the config.php file This is whats included in config.php <?php //ini_set ('error_reporting', E_ALL); session_start(); session_register("session"); // Report simple running errors //ini_set ('error_reporting', E_ERROR | E_WARNING | E_PARSE); include("functions.php"); include("connection.inc.php"); include("commonfunctions.php"); include("imagemagicfunctions.php"); include("pager.php"); include("gif.php"); global $vchItemImagesPath,$vchItemImagesUrl,$globalcontac temail,$strAccount; if($_SERVER['HTTP_HOST'] == "localhost") { $vchSiteUrl="http://localhost/danny/"; $vchItemImagesUrl="http://localhost/danny/images/listings/"; $vchItemImagesPath=$_SERVER["DOCUMENT_ROOT"]."/danny/images/listings/"; $globalcontactemail = "abc@hotmail.com"; $strAccount = 'abc@hotmail.com'; } else { $vchSiteUrl="http://www.aussiepages.com.au/"; $vchSitePath=$_SERVER["DOCUMENT_ROOT"]; $vchItemImagesUrl="http://www.aussiepages.com.au/images/listings/"; $vchItemImagesPath=$_SERVER["DOCUMENT_ROOT"]."/images/listings/"; $globalcontactemail = "support@aussiepages.com.au"; $strAccount = 'dghabash@yahoo.com.au'; } ?> I just dont know what to do from here on wards thanks |
| |
| | #3 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | You need to find the functions.php file, or something similarly named. What you are looking for is the fnHeader function. There should be a line somewhere in your main page code that looks something like include('functions.php'); it could be include, include_once, require, or require_once.....Find any lines in your code that begin like that, and look for something like function.php or functions.php in between the parenthesis... |
| |
| | #4 |
| Member Join Date: Oct 2006
Posts: 123
![]() | I found it in the functions.php but it doesnt refer to any file. it just says the following: function fnHeader($pagetitle="::: aussiepages.com.au :::") and also function fnHeaderIndex($pagetitle="::: aussiepages.com.au :::") |
| |
| | #5 |
| Member Join Date: Apr 2007 Location: www.easywebx.com
Posts: 245
![]() | You can change the title when you call the function of fnHeader(). For example: <?php require("includes/config.php"); fnHeader("Your title here"); ?>
__________________ EasyWebX.com offers Cash Rebates up to $100 for lots of web hosting plans .HostDomainZone.com offers cheap domains ($1.99*), web hosting ($3.19) and reseller plans ($59.99/yr) |
| |
| | #6 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Now you will need to find the file that makes use of the $pagetitle variable. It will probably be a template file, it might end with .tpl, or it might end in .php. Post the code here in between code tags.... |
| |
| | #7 |
| Member Join Date: Oct 2006
Posts: 123
![]() | thanks guys, all worked out now... |
| |
| | #8 |
| Member Join Date: Apr 2007 Location: www.easywebx.com
Posts: 245
![]() |
__________________ EasyWebX.com offers Cash Rebates up to $100 for lots of web hosting plans .HostDomainZone.com offers cheap domains ($1.99*), web hosting ($3.19) and reseller plans ($59.99/yr) |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find out what search terms visitors find you with. | jumpenjuhosaphat | Search Engine Optimization (SEO) | 19 | 05-08-2007 07:51 AM |
| How did you find IWT Forum? | midlandi | Discuss iWEBTOOL | 27 | 04-10-2007 04:30 PM |
| How do i edit results.php?CID=1 - cant find any files CID=1 | CircleOfLinks | PHP | 6 | 01-27-2007 09:09 AM |
| Which do you find better? | mani | General Talk | 15 | 01-18-2007 01:25 PM |
| How to edit (unlock) html | spenno | HTML | 2 | 10-10-2006 04:03 AM |