WiSch
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Photo Sphere] AutostartHi Jeremy.
I used the following code:[sphere 2502 autostart]
Just as mentioned in your description.
What I get is the styled link. What I expected was to directly see the pano…
Maybe you’ll take a look on my testsite?On the options-page I just added a class and selected the “Hide link”.
I also deactivated all other plugins.
Tried it with FF an Chrome.
Maybe you’ll see the problem?Forum: Reviews
In reply to: [WP Photo Sphere] Works but need more featuresHi Jeremy,
thanks for that, so I can add more classes if I need them and can avoid that fancybox opens it as an normal image.
Good idea!Forum: Plugins
In reply to: [WP Photo Sphere] AutostartHi Jeremy,
I updated the plugin, changed the shortcode and … didn’t get a change.
When I load the page, I still have to click on the shown link to get the the pano.
The pano itself starts automatically moving, but that’s not what I mean… in fact I won’t to start the pano to slide automatically.So did I something wrong?
Actual WP with a TwentyTwelve Childtheme.
Hello again.
I don’t know what happend, but I tried again the original code from twentytwelve: get_avatar( $comment, 44 )
And now it works!Sorry for that but thanks again for your fast reply!
Hi.
Yes, it is v1.2.3
You can see my problem here.
Thanks for your fast support!I used the following code
Original: echo get_avatar( $comment, 44 );
Now: echo get_wp_user_avatar( get_the_author_meta(‘ID’), 70 );
Because with $comment always the default avatar comes for all comments.Forum: Themes and Templates
In reply to: TwentyTwelve sidebar to content heightHi again.
As a workaround I now inserted a JavaScript into the HEAD:<script type="text/javascript"> window.onload=function() { var hoehe = document.getElementById('primary').offsetHeight; var breite = document.getElementById('primary').offsetWidth; if (hoehe > 600 && breite > 600) { var css = document.createElement("style"); css.type = "text/css"; css.innerHTML = "#secondary { position: absolute; top: 0; bottom: 0; right: 0; } .widget-area .sidebar-wisch { position: absolute; }"; document.body.appendChild(css); document.getElementsByTagName("head")[0].appendChild(css); } } </script>
And changed the CSS to:
#secondary { /* Content high enough? Than JS in HEAD will change position! */ position: relative; } .wrapper { position: relative; } .widget-area .sidebar-wisch { /* Content high enough? Than JS in HEAD will change position! */ position: relative; margin-bottom: 0; bottom: 0; border: 0; padding-bottom: 0; }
But I’d prefer a solution without JS…
Anybody nows one?Thanks,
WiSchForum: Themes and Templates
In reply to: TwentyTwelve sidebar to content heightHi.
OK, I created an custom widget wich got the an own class.
Then I inserted the following CSS into my style.css:@media screen and (min-width: 600px) { #secondary { height: 100%; position: absolute; top: 0; bottom: 0; right: 0; } .wrapper { position: relative; } .sidebar-wisch { position: absolute; bottom: 0; } }
Now nearly everything works except one thing:
If the content is to short, the sidebar overlaps instead of take the needed height… ??Anyone can help?
Thanks,
WiSchForum: Plugins
In reply to: [WPIDE - File Manager & Code Editor] [Plugin: WPide] Link to WP-CodexHi Simon.
Wow! That was fast.
Thankx for that, it helps me a lot.
Keep on with those Ideas!Greets,
J?rgHi peterbra.
Maybe this PlugIn helps you:
https://sevenspark.com/wordpress/contact-form-7-dynamic-text-extension-released
Greets, WiSchHallo Tobias.
Schlechte Nachrichten sind besser als keine Nachrichten, insofern vielen Dank für Deine schnelle Rückmeldung.
Komplexer ist es schon… ich wollte es nun etwas anschaulicher und Userfreundlicher gestalten.
Danke für den Tipp, ich werde mal bei datatables.net nachsehen gehen…Grü?e,
J?rgForum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Database entry with form sendI found a solution that works for me:
function mycf7_before_send_mail($cf7) { // Execute this Code only for Form-ID 3! if ( 3 == $cf7->id ) { $my_postid = wpcf7_special_mail_tag_for_post_data( $output, ‘_post_id’ ) ; } } add_action( ‘wpcf7_before_send_mail’, ‘mycf7_before_send_mail’ );
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Get Post ID from within compose_and_send functionI found a solution that works for me:
function mycf7_before_send_mail($cf7) { // Execute this Code only for Form-ID 3! if ( 3 == $cf7->id ) { $my_postid = wpcf7_special_mail_tag_for_post_data( $output, ‘_post_id’ ) ; } } add_action( ‘wpcf7_before_send_mail’, ‘mycf7_before_send_mail’ );
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Get Post ID from within compose_and_send functionHi.
I also try to get and use the post_id of the post from where I used the form in my functions.php.
Everything I tried failed… ??Did you found a solution?
Thanks.
I know that’s no prefill but if you need the mail or username…
For a prefill I saw only (somewhere here in the forum) a solution via JavaScript in a own template in combination with a given name/id for the target-field in the form.
No solution for an included way to prefill the fields…
If you found a way, please post it here, thanks.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Database entry with form sendNobody can help?
Now the following code works to increment my custom field.
But as you can see, it uses a fixed Post-ID… everything I try to get the Post-ID from the actual post where the form is built in failed.function mycf7_vor_mailversand($cf7) { global $post; $current_postid = 1952; //$current_postid = $cf7->posted_data["_post_id"]; //$current_postid = $_POST['post_ID']; //$current_postid = ($post->ID); $anmeldungen = get_post_meta($current_postid, 'Anmeldungen', true); $anmeldungen++; update_post_meta($current_postid, 'Anmeldungen', $anmeldungen); } add_action( 'wpcf7_before_send_mail', 'mycf7_vor_mailversand' );
As you can see, I even try to pass the post-id as a field from CF7.
I also tried “global $wpdb;” or “global $_post;” instead of “global $post;” because I found somebody here in the forum that someone uses it that way…Also tried a $anmeldungen = get_post_meta($post->ID, ‘Anmeldungen’, true); without succsess.
So at last: How can a get the Post-ID of the actual post from where the form sends?
Thanks for your help.