Realmac Software

Welcome to the RapidWeaver Community Forums, where you can chat with RapidWeaver users from around the world!

PHP / RW Prefix question

David DelMonteDavid DelMonte Washington DC and Skopelos, Greece.Posts: 349Members
I'm putting the following code into the header ] prefix area of Page Info.
<?php
    $unique_prefix = "pr_";    /* prevent overlays - must be started with a letter */
    $mode = isset($_GET[$unique_prefix.'mode']) ? $_GET[$unique_prefix.'mode'] : "";
    $rid = isset($_GET[$unique_prefix.'rid']) ? (int)$_GET[$unique_prefix.'rid'] : "";
?>

The page is set to the name prints2.php.

When I look at the source code after publishing, the prefix code is not there:

[!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"]
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="robots" content="all" />
        <meta name="generator" content="RapidWeaver" />
        
<title>Prints Test</title>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<link title="default" rel="Stylesheet" type="text/css" href="../rw_common/themes/beatrice_db/styles.css"/>
<link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/beatrice_db/colourtag.css"  />
<link rel="stylesheet" type="text/css" media="print" href="../rw_common/themes/beatrice_db/print.css" />


<link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/beatrice_db/css/header_image/img_01.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/beatrice_db/css/gradient/hide.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/beatrice_db/css/bodycol/white.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/beatrice_db/css/bg/color.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/beatrice_db/css/bw/1px.css" />

Any ideas what I'm doing wrong?

Thanks

David

ps. The page type is HTML and the theme is home-grown..
<a href="http://www.bluehost.com/track/eclecktk5">I really enjoy using Bluehost,</a> and they will give me money if you sign up through this link!

Comments

  • Vasily IngoglyVasily Ingogly Naperville, Illinois, USAPosts: 2,579Moderators
    edited 7:08AM
    on 1278982936:
    ps. The page type is HTML and the theme is home-grown..

    Have you checked to make sure you're using the special header tags correctly in the theme per the SDK?

    Vasily
    FYI - I no longer provide RapidWeaver solutions or any 1:1 support. My web design practice is focused 100% on web designs using WordPress.
    The High-Tech Coach
  • David DelMonteDavid DelMonte Washington DC and Skopelos, Greece.Posts: 349Members
    edited 7:08AM
    Hi Vasily, when I said the theme was home grown, I really should have said, that I started with a base theme and have heavily modded it.. I don't even know what the original was now :)

    I will go and look in the SDK about special headers, but any pointers (no pun intended) would be welcome.

    David
    <a href="http://www.bluehost.com/track/eclecktk5">I really enjoy using Bluehost,</a> and they will give me money if you sign up through this link!
  • Vasily IngoglyVasily Ingogly Naperville, Illinois, USAPosts: 2,579Moderators
    edited July 2010
    There's %header%, %plugin_header%, and %user_header% ... If you don't have them inserted in the theme's index.html file, I don't know if that would have an effect on proper processing of the prefix code. I created a project with the Alpha theme, inserted your PHP code in Page Info>Header>Prefix, named the page index.php, then exported the project ... the PHP is in the right place, which suggests to me there's a problem with your theme.

    Vasily
    FYI - I no longer provide RapidWeaver solutions or any 1:1 support. My web design practice is focused 100% on web designs using WordPress.
    The High-Tech Coach
  • David DelMonteDavid DelMonte Washington DC and Skopelos, Greece.Posts: 349Members
    edited 7:08AM
    Hi Vasily, thanks for your response..

    Here is my index.html file: What do you think?

    [!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"]
    &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    
    &lt;head&gt;
    &#xhe;ader%
    &lt;title&gt;&#xti;tle%&lt;/title&gt;
    
    &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
    
    &lt;link title="default" rel="Stylesheet" type="text/css" href="&#xpa;thto(styles.css)%"/&gt;
    &lt;link rel="stylesheet" type="text/css" media="screen" href="&#xpa;thto(colourtag.css)%"  /&gt;
    &lt;link rel="stylesheet" type="text/css" media="print" href="&#xpa;thto(print.css)%" /&gt;
    
    
    &#xst;yle_variations%
    &#xus;er_styles%
    
    
    &#xpl;ugin_header%
    &#xus;er_header%
    
    
    &lt;/head&gt;
    
    &lt;body&gt;
    
    [div id="container"]
    
    [div id="menushadow"][/div]
    
    [div id="navcontainer1"]
    
    &#xto;olbar%
    
    [/div]
    
    [div id="pageHeader"]
    [div id="title"][/div]
    [h1][a href="ºse_url%"]&#xsi;te_title%[/a][/h1]
    
    [/div]
    
    [div id="contentContainer"]
    
    [div id="navcontainer3"]
    
    &#xto;olbar%
    
    [/div]
    [div id="content"]
    
    &#xco;ntent%
    
    [/div]
    
    [/div]
    
    
    [div class="clearer"][/div]
    
    [div id="breadcrumbcontainer"]
    
    &#xbr;eadcrumb%
    
    [/div]
    
    [div id="footer"]
    
    [p]&#xfo;oter%[/p]
    
    [/div]&lt;!-- End Footer --&gt;
    
    [/div]&lt;!-- End container --&gt;
    
    [div]
    
    
    
    var $j = jQuery.noConflict();
    
    
    
    [/div]
    &lt;/body&gt;
    &lt;/html&gt;
    
    <a href="http://www.bluehost.com/track/eclecktk5">I really enjoy using Bluehost,</a> and they will give me money if you sign up through this link!
Sign In or Register to comment.