<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Module: Post Previews</title>
        <description>This module adds AJAX post previews to all links which point to posts on this forum.

Special thanks go to Maurice Makaay for his wonderful AJAX api.

[b]Installation and Usage:[/b]
[color=#FF0000]This module requires Phorum 5.2.8 or greater to use the AJAX api.[/color]

By default the post previews are shown in a 500px by 50px div with the background color set to the default alternate background color (seen in every other message on the list page).  Also by default, the post is shown formatted as it would be on the read page.  These defaults can be changed from the settings page.

The admin can also enable the option for users to disable the previews, which they would then do from the Control Center-&gt;Forum Settings page.   When this setting is enabled, the admin can also enable a help message which will appear above the message preview to explain this feature.  This feature will not work in the Opera browser and thus will not be shown to visitors using Opera.

One final option for the admin is to show a vertical scrollbar in the preview area.  This option fixes a FireFox display bug when a video is embedded in a message.  I would recommend only enabling this option if your forum allows embedded videos in messages.

The admin can also allow logged-in users to mark the previewed message read with a CTRL+Right-Click or the previewed messages entire thread with a CTRL+Shift+Right-Click.  When this setting is enabled, the admin can also enable a help message which will appear above the message preview to explain this feature.  This feature will not work in the Opera browser and thus will not be shown to visitors using Opera.

The previews and the code to show the previews are all done through javascript, so there is no need to edit templates.

[b]Todo:[/b]
- Use AJAX to update the new message flags.

- Add other options for previews. One possibility is a non-popup version which would display beneath each subject in the list page.

- Add further features as requested or as they pop into my head

Changelog:
[code]
v5.2.1.07 Oliver Riesen-Mallmann 
    - Made XHTML 1.0 Transitional compliant.
    - Changed htmlspecialchars option from ENT_COMPAT to ENT_QUOTES.
v5.2.1.06 Oliver Riesen (oliver@riesen.org)
    - Fixed PHP Notice, Undefined index: body.
    - German language files added.
v5.2.1.05
    - Enhancement: Added support for templates in the control center.  Added 
      Classic, Emerald, Lightweight, and Simple Rounded template support.
    - Enhancement: Added compatibility for embedded Phorum installations.
v5.2.1.04
    - Enhancement: Added the option to disable showing previews by default 
      (only registered users who actively enable previews will see them).  
      Thanks go to Phorum user Skye for suggesting this feature.
    - Bugfix: Added to option to display a vertical scrollbar in the preview 
      area.  Enabling this option fixes a FireFox display bug when a video is 
      embedded in a message.  Thanks go to Phorum user noe for pointing out the 
      need for this fix.
v5.2.1.03
    - Enhancement: Added the ability for a logged-in user to mark the previewed 
      message read with a CTRL+Right-click or the previewed message&#039;s entire 
      thread with a CTRL+Shift+Right-click.  A help message can be enabled to 
      appear above the preview area and explain this feature.
    - Enhancement: Add the option to show an alert pop-up if an AJAX error 
      occurs.  This should only be used for debugging.
    - Enhancement: Message_id gathering now centralized in one function to avoid 
      repeated code.
    - Bugfix: All Javascript functions are now properly named to avoid 
      possible, if unlikely, collisions.
v5.2.1.02
    - Enhancement: Support added for the French language by Phorum user manuvb.
    - Bugfix: Post previews would not show for threads on the list page if 
      cookies were disabled, requiring session ids to be added to the urls.  
      Thanks go to Phorum user higphorum for reporting this bug.
v5.2.1.01
    - Bugfix: Sites with a dash in their address would fail to generate previews. 
      Thanks go to Phorum user John Shallo for catching this bug.
v5.2.1.00
    - Initial release.
[/code]</description>
        <link>https://www.phorum.org/phorum5/read.php?62,133957,133957#msg-133957</link>
        <lastBuildDate>Thu, 21 May 2026 09:47:39 -0400</lastBuildDate>
        <generator>Phorum 5.2.22</generator>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,162383#msg-162383</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,162383#msg-162383</link>
            <description><![CDATA[ Hi people! Module Post Previews has been working fine for years, however recently I&#039;ve converted to https and now it&#039;s off. <br />
<br />
I&#039;ve checked error message, it gives out following, please see attachment.<br />
<br />
Is there any way to make it work again?]]></description>
            <dc:creator>Maxim_A</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Tue, 05 Nov 2019 05:10:17 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,160802#msg-160802</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,160802#msg-160802</link>
            <description><![CDATA[ New version:<br />
<br />
<pre class="bbcode">
v5.2.1.07 Oliver Riesen-Mallmann &lt;oliver@riesen.org&gt;
    - Made XHTML 1.0 Transitional compliant.
    - Changed htmlspecialchars option from ENT_COMPAT to ENT_QUOTES.
</pre>]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 31 Aug 2016 09:23:08 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,156051#msg-156051</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,156051#msg-156051</link>
            <description><![CDATA[ <pre class="bbcode">
v5.2.1.06 Oliver Riesen (oliver@riesen.org)
    - Fixed PHP Notice, Undefined index: body.
    - German language files added.
</pre>]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Fri, 11 Sep 2015 03:54:13 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,154329#msg-154329</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,154329#msg-154329</link>
            <description><![CDATA[ Installed.  Thanks for this!!  I did a little tweaking, and it is attached to share.<br />
<br />
Out of the box, this mod does a good job, thanks again, but one thing is if the previewed text is larger than the popup box dimensions, the last line in the popup box is cut more or less in half.  Given this mod sets a constant box size, what I did was to determine the length of the text size and truncate it to fit within the popup box.<br />
<br />
There are a couple of fudge factors, along with the ACP popup box dimensions, that you can play with to get your popup box looking good.  My phorum uses 115% font size, I set my popup box to 900 wide by 50 high, and I use the fudge factors as shown in the file to get really good results with the text in the popup preview.<br />
<br />
YMMV because I don&#039;t think there is a nice and quick way to get all cases of possible text previews to look perfect in a fixed dimensional popup box.  It&#039;s the same with a fluid popup box and a fixed amount of text. Truncating text in inopportune places might break a smilie or something like that.  Just worth a mention is all.]]></description>
            <dc:creator>Skinny</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Fri, 20 Sep 2013 05:50:38 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,153008#msg-153008</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,153008#msg-153008</link>
            <description><![CDATA[ How disable it Post Previews only over thread Icon?]]></description>
            <dc:creator>Toni</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Sun, 30 Dec 2012 15:12:33 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,152355#msg-152355</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,152355#msg-152355</link>
            <description><![CDATA[ John,<br />
<br />
I never used marking a thread as read, but...<br />
<br />
There is strange behavior when marking a forum as read. The symptom is the forum is ignored. <br />
You won&#039;t get &quot;new&quot; message indication again for that forum unless you go into the forum and look at  the Topic and page with one of the &quot;new&quot; messages you bypassed. (this may not be the exact behavior/ steps to reproduce, it may be that it is &quot;fixed&quot; by looking at any topic in the read forum ) <br />
<br />
This behavior can be seen here on the Phorum forum also.]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Mon, 22 Oct 2012 08:45:20 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,152343#msg-152343</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,152343#msg-152343</link>
            <description><![CDATA[ Hi, guys.<br />
<br />
Thanks for another useful module. I&#039;d like someone to clarify whether the following is just me being dumb or simply the intended behaviour:<br />
<ol type="1"><li>Preview a post and use Ctrl+Shift+right-click to mark the thread as read. </li><li>Return to the message list later, when there&#039;s been a new post in the thread previously marked as read. </li><li>Preview panel no longer displays the shortcut box. Ctrl+Shift+right-click no longer works. </li></ol>
Any ideas? I&#039;m using the latest versions of Safari and Firefox on Mac OS X.]]></description>
            <dc:creator>John Espirian</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Sun, 21 Oct 2012 10:07:08 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147548#msg-147548</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147548#msg-147548</link>
            <description><![CDATA[ My apology, I forgot that I apparently had switched off this option in the past. It works flawlessly on the official Phorum site. My HTML markup is different, Phorum calculates the absolute values for &quot;to&quot; and &quot;left&quot; relating to the main &lt;div&gt;. In my case these values are chosen depending to the &lt;div&gt; which contains the Phorum table. Wouldn&#039;t this property give designers more freedom?<br />
Thank you!]]></description>
            <dc:creator>korsakov</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Thu, 20 Jan 2011 09:51:03 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147542#msg-147542</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147542#msg-147542</link>
            <description><![CDATA[ To see the previews on the Phorum website, check your &quot;Forum Settings&quot; in the Control Center.<br />
<br />
For your personal site, how wide do you have the preview area?  If it is too wide, it will shift because it always tries to keep a 10 or 20 pixel distance from the right side of the screen.  The width can be set in the module&#039;s settings page.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Thu, 20 Jan 2011 01:54:08 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147541#msg-147541</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147541#msg-147541</link>
            <description><![CDATA[ The module is most definitely installed on this Phorum. There are no positioning issues here.<br />
<br />
Unless you provide us with a live URL for demonstrating the issue, it is not possible to debug your issue.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Thu, 20 Jan 2011 01:18:01 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147540#msg-147540</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147540#msg-147540</link>
            <description><![CDATA[ Thanks for your quick response! I use Chrome and FF. On the official Phorum Preview is not activated. But the window clearly is x-shifting its position depending to the width of the browser window.]]></description>
            <dc:creator>korsakov</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 19 Jan 2011 23:30:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147539#msg-147539</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147539#msg-147539</link>
            <description><![CDATA[ What browser/version are you using?  What exactly are you looking for? The preview window should appear directly below or above the focused link depending on how close it is to the upper or lower limits of the window.  It should also be horizontally aligned to start at the start of the link, though it does shift over to avoid running off the right edge of the window.  This is the exact behavior I see in IE and FireFox.  Do you see the same preview positioning on the Phorum website as on your personal Phorum installation?]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 19 Jan 2011 20:23:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147537#msg-147537</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147537#msg-147537</link>
            <description><![CDATA[ The positioning of the preview window seems to be dependent to the current width of the browser window. Is it possible to position the window related to the link position the user is hovering over?]]></description>
            <dc:creator>korsakov</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 19 Jan 2011 17:58:37 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147307#msg-147307</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147307#msg-147307</link>
            <description><![CDATA[ Hi Joe,<br />
<br />
I published a new version of my <a href="http://www.phorum.org/phorum5/read.php?65,129717" target="_blank" >German Language Files Package</a> which includes also translations for you module in two character sets iso-8859-1 and utf-8.<br />
<br />
Please add the attached language files to the next release of your module and remove maybe existing old style files like german.php oder german-sie.php. Thanks!<br />
<br />
Regards<br />
Oliver<br />
<br />
[Files removed]]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Tue, 04 Jan 2011 06:11:58 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147206#msg-147206</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147206#msg-147206</link>
            <description><![CDATA[ Thank you guys for all the cool mods!]]></description>
            <dc:creator>Rob Granger</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 22 Dec 2010 20:10:07 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147205#msg-147205</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147205#msg-147205</link>
            <description><![CDATA[ Rob, thanks for reporting the bug and helping with the debugging.  Maurice, thank you for taking the time to track down the source of this issue.  I will include this fix in the next release of my module.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 22 Dec 2010 20:07:51 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147204#msg-147204</guid>
            <title>Maurice / Joe, the offending &quot;include&quot; is in the orginal code for the preview</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147204#msg-147204</link>
            <description><![CDATA[ [ppbb@boxster mods]$ vi ./post_previews/post_previews.php<br />
<br />
I changed that to include_once and we are good! <br />
I had used the include_once in the snippit that I had added to the forum_subscriptions and it confliced with this one.<br />
<br />
This is the code that I updaded of Joe&#039;s:<br />
    // get the message body to preview - formatted as necessary<br />
    if (!empty($PHORUM[&quot;phorum_mod_post_previews&quot;][&quot;show_formatted&quot;])) {<br />
<br />
        <b>include_once(&quot;./include/format_functions.php&quot;);</b><br />
        $messages[$message_id] = $message;<br />
        $formatted_messages = phorum_format_messages($messages);<br />
<br />
        $body = $formatted_messages[$message_id][&quot;body&quot;];<br />
<br />
    } else {<br />
<br />
        $body = $message[&quot;body&quot;];]]></description>
            <dc:creator>Rob Granger</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 22 Dec 2010 15:23:41 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147203#msg-147203</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147203#msg-147203</link>
            <description><![CDATA[ Gee, thanks! I have been trying to use the firebug stuff and not having a lot of luck. guess in a panic is not the best time to learn a debug tool!<br />
you rock.]]></description>
            <dc:creator>Rob Granger</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 22 Dec 2010 15:11:02 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147202#msg-147202</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147202#msg-147202</link>
            <description><![CDATA[ The Ajax request returns:<br />
<pre class="bbcode">
&lt;br /&gt;
&lt;b&gt;Fatal error&lt;/b&gt;:  Cannot redeclare phorum_format_messages() (previously declared in /home/ppbb/public_html/phorum/include/format_functions.php:49) in
&lt;b&gt;include/format_functions.php&lt;/b&gt; on line &lt;b&gt;220&lt;/b&gt;&lt;br /&gt;</pre>
<br />
In some other comment from above, I see that there is a call like this in the module code:<br />
<pre class="bbcode">
include(&quot;./include/format_functions.php&quot;);</pre>
<br />
Change that call to:<br />
<pre class="bbcode">
include_once &quot;./include/format_functions.php&quot;;</pre>
<br />
Currently, the format_functions library is loaded twice.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 22 Dec 2010 15:07:29 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147200#msg-147200</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147200#msg-147200</link>
            <description><![CDATA[ Sure I have found that disabling this stops the issue:<br />
Show the message body in the preview formatted as it would appear on the read page:	<br />
<br />
Let me re-enable that flag and here is a link to the forum. I think that it should be doing it even if you are not logged in, let me know and I will send you a working login.<br />
<br />
[<a href="http://www.ppbb.com/phorum/list.php?26" target="_blank"  rel="nofollow">www.ppbb.com</a>]<br />
Rob<br />
<a href="mailto:&#114;&#103;&#114;&#97;&#110;&#103;&#101;&#114;&#64;&#100;&#111;&#100;&#105;&#46;&#99;&#111;&#109;">&#114;&#103;&#114;&#97;&#110;&#103;&#101;&#114;&#64;&#100;&#111;&#100;&#105;&#46;&#99;&#111;&#109;</a>]]></description>
            <dc:creator>Rob Granger</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 22 Dec 2010 15:01:11 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147199#msg-147199</guid>
            <title>Re: Error: Ajax Phorum API call succeeded, but the return data could not be parsed as JSON data.</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147199#msg-147199</link>
            <description><![CDATA[ I didn&#039;t write this module, but if you can provide me an URL where I can see the issue in action, then I might be able to tell what&#039;s going on.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 22 Dec 2010 14:49:02 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147198#msg-147198</guid>
            <title>Error: Ajax Phorum API call succeeded, but the return data could not be parsed as JSON data.</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147198#msg-147198</link>
            <description><![CDATA[ I tried to post the stack, but then phorum thinks that I am doing a hack. I am not sure when this started because I don&#039;t use the function.<br />
Any ideas? Can i email you or let you view the page?<br />
Rob Granger]]></description>
            <dc:creator>Rob Granger</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 22 Dec 2010 14:33:41 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,147174#msg-147174</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,147174#msg-147174</link>
            <description><![CDATA[ I was wondering whether you could suppress displaying the [attachment..] tags within the previews. Thanks!]]></description>
            <dc:creator>korsakov</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Sat, 18 Dec 2010 22:47:24 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,146285#msg-146285</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,146285#msg-146285</link>
            <description><![CDATA[ It is working well in the forum on the &quot;Subjet&quot;  and  on &quot;Last Post&quot;<br />
<br />
But, il the module &quot;Recent Messages&quot; I got only the preview post for the &quot;Subjet&quot;  but not for the &quot;Last Post&quot; ?<br />
<br />
1 - How I can do to have the preview post on the &quot;Last Post&quot; with the le &quot;Recent Messages&quot;<br />
<br />
2- How I can have  the preview post only on  the &quot;Last Post&quot; wand in both the &quot;Forul&quot; and the &quot;Recent Messages&quot;]]></description>
            <dc:creator>victoria</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Thu, 14 Oct 2010 12:16:02 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,145747#msg-145747</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,145747#msg-145747</link>
            <description><![CDATA[ Thanks a lot!  have tried the hack provided for &quot;rate this thread&quot; + &quot;post preview&quot; module issue. It just works excellent! Now the post preview is showing the message content itself, even when the thread rating is there, and the user can see the message rating only when he opens the thread/message. Excellent!]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Fri, 17 Sep 2010 16:36:33 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,145744#msg-145744</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,145744#msg-145744</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />The module should automatically insert the option into the user&#039;s control center.</div></blockquote>
No, it is not doing that for the user or admin or anyone. <br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />Are you seeing any errors in the Event Logging module?</div></blockquote>
Event logging was set to &quot;error&quot; level. Neither in &quot;error&quot; level or &quot;warning&quot; level no errors are showing up. <br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />Can you double-check that the {phorum_root}/mods/post_previews/templates/emerald folder was fully uploaded to your server (ftp errors are not unheard of). Is your Emerald template in the normal folder (ie. {phorum_root}/templates/emerald)?</div></blockquote>
Yes, I think. Emarald template is working fine for me - every feature. <br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />When you say &quot;as a normal user&quot; does this mean that your admin user sees the option but not the normal users?</div></blockquote>
No - none gets any extra configuration in control panel. Note that even the &quot;Show a vertical scrollbar in the preview area&quot; is working when enabled. But the problem is that &quot;Allow users to disable showing previews&quot; and &quot;Disable showing previews by default&quot; is not showing up in control panel. Please note that I won&#039;t say &quot;these features are not working&quot; because - when I check the &quot;Disable showing previews by default&quot; checkbox and save the changes - the preview stops appearing. (and when I enable it, it starts appearing as expected). But I don&#039;t have (or any user has) any option to change it again from control panel - because no extra options appeared in the control panel=&gt;Forum settings.]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Fri, 17 Sep 2010 15:34:56 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,145740#msg-145740</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,145740#msg-145740</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>sreesog</strong><br />
I have just updated our forum with Post previews v5.2.1.05,  and faced with some issues - <br />
1) the new features are not working (the old features are working fine). For example even if I enable &quot;Allow users to disable showing previews&quot; and &quot;Disable showing previews by default (only registered users who actively enable previews will see them)&quot;; when I check the &quot;Control Center-&gt;Forum Settings&quot; as a normal user I don&#039;t find provision to enable or disable these features there at all! (Simply put, these two new feature do not for me work at all) Is it a bug, or do I need to do any template changes? I liked these enhancements, so would love to get these issues resolved for me and continue using this module. Thanks for this wonderful mod. (I loves the yahoo group style of providing the preview of first few lines of the message just below the subject line of the post more; but that is another matter. Is there any mod available that implements the same?)</div></blockquote>
<br />
The module should automatically insert the  option into the user&#039;s control center.  Are you seeing any errors in the Event Logging module?  Can you double-check that the {phorum_root}/mods/post_previews/templates/emerald folder was fully uploaded to your server (ftp errors are not unheard of).  Is your Emerald template in the normal folder (ie. {phorum_root}/templates/emerald)?  When you say &quot;as a normal user&quot; does this mean that your admin user sees the option but not the normal users?<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />2) Another issue:  I want to use &quot;Rate this thread&quot; module and &quot;Post previews&quot; module together. For Post previews, I have set the width x height as 500 x 200. Now the issue is that &quot;Post preview&quot; will show only the content rating section provided by &quot;Rate this thread&quot; module and not the message itself! I want the user to see the message rating only when he clicks on it, but in preview I want the message preview itself and not the content rating. Is there a solution to this? By tweaking something either with &quot;Rate this thread&quot; module or with &quot;Post preview&quot; module?<br />
Note: I using Phorum version 5.2.15a. The browser used to access the site is Firefox 3.6.10; our site uses emarald template.</div></blockquote>
<br />
I can only offer you a rough hack for this problem for now.  I will add this to my todo list for the module though to allow for this kind of situation.  Anyways, the hack is to edit the {phorum_root}/mods/post_previews/post_previews.php file and insert lines 71-77 from the following example.  This will disable the Rate This Thread formatting from the Post Previews AJAX call:<br />
<pre class="php bbcode_geshi"><div class="head">Language: PHP</div><ol start="68"><li class="li1"><div class="de1"><span class="co1">// get the message body to preview - formatted as necessary</span></div></li><li class="li1"><div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span><span class="sy0">!</span><a href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$PHORUM</span><span class="br0">&#91;</span><span class="st0">&quot;phorum_mod_post_previews&quot;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&quot;show_formatted&quot;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">    <span class="kw1">foreach</span> <span class="br0">&#40;</span><span class="re0">$PHORUM</span><span class="br0">&#91;</span><span class="st0">&quot;hooks&quot;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&quot;format&quot;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&quot;mods&quot;</span><span class="br0">&#93;</span> <span class="kw1">as</span> <span class="re0">$mod_id</span> <span class="sy0">=&gt;</span> <span class="re0">$mod_name</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">        <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$mod_name</span> <span class="sy0">==</span> <span class="st0">&quot;rate_this_thread&quot;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">            <a href="http://www.php.net/unset"><span class="kw3">unset</span></a><span class="br0">&#40;</span><span class="re0">$PHORUM</span><span class="br0">&#91;</span><span class="st0">&quot;hooks&quot;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&quot;format&quot;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&quot;mods&quot;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="re0">$mod_id</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">            <a href="http://www.php.net/unset"><span class="kw3">unset</span></a><span class="br0">&#40;</span><span class="re0">$PHORUM</span><span class="br0">&#91;</span><span class="st0">&quot;hooks&quot;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&quot;format&quot;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&quot;funcs&quot;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="re0">$mod_id</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">            <span class="kw1">break</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">        <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">    <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">    <span class="kw1">include_once</span><span class="br0">&#40;</span><span class="st0">&quot;./include/format_functions.php&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">    <span class="re0">$messages</span><span class="br0">&#91;</span><span class="re0">$message_id</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="re0">$message</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">    <span class="re0">$formatted_messages</span> <span class="sy0">=</span> phorum_format_messages<span class="br0">&#40;</span><span class="re0">$messages</span><span class="br0">&#41;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">    <span class="re0">$body</span> <span class="sy0">=</span> <span class="re0">$formatted_messages</span><span class="br0">&#91;</span><span class="re0">$message_id</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&quot;body&quot;</span><span class="br0">&#93;</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li></ol></pre>
<br />
EDIT: include_once() rather than a simple include().  Thanks to Rob Granger for reporting and Maurice for debugging.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Fri, 17 Sep 2010 10:32:36 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,145733#msg-145733</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,145733#msg-145733</link>
            <description><![CDATA[ I have just updated our forum with Post previews v5.2.1.05,  and faced with some issues - <br />
1) the new features are not working (the old features are working fine). For example even if I enable &quot;Allow users to disable showing previews&quot; and &quot;Disable showing previews by default (only registered users who actively enable previews will see them)&quot;; when I check the &quot;Control Center-&gt;Forum Settings&quot; as a normal user I don&#039;t find provision to enable or disable these features there at all! (Simply put, these two new feature do not for me work at all) Is it a bug, or do I need to do any template changes? I liked these enhancements, so would love to get these issues resolved for me and continue using this module. Thanks for this wonderful mod. (I loves the yahoo group style of providing the preview of first few lines of the message just below the subject line of the post more; but that is another matter. Is there any mod available that implements the same?)<br />
<br />
2) Another issue:  I want to use &quot;Rate this thread&quot; module and &quot;Post previews&quot; module together. For Post previews, I have set the width x height as 500 x 200. Now the issue is that &quot;Post preview&quot; will show only the content rating section provided by &quot;Rate this thread&quot; module and not the message itself! I want the user to see the message rating only when he clicks on it, but in preview I want the message preview itself and not the content rating. Is there a solution to this? By tweaking something either with &quot;Rate this thread&quot; module or with &quot;Post preview&quot; module?<br />
Note: I using Phorum version 5.2.15a. The browser used to access the site is Firefox 3.6.10; our site uses emarald template.]]></description>
            <dc:creator>Sreenadh OG</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Fri, 17 Sep 2010 04:09:32 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,144348#msg-144348</guid>
            <title>Re: Module: Post Previews</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,144348#msg-144348</link>
            <description><![CDATA[ I&#039;ve been running v5.2.1.03 on a heavy traffic site for about 6 months now, working brilliantly.<br />
I just upgraded to v5.2.1.05 and it&#039;s working equally well.  Thanks for adding the option to disable for non-logged-in users.<br />
<br />
One other feature request =)<br />
<br />
Is it possible to introduce a X ms delay before popping up the preview?<br />
I&#039;m thinking that as a user moves their mouse around, it&#039;s loading the server with ajax requests that aren&#039;t really necessary.<br />
If there was a, say, 500ms delay before popping up the preview, that would solve it nicely.  Kind of normal behaviour for &quot;tooltips&quot; anyway.<br />
<br />
I&#039;ve mucked around with the javascript but can&#039;t seem to get it to work... like changing the onmouseover to a setTimeout(phorum_mod_post_previews_getpreview, 500)<br />
<br />
Thanks again for your excellent module<br />
<br />
- Skye]]></description>
            <dc:creator>Skye N.</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 05 May 2010 18:06:24 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?62,133957,143191#msg-143191</guid>
            <title>Module: Post Previews v5.2.1.05 - Control Center Template Support</title>
            <link>https://www.phorum.org/phorum5/read.php?62,133957,143191#msg-143191</link>
            <description><![CDATA[ I have completed v5.2.1.05 of this module with the following changes:<br />
<br />
- Enhancement: Added support for templates in the control center.  Added Classic, Emerald, Lightweight, and Simple Rounded template support.<br />
<br />
- Enhancement: Added compatibility for embedded Phorum installations.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>5.2 Modules/Add-Ons</category>
            <pubDate>Wed, 17 Feb 2010 11:27:52 -0500</pubDate>
        </item>
    </channel>
</rss>
