Fork me on GitHub

pn_glossary help with postnuke 750  Bottom

  • Hi all!

    It's now been a long time I've been trying to make pn_glossary work under Postnuke 0.750

    I've done a few things, like turning on "legacy support" in postnuke administration and also have a file that converts php3 funtions to php4.

    The module is almost working, only search word and add word does not result...

    The function to add a word is the following:

    function addword_result($word, $definition, $glolanguage)
    {
    global $admin;
    include ('header.php');
    gloss_nav();
    OpenTable();
    if (is_admin($admin))
    {
    $query = "SELECT * FROM nuke2"._pn_glossary." WHERE word='$word' and glolanguage='$glolanguage'";
    $result = mysql_query($query);

    if ( $result == '' ) {
    $presence = 0;
    } else {
    $presence = mysql_numrows($result);
    }

    if ($presence == 0 ) {
    $definition = stripslashes(FixQuotes(check_html($definition)));
    $query="INSERT INTO nuke2"._pn_glossary_queue." (word, definition, glolanguage) VALUES ('$word', '$definition', '$glolanguage')";
    $result=mysql_query($query);
    echo "<center><font class="\"pn-normal\"">"._THEENTRY." \"$word\" "._ADDEDTODB."</center>";
    } elseif ($presence != 0) {
    echo "<center><font class="\"pn-normal\"">"._ADDERROR." "._THEENTRY." $word "._EXISTINDB."" ;
    echo "

    </center>\n";
    }
    } else {
    echo "ACCESS DENIED";
    }
    CloseTable();
    include("footer.php");
    }

    Is there anything there you can notice that is not compatible with postnuke 0.750?

    I fear my only solution is to go back to previous versions of postnuke.

    If you want to see what is working and what is not working in pnglossary with my actual changes, just give it a try here:

    http://moolabs.dcc.online.pt/test2/modules.php?op=modload&name=pn_glossary&file=index

    I need this module or a similar module, to advance with this website :(
  • Just in the hope this post is not forgotten and someone can help me out!

This list is based on users active over the last 60 minutes.