BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 7
    Andrew on #16428

    I have been using the – MY CUSTOM FUNCTIONS PRO plugin to execute the mediapress code.

    It has to be a permission issue because database updates are fine.

  • Participant
    Level: Initiated
    Posts: 7
    Andrew on #16425

    If it is a permissions issue then defiantly – We are running on google cloud everything is locked down by default. What directories and or files would need to be unlocked.

    Tried to run the WP_Debug but it is running on a multipress installation and I am not seeing an error.

  • Participant
    Level: Initiated
    Posts: 7
    Andrew on #16412

    Hmm doesent seem to be doing anything I have the image it is tested and loads, I run the code but nothing shows up in the gallery on the backend or frontend.

    when I save it into the functions.php the server instantly refreshes usually when I run mediapress code it takes some time to process and the page to reload

    I tried
    mpp_import_attachment
    mpp_import_file

    I tried relative path to the file & the server path nothing seems to be importing.

    mpp_import_file('/imageupload/userpics/29263/01.jpg', 40882);
    mpp_import_attachment('/imageupload/userpics/29263/02.jpg', 40882);
    mpp_import_file('/opt/bitnami/apps/wordpress/htdocs/imageupload/userpics/29263/03.jpg', 40882);
    mpp_import_attachment('/opt/bitnami/apps/wordpress/htdocs/imageupload/userpics/29263/04.jpg', 40882);
    
  • Participant
    Level: Initiated
    Posts: 7
    Andrew on #16328

    Ok I think I am getting it.

    Can you explain how I would run code like this.

    Say I want to have a php page where I dump a list of

    mpp_import_attachment( 25917, 41981 );
    mpp_import_attachment( 25919, 41981 );
    mpp_import_attachment( 26381, 41981 );
    mpp_import_attachment( 41988, 41981 );

    this would attach the 4 images to the gallery 41981 and set them up. This way I just go into the current setup and find a list of the attachments and re-attach them to the gallery.

    Is it possible to have a php page that I can open up and it executes these statements?

    Ultimately I would generate a list, load them onto a php page, then open the php page to execute.

  • Participant
    Level: Initiated
    Posts: 7
    Andrew on #16228

    Got a few more questions.

    1. Is there a way to randomize the gallery page so every time it is loaded the page has new galleries?

    2. I performed a lot of moves through the database to move over the galleries however on the front end some galleries you can see images. When you click View

    Most just have a blank page – https://www.screencast.com/t/uuwCMJc2s9

    But if you just click the image the popup lightbox you can filter through the images.

    Last do you have any suggestions with your plugins to spice up the gallery site and make it more interesting. The boss is interested in exploring more of your plugins.

  • Participant
    Level: Initiated
    Posts: 7
    Andrew on #16226

    Excellent thanks here is the code I used to turn from private to public – Turns out 63 was private so in excel I built this sql statement changing the object_id = mygallery AND search for 63 and turn to 62.

    backtick(`UPDATE wp_term_relationships SET term_taxonomy_id = ’62’ WHERE object_id = ‘41765’ AND term_taxonomy_id = ’63’;’)

    Thanks – Solved

  • Participant
    Level: Initiated
    Posts: 7
    Andrew on #16202

    Ok I am not seeing what your telling me

    Say I wanted to turn gallery 1 from private to public through the database what would I need to change to do that?