Line 196 and 198 are getting some errors on this messager block I am trying to add.
Thanks
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Wed Feb 26, 2003 9:11 am
lots. First, it doesn't know what to do with those database commands, you've not told it.
Secondly, what's $SQL????
Try adding , $dbi after $sql in those lines.
Artificialintel
ravernews Premium
Joined: Jan 26, 2003
Posts: 230
Location: USA
Posted:
Wed Feb 26, 2003 9:54 am
Code:
<?php
$refreshtime = 7000; //refresh time in ms
if (!IsSet($mainfile)) { include ("mainfile.php"); }
include('config.php');
include('modules/Private_Messages/functions.php');
include('auth.php');
global $sitename, $bgcolor1,$bgcolor2, $textcolor1, $textcolor2,$lang;
if ($lang=='french')
{
define("_ENLIGNE","En ligne");
define("_TOUSLESMEMBRES","Tous les membres");
define("_VOIRQUIESTENLIGNE","Voir qui est en ligne");
define("_COMMENCANTPAR","Commencant par");
define("_ENVOYERUNMSG","Envoyer un message");
define("_INFOS","infos");
define("_A","à");
define("_MSGENVOYE","Message envoyé");
define("_ENVOYE","Envoyé");
define("_MSGRECU","Message recu de");
define("_MSG","Message");
define("_EFFACER","Effacer ce message de ma boite en répondant");
define("_ENVOYELE","Envoyé le");
define("_INFOSDE","Infos de");
define("_WEBSITE","Site");
define("_EMAIL","E-mail");
define("_ICQ","ICQ");
define("_AIM","AIM");
define("_YIM","YIM");
define("_MSNM","MSNM");
define("_LOCATION","Location");
define("_OCC","Occupations");
define("_CENTRES","Centres d intérêts");
define("_SIGN","Signature");
define("_EXTRA","Extra");
define("_BTFERMER","bouton-fermer.gif");
define("_BTREPONDRE","bouton-repondre.gif");
define("_BTENVOYER","bouton-envoyer.gif");
define("_PAR","par");
define("_PASSLOST","Passe perdu ?");
define("_CREATE","Creer un compte");
define("_ENVOYER","Envoyer");
define("_FERMER","Fermer");
define("_REPONDRE","Repondre");
}
else
{
define("_ENLIGNE","Online");
define("_TOUSLESMEMBRES","All members");
define("_VOIRQUIESTENLIGNE","See online members");
define("_COMMENCANTPAR","Start by");
define("_ENVOYERUNMSG","Send a message");
define("_INFOS","info");
define("_A","to");
define("_MSGENVOYE","Message sent");
define("_ENVOYE","Sent");
define("_MSGRECU","Message from");
define("_MSG","Message");
define("_EFFACER","Delete on reply");
define("_ENVOYELE","Send the");
define("_INFOSDE","Infos from");
define("_WEBSITE","webSite");
define("_EMAIL","E-mail");
define("_ICQ","ICQ");
define("_AIM","AIM");
define("_YIM","YIM");
define("_MSNM","MSNM");
define("_LOCATION","Location");
define("_OCC","Occupation");
define("_CENTRES","Interest");
define("_SIGN","Signature");
define("_EXTRA","Extra");
define("_BTFERMER","bouton-fermer-us.gif");
define("_BTREPONDRE","bouton-repondre-us.gif");
define("_BTENVOYER","bouton-envoyer-us.gif");
define("_PAR","by");
define("_PASSLOST","Password Lost ?");
define("_CREATE","Create an account");
define("_ENVOYER","Send");
define("_FERMER","Close");
define("_REPONDRE","Reply");
}
</font><br>";
// let my link for modifications that i did (mini-coyright)
// there is only here it will see
echo "<br><font size=\"1\" face=\"Arial, Helvetica, sans-serif\">Mod "._PAR." <a href=\"http://www.surf4all.net\">Surf</a></font></center></form></body></html>\n";
exit;
}
function buddylist() {
global $cookie,$refreshtime, $sitename, $bgcolor1, $textcolor1,$timerefresh, $textcolor2, $prefix;
$sql = mysql_query("SELECT * FROM $prefix"._priv_msgs." WHERE to_userid = '$cookie[0]' AND read_msg='0'");
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/home/raver/www/htdocs/BlockMessenger.php on line 196
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/home/raver/www/htdocs/BlockMessenger.php on line 198
Is the error
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Wed Feb 26, 2003 10:31 am
If i recall correctly from some of your other posts, you have nuke 6.5 installed, this block seems to be for nuke 6.0 as it uses fields like uid and uname which don't exist in nuke 6.5 and also the old privmsgs table which doesn't exist either.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
ravernews Premium
Joined: Jan 26, 2003
Posts: 230
Location: USA
Posted:
Wed Feb 26, 2003 11:09 am
So can you be so kind to help me what I need to replace to make it work for 6.5 RC 1.
Thanks
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Wed Feb 26, 2003 12:15 pm
in the global lines, make sure $db and $prefix are both called.
Then, change all
mysql_fetch_row to $db->sql_fetchrow
mysql_fetch_array to $db->sql_fetchrow
mysql_num_rows to $db->sql_numrows
mysql_query to $db->sql_query
and any $dbi just get rid of and the commer b4 them
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum