Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Praveen Rajan

    (@praveen-rajan)

    Please provide dev environment details / screenshots.

    Not able to reproduce this issue in my dev environment.

    Regards,
    Praveen Rajana

    Thread Starter stosun

    (@stosun)

    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

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    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

    Thread Starter stosun

    (@stosun)

    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

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    @ 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

    Thread Starter stosun

    (@stosun)

    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.

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    @ 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

    Thread Starter stosun

    (@stosun)

    @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

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Folder Scan doesn't work at CVG 1.6’ is closed to new replies.