Jump to content

Babaman

+ Customer verified
  • Content Count

    26
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Babaman

  • Rank
    Member
  1. would it be nice an anti-adblock function on the inside players, with this plugin it's possible?
  2. Thanks for this, so the search results are also cached
  3. You use the_content function in almost every page of your dooplay theme. For instance you use in peliculas.php, series.php file and it will echo all the content for one post or page. But you don’t want to show all content. Maybe only 80 words. Here how you can limit the_content Using Custom Function This method is going to be the best and most flexible way to limit the_content words length. Write the following custom function in your functions.php file. function dooplay_content($limit){ $content = explode(' ', get_the_content(), $limit); if (count($content)>=$limit){ array_pop($content); $content = implode(" ",$content).'...'; } else { $content = implode(" ",$content); } $content = preg_replace('/\[.+\]/','', $content); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]&gt;', $content); return $content; } Use the custom function instead of the_content. For example: <?php echo dooplay_content(80); ?>
  4. Stack Lemp and Set Up Nginx FastCGI Cache + Cloudflare DNS
  5. Hello guys, I read this guide for a more seo friendly title, very interesting https://perishablepress.com/how-to-generate-perfect-wordpress-title-tags-without-a-plugin/ I need to add custom Keyword to the tag <title>, like "streaming hd" after the movie title or TV series. I saw that it can be done from the Dbmovies panel -> settings -> tab title, but it is published on the page, it's not what I want. Help for this could be useful to many people example: <title> <?php if (is_home()) { bloginfo('name'); echo ' | en Streaming' ;} elseif (is_category()) { single_cat_title(); echo ' en Streaming | ' ; bloginfo('name');} elseif (is_single()) { single_post_title(); echo ' ('; $category = get_the_category(); $parent = get_cat_name($category[0]->category_parent); if (!empty($parent)) {echo ''. $parent; } else { echo ''. $category[0]->cat_name; }echo')'; $terms_as_text = strip_tags( get_the_term_list( $wp_query->post->ID, 'anno', '(', ', ', ')' ) ); echo $terms_as_text; echo ' in Streaming e Download Cacaoweb|Nowvideo';}//echo get_post_meta($post->ID, "subtitle", true); elseif (is_page()) { bloginfo('name'); echo ' | '; single_post_title();} elseif (is_author()) { echo 'User '; wp_title(); echo ' | '; bloginfo('name');} elseif (is_tax('cast')) { echo 'Filmografia '; $term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy')); echo $term->name; echo ' in Streaming | '; bloginfo('name');} elseif (is_tax('director')) { echo 'Filmografia '; $term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy')); echo $term->name; echo ' in Streaming | '; bloginfo('name');} elseif (is_tax('year')) { echo 'Film del '; $term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy')); echo $term->name; echo ' in Streaming | '; bloginfo('name');} else {wp_title('',true);} ?> </title> Thanks
  6. Hello, on the telegram group they don't answer me, I try to write a post here. I need to know how to use theme shortcodes. Reference: /inc/doo_init.php # Imdb video Shortcode if(!function_exists('doo_imdb_embed')){ function doo_imdb_embed($atts, $content = null) { extract(shortcode_atts(array('id' => 'idimdb'), $atts)); return '<div class="video"><if'.'rame width="640" height="360" src="http://www.imdb.com/video/imdb/'.$id.'/imdb/embed?autoplay=false&width=640" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" frameborder="no" scrolling="no"></if'.'rame></div>'; } add_shortcode('imdb','doo_imdb_embed'); } example link video trailer imdb.com https://www.imdb.com/videoplayer/vi2143993625?playlistId=tt4520988 example shortcodes: [doo_imdb_embed vi2143993625] it's correct? or I have to pass the ID of the rel tt4520988
  7. I ask the admin for assistance to solve this problem, which array can I pass to phpmyadmin to refresh the widgets? I only see homepage widgets on all pages, even if there are custom widgets for each page set for each page
  8. I realized only now that it is a function for registered users, sorry ... problem solved
  9. Hello, to prevent but to understand it is important to add reCAPTCHA a bot could leave the server down in minutes, please take this change urgently and maybe release the fix Thanks
  10. Hi everyone, I have a problem that I can't solve, in all the pages I see only the widgets set for the home page. Even if I set custom widgets for all the pages I don't see them, how can I fix this bug Thanks
  11. Hello, I want to enable jwplayer for compatibility with AirPlay and Chromecast, how should I proceed? https://support.jwplayer.com/articles/how-to-enable-casting-and-airplay Thanks
  12. ok solved, it was enough to select URL MP4, it also works with m3u8
×
×
  • Create New...