[SOLVED] Add "WP Customer Reviews" to Byline
Hello,
I used "WP Customer Reviews" for my review site. I follow the instruction on this post: http://wordpress.org/support/topic/p...erately-needed to add average ratings. The problem that is I cannot customize the position of the "average ratings". Here is an example of how it look like: http://digitalcashpalace.com/forex-b...nk-fx-reviews/ ; now I want to move "Average Rating" to Byline position. Anyone can help me in this case? thank you very much. :) I use wordpress and Atahualpa latest version. ------------------------------- Also, looking for someone to help me edit the theme, must have experience with "Atahualpa" , compare table and "WP Customer Reviews" (or other reviews-rating plugin). Please let me know how to contact you and maybe the cost also. :) |
you (or someone) will have to look at the code of the plugin and determine how it works, then add some code in bfa_post_parts.php to the 'byline' area to display what you want.
|
According to the guide, to add average rating:
Add the following function anywhere on this file: HTML Code:
function get_average_rating() { HTML Code:
// build average ratings html $the_content .= '<div id="wpcr_respond_1">'; /* start the div */ and place the following just below it: HTML Code:
// attach average ratings to beginning of reviews I Edited bfa_post_parts.php and added: HTML Code:
// build average ratings html $the_content .= '<div id="wpcr_respond_1">'; /* start the div */ Inside "byline", I added: HTML Code:
// build average ratings html Fatal error: Using $this when not in object context in /home/digital1/public_html/wp-content/themes/atahualpa/functions/bfa_post_parts.php on line 102 Could you please explain what's wrong with the code that I added. Thank you:) |
$this is a PHP variable. You can do a google search on 'php $this' and read all about it.
Not knowing th eplugin or what they are trying to do, I can not explain why they are using it or why you got the error, but I would guess that it is a problen since you have the code in two different modules. That would be something to discuess with the plugin author. |
Quote:
The plugin coded by PHP and the theme code by html. I have no other choice but accept the current position or move on another plugin since I don't know how to convert PHP to html. Thank you very much. |
PHP is the language used in the plugin and theme (and wordpress) to create the HTML that the browsers interpret to display your web page (there is some jscript thrown in but it can be ignored in this case.)
If the plugin's author can't help you your choices are to move on to another plugin or hire someone to fix it for you. Good luck. |
Quote:
Thank you very much. :) |
I could take a look. If you PM me I will send you my rates.
|
Quote:
|
Hello,
I have another small problem with "WP Customer Reviews" and need help: - I create a new posting template, here it is the example: http://digitalcashpalace.com/press-r...s-and-ratings/ - Now I want to link "Let your voice be heard. Write a review now" (at the top), link to "Rate/write review" box at bottom of the post. The problem that is the "Rate/write review" box powered by Javascripts so I cannot find actual link to link it. Could anyone able to find solution for this case? Thank you very much. :) |
You could perhaps put an anchor tag in the post footer which would at least take them to where they can add a rating.
|
I use another plugin with more features and so far it work.
Thank you very much for your support. :) |
All times are GMT -6. The time now is 09:05 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.