WordPress.org

Ready to get started?Download WordPress

Forums

Cool Video Gallery
[resolved] Folder Scan doesn't work at CVG 1.6 (10 posts)

  1. stosun
    Member
    Posted 1 year ago #

    Hi,
    I upload a video to an existing gallery folder ../wp-content/uploads/video-gallery/mygallery by FTP.
    But, when click "Scan Gallery Folder" button, nothing is happen.
    What is wrong?
    To use so good plugin, scan folder feature will be work.

    Any help will be so appreciated.
    Thanks at advance

    http://wordpress.org/extend/plugins/cool-video-gallery/

  2. Praveen Rajan
    Member
    Plugin Author

    Posted 1 year ago #

    Please provide dev environment details / screenshots.

    Not able to reproduce this issue in my dev environment.

    Regards,
    Praveen Rajana

  3. stosun
    Member
    Posted 1 year ago #

    Hi,
    I solved it, don't mind.
    I had put some conditional statements like is_page to avoid loading your plugin at all wordpress page, that statement caused not to scan folder properly. After adding is_admin to conditional statement, it works properly.
    Regards

  4. Praveen Rajan
    Member
    Plugin Author

    Posted 1 year ago #

    Please share your fix with the community if it is really an issue. This could help me also out in future releases.

    Regards,
    Praveen Rajan

  5. stosun
    Member
    Posted 1 year ago #

    Ok, here is what I do;
    There are two functions at cool-video-gallery.php to load javascript and css files.
    one is function gallery_script(), the other is function addPlayerHeader().

    I insert below code to each functions;
    if (is_admin() || is_page(array(page_id1,pageid_2)) ) {... }

    Last sitiuations are like that,
    function gallery_script() {
    if (is_admin() || is_page(array(page_id1,pageid_2)) ) { .........}

    and
    function addPlayerHeader(){
    if (is_admin() || is_page(array(page_id1,pageid_2)) ) { .....}

    page_id1,pageid_2 are page numbers, which I want only to load cool-video-gallery at.
    That is all.
    Sorry my english, may be you write this code snippet more professsionally.
    Regards

  6. Praveen Rajan
    Member
    Plugin Author

    Posted 1 year ago #

    @ stosun

    What exactly was the point in adding those conditions?

    Initially you modified it to have the page checks to avoid loading scripts. correct?

    Then you faced this Scan Folder Issue?

    To fix this you had to add is_admin() check also?

    Please let me know if this is the reason why you had to add those extra conditions also.

    Regards,
    Praveen Rajan

  7. stosun
    Member
    Posted 1 year ago #

    Hi,
    Yes, you right, I added to avoid loading scripts.
    First, I had added only is_page without is_admin, But, it cause not to scan folder issue.
    Then, I added is_admin, so scan folder worked properly.

  8. Praveen Rajan
    Member
    Plugin Author

    Posted 1 year ago #

    @ stosun

    Please note that, you had this issue due to modification of plugin codebase to meet your requirements. Also your initial post does not mention of the modifications. This is misleading since it is not an issue with plugin itself.

    Please double check before you post some issues in the forum.

    Regards,
    Praveen Rajan

  9. stosun
    Member
    Posted 1 year ago #

    @Rajan,

    Last month, I had two issue and wrote two posts related your cool-video gallery plugin. Because, I looked for a solution and your last replies was at 5 months ago. So, I looked for a help from support forum.
    One is on non-english characters and later I wrote the solution to help the other people.
    The other was on scan folder problem I faced ( ı didn't know why I faced, at that time) and there was similar posts at forum and there was no correct solution to me.
    Firstly, There was a conflict between cool-video-gallery fancybox and nextgen gallery optimizer fancybox plugins.
    I made some modifications at plugin to solve conflict problem, this was main object and meanwhile this solved loading problem at unnecessary pages.
    At conclusion, I sent two posts; one is too helpfull to community according to me, the other is a seeking to solve some issues from some people faced before.
    I believe that this discussion give some ideas to people who search to optimize plugin working.
    Some people can live some issues when using a plugin and the issue may be from plugin working or from plugins conflict or from theme etc. problems. So, it is very usual to discuss it at related forum according to me to get any feedback.
    Regards

  10. Praveen Rajan
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for explaining out the reason.

    Appreciate your help.

    Please post any crucial info or fixes that you might have found in the sticky post on forum.

    Thanks in advance,
    Praveen Rajan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.