Which hosting provider you use?your hosting probably restricted you to crawl it. my advice is to change the hosting
You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"
Which hosting provider you use?your hosting probably restricted you to crawl it. my advice is to change the hosting
I'm sorry, I'm new to this, I've searched but I can't find it. Could you tell me where I can find it or can you give me the link, thanks.Tienes que agregar una función, php en el tema. esta en la pagina del creador. búscalo.
Here Read this articleI'm sorry, I'm new to this, I've searched but I can't find it. Could you tell me where I can find it or can you give me the link, thanks.
/**I'm sorry, I'm new to this, I've searched but I can't find it. Could you tell me where I can find it or can you give me the link, thanks.
THANKS BRO/**
* Add columns "views" to table manga_chapters
**/
add_action("after_switch_theme", "my_manga_add_columns");
function my_manga_add_columns(){
global $wpdb;
$db = WP_MANGA_DATABASE::get_instance();
if(!$db->column_exists($wpdb->prefix . 'manga_chapters', 'views')){
$db->alter_add_column($wpdb->prefix . 'manga_chapters', 'views', 'int');
}
}
/**
* Show the views
**/
add_action('wp_manga_after_chapter_name', 'my_manga_chapter_name_info', 10, 2);
function my_manga_chapter_name_info($chapter, $manga_id){
$views = manga_get_chapter_views($chapter['chapter_id']);
echo '<span class="view"><i class="fa fa-eye"></i> ' . $views . '</span>';
}
function manga_get_chapter_views($chapter_id){
global $wpdb;
$sql = "SELECT views from {$wpdb->prefix}manga_chapters WHERE chapter_id=%d" ;
$views = $wpdb->get_var($wpdb->prepare($sql, $chapter_id));
return $views ? $views : 0;
}
add_action('wp_manga_after_update_manga_views', 'my_wp_manga_after_update_manga_views');
function my_wp_manga_after_update_manga_views(){
$manga_id = intval($_POST['manga']);
$chapter_slug = '';
if(isset($_POST['chapter']) && $_POST['chapter'] != 'undefined'){
$chapter_slug = $_POST['chapter'];
}
if($chapter_slug != ''){
global $wp_manga_chapter;
$chapter = $wp_manga_chapter->get_chapter_by_slug( $manga_id, $chapter_slug);
if($chapter){
$chapter_id = $chapter['chapter_id'];
global $wpdb;
$views = manga_get_chapter_views($chapter_id);
$wpdb->update("{$wpdb->prefix}manga_chapters", array('views'=>++$views), array('chapter_id' => $chapter_id));
}
}
}
paste this code in function
We get it, advertisements are annoying!
However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.
If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.