Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • exter1ty Friend
    #964300

    Hello, I’d like to use the JA Image Hotspot plugin on a joomla 3.6.2 site and wondered if this is compatible? and can it be used to create hotspots on an image with hyperlinks behind them (each one with a different hyperlink). Is this possible? oh, and I should also say that the image is one that i’d like to appear as a banner on a particular page of my site… Any help would be greatfully received.

    Mo0nlight Moderator
    #965672

    Hi.
    The module is fully compatible with joomla 3.6.2.
    For the link on the image you can try this.
    edit the file :
    /modules/mod_jaimagehotspot/mod_jaimagehotspot.xml
    add this code

    <field
                        type="text"
                        default="#"
                        name="imglink"
                        label="JAI_IMG_LINK"
                        description="JAI_IMG_LINK_DESC" />

    under the code around line 113-126.

    <field
                        name="showchoicelocaltion"
                        type="list"
                        default="top-left"
                        label="JAI_POSITION_OFFICE"
                        description="JAI_POSITION_OFFICE_DESC">
    
                        <option value="top-left">JAI_POSITION_TOP_LEFT</option>
                        <option value="top-right">JAI_POSITION_TOP_RIGHT</option>
                        <option value="bottom-left">JAI_POSITION_BOTTOM_LEFT</option>
                        <option value="bottom-right">JAI_POSITION_BOTTOM_RIGHT</option>
                        <option value="middle-left">JAI_POSITION_MIDDLE_LEFT</option>
                        <option value="middle-right">JAI_POSITION_MIDDLE_RIGHT</option>
                    </field>

    and edit the file.
    /modules/mod_jaimagehotspot/tmpl/default.php
    edit the code :

    <img src="<?php echo $imgpath;?>" alt=""/>

    To:

    <a target="_blank" href="<?php echo $params->get( 'imglink', '#' );?>"><img src="<?php echo $imgpath;?>" alt=""/></a>

    You can place it in any position of your template like you want.

    Regards.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  Mo0nlight 8 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum