Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
5.0 and Gantry Framework Themes
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 11, 2013 - 1:38 am

sp head?  not sure what you mean... gantry bypasses the normal wp_head action that most themes and plugin use...

did you read that thread?  there was even links back to the gantry forum where they posted info...

Avatar
Daniel James
Member
Free Members
sp_UserOfflineSmall Offline
Sep 11, 2013 - 8:54 pm

Thank you for taking your time to reply, Mr. Papa.

I did all this:

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/mag…..-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(); ?>

I have done this which produces this line:

A Simple Press Poll can only appear in a forum post

at the spot where the Poll should be. You can see it here: http://khanduras.net/forums/ge.....iablo-mod/

I did this:

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.

Which didn't fix the problem, but the forums loaded great. :)

I have tried all of this:

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. 

With no success to my issue. (Still says can't display polls because it's not a forum post.)

I saw MikeMSD had some success with his!

I had to do the override in the Gantry files to set the body to output as:

do_action('the_content', '');

I also commented out the head check in the Simple-Press files. I'm not 100% sure about the need to modify the Gantry files, but when I tried disabling the custom template, the forum stopped working. It may have been a browser cache issue, but I couldn't swear to it.

But that was with getting his forum to display at all. Mine displays fine. I can post, reply, edit, toolbox, the whole thing, it's great! Except polls... I can make a new one! But it displays the same message.

I played with every Integration and Theme Display setting in the SP admin with no luck. Maybe something specific in the polls plugin? I took a look around there but couldn't find anything..

It doesn't take too long to read the previous relevant forum posts, only pages 3, 4 and 5.. Can you see anything I missed? Where is that back link to the forums? I just see this: http://www.rockettheme.com/mag.....-wordpress which is how I'm displaying the forums in the first place (which is working great).

I just don't see anywhere where I can tell the post to be a forum post in order for the polls to display.

Again, thank you for your time.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 11, 2013 - 10:23 pm

its pretty simple really.. we make this check for displaying:

    if (!$spIsForum || !in_the_loop()) {

that says, we must be on a forum page...  I suspect that is working...  and then the in_the_loop() call is a wp function that tells you whether or not  you are in the post/page loop (ie doing the page content)...

I would investigate which test is failing... My money is on in_the_loop()...

Avatar
Daniel James
Member
Free Members
sp_UserOfflineSmall Offline
Sep 12, 2013 - 12:43 am

I did a quick test to see and $spIsForum comes back as a 1 so it must be in_the_loop()

How do I stop this one page from rendering a loop?

Avatar
Daniel James
Member
Free Members
sp_UserOfflineSmall Offline
Sep 12, 2013 - 12:51 am

Woo Hoo we got it! 

I had .php file renamed incorrectly! What a goof up.

 

Thanks for helping me out, Mr. Papa.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 12, 2013 - 2:26 am

good news!  Way to stick with up.  glad we could help!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625