hmm more investingation reveleas that the mark_topic_read is part of the Mark topics as read plugin.... i shall investigate further
1 2007-03-20 10:51
Re: Cannot use string offset as an array (3 replies, posted in PunBB 1.2 troubleshooting)
2 2007-03-20 10:49
Re: Cannot use string offset as an array (3 replies, posted in PunBB 1.2 troubleshooting)
thanks, i've updated my original post above
3 2007-03-20 10:30
Topic: Cannot use string offset as an array (3 replies, posted in PunBB 1.2 troubleshooting)
hiya,
i've just moved hosting companies so had to copy the punbb db accross.
It was on mysql 4.1 now on mysql 5. PHP was 4.4 now 5.2. Was Apache, now Apache 2. both times on linux.
Now when try to view posts i get this message, but not all the time....
Fatal error: Cannot use string offset as an array in /home/axelnormand/webapps/htdocs/punbb/include/functions.php on line 1153
EDIT: line 1153 is....
$pun_user['read_topics']['t'][$topic_id] = time();
the bit of code surrounding that is
function mark_topic_read($topic_id, $forum_id, $last_post) {
global $db, $pun_user;
if (topic_is_new($topic_id, $forum_id, $last_post)) {
$pun_user['read_topics']['t'][$topic_id] = time();
$db->query('UPDATE '.$db->prefix.'users SET read_topics=\''.$db->escape(serialize($pun_user['read_topics'])).'\' WHERE id='.$pun_user['id']) or error('Unable to update read-topic data', __FILE__, __LINE__, $db->error());
}
}
Any ideas?
many thanks, punbb is great BTW!
alex
4 2006-12-07 12:21
Re: AJAX post preview 1.0.2 (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
excellent plugin many thanks.
One question: how do i integrate it into the Quick Post in viewtopic.php?
i had a quick go following the steps in post.php, but it didnt work
Many thanks again.