I E-mailed them, and they basically said the only support they have is their forums and that I can’t post there unless I pay for the club membership. The most frustrating thing is they said my post with the two links to the old fix is a resolution to the issue and I should try that. I think I’ve had it with Gantry. I like the customization and the theme, but I’m sick of having to hack up plugins to make them work and the lack of support.
Support Forum
Sorry. Under normal circumstances I would take a look at the theme to try and work it out but we are snowed under at the moment and I really couldn’t say when I could squeeze it in as it can be a long task.
I will say that SP sticks to the WP rules and the WP API although it still surprises me how many themes and plugins do not. and in the case of themes – the worse offenders seem often to be the paid-for pones.
Hi, I’m a Rocket Theme WordPress moderator. This post was brought to my attention. I personally have never worked with simple forum before, but we seem to get a lot of questions about it. I just installed a copy and I’ll be testing it out to see if I can determine what the cause of any problems might be. I’ll just need to get up to speed on how it works.
From looking at this thread, I’m not fully understanding what the issue is, other than there is one. If anyone can shed some light on particular errors or suspected technical reasons for the incompatibility I would be happy to look into it. I’ll see what I can come up with on my own. I’m also happy to ask our developers about it, we just need to determine what is happening before a solution can be considered.
For the record, Gantry is a free GPL framework, anyone can download and use it at no cost. It is quite a bit more complex than standard WordPress themes, due mainly to our layout system, page override system and other built in features. Using Gantry is more complicated than some might be used to, but the flexibility it provides seems to be popular with our members.
It’s true that our support forum is only open to club members, it is a benefit we offer to our paying customers. Even then, our assistance with third party plugins is limited. I’m sure the same is true on this forum, we all have our own products to offer support for and have limited knowledge of how other developers work. In this case, I think it would beneficial for both parties if we could find a solution and work together. If there is anything in particular I should be looking at, please let me know.
as Andy says we would normally take a look ourselves but a bit swamped with the 5.0 release… not necessarily problems, though a few of those too, but mainly its now themes vs skins with full api…
simple press appears solely on a single wp page… rewrite urls are used to simulate more than one page, but its dynamic content on the single wp page…
I would say add SP, activate and install… see if it shows up on the single page… I believe the user was saying there was no output on the wp page…
only real issue has been with themes calling the_content() more than once… but some optional settings do exist to try to exist with those too…
we are willing to try to help too…
Hi Cliff, thanks for posting. The issue is that the forum does not display. When you go to access the page, it is like you have a blank page. Where the forum would be, nothing shows up. There are no errors or anything to indicate why it isn’t displaying. You can see exactly what happens at:
http://www.toosaucedtopork.com/testnew/
In the first of the two links that I posted earlier, the posted of the 4.4/4.5 fix has a pretty good description of what he believes is going on. I am not a developer so it’s a bit over my head.
Mike, so I assume you have played with forum – integration – page and permalink, the display multiple and display in loop options? different combinations of them….
on that same page, also just make sure that is the wp page selected for the forum view…
can you look on forum – toolbox – error log and see if any errors listed? if so, might be worth clearing, visiting the forum page and checking again to make sure they are new… and let us know if any…
Hi, thanks for the info, I was able to replicate the issue. I figured this out, it’s simpler than you might think. Since there are no errors, it’s not a conflict of any kind, so getting it to work doesn’t require modifying source the code of either plugin.
Basically, when Gantry renders it’s main body position it does so through what we call a layout. The mainbody layout is called in though the index.php file and is basically a template for the loop(s) / content area. It needs to be separated so it never affects the widget layouts and grid system that is the core of Gantry.
In the layout file, there is a function that dynamically calls in the specific page type – page.php, single.php ECT. In this case, the Gantry function does not recognize or include the function that builds the Simple Press page, so nothing happens.
To fix this, you need to create a custom page template in Gantry that uses a custom layout. This process differs from the traditional method. Fortunately, I wrote a detailed article on how to do this last month, you can view it here: http://www.rockettheme.com/magazine/jan-2012/1339-creating-a-custom-page-template-in-gantry-for-wordpress
Once you’ve done all of that, all you need to do in your new layout file is replace this code:
<?php $this->include_type();?>
With this code:
<?php sp_process_template(); ?>
In your forum page editor, assign your page to use the template you created and it should load up fine.
I tested this and it worked for me, it should work in any Gantry based theme. This is the first time I’ve ever used Simple Press so I haven’t gone through all the features and I had to dig through a lot of files to find that function, so let me know if that is the best one to use or if there are other suggestions or issues. It’s good to know it was just a configuration issue and not a serious programming conflict. Cheers.
Cliff, thanks for the input… A bit worried that by calling that function, you may miss out on a some sp stuff…
Is there any reason that the call cannot be to the standard wp function for outputting page content, the function the_content() ?
that will generate some of the wp actions and filters that sp uses for its api… there are a few things that potentially happen before and after the sp_process_template() call…
being on its own layout (and thus page) it would only affect the forum page…
Hi, I’m glad to help, and the issue you bring up is something I thought about, that’s why I asked. the_content() won’t work in this case. The original layout function would point to our page.php file in this instance, which contains the loop and that function and it produces no output. Why it doesn’t work that way appears to be the issue we’re facing here.
That function seems to do the trick in terms of getting it to load up, so I think we’re on the right track. Again, this is my first time looking at this so I’m not familiar with the missing processes that you’re speaking of or what consequences might occur from that issue. If you say there’s more to it, I believe you, I just wonder if there might be another way to call all of that information from SP?
I’m just not familiar with how this is designed and there is a lot going on and a lot of files to look through. If there are some final output files, functions, variables, filters ECT that I should be looking at, point me in the right direction. I’m just trying to find a solution that doesn’t require hacking up core files on either end. Any suggestions are appreciated.
the forum display is largely hinged on a filter in place ‘the_content’ which is fired by the wp the_content() function… we have run into issues before where some themes and/or plugins have used that filter multiple times within the loop and sometimes outside the loop… it has caused issues but so far, two options on the forum – integration – page and permalink admin panel have been able to handle these cases… those options would be the display multiple times and display within loop… The OP said he tried those to no avail…
might suggest trying:
do_action(‘the_content’, ”);
instead of the sp_process_template() call… not sure it will work, but worth a try… My example has an empty second argument to the action… It really should be any content on the wp page itself if it exists since it will be output before the forum (ie a banner or ad or something)… I just dont know how you would get at it in your theme…
alternately, instead of the do_action() or calling sp_process_template(), you might try a call to the parent function of ours which calls that. It is also the routine actually hooked into ‘the_content’. That function would be:
sp_render_forum(”);
again, the actual argument would be best to be the wp page content and not an empty string…
thanks!
Thanks for the help guys. Unfortunately I still don’t have it all the way working. When I try:
sp_process_template();
The forum loads, but I can’t navigate it. If I click into a link, I get a 404 not found error.
I also tried:
do_action(‘the_content’, ”);
and
sp_render_forum(”);
but all I got with those was a blank page again.
for the former, what are the links you are clicking on? ie what is the url? does it look right?
You can check out www.toosaucedtopork.com/testnew.
The URL looks right, but then it redirects and breaks. For example if I click “Introduce Yourself”, the URL is “http://www.toosaucedtopork.com/testnew/introduce-yourself/” but when I click the link, I am redirected to “http://www.toosaucedtopork.com/2012/01/introduce-yourself/”
after you changed, the page, did you update the forum permalink on forum – integration – page and permalink? please try it…
Hi, I also tried a few things. Looking at the sp_render_forum function definitely pointed me in the right direction and I think I found the real issue. In the simple-press plugin directory -> sp-startup -> forum -> sp-forum-framework.php – line 228.
This code
if (!did_action(‘wp_head’)) return ”;
If I comment it out, everything loads up fine with the_content() call.
Now that I have a solid idea of what the issue is, I can ask our developers as well, although I’m not sure what could be done on our end. This is saying if the wp_head hasn’t been run, to return nothing. That would make sense in terms of nothing loading on the page. Gantry doesn’t use the WP wp_head, we use $gantry->displayHead(); which is a completely custom method for building the header. Really, we do not use many of the standard wp functions, Gantry is kind of it’s own thing. I’m happy to try any suggestions you might have. Hope that helps.