Mattki
Forum Replies Created
-
Thanks for your answer, David. I’m looking forward to the coming update!
Forum: Plugins
In reply to: [Events Made Easy] Locations are duplicatedGreat! It works fine!
Thanks
MattkiYes, I did. And reading the prior articles it looks like this is most probably the reason and not switching to https.
Benjamin,
Thanks for the tip!
Actually I solved it with
<?php $timestamp = strtotime($image->imagedate) ; echo strftime('%x %X', $timestamp) ; ?>
– Mattki
Forum: Plugins
In reply to: [WP-Print] How to suppress the WP toolbarMeanwhile I found out that this behaviour is caused by the plugin NextGEN Gallery (vers. 2.0.79) that forces to show the WP toolbar also at the print preview.
Any idea how to overcome this problem?– Mattki
I forgot to say that I am using a German version. And the template imagebrowser-exif.php is also not showing the seconds, see screenshot
– Mattki
Cais,
Thanks for your answer.
The problem is not the format but the value $image->meta_data[“created_timestamp”] which is not a Unix timestamp but a string showing date and time in a given format.
Do you have an idea how to get the picture taken time out of the exif data as Unix timestamp?
Thanks!– Mattki
Forum: Plugins
In reply to: [Fast Secure Contact Form] Including name in confirmation email?Sorry Mike, but the field tag [to_contact], which gives the name of the recipient, is not available in your original version. Therefore I had to do the modification.
BR
MattkiForum: Plugins
In reply to: [Fast Secure Contact Form] Including name in confirmation email?Try the following:
Open si-contact-form-process.php and go to line 1079-1081. You will find :$subj = preg_replace('/(\[ex_field)(\d+)(\])/','',$subj); // remove empty ex_field tags $msg = preg_replace('/(\[ex_field)(\d+)(\])/','',$msg); // remove empty ex_field tags $subj = str_replace('[form_label]',$posted_form_name,$subj);
Add following line behind it:
$msg = str_replace('[to_contact]',$to_contact,$msg);
Now you can use the tag [to_contact] in the confirmation e-mail that gives you the name of the recipient.
Enjoy!
Forum: Plugins
In reply to: [Contact Form 7] Dynamic Email by parameter value ?I found a more flexible solution in using the plugin “Contact Form 7 Dynamic Text Extension”, which allows to include custom fields in the forms. The value of the custom fields can be modified by the wp function update_post_meta. In this way I hand name and email of the recipient over to the form.
Forum: Plugins
In reply to: [Contact Form 7] Dynamic Email by parameter value ?Hi dacho,
Thanks for your hint! Unfortunately it does not work with my site. Is there any special tag to use for the mail?
BR
MattkiForum: Plugins
In reply to: [Contact Form 7] Dynamic Email by parameter value ?Hi Takayuki,
I need exactly the same feature! Is there any chance that you can implement it? That would be great!
Best regards
MattkiForum: Plugins
In reply to: [WordPress HTTPS (SSL)] Problem with repeating url parameter (Get variables)Further observation: The above described behaviour occurs only with links that have a relative path but not with links that have an absolute path.
Thanks
MattkiForum: Plugins
In reply to: [jQuery Colorbox] [Plugin: jQuery Colorbox] Colorbox and Nextgen paginationHi Klarmer,
so the workaround is managed with nextgen gallery:
In your own theme create a directory called nggallery (i.e. /wp-content/themes/your_theme/nggallery). Copy gallery.php from /wp-content/plugins/nextgen-gallery/view to the new created directory and rename it to gallery-hidden.php. Go to the foreach loop in line 38 of that file and replace it with:
<?php $visible = “” ?>
<?php foreach ( $images as $image ) : ?><div id=”ngg-image-<?php echo $image->pid ?>” class=”ngg-gallery-thumbnail-box” style=”display: <?php echo $visible ?>;”>
<div class=”ngg-gallery-thumbnail” >
imageURL ?>” title=”<?php echo $image->description ?>” <?php echo $image->thumbcode ?> >
<?php if ( !$image->hidden ) { ?>
<img title=”<?php echo $image->alttext ?>” alt=”<?php echo $image->alttext ?>” src=”<?php echo $image->thumbnailURL ?>” <?php echo $image->size ?> class=”colorbox-<?php echo $gallery->ID ?>” />
<?php } ?>
</div>
</div>
<?php $visible = “none” ?>
<?php if ( $image->hidden ) continue; ?>
<?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
<br style=”clear: both” />
<?php } ?><?php endforeach; ?>
When using the shortcode [nggallery id=X template=hidden images=0] naggallery will use your new template, will load all pictures of the gallery but will show only the first one (the rest is hidden). When clicking to the image colorbox will show all images of the gallery including the hidden.
Have fun!
MattkiForum: Plugins
In reply to: [jQuery Colorbox] [Plugin: jQuery Colorbox] Colorbox and Nextgen paginationHi Arne,
The problem you are referring to is different but solved for me (I created a template based on the ngg-view defined in gallery.php by adding class=”colorbox-<?php echo $gallery->ID ?>” to the foreach-loop.
The point of klarmer and me is the behaviour of jquery colorbox to display only nggallery pictures that are shown in the post but not the pictures of the same gallery that are shown in a subpage (when the maximum number of pictures in a post or page is set in nggallery).
My workaround for this is to create again a template and to add in the foreach loop for the second and following pictures style=”display:none”. So all pictures of the gallery are loaded, but only the first is shown in the post. But colorbox is displaying all pictures – including the hidden ones.
Again the solution seems to be with ngg and not colorbox.
BR
Mattki