Viewing 5 replies - 1 through 5 (of 5 total)
  • You need to make a mysql-script that would get covers (for example last added) from your database and then a php-script that woud show them in a way you need. But actually that would be one big mysql+php script

    ruriko are you looking for this this?
    https://www.picsbash.com/

    Thread Starter Ruriko

    (@ruriko)

    @rajlaksh yes I am looking for that

    Here it is ??
    paste it in Kommiku.php file where all shortcode located.

    add_shortcode( 'kommiku_chapter_recent_update' , 'recnet_chapter_update_list' );
    	function recnet_chapter_update_list() {
    		require_once(KOMMIKU_FOLDER.'/admin/database.php');
    		$db = new kommiku_database();
    		$chapterUpdateList = $db->chapter_update_list();
    		if($chapterUpdateList)
    		echo "<style type=\"text/css\">
        #list td{
            text-align:center;
            padding:0px 8px 0px 0px;
    		line-height:18px !important
        }
    	 #list {
    		clear:both;
    		float:left;
    		margin:3px !important;
        }
        #list td img{
            width:140px;
            height:200px;
            padding:1px;
            border:2px solid #38B63C;
        }
    
    </style>";
    $i = 0;
    			foreach ($chapterUpdateList as $item) {
    			$i++;
    
    				$theLIST .= '<td><a href="'.HTTP_HOST.KOMMIKU_URL_FORMAT.'/'.$item->series_slug.'/'.$item->chapter_slug.'/">
    				<img src="'.UPLOAD_URLPATH.'/'.$item->series_slug.'/'.'cover.jpg" onerror="this.src =\'/no_preview.jpg\';" /><br/>'.$item->series_name.' - Wallpaper '.$item->chapter_slug.'</a></td>';
    				if($i > 3){break;}
    				};
    
    		return $theLIST;
    
    }
    Thread Starter Ruriko

    (@ruriko)

    Thanks ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Kommiku] Create list of thumbnails’ is closed to new replies.