Well I know where that is coming from because there's only one point in the script where there's an SQL query with that syntax: $sql = " SHOW COLUMNS FROM `{$Configuration['DATABASE_TABLE_PREFIX']}User` WHERE `Field`='LDUpdateTime' ";But I can't see anything wrong with that. If I type it into PHPMyAdmin it evaluates the query fine and returns a result. What version of MySQL are you using?
hi,
works fine with Firefox. But with IE (6) get the following errors:
Line: 165
Error: Expected identifier, string or number
Line: 22
Error: 'LiveDiscussion' is undefined
Bloody IE and its appalling Javacript support. There's not much I can do since I don't know how IE 6 is counting the line numbers; line 165 in live.js is fine and won't throw any errors so I'm unsure as to what to do. I would hope most people have IE 7 by now anyway. That being said, IE 7's javascript isn't much better so it still might not work.
Hmm well I can't see anything wrong with that line. Unless the main problem is that 'LiveDiscussion' is apparently undefined. LiveDiscussion is defined though. Try adding the following line after line 152 in default.php: LiveDiscussion = {};
Well I've got 5.0.45 so that may be the problem. Could you try executing the query in PHPMyAdmin as that will help confirm whether MySQL really is the culprit. In the meanwhile I'll look around and see if I can find something in the MySQL documentation about this.
yea, I'm on 4.0.22-standard
i put that into phpMyAdmin and got the same error
and then I looked in the LUM_User table, and I don't see a field called LDUpdateTime...
I know, that's the point of the query. It uses the SHOW COLUMNS query to see if the column exists or not. If it doesn't then it executes another query to create it.
OK, looking at the MySQL 4 reference it seems the SHOW COLUMNS command can't be used with a WHERE clause, only with a LIKE clause. I should be able to achieve the desired effect with a DESCRIBE command though. Updating the code now...
When I try to configure Live Discussions, I get this error message:
Notice: Use of undefined constant __METHOD__ - assumed '__METHOD__' in /home/content/n/t/c/ntchristian/html/forum/extensions/LiveDiscussions/account.class.php on line 23
In the sidebar, when I click "Live Updates are off" link under "Live Discussions" heading, it does nothing. Where do I configure Live Discussions and turn it "on"? Under my account, I only have the option of changing the page refresh time.
@NTChristian: Have you got any extensions that use prototype? They will sometimes mess-up Mootools. Can I have a link to your forum?
@timfire: I shall add that ASAP.
@timfire: Now, if you also have the Mootools extension installed, the form will flash green whenever you make changes.
@NTChristian: JQuery shouldn't be a problem. I can't debug the script unless I can see it in use in your forum though. It seems odd that Safari reports no errors. If you really don't want to let me look at your forum could you try installing the Firebug add-on for Firefox and see if it shows any errors.
OK, another minor suggestion (can you tell I installed this today?)---Could you place something on the Account page that tells Users what the minimum time is? Something like:
// First, around line 16: if (isset($Configuration['LD_MIN_REQUEST'])) $LD_MinTime = $Configuration['LD_MIN_REQUEST']; else $LD_MinTime = RealMinReq;
// Then, change the definition: $Context -> SetDefinition('LDAccSpiel', "Here you may set the number of seconds that pass before the discussions/comments page is updated. (min: $LD_MinTime)");
Hell, while I'm at it, I would wrap the whole thing in a "if ($Context->Session->UserID > 0)" condition. That would cut down on bandwidth, by limiting the feature to members only.
I have the same problem as NTChristian. What's even stranger is that the first time it loads it's near the top of the sidebar, after I click on it and reload, it's further down.
using a recent version of FF.
My forum is invite only, whisper your email to me and I'll send you an invite.
Comments
$sql = "But I can't see anything wrong with that. If I type it into PHPMyAdmin it evaluates the query fine and returns a result. What version of MySQL are you using?SHOW COLUMNS
FROM `{$Configuration['DATABASE_TABLE_PREFIX']}User`
WHERE `Field`='LDUpdateTime'
";
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •LiveDiscussion = {};- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Notice: Use of undefined constant __METHOD__ - assumed '__METHOD__' in /home/content/n/t/c/ntchristian/html/forum/extensions/LiveDiscussions/account.class.php on line 23
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •// First, around line 16:
if (isset($Configuration['LD_MIN_REQUEST'])) $LD_MinTime = $Configuration['LD_MIN_REQUEST'];
else $LD_MinTime = RealMinReq;
// Then, change the definition:
$Context -> SetDefinition('LDAccSpiel', "Here you may set the number of seconds that pass before the discussions/comments page is updated. (min: $LD_MinTime)");
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •