Re: [Extension] Adding Images To Navlinks 1.2

so which version should i use for that.

MyFootballCafe.com  is Now Online!

27 (edited by Stormeh 2009-03-07 01:21)

Re: [Extension] Adding Images To Navlinks 1.2

KeyDog wrote:

regarding the center issue;
***********************
try changing these (original) lines to your needs which you find in   'yourstyle'.css

#brd-navlinks ul {
    margin: 0;
    padding: 0.5em 0;
    float: left;
    }

#brd-navlinks li {
    display: inline;
    margin-right: 1em;
    }

#brd-navlinks li a {
    font-size: 1.167em;
    text-decoration: none;
    }

Thanks mate,

for anyone interested in how to centre links-

find the original lines and change to:

#brd-navlinks ul {
    margin: 0;
    padding: 0.5em 0;
    position: relative;
    float: left;
    left: 50%;
    }

#brd-navlinks li {
    display: inline;
    margin-right: 1em;
    position: relative;
    float: left;
    right: 50%;
    }

@SuperMAG.

I suggest you use 1.2, as 1.5 has the hover-over, and seeing as though you will have the text beside the icons, there will be no need for it.

Just as an example:

edit:

                $links['index'] = '<li id="navindex"'.((FORUM_PAGE == 'index') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['index']).'"><img src="'.$ext_info['path'].'/img/navindex.png" alt="Index" /></a></li>';

to:

                $links['index'] = '<li id="navindex"'.((FORUM_PAGE == 'index') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['index']).'"><img src="'.$ext_info['path'].'/img/navindex.png" alt="Index" /><span>'.$lang_common['Index'].'</span></a></li>';

28

Re: [Extension] Adding Images To Navlinks 1.2

@Stormeh. thx for posting solution on the centering issue

@SuperMAG : you'll have to make an own version based on 1.2 as explained by Stormeh and myself (prior post) ... there isn't a version WITH it now....

cheers

29

Re: [Extension] Adding Images To Navlinks 1.2

KeyDog wrote:

Adding A Download Link To Navlinks
======================================================================


            <hook id="fn_generate_navlinks_end"><![CDATA[
            global $base_url;   
           
                $links['navdl'] = '<li id="navdl"'.((FORUM_PAGE == 'dl') ? ' class="isactive"' : '').'><a href="http://www.keydogbb.info/dhtml/keydog-1/location/keydog/extstylelangmod.php"><img src="'.$ext_info['path'].'/img/dl.png" alt="Download" /></a></li>';
               
                $links['index'] = '<li id="navindex"'.((FORUM_PAGE == 'index') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['index']).'"><img src="'.$ext_info['path'].'/img/navindex.png" alt="Index" /></a></li>';

=======================================================================


Instructions:
=======================================================================

1. Just add the green code above to the manifest.xml in navlinks extension
2. change your the download link to wherever yours is located
3. add a dl.png  image/icon to the img folder

and you're done

=======================================================================


Doc
=======================================================================
by KeyDog

Release Date
=======================================================================

31-01-2009


=======================================================================

feel free to add your input

how using at portal by daris ?(forum nav link)

Re: [Extension] Adding Images To Navlinks 1.2

Can anyone make this work with 1.4.2.

MyFootballCafe.com  is Now Online!