Users editing PHP variables or scripts

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default Users editing PHP variables or scripts

    Hi, I have a PHP template that contains an include for a page header but this
    script requires three variables that are pass to the header.php page to tell it
    what menu's etc to present.

    I can allow users to edit the body of a pages text using contribute but I
    can't seem to make any part of the PHP source editable by adding template tags
    inside or outside the php tag.

    <!-- TemplateBeginEditable name="codeybits" -->
    <?php
    // Enter the file name or address of the next, previous and map pages.
    $menu = "blog.php";
    $section = "set12.php";
    $map = "map.php";
    //
    ?>
    <!-- TemplateEndEditable -->
    <?php require_once('template-header.php'); ?>
    <?php
    <div id="content">
    <!-- TemplateBeginEditable name="main content" -->
    Main content text....


    raingerpete2005 Guest

  2. Similar Questions and Discussions

    1. How do I prevent users from editing certain portions ofa page?
      Hi, I've created a site in DWCS3 using a template. However, I ONLY want my client to edit a few parts of the site and not everything in the...
    2. Win 2k3 newbie: Login scripts not applying to Win98SE users.
      They apply to XP machines ok, but not 98. Microsoft client in Network Neighborhood is set to log onto domain. What else must I do? -- Dave...
    3. Users executing perl scripts
      Hi people, I have finished some little perl scripts that gives basic infos to my users. I want to make these perl scripts available to all users...
    4. Passing variables between scripts
      Hi there Director and Lingo beginner her, and I've googled for this in this group and others and on the web. I am not sure that what I want is...
    5. Notepad Bug when editing Perl scripts in Win XP?
      Has anyone else tried editing perl scripts in notepad in XP? I am getting some characters inserted into the scripts..... ------------- -Randy
  3. #2

    Default Re: Users editing PHP variables or scripts

    This is the whole purpose of Contribute, or at least I thought -- User's aren't supposed to gain access to the code that way they can't change it
    jhutchdublin Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139