• 0
Sign in to follow this  
Followers 0

My review plugin and Comment.php

Question

Posted · Report post

Hi we are using a plugin called my review - its brilliant and allows users to rate things it integrates into wordpress and embeds elements into your posts and pages to be able to alter where the rating table appears with the standard wordpress comment field you need to edit the themes comment.php

On most WordPress themes, the embed area for the Submit Rating Area is actually below the Submit button. To fix this, rather than using automatic embeds, use the API embed by calling <?php myrp_api_ratings_form_table(); ?> in your theme files (comment.php, generally).

my concern is that by editing the comment.php any changes will be overwritten by future updates so does this go in the customise function.php? and if so how do i localise it to the comment box and change the wording of the post comment to submit button? thanks

1 person likes this

Share this post


Link to post
Share on other sites

6 answers to this question

  • 0

Posted · Report post

Hi Gavin, I think the best course of action would be to contact the plug-in author and ask them for assistance. Also, is this the plug-in you're referring too ? - http://wordpress.org/extend/plugins/my-review/ If so this plug-in has not been updated since 2008, so I wouldn't recommend using it to be honest.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Danny this is it http://www.myreviewplugin.com/ its about the best way to edit the comment.php of pagelines theme/framework no editing on the plugin side hence wanting to use the pagelines customise functions thingymyjig

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Gavin, OK well you could try this, however, this is untested! Copy the comments.php file located in PageLines folder and add this to your customisation plug-in folder (again this may not work) and then add your code there. Also, you may want to check the Comments section and see if you can add your code there instead. Do the same as above copy the folder/files of the comments section but add this folder to the PageLines Section folder in wp-content/plugins/

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

HI Danny i take we can't use the PageLines Customize functions.php then :( the comments section is here /wp-content/themes/pagelines/sections/comments could we edit the section.php in this folder? would it be overwritten by future updates? i found this on the section.php [quote]// Important! Comments.php must be in theme root to work properly. Also 'comments_template() function must be used. Its a wordpress thing.[/quote] when you say "add this to your customisation plug-in folder" do you mean this: /wp-content/plugins/pagelines-customize ?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Gavin, Yes, Danny did mean /wp-content/plugins/pagelines-customize but as he pointed out, this is untested. I'm not particularly convinced this is going to work as he suggested. Additionally, I think this level of customization is going to require one of our pros. Here's why... as you point out, the comments.php must be in the core files of the theme but we're not supposed to edit those (they'll be over-written with each update anyway). What's needed here is a custom integration that pulls the comments.php into another, unique file located in the pagelines-customize folder, and then implements the php code from MyReview. That's not going to be functions.php to my knowledge. Just a personal observation... I think having the rating below the comments rather than above will result in few visitors actually using it. People tend not to go that far unless they're part of a community. Either above or below though, the customization is something that has to be handled by a pro with actual development expertise in PageLines Framework. Danny and I would love to help but these customizations are outside the scope of forum support. Please visit http://www.pagelines.com/pros and write to the Pros found there, referencing this topic and explaining your goals.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Ok Thanks Rangelone we actually want the box above as you suggest.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0