[Plugin: phpbb_recent_topics] Tooltips with content of message…
-
The list of recent topics is great plugin… I was thinking that it would be sweet that you could see the “content” of the message before clicking the link on the front page of the blog. So having tooltips (this would be the title-html of the href filled) show with the text…
How hard can this be, I mean you already know what messages should be on the list, stripping out lets say the first 80 characters and show them via a tooltip must be doable.
Any ideas to get it working? This is my attempt:
echo " href='" . $SITEURL . "/viewtopic.php?t=$topic->topic_id'"; $topic->post_text = preg_replace("(\[.+?\])is",'',$topic->post_text); $topic->post_text = substr($topic->post_text,0,80)."..."; echo " title='" . $topic->post_text . "' "; echo " title='" . substr(preg_replace("(\[.+?\])is",'',$topic->post_text);,0,$char_limit)."..."; . "' "; echo ">"; echo "$topic->topic_title"; echo "</a>";
However the problem with this one is that it does not get me to the the text of the message… I am not a wizard with the phpbb, so maybe you can help me out here.
Thanks,
#3
- The topic ‘[Plugin: phpbb_recent_topics] Tooltips with content of message…’ is closed to new replies.