radiofranky
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] woocommerce comment rating stars won't showthanks. I tried the font fix but it still doesn’t look right.
When the font-family ‘star’ will be released?I having similar problem after enabling “Really Simple CAPTCHA”.
The submit spinning wheel just goes into infinite loopI got it working too ?? use index.php specific div and display:none .like and .unlike.
cheers
can u share what u did? Because i would like to show just the vote counter without the like/unlike vote option in my index.php.
thanks
this is what I have. However, the unlike still showing “+” in front the unlike value. Thanks
global $wpdb; $show_symbols = get_option('wti_like_post_show_symbols'); $wti_unlike_count = $wpdb->get_var("SELECT SUM(value) FROM {$wpdb->prefix}wti_like_post WHERE post_id = '$post_id' AND value <= 0"); $wti_like_count = $wpdb->get_var("SELECT SUM(value) FROM {$wpdb->prefix}wti_like_post WHERE post_id = '$post_id' AND value >= 0"); if(!$wti_like_count) { $wti_like_count = 0; } if(!$wti_unlike_count) { $wti_unlike_count = 0; } else { if($show_symbols) {$wti_unlike_count; } else { $wti_unlike_count; } } if($wti_like_count != $wti_unlike_count){ if($wti_like_count > $wti_unlike_count){$wti_like_final = $wti_like_count - $wti_unlike_count;$wti_like_final = "+" . $wti_like_final;} else{$wti_like_final = $wti_unlike_count - $wti_like_count;$wti_like_final = "-" . $wti_like_final;} } else {$wti_like_final = '0'; } return $wti_like_final;
Hi,
I was wondering if you could point me out where do you print out the like and dislike numbers. I can quickly do a subtraction of both and print a new number out. This would resolve my question.thanks
Forum: Fixing WordPress
In reply to: 3.4.2. visual editor carriage return inserts  got it! use “shift+return”
Yes, i did rename the folder to “xxx” from “wp-admin”
I was wondering if is possible to have an option to show only specific category? Like to show most viewed posts from the current post category?
Thanks
thanks. That fixes the problem.
I was wondering if you could help me add an image from a advanced custom field.Here is the code that I need to call to get the image
<?php $yes_image = get_field('product_image'); $image = wp_get_attachment_image_src(get_field('product_image'), 'thumbnail'); if($yes_image) { $image_thumb = explode(".",$yes_image); echo '<div id="image_box"><div class="image_span"><a href="'; echo the_permalink(); echo '">'; echo '<img class="image-scaling" src="'; echo $image[0]; echo '" alt=""/></a></div></div>'; } else {echo 'no image';}?>
Can you help me to add to your code?
thanks
Forum: Plugins
In reply to: [WTI Like Post] [Plugin: WTI Like Post] Most Liked Posts Widget is emptynice, i had the same problem and fixed.
Forum: Fixing WordPress
In reply to: WP generates a thumbnail, how do I display it?I still have problem with cropping. Because no all the image are the same aspect ratio, if I hard code the size 150×150, some of the image wont’ show up because it might be like this
xyz-150×120.jpg
I still need to figure out how to get that sting after the name of the file “xyz” + “-????” + “.jpg”
Forum: Fixing WordPress
In reply to: WP generates a thumbnail, how do I display it?got it working. I used “explode” to implode the string and added “-150×150” to the image name and recomposed and end up like this.
“image name” + “-150×150” + “.jpg”
and this will give me the resized version of image and would save a lot of host bandwidth.
thanks for the helps.
Forum: Fixing WordPress
In reply to: WP generates a thumbnail, how do I display it?thanks. however, the code above returns the image id <img src=”image id”> it returns a id number. Therefore, no image will be displayed.
I believe thumbnail name is in this format: “file name” + “-thumbnail”.jpgIf I could break the “xyz.jpg” to “xyz-thumbnail.jgp” would do the trick.
Thanks
Forum: Fixing WordPress
In reply to: WP generates a thumbnail, how do I display it?thanks. I’m using “advanced custom field” to upload the image.
There is a thumbnail of the uploaded file, something with extensionxyz5-thumbnail.jpg
I was wondering how to call this thumbnail?
thanks