markwebstar
Forum Replies Created
-
i appreciate that – you & benjamin have helped me a lot already.
yes, things were working ok. the further questions were only becaus you recommended i shouldn’t use
floatto center the image.thanks very much though !
sorry cais – i don’t understand what you mean. even this basic coding is a bit beyond my capabilities.
sorry about that – forgot to stop them being private – should be ok now.
i’ve been working with all the posts as private whilst i sort out formatting, but i’ve made a few examples live so you can compare them.
http://markwebber.org.uk/archive/2015/06/05/image-test-1
[singlepic id=66 float=center] with shortcode “align center” using TinyMCE
*** this first example is where i would like the image and caption to be positioned ***http://markwebber.org.uk/archive/2015/06/05/image-test-2
[singlepic id=66 float=none] with shortcode “align center” using TinyMCEhttp://markwebber.org.uk/archive/2015/06/05/image-test-3
[singlepic id=66 float=center] with no alignment of shortcodehttp://markwebber.org.uk/archive/2015/06/05/image-test-4
[singlepic id=66 float=none] with no alignment of shortcodethanks !
let me know if there’s anything you want me to change for testing.
i did that …
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty($image)) { ?> <a href="<?php echo nextgen_esc_url($image->imageURL); ?>" title="<?php echo esc_attr($image->linktitle); ?>" <?php if(!empty($target)) { ?>target="<?php echo esc_attr($target); ?>"<?php } ?> <?php echo $image->thumbcode; ?>> <img class="<?php echo $image->classname; ?>" src="<?php echo nextgen_esc_url($image->thumbnailURL); ?>" alt="<?php echo esc_attr($image->alttext); ?>" title="<?php echo esc_attr($image->alttext); ?>"/> </a> <em><span class="ngg-gallery-singlepic-image" style="font-size: 10px;"><?php if (!empty($image->description)) echo esc_html($image->description); ?></span></em> <?php if (!empty($image->caption)) { ?><span class="ngg-gallery-singlepic-image"><?php echo $image->caption; ?></span><?php } ?> <?php } ?>… but unfortunately it doesn’t seem to have any effect.
looking back – it seems that i was previously using
float=nonein the post like this[singlepic id=xx w=320 h=240 float=none]and the image was centered.is it possible that something in this code for the title caption (adapted from Benjamin’s suggestion above) that is overriding or defeating
float=none?<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty($image)) { ?> <a href="<?php echo nextgen_esc_url($image->imageURL); ?>" title="<?php echo esc_attr($image->linktitle); ?>" <?php if(!empty($target)) { ?>target="<?php echo esc_attr($target); ?>"<?php } ?> <?php echo $image->thumbcode; ?>> <img class="<?php echo $image->classname; ?>" src="<?php echo nextgen_esc_url($image->thumbnailURL); ?>" alt="<?php echo esc_attr($image->alttext); ?>" title="<?php echo esc_attr($image->alttext); ?>"/> </a> <em><span style="font-size: 10px;"><?php if (!empty($image->description)) echo esc_html($image->description); ?></span></em> <?php if (!empty($image->caption)) { ?><span><?php echo $image->caption; ?></span><?php } ?> <?php } ?>Thanks Cais
If I remove
float=center, and have no float selected in the Basic Singlepic settings then the image is left justified.I’m not very savvy with code so please could you give me some hints on what to change in the CSS.
the theme I use is Clean Home.
Forum: Plugins
In reply to: [Find replace] backslash inserted after find and replacewell … i continued digging around, and i seem to have fixed the problem using https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
i did a search/replace to remove the \ from the line as shown above on the wp_posts and wp2_posts tables of the database. (though only wp_posts was affected).
someone please tell me if i’ve done a terrible thing ? if not, i hope this information might be useful for others.
would it be possible to include options for removing backslashes (or any other stray characters) in future updates of this excellent plugin ?
Forum: Plugins
In reply to: [Find replace] backslash inserted after find and replacethese errors appear at the top of the page after trying to do a find and replace to remove the backslashes :-
Warning: stripslashes() expects parameter 1 to be string, array given in /home/xxx/public_html/archive/wp-content/plugins/revision-control/revision-control.php on line 134
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/xxx/public_html/archive/wp-content/plugins/revision-control/revision-control.php:134) in /home/xxx/public_html/archive/wp-includes/plugin.php on line 496
Warning: Illegal offset type in isset or empty in /home/xxx/public_html/archive/wp-includes/post.php on line 1160
Warning: Cannot modify header information – headers already sent by (output started at /home/xxx/public_html/archive/wp-content/plugins/revision-control/revision-control.php:134) in /home/xxx/public_html/archive/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/package.module.frame_communication.php on line 65
Warning: Illegal offset type in isset or empty in /home/xxx/public_html/archive/wp-includes/post.php on line 1160
i realise now that w= and h= are reduntant as i also have these values fixed in the Gallery Settings for SinglePic.
in these settings, the only options for float are right, left or none (not center).
i’m finding that to have both the image and title below centered in the column, i need to include the shortcode float=center in the post (for the image) AND to have all the shortcode text aligned center within the post (for the title).
am i missing something (else) ?
thanks again Benjamin !
at risk of testing your patience, is it possible to include the shortcode for w=320 h=240 float=center in your code for the template ? in this case, i would then only have to include [singlepic id=xx] in each post to get the image to display consistently. no worries if not, of course …
Thanks very much for taking the time to do this ! I’ve played around with it and got the font size and style the way I want it.
Do I now need to use
[template=singlepic-title-below]in every post along with[singlepic id=xx w=320 h=240 float=center]now or is there a way to make this template the default for singlepic (or otherwise) ?thanks, cais, for trying to help me but i’m afraid these directions go way over my capabilities. i’ve looked at the templates link and cannot see which info is relevant to want i want to do. if i create a template i don’t understand what code i should be putting in it etc
is there a clearer explanation for beginners ?
Forum: Plugins
In reply to: [Really Simple Share] Conflict with All-in-One Event Calendar by Time.lyThanks @whiletrue – your suggestions have pointed me towards fixing the programme.
I checked “Disable buttons on excerpts” to stop the share links appearing in the header on my events calendar.
Then checking “Show share buttons in custom post types: ai1ec_event” brought the share links back onto the individual event pages.
Thank you very much – Time.ly were not very helpful at all on their forums ! …
https://time.ly/forums/topic/clash-with-really-simple-facebook-twitter-share-buttons/Forum: Plugins
In reply to: [Yoast Duplicate Post] "Clone" and "New Post" not workingi also use All-in-One Event Calendar by Time.ly, and their latest update also seems to be conflicting with Really simple Facebook Twitter share buttons.