Search Results for 'review'

Results from the Forum
Marius
tagDiv Staff

Hello,
I’m not sure, we have some good ideas about a new review system, and i don’t know if will be affected. Now is just on paper ๐Ÿ™‚

Thanks!

jonathandownin
tagDiv Member

Oh, also @Marius, thanks for the replies. Quick question: Will reviews using the current system be changed/affected by the future changes?

r1kay
tagDiv Member

I edited the code a little more and got it working. However, i know run into the same problem as Octavian. The reviews shows up beneath the sharing buttons and comment box i inserted. Can’t we use the include() function to somehow get the get_review working? My code now looks like this:

function content_injector($content) { 
		global $wp_query;	
		$postid = $wp_query->post->ID;                  
		if (is_single((get_post_meta($postid, 'top_ad', true) != 'off' )))  {	
$top_ad = do_shortcode('[td_ad_box spot_name="Ad spot -- topad"]');
} 		
		if (is_single((get_post_meta($postid, 'bottom_ad', true) != 'off' ))) {	
$bottom_ad = do_shortcode('[td_ad_box spot_name="Ad spot -- topad"]');
}
 if (is_single()) {
$custom_share = '<div id="title-deel"><h4 class="block-title"><span>DEEL</span></h4></div>' . do_shortcode('[ssba]');
$facebook_comments = '<div id="title-reageer"><h4 class="block-title"><span>REAGEER</span></h4></div>' . '<div class="fb-comments" data-href="' . get_permalink() . '" data-colorscheme="light" data-numposts="5" data-mobile="false" data-width="700"></div>';
}	
$content = $top_ad . $content . $bottom_ad . $custom_share . $facebook_comments;
return $content; 

}
add_filter('the_content', 'content_injector');

Oh and Octo, u might want to add the if_single code to your ads code like i did to prevent them from showing up on the homepage and other pages!

r1kay
tagDiv Member

Ocatavian, i tried to copy your code and modify it to my own likes, but i only get a blank page. The code looks a little like this

function content_injector($content) { 
		global $wp_query;	
		$postid = $wp_query->post->ID;                  
		if (get_post_meta($postid, 'top_ad', true) != 'off' ) {	
$top_ad = do_shortcode('[td_ad_box spot_name="Ad spot -- topad"]')
} 		
		if (get_post_meta($postid, 'bottom_ad', true) != 'off' ) {	
$bottom_ad = do_shortcode('[td_ad_box spot_name="Ad spot -- topad"]')
}
 if (is_single()) {
$share_after_ad = <div id="title-deel"><h4 class="block-title"><span>DEEL</span></h4></div>; do_shortcode('[ssba]');
$comment_after_ad = <div id="title-reageer"><h4 class="block-title"><span>REAGEER</span></h4></div>; '<div class="fb-comments" data-href="' . get_permalink() . '" data-colorscheme="light" data-numposts="5" data-mobile="false" data-width="700"></div>';
 }	
$content = $top_ad . $content . $bottom_ad . $share_after_ad . $comment_after_ad; 
return $content; 

}
add_filter('the_content', 'content_injector');
b2farm
tagDiv Member

guuuuuuuuuys!
I have no doubt that you are professionals!
but when I read these tips, I want to cry)
course I do not use such small images!

my site – http://drugoyhiphop.ru/
some old topic – http://drugoyhiphop.ru/4pyl-ritmo-splin-2013-10-21/
new topic WITH BIG PIC and WRONG PREVIEW PIC – http://drugoyhiphop.ru/a-thomas-dusty-brel-2014-01-07/

send login and pass to mail

Radu A
tagDiv Member

hello,

do a function that duos only

function revv(){
   global $post;
   $test_module_inst = new td_module_1($post);
   $review = $test_module_inst->get_review();
 return $review;
}

and call this function from your function

Thanks for you message.
Radu A.

Anonymous
tagDiv Member

Thanks r1kay for that mobile support ๐Ÿ™‚

I tried that approach before, but it’s limited to being able to post the review before or after the content.

The way this function is setup now is pretty nice because it takes care of everything without having to edit the theme files (or having to edit them again when the theme gets updated).

I’m sure there’s a way to call the review into a function.

r1kay
tagDiv Member

I’m not a my own pc right noe but the code starts with $buffy .=

Hope this might help. The get_review function should be right there as well

r1kay
tagDiv Member

You can manually move the get review code in td module 1 to somewhere else on the page. It is located in the footer clearfix of the module 1 file. Thats how i added my own social sharing buttons an fb comments box and moved the get next and prev post to the bottom of the post pages.

Anonymous
tagDiv Member

I have tried that as well Radu and it is not working. To be honest I felt I was doing something wrong this time, because I figured it should work. So I substituted $review with ‘test’ and the word test came up after the content.

I can email you admin access if you want to take a look. I’ve got the code in the theme’s functions.php file. That’s where it should be right? I’m not sure why it’s not hooking up to the new td_module_1 function. Should there be an included PHP file or something at the top of the code?

r1kay, nope it doesn’t create a function. It just assigns an HTML value (with Adsense Javascript) to $top_ad. That’s why top_ad comes before the content. If “top_ad” is set to off in the custom field settings for a post, then nothing gets passed to top_ad, and thus no ad.

r1kay
tagDiv Member

Octavian, i’ve took a look at your code and i’m not a php coder, but does your code creates a function to show ads on different posts? I’m asking this becaus of this:

if (get_post_meta($postid, 'top_ad', true) != 'off' ) {	
			//top_ad code
		} 		
Marius
tagDiv Staff

Hello,
Change to 20: http://screencast.com/t/lwZJSfKe

Thanks!

Radu A
tagDiv Member

hello,
I have tryd to do something different,
please try this code, if this doesn’t work sorry

function content_injector($content) { 
		global $wp_query;
		global $post;	
		$postid = $wp_query->post->ID;                  
		if (get_post_meta($postid, 'top_ad', true) != 'off' ) {	
			//top_ad code
		} 		
		if (get_post_meta($postid, 'bottom_ad', true) != 'off' ) {	
			//bottom_ad code
		}
		 if (is_single()) {
			$share_after_ad = do_shortcode('[shareaholic app="share_buttons" id="4703992"]');
			$related_after_ad = do_shortcode('[shareaholic app="recommendations" id="4704000"]');
		 }

		$test_module_inst = new td_module_1($post);
		$review = $test_module_inst->get_review();
	        
		$content = $top_ad . $content . $review . $bottom_ad . $share_after_ad . $related_after_ad;
		
		return $content; 
}
add_filter('the_content', 'content_injector');
Marius
tagDiv Staff

Hello,
@octavian now the review system work as an average of the all values. We have in plan to build a better review system with half stars to, for the future updates.

Thanks!

bramasetyadi
Participant
#0

Hi everybody.

Is there any possibilites to change review point to 1-5 instead of 1-10?
How about the stars render? It will be any problem?

Thanks

Anonymous
tagDiv Member

That doesn’t seem to work. I looked at the outputted HTML code when loading the page, and none of the review stuff is being called after the content.

Anonymous
tagDiv Member

Yeah I know what you means. The visual composer is amazing and so is the review system.

And I spent 20 hours a couple of days ago building my site using Newspaper, so I know what you mean when you say you’re in the design stage ๐Ÿ˜€ It’s tough but rewarding to take a site all the way from testing to final release ๐Ÿ™‚

Radu A
tagDiv Member

hello

try this

function content_injector($content) { 
		global $wp_query;	
		$postid = $wp_query->post->ID;                  
		if (get_post_meta($postid, 'top_ad', true) != 'off' ) {	
			//top_ad code
		} 		
		if (get_post_meta($postid, 'bottom_ad', true) != 'off' ) {	
			//bottom_ad code
		}
		 if (is_single()) {
			$share_after_ad = do_shortcode('[shareaholic app="share_buttons" id="4703992"]');
			$related_after_ad = do_shortcode('[shareaholic app="recommendations" id="4704000"]');
		 }

		$test_module_inst = new td_module_blog();
    $review = $test_module_inst->get_review();
	        $content = $top_ad . $content . $review . $bottom_ad . $share_after_ad . $related_after_ad;
		
		return $content; 
}
add_filter('the_content', 'content_injector');
Anonymous
tagDiv Member

Awesome ๐Ÿ™‚ And it’s funny you switched to the Newspaper theme. Appcomrade.com used to run on Genesis a week ago too when I bought it (its old domain was appreviews4u.com).

All in good time, Newspaper will be the new Genesis ๐Ÿ™‚

Marius
tagDiv Staff

Hello,
What you can do is to make this image and overwrite it with original http://www.gadgetreview.eu/wp-content/uploads/2014/01/logo3.png to be sure the WordPress not make something with the image on upload process.

Make the image at 966px width as you can see here that is the require image size not 967px http://screencast.com/t/xg6Zv6Koz

Hope this help!
Thanks!

Anonymous
tagDiv Member

The actual file itself is untouched http://www.gadgetreview.eu/wp-content/uploads/2014/01/logo3.png I think the CSS resize may have to do something with the fuzzy effect seen on Chrome. I can’t elaborate as my Firebug extension has chosen to stop working on Chrome.

Interesting… Chrome makes images blurry… Chrome breaks dev tools.

Bad chrome.

Anonymous
tagDiv Member

Marius,

I think he meant if the review is something like this:

graphics 2/5
audio 1/5
Experience 5/5

He may want the total to be 4-5 stars (because he values experience higher than the other stuff) rather than the averaged 3-4 stars.

I encountered the same thing when I did some of my app reviews, because some review fields are more important than others.

Anonymous
tagDiv Member

I’m subscribing to this post because I’m interested in the same thing.

After trying to hack together some code to send your way (and for my own future use) to override ratings, I failed miserably. Hopefully the tagDiv crew has a solution, or can point me in the right direction to customize the theme ๐Ÿ™‚

It also seems that if you edit the custom field td_review_key to a custom number, it gets re-generated on a page update to the average of all rating fields. If that custom field could get overridden without being re-averaged, that would be really awesome.

Anonymous
tagDiv Member

Oh thanks I forgot about the data highlighter.

Arved007
tagDiv Member

Hi, Octavian

Google has a test page:
http://www.google.com/webmasters/tools/richsnippets
Just copy the url you want to check and hit preview.

Also, there is a new tool in Google Webmaster Tools where u can set some tags and info from your reviews, kind of “how Google must read your review”.

Viewing 25 results - 6,901 through 6,925 (of 7,000 total)