I just uploaded x guest book but i get these erros when i go to it Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/ivant/public_html/main/modules/x_Guestbook/main_read.php on line 22
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ivant/public_html/main/modules/x_Guestbook/main_read.php on line 24
_egWRITEMES
_egTHEREARE _egMESSAGEI
WTF????
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Sun Jan 26, 2003 6:59 am
did you run the SQL file that would have been supplied with the module? YOu need to do that from phpMyAdmin.
2ndly, There would have been a language file supplied with it, did you upload that too? and if you did, was it a .txt file? if so, you need to copy it's contents into the /languages/lang-english.php file.
ArtificiaLIntel
Wil Guest
Posted:
Sat Aug 02, 2003 5:46 am
ArtificialIntel wrote:
did you run the SQL file that would have been supplied with the module? YOu need to do that from phpMyAdmin.
2ndly, There would have been a language file supplied with it, did you upload that too? and if you did, was it a .txt file? if so, you need to copy it's contents into the /languages/lang-english.php file.
ArtificiaLIntel
I have the same problem.
Did all what i had to do but on my index i got :
Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site16/web/includes/sql_layer.php on line 286
and as soon people click on "Write message" this happens :
Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site16/web/modules/x_Guestbook/main_write.php on line 30
can you tell me which version of phpnuke you use ?
i use 6.5 perhaps that's the problem ?
Thanks in advance.
GUEST Guest
Posted:
Sat Sep 27, 2003 12:28 am
hi!
if someone wants to add a smiley in the x-guestbook nothing happens,
but the javascript console shows this error
+++++++++++++++++++++++++++++++++++++++++++++
Event thread: onchange
Error:
name: ReferenceError
message: Statement on line 5: Reference to undefined variable: No such variable 'o_manner'
Backtrace:
Line 5 of inline#1 script in http://ebetsberger.at/modules.php?name=Guestbook&mode=w_main
m_optio = o_manner;
In unknown script
showimage();
At unknown location
{event handler trampoline}
+++++++++++++++++++++++++++++++++++++++++++++
..but i donīt know what or why
can please someone help me??
thanxxx a alot!!
hi again: found a solution myself
just have a look at the source in functions_form.php
about line 176 or so, here starts the function showimage()
i changed the function a little bit and added the function
findObj()
and it workzzzzz
(tested with opera 7.xx and internet explorer 6.0
and here is the code
********************************
<script type="text/javascript">
<!--
function showImage() {
var i_manner, o_manner;
m_image = i_manner;
m_optio = o_manner;
m_image = findObj('i_manner');
m_optio = findObj('o_manner');
m_image.src = '<? echo $module_folder ?>/images/manner/' + m_optio.options[m_optio.selectedIndex].value + '.gif'; // <-- Extention added!
}
// function added
function findObj(n, d) {
var p, i, x;
if(!d) d = document;
if( (p=n.indexOf("?")) > 0 && parent.frames.length) {d = parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if( !(x=d[n]) && d.all ) x=d.all[n];
for(i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0; !x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n);
return x;
}
//-->
</script>
********************************
hope it works at your guestbook too
You can post new topics in this forum You can 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