robindemey
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Success message doesn't show upHi
I had the same issue.
I just found out (5 minutes ago) that adding the following in Additional Settings worked out for me:on_sent_ok: "location = '/contactform-send.html';"
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Ajax: all works, except for sendI changed my php.ini to the following:
memory_limit = 64M upload_max_filesize = 64M
I changed the php.ini file to the following:
memory_limit = 64M upload_max_filesize = 64M
I found a solutions.
The gallery title and description are placed in the database like that in plugins\nextgen-gallery\admin\manage.php:
$wpdb->query( $wpdb->prepare ("UPDATE $wpdb->nggallery SET title= '%s', slug= '%s' WHERE gid = %d", esc_attr($_POST['title']), $slug, $this->gid) );
and
$wpdb->query( $wpdb->prepare ("UPDATE $wpdb->nggallery SET galdesc= '%s' WHERE gid = %d", esc_attr( $_POST['gallerydesc'] ), $this->gid) );
I removed the esc_attr(). This makes that the codes for translation (<!–:–>) will be correctly placed in the database.
For showing the title and description on my gallery page, I used the following code:
<h1><?php echo html_entity_decode ( nggGallery::i18n( stripslashes($gallery->title))); ?></h1> <p><?php echo html_entity_decode ( nggGallery::i18n( stripslashes($gallery->description))); ?></p>
If you would just use echo $gallery->description, then you’d see the complete description with all the translations.