Results 1 to 7 of 7

Thread: Using output_replace for page titles

  1. #1
    Join Date
    Mar 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Using output_replace for page titles

    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

  2. #2
    Join Date
    Apr 2008
    Location
    Limoges, France
    Posts
    395
    Thanks
    13
    Thanked 61 Times in 61 Posts

    Default

    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

  3. #3
    Join Date
    Mar 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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!

  4. #4
    Join Date
    Apr 2008
    Location
    Limoges, France
    Posts
    395
    Thanks
    13
    Thanked 61 Times in 61 Posts

    Default

    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?

  5. #5
    Join Date
    Mar 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay, here is some sample code. The header file and a regular page that includes the header. Thank you.

  6. #6
    Join Date
    Mar 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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!

  7. #7
    Join Date
    Apr 2008
    Location
    Limoges, France
    Posts
    395
    Thanks
    13
    Thanked 61 Times in 61 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •