Log in

View Full Version : Using output_replace for page titles



klerner2009
03-02-2009, 02:07 PM
Hello,

I'm the marketing person at a small online company and our programmer is on extended leave. I know enough basic web programming to get most stuff done, but i was trying to change the page title of a new page i was building and somehow broke all the page titles on the entire site.

now our programmer had set it up to use the output_replace("pagetitle", "Insert page title") function and I'm pretty sure that when I was in the page header file i removed/corrupted something, so I was wondering if anyone could spend a few minutes to try to help me troubleshoot. I'd imagine that there needs to be something on this include file that calls to whatever page it's on to use the output_replace function. Just don't know what the code is, and working remotely today because of the weather and can't get back into the office to maybe just "undo" a few times in the file to get back to where I'm supposed to be.

Any help would be forever appreciated!!

Kim

JasonDFR
03-02-2009, 02:15 PM
output_replace() is not a standard php function. Maybe your programmer wrote it himself?

To help, I'll need to see the header file and the output_replace() function. Short of that, I think it is going to be pretty hard to troubleshoot.

Good luck,

J

klerner2009
03-03-2009, 01:36 PM
Well the code that is on each page to replace the page title is:


<?

.....

openTableCol("840");
output_replace("pagetitle", "My Pagetitle");


?>

If i sent you the header file would you look at it? I just don't want to post it all up here.

Thanks so much!

JasonDFR
03-03-2009, 02:52 PM
You're going to have to post the header file.

The code you posted means absolutely nothing without the rest of it. Is the website built on some content management system? If so, what is the name of the CMS?

klerner2009
03-03-2009, 03:37 PM
Okay, here is some sample code. The header file and a regular page that includes the header. Thank you.

klerner2009
03-03-2009, 04:37 PM
Hi,

Okay I found another site we have that was using the same pagetitle functions and it looks like in the header there was this:

<head>
<hrtoken id="pagetitle" default="My Pagetitle"</title>
<meta name="description" content="<hrtoken id="pagedescription" default="Online human resources support, compliance information, forms, guides, employee handbooks, policies, best practices and time-saving tools for the small to mid-sized business." />
<META HTTP-EQUIV="imagetoolbar" CONTENT="no" />
<link rel="icon" href="/favicon.ico" type="image/x-icon">

Now I tried putting that back in the header file in question but it's not doing anything. I think I added regular html tag headers on many of the other files and kept the output_replace function as well so maybe that is messing it up?

Thanks!

JasonDFR
03-03-2009, 05:02 PM
I wish I could help you, but I don't recognize any of this and from what you posted, can't figure it out. I think it is part of some template system.

Maybe if you can track down the function output_replace(); It is defined in some included file somewhere.

Hopefully someone else will take a look at this and recognize something.

Sorry I couldn't be of more help.

Good Luck,

Jason