Original
After
on line 1069 of shoutbox.php
find
PHP Code:
$shoutbox_posts = $DB_site->query("
SELECT s.*, u.username AS absusername
FROM " . TABLE_PREFIX . "shoutbox_posts s
LEFT JOIN " . TABLE_PREFIX . "user u ON (s.userid=u.userid)
WHERE (deleted='0' OR deleted IS NULL)
ORDER BY time DESC LIMIT $vboptions[shoutbox_numberofforumhomeshouts]
");
replace with
PHP Code:
$lastshoutid = $DB_site->query_first("SELECT MAX(shoutid) AS max FROM shoutbox_posts");
$shoutbox_posts = $DB_site->query("
SELECT s.*, u.username AS absusername
FROM shoutbox_posts s
LEFT JOIN user u ON (s.userid=u.userid)
WHERE (deleted='0' OR deleted IS NULL)
AND shoutid > ($lastshoutid[max] - $vboptions[shoutbox_numberofforumhomeshouts])
ORDER BY shoutid ASC
");
in template forumhome
look for
HTML Code:
<!-- IF THE IFRAME IS ENABLED -->
cut this section
HTML Code:
<iframe src="shoutbox.php?$session[sessionurl]do=iframe" width="100%" height="165" scrolling="auto" frameborder="0" name="forumhome_shoutbox" id="forumhome_shoutbox"></iframe>
and move it up right under
HTML Code:
<!-- IF THE IFRAME IS ENABLED -->
<td class="alt1" width="100%"><span class="smallfont">
in template shoutbox_iframe
right below
add
HTML Code:
<body onLoad="self.scrollTo(0,9999)">
you may also want to redo that template and add beginning and closing html, body, doctype, etc tags
they arent there :/
unless im missing something..perhaps iframes dont need them?
If you use it, thank sabret00the and MarcoH64 for enlightening me on the correct query string.