ODAK71
Forum Replies Created
-
Here the whole old code structure. I want to get the last image in gallery and link to the gallery
$galleryid = $gallery->gid; $gallery = $nggdb->find_gallery($gallery->gid); $picture_data = $wpdb->get_results("SELECT filename, alttext FROM abcd_ngg_pictures WHERE galleryid=".$galleryid); $iie = count($picture_data) - 1; foreach ( $picture_data as $ng_image ) { if ($ii < $iie ) { if ($ii == 0) { $ipath = get_bloginfo('wpurl').str_replace('\\','/',$gallery->path).$ng_image->filename; ?> <a class="btn item-btn fancybox" href="<?php echo $ipath; ?>" rel="<?php echo $gallery->gid ?>"><?php echo $moretxt; ?></a> <?php } else { $ipath = get_bloginfo('wpurl').str_replace('\\','/',$gallery->path).$ng_image->filename; echo '<a href="'.$ipath.'" class="fancybox" rel="'. $gallery->gid . '" style="display: none;" /></a>'; } } $ii = $ii + 1; }
This dont work:
$ii = 0; $gallery_array = array(); $galleryid = $gallery->gid; $gallery_mapper = \Imagely\NGG\DataMappers\Gallery::get_instance(); $gallery = $gallery_mapper->find($galleryid); $image_mapper = \Imagely\NGG\DataMappers\Image::get_instance(); $picture_data = $image_mapper->find_all_for_gallery($galleryid, true); $iie = count($picture_data) - 1; foreach ( $picture_data as $ng_image ) { if ($ii < $iie ) { if ($ii == 0) { $ipath = get_bloginfo('wpurl').str_replace('\\','/',$gallery->path).$ng_image->filename; ?> <a class="btn item-btn fancybox" href="<?php echo $ipath; ?>" rel="<?php echo $gallery->gid ?>"><?php echo $moretxt; ?></a> <?php } else { $ipath = get_bloginfo('wpurl').str_replace('\\','/',$gallery->path).$ng_image->filename; echo '<a href="'.$ipath.'" class="fancybox" rel="'. $gallery->gid . '" style="display: none;" /></a>'; // alt="'.$ng_image->alttext.'" } } $ii = $ii + 1; }
- This reply was modified 11 months, 2 weeks ago by ODAK71.
Problems with 3.5.x too:
/wp-includes/shortcodes.php(433): Imagely\NGG\Display\Shortcodes->__call('album____wrappe...', Array) [internal function]: do_shortcode_tag(Array) .../wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(album)...', 'do_shortcode_ta...', '[album id=5 tem...') .../wp-content/themes/my-child/template-gallery-fullwidth.php(58): do_shortcode('[album id=5 tem...') .../wp-includes/template-loader.php(106): include('/homepages/u724...') wp-blog-header.php(19): require_once('...') index.php(17): require('...') {main} thrown in .../wp-content/themes/my-child/nggallery/album-bbofour.php on line 91 Line 91: $gallery = $nggdb->find_gallery($gallery->gid);
I replace some private infos with …
Forum: Plugins
In reply to: [Contact Form 7] Sending Mail to specific Mail Adress unpossible, other worksOther Stopword: using “xxx” – Because GDPR I replace the last 2 IP numbers with xxx – what can I do to change the Stopwords manually.
Forum: Plugins
In reply to: [Contact Form 7] Sending Mail to specific Mail Adress unpossible, other worksBlocking Reason: Using Stopword
online.de
– t-online.de is the biggest Telecommication company in germany, how can I edit the stopwords to removeonline.de
?Forum: Plugins
In reply to: [Contact Form 7] Sending Mail to specific Mail Adress unpossible, other worksJedenfalls nicht IONOS. Ein kleinerer Hoster in Potsdam.
- This reply was modified 2 years ago by ODAK71.
Forum: Plugins
In reply to: [Contact Form 7] Sending Mail to specific Mail Adress unpossible, other worksHello,
Some plugins are necessary to test it:
html-on-pages
ssl-insecure-content-fixer
cf7-conditional-fields
contact-form-7
wp-mail-smtpError exist furthermore.
Border Color: orange.
Forum: Plugins
In reply to: [Contact Form 7] Sending Mail to specific Mail Adress unpossible, other worksadvanced-custom-fields
ajax-thumbnail-rebuild
all-404-redirect-to-homepage
antivirus
better-wp-security
borlabs-cookie
cf7-conditional-fields
clarity-ad-blocker
cms-tree-page-view
contact-form-7
contact-form-cfdb7
custom-css-js
disable-gutenberg
duplicate-post
enable-media-replace
erecht24
host-google-fonts-pro
host-webfonts-local
html-on-pages
hyphenator
language-fallback
mappress-google-maps-for-wordpress
ninjafirewall
ssl-insecure-content-fixer
tablepress
tuxedo-big-file-uploads
webp-converter-for-media
wordpress-seo
wp-mail-smtp
wp-permalauts
wp-rocket
wp-rocket-preload-change-parameters
wp-rollback—-
Theme: Baylys by Elmastudio
Forum: Plugins
In reply to: [Contact Form 7] Sending Mail to specific Mail Adress unpossible, other works“The message could not be sent. Please try again later or inform the website administrator.”
In Version 5.183:
https://www.hesch-automation.com/de/kontakt/
ReferenceError: Can't find variable: jQuery Globaler Code — apbct-public-bundle.js:1046 apbct_ready — apbct-public-bundle.js:403 ReferenceError: Can't find variable: ctPublic apbct_ready — apbct-public-bundle.js:403
after a lot of try now its working on the second project too. I need to fill in the custom facy code field with a single blank, then with not any input, then switch to ngg build in fancybox code.
On an other Website the same procedure did not work. There the CSS and scripts will add furthermore
Solved.
In combination of NGGs build in fancybox and
NGG_SKIP_LOAD_SCRIPTS
works now.If I disable the lightbox, the css und scripts are not added. But I need my own lightbox.
I use a third party lightbox (easy fancybox)
The constant NGG_SKIP_LOAD_SCRIPTS should disable including of css and scripts.
Lightbox: Own and
class="fancybox" rel="%GALLERY_NAME%"