e_z_minded_guy
Forum Replies Created
-
I too would absolutely love it if there was an edit option — even if it were only from the admin side of things. Ideally, I would love to have customers login to our site and be able to post/edit/delete their reviews and even have an option for them to view all of their reviews that they’ve posted.
In addition, it would be nice if you could click on the username for the individual that posted a review and display a list of every post that user has made.
Thanks for such a great plugin, keep up the great work and thanks for any time/consideration of implementing these idea’s into the next release.
In case anyone else is trying to do this, I thought I’d share the way I accomplished this task.
By editing “wp-customer-reviews.php”, I added the following if/then else to the code.
Find line 1026 and you will see “$req_js .= “</script>\n”;”, directly under that but above “if ($this->options[‘goto_show_button’] == 1) {“, you need to begin by adding “if ( is_user_logged_in() ) {” so that it should read as follows:
$req_js .= “</script>\n”;
if ( is_user_logged_in() ) {
if ($this->options[‘goto_show_button’] == 1) {
Then at the bottom of the function, just below this line at approx. line #1072 “$out4 .= ‘<div class=”wpcr_clear wpcr_pb5″></div>’;”, you need to add the following:
} else {
$out .= ‘Please login to post a review…’;
};Which is directly above this line:
“return $out . $out2 . $out3 . $out4;”So the bottom of the function should read as follows:
$out4 .= ‘<div class=”wpcr_clear wpcr_pb5″></div>’;
} else {
$out .= ‘Please login to post a review…’;
};return $out . $out2 . $out3 . $out4;
}Good luck and please note that the output message for the guests is very generic and can be modified by changing the html where it says “Please login to post a review…”.
Forum: Plugins
In reply to: Changing the duration of the slidesYou may have a function inside your featured.php that is named “startGallery()” – inside this function is a variable named “delay”, you change this to whatever value you like.
In my functions.php, mine is as follows (10 second delay):
<script type="text/javascript"> function startGallery() { var myGallery = new gallery($('myGallery'), { timed: true, delay: 10000, slideInfoZoneOpacity: 0.8, showCarousel: false }); } window.addEvent('domready', startGallery); </script>*** NOTE ***
The delay is in milliseconds so 1000 would be equal to 1 second, hence 10,000 in this example is a 10 second delay.