• number3nl

    (@number3nl)


    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

    http://wordpress.org/extend/plugins/phpbb-recent-topics/

Viewing 1 replies (of 1 total)
  • Thread Starter number3nl

    (@number3nl)

    Btw. I am running 2.9.2, but its not selectable.
    And char limit is set to 80.
    O, and I know see that I have some double code (I had // but pasting in the messages went wrong)…

    Right, the result of the above code is that the “title” becomes equal to title shown already. That was not the idea…. I wanted the text from the body of the message.

    Thanks,
    #3

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: phpbb_recent_topics] Tooltips with content of message…’ is closed to new replies.