[Plugin: PhotoContest Plugin] Comments not showing up
-
Thanks for this great plugin.
I choose to allow comments but there is no option for comments anywhere in the photo contest. How do I enable comments below the photos?
-
Can you tell me the WP-version and plugin version?
Thanks,
FrankIt’s the latest WP 3.0.1.
I have created a test contest for you to see. Comments was set to open.
http://www.corsetstyles.com/test
Thanks for your help.
Has something to do with your template. Still looking for à fix!
I’ve checked the way WordPress handles the comments.
It isn’t possible to show comments on a page (expect with a separate plugin). Comments in this plugin don’t work…. expect when you create a contest as a post and put the post on a page. This way only the first page of the contest is able to handle comments!Sorry to mislead you!!
So just to be clear:
Using the following settings:
Page type set to Page AND comments set to Open; a page is created to hold the contest. This page has the option Allow comments set to true.
(You will find this under “Pages” –> edit page –> Discussion –> Allow comments)For some reason, WordPress has this option, but doesn’t do anything with it, because looking into the core of WordPress I find the following (in wp-includes/comment-template.php on line 852):
function comments_template( $file = '/comments.php', $separate_comments = false ) { global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity, $overridden_cpage; if ( !(is_single() || is_page() || $withcomments) || empty($post) ) return;Here in the last line I see !(is_page()). This tell the core to return nothing about comments when it is a page.
So why is this option under pages? I don’t know… maybe some ancient code left in the core or a option for plugins who can show comments under pages….
If someone finds such a plugin and has a page working with comments, please post it here. I will try to integrate this into the plugin.
For now, I’m giving up 🙁
I found this:
<?php comments_template(); ?>This added to page.php will enable comments on your pages. Although I got comments working on other pages it does not work on viewimg.php. I pasted it in viewimg.php and it still did nothing.
Thanks for the help so far. I will keep looking for a plugin to add comments to pages.
I think the problem is that the viewimg.php is not actually set up as a page where it calls to page.php. I am a total novice so I may be way off here but is there a way to add code to viewimg.php to make it call to page.php?
I have put the code:
<?php comments_template(); ?>into the template (skins/aqua/template.tpl) so it is called with every page of the plugin BUT it doesn’t work. The function comments_template checks if it is a page, has a post on it and some other checks and that fails….If I have time I will look into it!
Greets,
FrankHey Frekel…just wanted to say thanks again for the awesome plug in. I have a photo contest up and running now and ppl seem to like it a lot.
I did have an issue you should know about.
My photo contest was up and running for several days and without making any changes I went to my contest page and found that the page had an error. Said it was missing a template file and to view the read me file. Everything was fine so I’m not sure what caused that.
I know you posted an update and for some reason I think that had something to do with it. I wasn’t going to apply the update until after my monthly contest was over but I did anyway to try to solve the error.
Everything seems to be working fine now. Thanks again!
Jason
Great!
That error indicated that the template.tpl file in your skins-directory was missing.
Thanks for the compliment… 😉
The topic ‘[Plugin: PhotoContest Plugin] Comments not showing up’ is closed to new replies.