Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Forum: Fixing WordPress
    In reply to: Image Map in PHP?

    Hi again,
    I think you’re confusing CSS with HTML. The bit which you have — the line starting with “#headerimg {…” is part of a CSS stylesheet. It has nothing to do with image maps.
    So to answer your question (“like where could I add the map into this?”) — Not here. ??
    Image maps — i.e. images which have “hotspots” in them which can be clicked on like following a normal hyperlink — are defined in HTML as described in the link I have you before (see above). They have nothing at all to do with CSS, trust me.

    Forum: Fixing WordPress
    In reply to: Image Map in PHP?

    Hi,
    Take a look at this webpage — https://htmlhelp.com/reference/html40/special/map.html — for an example of what I think you’re trying to do.

    Nice work!

    Forum: Plugins
    In reply to: New Hack: List nearby posts
    Thread Starter dubsky

    (@dubsky)

    Script updated again: You can see and download it here: https://www.redbrick.dcu.ie/~slack/nearby.phps.
    Features added:
    Release 0.3 allows you pick whether you want distances in miles or km. The default is km.
    You can now use it outside the main loop, anywhere you like, with any “point of origin” location. When used inside the loop you see, the plugin uses the current post as the point of origin to measure distances from. So if, say, you’re looking at a restaurant review, the list of nearby locations generated for that page depend on the location of the restaurant (the $post->post_lat and $post->post_lon for that wordpress post). What if you want to show a list of your posts though in order of proximity to some other place — like a train station — or even the location of your visitors (lookup their IP address, if say they’re surfing from Dublin City University, show a list of your posts ordered by proximity to North Dublin, Ireland).

    Forum: Plugins
    In reply to: New Hack: List nearby posts
    Thread Starter dubsky

    (@dubsky)

    Dss: Sorry, I should have made that clearer… it’s php code, so it’ll have to go inside <?php and ?> thingies (what are they called?). I’d put it near where you say what category the current post was filed under.
    Script updated: I’ve updated the script, and you can see and download it here: https://www.redbrick.dcu.ie/~slack/nearby.phps.
    Feature added:
    New variable $distancelimit can be passed to show_nearby_posts() to set maximum distance to include (i.e. only search within x miles of here, default value is 120 miles). Used together with $limit, you can define how many to show and how far to look for them.

    Example: <?php show_nearby_posts(8,500) ?> will look for posts within 500 miles of the current one, measure their exact distance, and display the closest 8 available.

Viewing 5 replies - 1 through 5 (of 5 total)