Module: Post Previews
Posted by Joe Curia
Re: Module: Post Previews November 02, 2008 10:01AM |
Registered: 19 years ago Posts: 45 |
Re: Module: Post Previews November 02, 2008 10:10AM |
Admin Registered: 19 years ago Posts: 8,532 |
Whether the API code change works for you depends on the problem that is going on. Do you have your site public, so we can take a closer look at it? If not, then try the debugging option that Joe described in his message.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Post Previews November 02, 2008 10:17AM |
Registered: 19 years ago Posts: 45 |
Re: Module: Post Previews November 02, 2008 10:33AM |
Registered: 19 years ago Posts: 45 |
I changed the API code back and changed the template to the current Emerald (not my own). What I'm seeing is that the Preview is working on the read.php page when hovering over the Subject. My modified template doesn't have the subject as a link, but in Emerald its showing the preview box. I'm guessing their some type of code thats working with this Module to allow this to preview. The list page is not showing anything on any of my templates.
Module: Post Previews v5.2.1.01 - Bugfix for hyphenated sites November 02, 2008 01:07PM |
Registered: 17 years ago Posts: 1,301 |
I have completed v5.2.1.01 of this module with the following change:
- Bugfix: Sites with a dash in their address would fail to generate previews. Thanks go to Phorum user John Shallo for catching this bug.
John, please download the latest version which should address your problem.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
- Bugfix: Sites with a dash in their address would fail to generate previews. Thanks go to Phorum user John Shallo for catching this bug.
John, please download the latest version which should address your problem.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Post Previews v5.2.1.01 - Bugfix for hyphenated sites November 02, 2008 01:11PM |
Registered: 19 years ago Posts: 45 |
Re: Module: Post Previews November 02, 2008 01:16PM |
Registered: 19 years ago Posts: 45 |
Re: Module: Post Previews November 02, 2008 03:30PM |
Registered: 17 years ago Posts: 1,301 |
John,
In testing on my own server both mods worked fine and the bug in this mod would not have affected the PM Alerts module. I have created two users on your site (azumandias and testuser2) for the purposes of testing the pm alerts. Could you give those accounts access to using the pm system? Also, for further comments on that problem, lets use that mod's thread so as to leave this one to its own issues ;-)
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
In testing on my own server both mods worked fine and the bug in this mod would not have affected the PM Alerts module. I have created two users on your site (azumandias and testuser2) for the purposes of testing the pm alerts. Could you give those accounts access to using the pm system? Also, for further comments on that problem, lets use that mod's thread so as to leave this one to its own issues ;-)
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Post Previews November 06, 2008 02:31PM |
Registered: 20 years ago Posts: 687 |
Thanks for the replies, and apologies for my delay in responding, I haven't had a chance to look at this until today.
The error shown in the popup was:
I made the suggested change but unfortunately it hasn't helped. My forum is at [www.cantonese.sheik.co.uk]
Cheers!
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
Quote
Joe Curia
In the header.js file for this mod, please edit this line:
"onFailure" : function (error) { showerror = false; if (showerror) alert("Error: " + error); }to read:
"onFailure" : function (error) { showerror = true; if (showerror) alert("Error: " + error); }
This should send up an alert to let us know what is going wrong. (hmm, may need to add that to the settings page as a debug option...)
The error shown in the popup was:
Error: Ajax Phorum API call succeeded, but the return data could not be parsed as JSON data.
Quote
Maurice Makaay
When I look at the traffic that is generated by the module (using Firebug under Firefox), I see the following response from the server:
<b>Fatal error</b>: Call to undefined function: json_decode() in <b>/usr/local/home/httpd/vhtdocs/cantonese /phorum/include/api/json.php</b> on line <b>62</b><br />
The json PHP extension not be enabled on the server, causing the json_encode() and json_decode() functions to be missing out. I thought I had taken care of that in the json API code, but it looks like something is going wrong in there. We need some debugging here.
Please open include/api/json.php. In that file, you should see the following code:
if (!function_exists('json_encode')) { require_once('./include/api/json-pear.php'); $PHORUM['API']['PEARJSON'] = new Services_JSON(); }
What I'm suspecting, is that $PHORUM is not in global scope here, causing the json extension detection to get lost in the rest of the API code. Try changing this code to:
if (!function_exists('json_encode')) { require_once('./include/api/json-pear.php'); $GLOBALS['PHORUM']['API']['PEARJSON'] = new Services_JSON(); }
See if that makes the interface work. If it does, then I'll update the core code to represent this change.
I made the suggested change but unfortunately it hasn't helped. My forum is at [www.cantonese.sheik.co.uk]
Cheers!
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
Re: Module: Post Previews November 06, 2008 02:53PM |
Admin Registered: 21 years ago Posts: 9,240 |
Sorry, only registered users may post in this forum.