• This code looks for images in CHAPTER FOLDER.

    here is code and enjoy ??

    <?php
    if(empty($page_list)) {
    $output_dir = UPLOAD_FOLDER.$chapter['folder'];
    $uploader = glob("$output_dir/*");
    $last = filemtime($uploader);
    $filedate = time() - filemtime($last);
    $pubdate = date ("F j, Y, g:i A",$filedate);
    $i = 0;
    foreach ($uploader as $uploaded) {
    $i++;
    $img = basename($uploaded);
    $chap_id = $chapter['id'];
    $ser_id = $series['id'];
    $db->page_create($_CLEAN['title'],$i,$img,$pubdate,$_POST['story'],$i,$ser_id,$chap_id,'');
    $status['pass'] = __('The Pages successfully created', 'kommiku');
    }
    }
    ?>

    https://www.ads-software.com/plugins/kommiku/

Viewing 4 replies - 1 through 4 (of 4 total)
  • hello

    How can i use that code?

    Thread Starter rajlaksh

    (@rajlaksh)

    add this code to KOMMIKU >> ADMIN >> list_pages.php page file done.

    I don’t understand. I created a file in admin >> list_pages.php and saved this code to it, now what? Where do I go to execute it? I tried unploading a folder containing the images to /comics/animeseries/. And nothing happened?

    Thread Starter rajlaksh

    (@rajlaksh)

    empty($page_list) == when their is no pages run code this.

    click on chapter.

    if pages already their but not in kommiku chapter . then its create those pages.

    i used it for creating 1000 pages.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create chapter images on server’ is closed to new replies.