Forum Replies Created

Viewing 15 replies - 331 through 345 (of 356 total)
  • Thread Starter demonboy

    (@demonboy)

    OK, I’m happy with that answer. I’ll not bother with the generic tags of sailing and make them more specific for each post.

    Thanks for your responses.

    Thread Starter demonboy

    (@demonboy)

    Yep. Each post has a number of tags, so any location is already mentioned. It’s just that my tag cloud is showing the tags ‘sail’ and ‘sailing’ as bigger than other tags. To a site visitor this is almost redundant as they know each post is about sailing.

    I guess my question is more specifically about external searches and how they affect SEO, if at all.

    Thread Starter demonboy

    (@demonboy)

    No one else having this problem? I’ve deactivated the plug-in, deleted my images from the flickr geo-map and started from scratch. I have a test page for three different types of google map, a KML file, a flickr geofeed and a flickr kml feed. The KML works fine, the geofeed is displaying the problem I mentioned above and the kml feed is showing two markers instead of one. You can see the maps here:

    https://www.followtheboat.com/index.php/?page_id=136

    The code for the two problem maps is as follows:

    Flickr geofeed
    [xmlgm {https://api.flickr.com/services/feeds/geo/?id=33360515@N02&format=kml_nl} maxlat=36.62243465676059; minlat=36.62243465676059;maxlon=29.098690152168274;minlon=29.098690152168274;zoom=10; ]

    Flickr KML feed
    [xmlgm {https://api.flickr.com/services/feeds/geo/?id=33360515@N02&format=rss_200}]

    I can’t believe I’m the only one having this problem. Please help as this is pretty important to my website!

    Thread Starter demonboy

    (@demonboy)

    That’s the ticket. Ta.

    Forum: Plugins
    In reply to: XML Google Maps

    Karunnt – did you have any joy with this? I’ve just installed it to play with but can’t find any logical documentation (still searching). I don’t understand clayman’s instructions.

    Thread Starter demonboy

    (@demonboy)

    OK, I said I’d post up the plug in that Justin designed for me to solve this problem. Save this with a unique name in your plug-ins dir as a .php file and activate in the usual way.

    <?php
    /**
     * @package FixImageMargins
     * @author Justin Adie
     * @version 0.1.0
     */
    /*
    Plugin Name: FixImageMargins
    Plugin URI: #
    Description: removes the silly 10px margin from the new caption based images
    Author: Justin Adie
    Version: 0.1.0
    Author URI: https://rathercurious.net
    */
    class fixImageMargins{
        public $xs = 0; //change this to change the amount of extra spacing
    
    public function __construct(){
            add_filter('img_caption_shortcode', array(&$this, 'fixme'), 10, 3);
        }
        public function fixme($x=null, $attr, $content){
    
            extract(shortcode_atts(array(
                    'id'    => '',
                    'align'    => 'alignnone',
                    'width'    => '',
                    'caption' => ''
                ), $attr));
    
            if ( 1 > (int) $width || empty($caption) ) {
                return $content;
            }
    
            if ( $id ) $id = 'id="' . $id . '" ';
    
        return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . ((int) $width + $this->xs) . 'px">'
        . $content . '<p class="wp-caption-text">' . $caption . '</p></div>';
        }
    }
    $fixImageMargins = new fixImageMargins();
    
    ?>
    Thread Starter demonboy

    (@demonboy)

    I posted this problem on another forum and found a willing programmer who came up with a solution. It does require a change in the core code so if you’re not comfortable with this, don’t do it, but it is pretty simple:

    wp-includes/media.php – line 580 – change the value ’10 to ‘0’, so the line reads:

    return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (0 + (int) $width) . 'px">'

    The guy even wrote a plug-in for me though it doesn’t work at the moment. If he comes up with a working one I’ll post it up here.

    Thread Starter demonboy

    (@demonboy)

    Anyone help?

    Thread Starter demonboy

    (@demonboy)

    Thanks for the heads up on the extension but this doesn’t make sense. If I delete the background colour and the font colour then I end up with the default white background and black text. I don’t want that – I want what I have defined in the .wp-caption.alignright class, brown background and white text.

    Also I know that the style is setting the width to be 210px and this is the crux of the problem, but where is it doing that? It’s not something that is defined in my style sheet.

    Thread Starter demonboy

    (@demonboy)

    Hi all,

    thanks for your replies. I think I wrote that in eager but nervous anticipation of going for it and installing 2.7 on my server. Well, I’ve done it and it all seems well so far, aside from a few problems already mentioned in the forum. I have to say the backend makes SO much more sense and is a pleasure to use!

    Now if I can just get rid of that annoying right-border on my images I’m laughing ??

    Thread Starter demonboy

    (@demonboy)

    Hi,

    apologies in the delayed reply We are having region-wide connection problems here in Turkey. It has taken me half an hour just to get to this page in order to respond. No doubt it will take another hour to post my reply!

    Your solution sounds interesting but there is very little information on your idea and there is certainly no working example on this website. Perhaps you could give me an example of how the code would look? My code below still ignores the elseif statement.

    <?php 
    
    	if (is_archive(''))
    	  {echo "You are viewing all exceprts from "; the_time('F Y');}
    
    	elseif (is_tag('')) {
    	 echo "This is the tag you were searching- "; wp_specialchars($s);
    	  }
    
     ?>

    I’ve tried changing the ($s) to ‘is_tag’ but it still ignores it. Any further assistance greatly appreciated. Please bear in mind I only started coding PHP last week so I could do with an example to get me going.

    Thread Starter demonboy

    (@demonboy)

    Hi,

    apologies in the delayed reply We are having region-wide connection problems here in Turkey. It has taken me half an hour just to get to this page in order to respond. No doubt it will take another hour to post my reply!

    Your solution sounds interesting but there is very little information on your idea and there is certainly no working example on this website. Perhaps you could give me an example of how the code would look? My code below still ignores the elseif statement.

    <?php 
    
    	if (is_archive(''))
    	  {echo "You are viewing all exceprts from "; the_time('F Y');}
    
    	elseif (is_tag('')) {
    	 echo "This is the tag you were searching- "; wp_specialchars($s);
    	  }
    
     ?>

    I’ve tried changing the ($s) to ‘is_tag’ but it still ignores it. Any further assistance greatly appreciated. Please bear in mind I only started coding PHP last week so I could do with an example to get me going.

    Thread Starter demonboy

    (@demonboy)

    Thanks for the AZIndex Plugin. I’ve just had a cursory glance through the site and it could be the answer, though I do prefer coding myself so I have complete control over it. Still, it looks like a very powerful tool.

    It’s the splitting up of parent, or nesting, that I’m unclear of. In a previous post I asked if it’s possible to show the first three excerpts of my log, with the first and second excerpt divided by a random image. I received no replies and ended up cheating using two bits of code to create the two sections between the random image. I won’t be able to do that with this idea though.

    I’m not convinced the solution is using Categories as it confuses the way I document my posts. It could be done but I think I’ll look into the plug-in you suggested first. Thanks once again for the heads up.

    Thread Starter demonboy

    (@demonboy)

    Yep, just starting to go through my previous questions to do just that. It’s a good forum.

    Thread Starter demonboy

    (@demonboy)

    This was resolved by :
    this post

Viewing 15 replies - 331 through 345 (of 356 total)