Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Nukewrapper is not wrapping PHP output..?
  • Posted: 09.01.2006, 09:49
     
    new_to_this
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.08
    Posts:
    314
    Ok I can't figure out why Nukewrapper is not wrapping the output of my form handle. :?

    The form script is in the PHP directory that Nukewrapper is using, but when the form script outputs a page, it is not wrapped?

    The First page (this link) will wrap ok since it is called as a HTML file

    Give it a look here:
    (removed link - no more files)
    you will need to fill out the form (subject, e-mail, comment)

    Any help would be wonderful!
  • Posted: 09.01.2006, 10:36
     
    MACscr
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    10.01.08
    Posts:
    1631
    i bet if you opened it as a standard framed file instead of a local file you wouldnt have a problem
  • Posted: 10.01.2006, 07:05
     
    new_to_this
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.08
    Posts:
    314
    ok... how?
  • Posted: 12.01.2006, 02:33
     
    new_to_this
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.08
    Posts:
    314
    Ho do I output it as standard framed file?
  • Posted: 12.01.2006, 03:50
     
    MACscr
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    10.01.08
    Posts:
    1631
    page.php?URL=http://domain.com/file.php
  • Posted: 12.01.2006, 08:58
     
    new_to_this
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.08
    Posts:
    314
    Oh that....

    No go with that option for two reasons:
    1. the form script points to the "next" file (for multiple page forms), so the wrapper never gets called.

    2. the script must have all paths relative to the site.

    I though I had it when I edited the scripts base path to it's templets and included page.php?file=then_the_file.htm but I forgot it refers to a config file, not good when that gets wrapped. :o

    I debugged the heck out of nukewrapper tonight and it's just fine, it won't work if you don’t tell it to!

    If anyone has any alternatives let me know. I gave blank.php a shot but forgot that it must be located in the root :(

    Thanks
  • Posted: 12.01.2006, 10:04
     
    MACscr
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    10.01.08
    Posts:
    1631
    you need to configure nukewrapper to open all links in it. I forget the exact setting
  • Posted: 12.01.2006, 10:39
     
    remmingtonshowdown
    rank:
    Helper Helper
    registered:
     May 2004
    Status:
    offline
    last visit:
    06.11.08
    Posts:
    283
    postWrap works just fine for me.
  • Posted: 13.01.2006, 03:48
     
    new_to_this
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.08
    Posts:
    314

    MACscr

    you need to configure nukewrapper to open all links in it. I forget the exact setting

    I think it is, but I will look Friday and check for it I do remember reading about that at some point. But it's not a link that is getting opened... it's what ever the form handler throws out that I am trying to wrap.

    remmingtonshowdown

    postWrap works just fine for me.

    That’s nice... But will it do this and if so how? Like I stated above my problem is getting the output from the form handler wrapped.

    This is how the form handler it works:

    You call the first page... /forms/this_form/index.htm
    In this file I need to tell the form handler were the rest of the templets (HTML and text e-mail) like so,

    Code

    <input type="hidden" name="base_path" value="../forms/this_form">

    Now the base_path is important since it also contains a file that the form handler looks at for directions of what to do with the form information. This is my problem now. I can change the base_pathe to,

    Code

    <input type="hidden" name="base_path" value="../page.php?file=/forms/this_form">

    But... then it wraps the configuration file that the form handler uses! (and it can't do that...)

    Huuuummmmmmm....
  • Posted: 13.01.2006, 05:38
     
    MACscr
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    10.01.08
    Posts:
    1631
    if your just opening it in a frame and not autosizing, then you wont have any problems. Since its just a form, turn off autosizing and just fix the height. i have tons of forms workign fine with NW.
  • Posted: 13.01.2006, 05:46
     
    remmingtonshowdown
    rank:
    Helper Helper
    registered:
     May 2004
    Status:
    offline
    last visit:
    06.11.08
    Posts:
    283
    yes postWrap will see my site:
    http://quixotecoachingprograms.binaryoven.com/index.php?module=PostWrap&page=survey

    A HTML form that refrences a PHP page to output results of the survey (not totally finished)
  • Posted: 14.01.2006, 05:01
     
    new_to_this
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.08
    Posts:
    314
    IT WORKS!!!

    Thank you MACscr! it was the "open all links" comment that hit me!

    I did try it with the URL= before but I was trying to have the form script add it. I did not ever call the forms index.htm page via URL= and let all the links open

    Thanks Again

    :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula