-- Hooray Hooray -- And a Praise the Lord too.
After spending all day surveying the previous 59 pages
I have a fix which works in my application, everytime, and
i haven't been able to break it yet.......
-- Hooray Hooray -- And a Praise the Lord too.
I had a nice long post, and lost it because i checked a link and didn't back up my text --
-- you know that saying about those that have lost data and those that will. Well, good thing --
You get the shorter version of my findings.
SEE Working last post icon -- -- within Latest active topic scroll at:
https://www.kf1.org/forum/index.php#scroll.
It works good for my application with both logged in and guest viewers.
CHANGES: PERTINENT CHANGES IN RED -- original file and mod in black
Find black insert red
TO INDEX.PHP
insert code change into completed mod as downloaded and installed
$template->assign_block_vars('marqueerow', array(
'FOLD_URL' => $pic,
'TOPIC_TITLE' => $row[$i]["topic_title"],
'TOPIC_URL' => append_sid($phpbb_root_path . 'viewtopic.'.$phpEx.'?'.POST_TOPIC_URL.'='.$row[$i]["topic_id"]),
'POST_URL' => ($phpbb_root_path . 'viewtopic.'.$phpEx.'?p=' . $row[$i]["post_id"] . '#' . $row[$i]["post_id"]),
'USERNAME' => $row[$i]["username"],
'USER_PROF' => append_sid($phpbb_root_path . 'profile.'.$phpEx.'?mode=viewprofile&u='.$row[$i]["user_id"]),
'POST_DATE' => create_date($board_config['default_dateformat'], $row[$i]["post_time"], $board_config['board_timezone']))
);
}
//
// Start output of page
//
TO INDEX_BODY.TPL
insert code change into completed mod as downloaded and installed
<!-- BEGIN marqueerow -->
<tr valign="top">
<td class="row2" vAlign="center" align="middle" width="20">
<img src="{marqueerow.FOLD_URL}">
</td>
<td class="row2" width="352">
<span class="forumlink"><a href="{marqueerow.TOPIC_URL}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()" >{marqueerow.TOPIC_TITLE}</a></span>
<span class="gensmall"><br /></span>
</td>
<td class="row2" width="1%" nowrap>
<span class="gensmall"><a href="{marqueerow.POST_URL}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()"><img src="templates/subSilver/images/icon_latest_reply.gif" border="0" title="Jump to the latest posted reply in this topic thread. Membership has privileges. Register to post messages." /></a></span>
</td>
<td class="row2" vAlign="center" align="middle" width="78">
<span class="gensmall"><a href="{marqueerow.USER_PROF}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()" >{marqueerow.USERNAME}</a></span>
</td>
<td class="row2" vAlign="center" noWrap align="middle" width="100">
<span class="gensmall">{marqueerow.POST_DATE}</span>
</td>
</tr>
<!-- END marqueerow -->
END OF LISTED LINE MODIFICATIONS
The above did get me what i wanted.
The below did not get me exactly what i wanted, sometimes it worked for registered members, but not for any "guest viewers, or vicevera."
SEE LINKS OF REFERENCE:
0 zparta latest_topic_on_index_1-1-9.zip_LinkPage
1 my post Latest active topics on index
2jacklww phpbb last post
3earl phpbb last post
4Mega2k on last post
5Yegor phpbb last post
6PVGeek on last post
7nicola1982 phpbb scroll on top
8felguard profile problem
9drathbun alternative to zparta -- there was a post somewhere which talked about why zparta's hard links were good/better than drathbun
10riesgo Cat & Forum row -- to add category and forum labels to last topic scroll
You are soooo lucky you got the shorter post and not the one i lost.
at your service, ken