Forum Replies Created

Viewing 15 replies - 1 through 15 (of 60 total)
  • Thread Starter rafaelmagic

    (@rafaelmagic)

    Frank,

    I combined the code below.

    The code is not working. I cleared cache and restarted apache.

    /* Video Blog Featured Image */
    
    function run_after_parent_theme_setup() {
    // Insert post video into Blog and Archive pages' posts
    function udesign_blog_section_post_video() {
    // Post Video
    //echo get_post_meta( get_the_ID(), 'udesign_post_video', true );
    if(function_exists(‘lyte_preparse’)) { echo lyte_preparse(get_post_meta( get_the_ID(), 'udesign_post_video', true )); }
    }
    add_action('udesign_blog_post_content_before', 'udesign_blog_section_post_video', 9);
    }
    add_action('after_setup_theme', 'run_after_parent_theme_setup');
    Thread Starter rafaelmagic

    (@rafaelmagic)

    Frank,

    I am not a programmer and I have a few questions.

    Do I have to combine the code above (original post) with the code you provided?

    Or are they separate?

    Might be easier if you can combine it for me. =)

    Thank you for your time,

    Rafael

    Thread Starter rafaelmagic

    (@rafaelmagic)

    I got Height & Width Working in the shortcode. Took me a while to figure it out.

    <?php
    /**
    Template Page for the single pic
    
    Follow variables are useable :
    
    	$image : Contain all about the image
    	$meta  : Contain the raw Meta data from the image
    	$exif  : Contain the clean up Exif data from file
    	$iptc  : Contain the clean up IPTC data from file
    	$xmp   : Contain the clean up XMP data  from file
    	$db    : Contain the clean up META data from the database (should be imported during upload)
    
    Please note : A Image resize or watermarking operation will remove all meta information, exif will in this case loaded from database 
    
     You can check the content when you insert the tag <?php var_dump($variable) ?>
     If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
    **/
    ?>
    <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($image)) : ?>
    
    <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>"
    <?php echo $image->thumbcode ?>
     data-size="<?php echo $image->meta_data['width'] . "x" . $image->meta_data['height'] ?>">
    <?php if ( !$image->hidden ) { ?>
    <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" />
    <?php } ?>
    
    </a>
    <?php if (!empty ($image->caption)) : ?><span><?php echo $image->caption ?></span><?php endif; ?>
    <?php endif; ?>

    “Add Media” button NextGen Gallery Widget.

    Thumbnail= Not working it adds class=”ngg-fancybox”
    Full Size= OKAY, skips thumbnail & lightbox effect
    SinglePic= Works, the code in this posts allows for Height & Width in short code.

    Developer is aware of the “Thumbnail” insert bug and they will update eventually.

    Thread Starter rafaelmagic

    (@rafaelmagic)

    @cais

    I narrowed it down a bit.

    I copied code from Nextcellents singlepic.php into file called singlepic_swipe.php in the folder
    /nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view

    and enabled it:
    Gallery Settings
    NextGen SinglePic Section
    Template: (dropdown) select: singlepic-swipe.php

    Now Add Media, NextGen Gallery and “Insert Into Post”
    Has 3 Selections
    Thumbnail= Not working it adds class=”ngg-fancybox”
    Full Size= OKAY, skips thumbnail
    SinglePic= Works using my template except for the height & weight in shortcode

    Below is the singlepic-swipe.php code that I did a subpar/hack code on.

    <?php
    /**
    Template Page for the single pic
    
    Follow variables are useable :
    
    	$image : Contain all about the image
    	$meta  : Contain the raw Meta data from the image
    	$exif  : Contain the clean up Exif data from file
    	$iptc  : Contain the clean up IPTC data from file
    	$xmp   : Contain the clean up XMP data  from file
    	$db    : Contain the clean up META data from the database (should be imported during upload)
    
    Please note : A Image resize or watermarking operation will remove all meta information, exif will in this case loaded from database 
    
     You can check the content when you insert the tag <?php var_dump($variable) ?>
     If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
    **/
    ?>
    <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($image)) : ?>
    
    			<a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?>
    
                   data-size="<?php echo $image->meta_data['width'] . "x" . $image->meta_data['height'] ?>">
    
    				<?php if ( !$image->hidden ) { ?>
    
    				<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    
    				<?php } ?>
    
    </a>
    <?php if (!empty ($image->caption)) : ?><span><?php echo $image->caption ?></span><?php endif; ?>
    <?php endif; ?>

    Any advice to Make the Height & Width work?

    Thread Starter rafaelmagic

    (@rafaelmagic)

    Fixed Part 1 with the Thumbnail Resolution, it was the aspect ratio checkbox.

    Part 2, still having issue with widget. Seems to have issue finding my galleries or is there suppose to be a drop down?

    Thread Starter rafaelmagic

    (@rafaelmagic)

    @cais.

    I already did that and it doesn’t work.

    Light Effect is set to “None”.

    Add Media, NextGen Gallery and “Insert Into Post”, will post the following code.

    a class=”ngg-fancybox” rel=”” data-image-id=”1″ data-src=”https://www.example.com/wp-content/gallery/test/IMG_1152.JPG&#8221; data-thumbnail=”https://www.example.com/wp-content/gallery/test/thumbs/thumbs_IMG_1152.JPG&#8221; data-title=”IMG_1152″ data-description=” ” href=’https://www.example.com/wp-content/gallery/test/IMG_1152.JPG&#8217; title=’ ‘

    img src=’https://www.example.com/wp-content/gallery/test/thumbs/thumbs_IMG_1152.JPG&#8217; alt=’IMG_1152′ class=’ngg-singlepic ngg-none

    I looked at my SourceCode and NextGen JavaScripts are not loading but the pictures are posting with class=”ngg-fancybox” which I believe is the FancyBox css.

    Where you guys able to replicate the issue?

    My goal is too use “photoswipe” lightbox.

    I created a gallery-swipe.php files using this code.
    https://bitbucket.org/snippets/nextcellentteam/gMy8b

    Transfered it to wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view

    and enabled it:
    Gallery Settings
    NextGen Basic Thumbnails Section
    Template: (dropdown) select gallery-swipe.php

    PhotoSwipe works in NextGen Galleries, Pictures posted by WP Media but it does not work with NextGen Single Pics.

    Thank you for your time.

    Chris Borgman

    Easy Fix
    Its a Compare and Contrast job.

    photo-swipe.php

    Some of the code in that file is from:
    https://photoswipe.com/documentation/getting-started.html

    STEP 1
    Look at this lines, add the “Share Button”, Line 64

    <button class=”pswp__button pswp__button–share” title=”Share”></button>

    STEP 2
    Add code below to about Line 75
    <div class=”pswp__share-modal pswp__share-modal–hidden pswp__single-tap”>
    <div class=”pswp__share-tooltip”></div>
    </div>

    STEP 3
    Clear WordPress & Browser Caches

    Thread Starter rafaelmagic

    (@rafaelmagic)

    Okay, they fixed their IFRAME.

    It works with my Yubikey.

    However, where is their WP Tech Support?

    UpTimeRobot.com

    Pre-cache I belief works with Wp-Cron, which is triggered by traffic/site visits. No traffic, no Cron.

    Signup for a Free account to get http traffic. Or Google Cpanel WordPress Cron Job..

    PeterMolnar,

    Nothing wrong with the HTML comment.

    The confusion is the proper syntax to exlude pages from being cached.

    Your a smarty pants Php programmer and we are noobs.

    The easiest solution is to have a FAQ entry. I personally still have no idea about the use of the ^ or wildcards.

    Share some samples to exclude pages that regular people can understand. It took me several tries to come up with the code below.

    ^/wp-|cart|checkout|my-account|shop|addons|blog

    What’s the ‘ ^/ ‘ code for?

    Mataleo,

    It works on the latest WordPress.

    More than likely its a Plugin conflict. Sloppy php programming on some other plug. You could try one by one to find the culprit.

    Deactivate all your Plugins and Activate WP-FFPC.

    Forum: Plugins
    In reply to: [WP-FFPC] except url?

    ^/wp-|cart|checkout|my-account|shop|addons|blog

    Thread Starter rafaelmagic

    (@rafaelmagic)

    =)

    Thread Starter rafaelmagic

    (@rafaelmagic)

    FIXED:

    .htaccess plugin waf firewall was blocking a java file.

    duo-wordpress/duo_web/Duo-Web-v1.bundled.min.js

    whitelist if you have a firewall .htaccess with code below.

    SetEnvIf Request_URI "/duo-wordpress/duo_web/Duo-Web-v1.bundled.min.js$" whitelist

Viewing 15 replies - 1 through 15 (of 60 total)