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 :(
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
