1
Shijk
Blank page when opening Extreme Guestbook
  • 2004/6/17 9:59

  • Shijk

  • Just popping in

  • Posts: 51

  • Since: 2003/8/7 2


Please help me , my guestbook doesn't work anymore

When I Click Guestbook at the menu I get a blank page..
When I turn PHP Debug on I get this..


Fatal error: Call to undefined function: xoopscodetarearet() in /home/shijk/domains/shijk.nl/public_html/modules/xtremguestbook/sign.php on line 121
Notice [PHP]: Use of undefined constant _MI_NEWBB_BNAME5 - assumed '_MI_NEWBB_BNAME5' in file /home/shijk/domains/shijk.nl/public_html/modules/newbb/xoops_version.php line 113
Notice [PHP]: Undefined variable: boxstuff in file /home/shijk/domains/shijk.nl/public_html/modules/shoutbox/blocks/shoutbox.php line 55
Notice [PHP]: Use of undefined constant Kwats - assumed 'Kwats' in file /home/shijk/domains/shijk.nl/public_html/modules/shoutbox/blocks/shoutbox.php line 85
Notice [PHP]: Use of undefined constant Ververs - assumed 'Ververs' in file /home/shijk/domains/shijk.nl/public_html/modules/shoutbox/blocks/shoutbox.php line 113


Please help me!

Mark

2
tl
Re: Blank page when opening Extreme Guestbook
  • 2004/6/17 12:36

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


If you want fast answers from other members, please help yourself by providing detailed information about your problem.

Such as
Was it working before?
Have you done anything to your system, new modules?
What changes you made?

It will help others and also help yourself to figure out why you are having the problem, all of sudden.


3
Shijk
Re: Blank page when opening Extreme Guestbook
  • 2004/6/17 13:14

  • Shijk

  • Just popping in

  • Posts: 51

  • Since: 2003/8/7 2


Thanks for your reply,

I didn't change anything..

I Only updated my XOOPS 2.06 to 2.07.. but that's wasn't working so I fixed it with the 2.05 to 2.06 patch..

So now I'm running 2.06 again..

I don't know if that's the problem because I received a mail from a member that is wasn't working...

4
tl
Re: Blank page when opening Extreme Guestbook
  • 2004/6/17 13:18

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Quote:
Fatal error: Call to undefined function: xoopscodetarearet() in /home/shijk/domains/shijk.nl/public_html/modules/xtremguestbook/sign.php on line 121


Just a guess - xoopscodetarearet() function might have been changed in 2.0.7. You will need to dig into the codes to see where the function is called.

5
Shijk
Re: Blank page when opening Extreme Guestbook
  • 2004/6/17 14:34

  • Shijk

  • Just popping in

  • Posts: 51

  • Since: 2003/8/7 2


This is in my sign.php

I don't get it..


--->>



include("header.php");
include("include/functions.php");

$xoopsOption['template_main'] = 'xtremguestbook_sign.html';

if($xoopsConfig['startpage'] == "xtremguestbook"){
$xoopsOption['show_rblock'] =1;
include(XOOPS_ROOT_PATH."/header.php");
make_cblock();
echo "<br />";
} else {
$xoopsOption['show_rblock'] =0;
include(XOOPS_ROOT_PATH."/header.php");
}

//include config file
include("cache/config.php");
$myts =& MyTextSanitizer::getInstance();

//assign variable of xoopsuser to form
if (isset($HTTP_POST_VARS["message"]))
$message = $myts->makeTboxData4PreviewInForm($HTTP_POST_VARS["message"]);
else
$message="";
if (isset($HTTP_POST_VARS["title"]))
$title_v = $myts->makeTareaData4PreviewInForm($HTTP_POST_VARS["title"]);
else
$title_v="&nbsp;";
if (isset($HTTP_POST_VARS["email"]))
$email_v=$myts->makeTareaData4Edit($HTTP_POST_VARS["email"]);
else
$email_v = !empty($xoopsUser) ? $xoopsUser->getVar("email", "E") : "";
if (isset($HTTP_POST_VARS["username"]))
$name_v=$myts->makeTareaData4Edit($HTTP_POST_VARS["username"]);
else
$name_v = !empty($xoopsUser) ? $xoopsUser->getVar("uname", "E") : "";
if (isset($HTTP_POST_VARS["url"]))
$url_v=$myts->makeTareaData4Edit($HTTP_POST_VARS["url"]);
else
$url_v = !empty($xoopsUser) ? $xoopsUser->getVar("url", "E") : "";

//show preview mode
if(isset($HTTP_GET_VARS["preview"]))
{
$xoopsTpl->assign('gb_show_preview', true);

//sanitize text before show
$a_msg = array();

if ($poster = get_user_data($xoopsUser))
{
$a_msg = &$poster;
$a_msg['is_user'] = true;
}
else
{
$a_msg = array();
$a_msg['is_user'] = false;
$a_msg['poster'] = $name_v;
if ($url_v)
$a_msg['url'] = "<a href='" . $url_v . "' target='_blank'><img src='".XOOPS_URL."/images/icons/www.gif' alt='"._VISITWEBSITE."'/></a>";
if ($email_v)
$a_msg['email'] = "<a href='mailto:".$email_v."'><img src='".XOOPS_URL."/images/icons/email.gif' alt='".sprintf(_SENDEMAILTO,$name_v)."' /></a>";
}

$a_msg['i'] = 'x';
$a_msg['title'] = $myts->sanitizeForDisplay($title_v);
$a_msg['msg'] = $myts->sanitizeForDisplay($message, $allowhtml, $allowsmileys, $allowbbcode);
$a_msg['date'] = formatTimestamp(mktime(),"m");

$xoopsTpl->assign('post', $a_msg);
}

if($xoopsUser)
$disabled = "disabled='disabled'";
else
$disabled = '';

$xoopsTpl->assign('gb_sign', _XTG_SIGNGUESTBOOK);
$xoopsTpl->assign('gb_back', "<a href='index.php'>"._XTG_BACKGUESTBOOK."</a>");
$xoopsTpl->assign('gb_desc', _XTG_DESC);

$xoopsTpl->assign('tbl_name', _XTG_NAME);
$xoopsTpl->assign('tbl_email', _XTG_EMAIL);
$xoopsTpl->assign('tbl_url', _XTG_URL);
$xoopsTpl->assign('tbl_title', _XTG_TITLE);
$xoopsTpl->assign('tbl_message', _XTG_MESSAGE);

$xoopsTpl->assign('frm_name', "<input name='username' type='text'$disabled value='$name_v' />");
$xoopsTpl->assign('frm_email',"<input name='email' type='text'$disabled value='$email_v' />");
$xoopsTpl->assign('frm_url', "<input name='url' type='text'$disabled value='$url_v' />");
$xoopsTpl->assign('frm_title', "<input name='title' id='title' type='text' value='$title_v' />");

$textarea = '';
include_once(XOOPS_ROOT_PATH."/include/xoopscodes.php");
if ($GLOBALS['allowbbcode']==1)
$textarea .= xoopsCodeTareaRet("message");
else
$textarea .= "<textarea id='message' name='message' wrap='virtual' cols='50' rows='10'></textarea><br />";
if ($GLOBALS['allowsmileys']==1)
$textarea .= xoopsSmiliesRet("message");
$xoopsTpl->assign('frm_message', $textarea);

$xoopsTpl->assign('frm_preview', "<input name='previewbutton' id='previewbutton' type='submit' onclick='document.forms.guestbook.action=\"sign.php?preview=1\";' value='"._XTG_PREVIEW."'>");
$xoopsTpl->assign('frm_submit', "<input name='submitbutton' id='submitbutton' type='submit' value='"._XTG_SEND."'>");

$notfull = _XTG_NOTFULL;
$msg_toolong = _MESSAGETOOLONG;
$char_allowed = _ALLOWEDCHAR;
$char_current = _CURRCHAR;
$js = <<<EOF
function xoopsValidateXtrem(subjectId, textareaId, nameId, submitId) {
var maxchars = 65535;
var subjectDom = xoopsGetElementById(subjectId);
var textareaDom = xoopsGetElementById(textareaId);
var submitDom = xoopsGetElementById(submitId);
var nameDom = xoopsGetElementById(nameId);

if (textareaDom.value == "" || subjectDom.value == "" || nameDom.value == "") {
alert("$notfull");
return false;
}
if (maxchars != 0) {
if (textareaDom.value.length > maxchars) {
alert("$msg_toolong\\n\\n$char_allowed" + maxchars + "\\n$char_current" + textareaDom.value.length + "");
textareaDom.focus();
return false;
} else {
submitDom.disabled = true;
return true;
}
} else {
submitDom.disabled = true;
return true;
}
}
EOF;

$xoopsTpl->assign('xoops_js', $xoopsTpl->_tpl_vars['xoops_js'] . $js);

include(XOOPS_ROOT_PATH."/footer.php");
?>


Please help me,

thanks a lot!

6
tl
Re: Blank page when opening Extreme Guestbook
  • 2004/6/17 14:48

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Quote:

$textarea = '';
include_once(XOOPS_ROOT_PATH."/include/xoopscodes.php");
if ($GLOBALS['allowbbcode']==1)
$textarea .= xoopsCodeTareaRet("message");
else


I don't think xoopscodes.php has the function called xoopsCodeTareaRet Was this working before you upgraded from 2.0.6 to 2.0.7?

Back your file up, change

$textarea .= xoopsCodeTareaRet("message");

to

$textarea .= xoopsCodeTarea("message");


7
Shijk
Re: Blank page when opening Extreme Guestbook
  • 2004/6/17 21:48

  • Shijk

  • Just popping in

  • Posts: 51

  • Since: 2003/8/7 2


Yes, It workt perfect before...

After changing the code to,

$textarea .= xoopsCodeTarea("message");

I got a white page with the field to fil in your text but the rest was white....it wasn't ok so I changed it back to the old file...so I still got the problem

Any other suggestions?

Mark

8
tl
Re: Blank page when opening Extreme Guestbook
  • 2004/6/17 21:53

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Did you try it on 2.0.7 or 2.0.6? If the old code worked on 2.0.6, then no need for changes. Since it returned undefined function in 2.0.7, I thought it might be worthy of a try in 2.0.7.

Have you contacted the author of the module, asking for help?

9
Shijk
Re: Blank page when opening Extreme Guestbook
  • 2004/6/18 12:04

  • Shijk

  • Just popping in

  • Posts: 51

  • Since: 2003/8/7 2


I'm now running 2.07...

And no, I have not contacted the author..

Greetzz

Mark

10
Anni5166
Re: Blank page when opening Extreme Guestbook
  • 2005/5/16 6:39

  • Anni5166

  • Just popping in

  • Posts: 39

  • Since: 2004/9/30


Quote:

tl wrote:
Quote:

$textarea = '';
include_once(XOOPS_ROOT_PATH."/include/xoopscodes.php");
if ($GLOBALS['allowbbcode']==1)
$textarea .= xoopsCodeTareaRet("message");
else


I don't think xoopscodes.php has the function called xoopsCodeTareaRet Was this working before you upgraded from 2.0.6 to 2.0.7?

Back your file up, change

$textarea .= xoopsCodeTareaRet("message");

to

$textarea .= xoopsCodeTarea("message");




I am using xbox2 theme from montisarts and it already has links included in the theme for xtremguestbook, so I am trying to persist with it. I have done what is suggested in this post and it then returned an error the sam as above but with xoopscodesmiliesret and line 125 , so thinking logically I did the same and changed it to xoopscodesmilies. This made the page display the guest book sign.php page but with one small problem The editor is in the top left corner of the page above everything else instead of at the bottom where it says "Message". As I am not code savvy I am assuming it is somethng to do with the templates. If anyone has any ideas it would be appreciated but in the meantime I will keep playing with it and keep you all posted if I work it out myself.
I am using XOOPS 2.07

If you wish to see what I mean please login to www.kidzinoz.net/kidz with user name test password test

Login

Who's Online

207 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 207


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits