Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Ver 8 why does not defined('DB_SHOUTBOX') work for me here?

Explanation. Why won't this work in 8.00.50?
CodeDownload  
if (defined('DB_SHOUTBOX') && db_exists(DB_SHOUTBOX)) {
$result = dbquery("SELECT * FROM ".DB_SHOUTBOX."");
   if (dbrows($result) > 0) {
      $num_rows = dbrows($result);
        if ($num_rows) {
             $shouts = $num_rows;
         }
    }
} else { $shouts = 0; }


I have 2 shouts in the db.
Please use Error log. Error says undefined DB_SHOUTBOX. V8 doesn't have autoloaded infusion_db.php.

Add this above your code
CodeDownload  
if (!defined("DB_SHOUTBOX")) {
 define("DB_SHOUTBOX", DB_PREFIX."shoutbox");
}

Thanks man. That did it; I had totally forgotten about that.
Who made the change to the title I set for this post????? Doesn't matter I suppose the fix worked fine.
Care to see??
https://whisperwillow.net
Great site. Glad it worked for you.
Thread Information
Author
Replies
5 posts
Views
124 times
Last Post
Last updated on 1 month ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Chan, Grimloch, RobiNN