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

Dizkus

Bottom
pn_phpSurveyor Mod/Hack... How I can ...
  • Posted: 14.06.2006, 08:28
     
    edfel
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    02.09.07
    Posts:
    831
    Hi:

    I have done a phpSurveyor Mod/Hack that works (All Questions in One) with PostNuke. There are still some few areas that I need to convert PHP to PN module calls.

    For example, I replaced this:

    Code

    . "<a href='{$_SERVER['PHP_SELF']}?sid=$surveyid&move=clearall'>"._CLEARRESP."</a>\n"


    with this:

    Code

    . "<a href='.$myurl.'/modules.php?op=modload&name='.$ModName.'&file=index&sid=$surveyid&move=clearall'>"._CLEARRESP."</a>\n"


    I need help with the following string:

    Code

    echo "\n<form method='post' action='{$_SERVER['PHP_SELF']}' id='phpsurveyor' name='phpsurveyor'>\n"


    Could I replace it with..?:

    Code

    echo "\n<form method='post' action='.$myurl.'/modules.php?op=modload&name='.$ModName.'&file=index&sid=$surveyid' id='phpsurveyor' name='phpsurveyor'>\n"


    The problem I am having is that, the program, at some instances, is referring to SELF and not to index... lossing the module functonality and going 'out of PN' to the standalone app...

    I have doubts with the ' and ", I believe is needs another one ' after action='... Sorry for the basic question...

    This is very basic but my goal is to have a fully (or almost fully) functional phpSurveyor Mod/Hack solution for PN. Once I can have the Question by Question survey type working it should be done. Next, I would like to make some tests with PHP/SWF Chart library...

    The ideal should be to have a pnphpSurveyor Standard PostNuke module but that is far right now. I am not a programmer, so I need to learn... try.. and learn.. and so on.

    TIA

    icon_cool



    edited by: edfel, Jun 13, 2006 - 10:30 PM
  • Posted: 14.06.2006, 08:55
     
    edfel
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    02.09.07
    Posts:
    831
    Hi:

    Well, altough I got it working would like to know what is the correct way of doing it. Will post later, how it worked...

    Later


  • Posted: 14.06.2006, 12:37
     
    tastiger
    rank:
    Helper Helper
    registered:
     September 2004
    Status:
    offline
    last visit:
    28.04.07
    Posts:
    186
    I would be interested in in this if you get it working properly......

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula