Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
r1kay
tagDiv Member

I tried deleting the get_next_prev_posts becaus this was already in my funtion, but somehow this doesn’t work, it keeps showing the next post and prev post buttons… I have no idea why you guys had to mess up this file. I finally had it working, but now you guys have changed the format of this file and I can start all over again. Commenting out the get_next_prev_posts just doesn’t work. The line that makes those buttons show up on a single post are in another file?

r1kay
tagDiv Member

Daniel,

If you paste a youtube link in your post wordpress uses oembed to embed the video. So if you do not use your video as a featured video but want to show it within the post you need to manually iframe the video and add the parameters yourself. If you want oembed to automatically embed youtube links you need to create a custom function in your functions.php. Here is my function for example:

function Oembed_youtube_no_title($html,$url,$args){
    $url_string = parse_url($url, PHP_URL_QUERY);
    parse_str($url_string, $id);
    if (isset($id['v'])) {
        return '<iframe width="100%" height="393" src="http://www.youtube.com/embed/'.$id['v'].'?rel=0&autohide=1&?wmode=opaque&iv_load_policy=3&showinfo=0&vq=hd1080" frameborder="0" allowfullscreen></iframe>';
    }
    return $html;
}
add_filter('oembed_result','Oembed_youtube_no_title',10,3);

Just replace the ?rel=0&autohide=1& wmode=opaque&iv_load_policy=3&showinfo=0&vq=hd1080 part with your custom parameters and oembed will automatically embed youtube links that are pasted within a post. Reminder: you need to past the link via the WYSIWYG editor within your post WITHOUT a hyperlink. After pasting the link it will autmatically add a hyperlink, so be sure to remove it first. ALSO, you MIGHT need to update your posts (just open each video post and hit update) that already contain a youtube link for this function to take effect.

r1kay
tagDiv Member

Hi marius,

My HTC One is running Android V4.3 and comes with the stock Android Browser, same is for the Galaxy S4. They both run on V4.3, which is factory default, and both have the stock browser pre-installed. So this has nothing to do with older V2.x android versions!

r1kay
tagDiv Member

I have the same problem. It only occurs on the android stock browser. I’ve tested it with my own site (swipe menu enabled) on my HTC One and it works perfect on chrome and firefox. It’s only buggy on the stock android browser. Please fix this in the future update, because many android users still use the stock android browser.

r1kay
tagDiv Member

Hi David,

I’m experiencing the same problem. I hope there will be a fix soon!

r1kay
tagDiv Member

Thanks Christopher. I took a look at mod_pagespeed, but it doesnt look like it could do anything for me at this point. I’m already on a VPS that runs Plesk 11 with nginx as a reverse proxy. I’m letting nginx handle all php scripts and serve static and dynamic content. Gzip compression is enabled and i enabled browser caching through nginx with the expiration set to two weeks. I’m running WP Super Cache as well to create pre cached pages and i use EWWWW Image Optimizer to optimize all images. I also optimazed all theme and plugin images with that plugin. You might want to look it up, imo it really is a better plugin than smush.it and so. I use the simple minify plugin to minify all javascripts and i my pagespeed currently toggles between 85 en 92 for desktop, depending on my server response time and between 70 and 80 for mobile. The only red warning i still get is to defer javascript and css (moste google fonts, and 3 theme css files: bootstrap, style.css and child theme style.css) to below the fold, but i have no experience on how to do that. Im really pleased with the pagespeed right now, but more tips (besides using a CDN) are welcome!

Thanks for you responce anyway 🙂

r1kay
tagDiv Member

And how about css? Pagespeed said that i could save 20% by minifying style.css, but no minify plugin will minify the themes css file. Is the tagDiv Speed Booster plugin included in the version 2.2? And i never seen anyone mention mod_pagespeed plugin on this forum, what does it so?

r1kay
tagDiv Member

If you look at my code you can see i manually inserted share buttons and a facebook comment box. I’ve added them below the content, but author box and all will automatically show up below the facebook comment box. So i had to manually call the author box and other footer items and manually place them above the facebook comment box and share buttons. I only showed how to create and instance for the footer items so you can manually place them anywhere you want.

r1kay
tagDiv Member

Well the author info and tags will show up beneath my share buttons and comment box, but i manages to create a new instance for next_prev_post, source_and_via etc.

So it will look like this `function custom_source_via(){
global $post;
$test_module_inst = new td_module_1($post);
$source_via = $test_module_inst->get_source_and_via();
return $source_via;
}

function custom_author(){
global $post;
$test_module_inst = new td_module_1($post);
$author = $test_module_inst->get_author_box();
return $author;
}`

r1kay
tagDiv Member

Bump!

r1kay
tagDiv Member
r1kay
tagDiv Member

Is it possible to add author info and tags to this function? Because all things in the footer like tags, source and author info will show beneath the sharing buttons and comment box.

r1kay
tagDiv Member

Hi Radu,

I’ve added the code as you mentioned, but it does not return author info. My theme settings are set to hide author info. Should this code override theme settings?

r1kay
tagDiv Member

Thanks Ocatavian, did you took my suggestion for adding if single in frond of the ads code? It prevents ads from showing up on catergory pages, the homepage and other pages! It should look like this:

if (is_single((get_post_meta($postid, 'top_ad', true) != 'off' )) {

r1kay
tagDiv Member

Hi Radu,

I will take a look and test the provided code! Thanks!

Could you please take a look at this thread? Both my problem and the problem of the person who started that thread is still not resolved!

r1kay
tagDiv Member

Octavian, do you already have found a solution?

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');
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.

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
		} 		
r1kay
tagDiv Member

Hi Marius,

Happy New Year to you too!!

You said you are not a coder, but isn’t it a little weird that support members from tagdiv who are here to answer these kind of question don’t have basic php coding skills?

r1kay
tagDiv Member

I’m really hoping you could help me out on this one. On the default “no category” page it DOES show the slider. On any other category page it won’t. I’ve deleted all categories and added them again, but still no slider is showing up. I do have the Rev Slider plugin installed, but i think that plugin is not necessary since the sliders on the module 6 template used to work without it. I tried to deactivate all plug ins but nothing will make them appear again! Really need your help!

r1kay
tagDiv Member

zelatech, I posted this problem on Stackoverflow and one those guys provided me with the right code:

$buffy .= '<div class="fb-comments" data-href="' . get_permalink() . '" data-colorscheme="light" data-numposts="5" data-mobile="false" data-width="700"></div>';

The problem was caused by the apostrophes (‘), as you can read here:

Marius, as far as not providing us with this simple piece of coding, it would literally have cost less time to post this code than to tell us you don’t have time to answer these kind of questions!

r1kay
tagDiv Member

Marius,

This might be custom work, but the fact that this code doesn’t work has everything to do with how you guys coded the post templates. The code provided by facebook works on every other theme that uses the single.php file to set up the post lay-outs. The fact that the code that Zelatech mentioned doesn’t work does not mean that you can hide behind the fact that it’s custom coding, seeing as it is a normal piece of coding that can be implemented on every other site without any problems.

I’m having the same problem, and i suggest you help us out and provide us with the code that should make the comment box work.

Thanks!

Viewing 25 posts - 76 through 100 (of 103 total)