Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Problem sa postavljanjem slicica..

[es] :: Web dizajn i CSS :: Problem sa postavljanjem slicica..

[ Pregleda: 2201 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

kecraj
SVIP
BG

Član broj: 193888
Poruke: 8
79.101.219.*



Profil

icon Problem sa postavljanjem slicica..31.10.2008. u 13:31 - pre 189 meseci
Pozdrav, imam jedan problem koji me namuci ceo dan juce. Naime radi se o temi na jednom smf forumu.

Hocu da pored menija stavim da mi stoje linkovane ikonice za radio i to treba da izgleda ovako:



E sad, na ovoj slici je to uspelo, ali ikonice nisu linkovane uopste.

Kada ubacim html kod za liknk,

Code:
<a href="http://www.piksla.com/piksla.m3u"><img border="0" src="http://www.piksla.com/winamp.png"></a>


onda dobijem ovako:



Ikonice se totalno poremete i na sve moguce nacine sam pokusavao da ih nateram da ostanu u gornjem redu i nece, pa nece!!!

Evo vam i deo koda od index.template.php gde se nalazi meni:
Code:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
    global $context, $settings, $options, $scripturl, $txt;


    echo '
    <ul>';


    // Show the [home] button.
    echo    '<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';

    // How about the [search] button?
    if ($context['allow_search'])
        echo '<li><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';

    // Is the user allowed to administrate at all? ([admin])
    if ($context['allow_admin'])
        echo    '<li><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>';

    // Edit Profile... [profile]
    if ($context['allow_edit_profile'])
        echo '<li><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';

    // Go to PM center... [pm]
    if ($context['user']['is_logged'] && $context['allow_pm'])
        echo '<li><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>';


    // The [calendar]!
    if ($context['allow_calendar'])
        echo '<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';

    // the [member] list button
    if ($context['allow_memberlist'])
        echo '<li><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';
        

    // If the user is a guest, show [login] button.
    if ($context['user']['is_guest'])
        echo '<li><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';


    // If the user is a guest, also show [register] button.
    if ($context['user']['is_guest'])
        echo '<li><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';

    // the [marketing] list button
        echo '<li><a href="', $scripturl, '?action=page;id=1">' , Marketing , '</a></li>';

    // Otherwise, they might want to [logout]...
    if ($context['user']['is_logged'])
        echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';

    echo '</ul>';

    // the [radio] list button
        echo '<img border="0" src="http://www.piksla.com/radioo.png">';
    
    // the [winamp] list button
        echo '<a href="http://www.piksla.com/piksla.m3u"><img border="0" src="http://www.piksla.com/winamp.png"></a>';

    // the [winamp] list button
        echo '<a href="http://www.piksla.com/piksla.asx"><img border="0" src="http://www.piksla.com/media_player.png"></a>';

    }



Ako neko ima neko resenje kak da izvedem ovo bio bih mu veoma zahvalan.
 
Odgovor na temu

Aleksandar Ružičić
Software Architect, Appricot d.o.o.
Beograd

Član broj: 26939
Poruke: 2881

Jabber: krckoorascic@gmail.com
Sajt: krcko.net


+44 Profil

icon Re: Problem sa postavljanjem slicica..31.10.2008. u 13:44 - pre 189 meseci
pa pokusaj prvo da stavis linkove unutar <li>, ako to ne radi onda okaci css pa da vidimo, sam html ne znaci mnogo...
 
Odgovor na temu

kecraj
SVIP
BG

Član broj: 193888
Poruke: 8
79.101.219.*



Profil

icon Re: Problem sa postavljanjem slicica..31.10.2008. u 13:52 - pre 189 meseci
Probo sam i to, ali se onda dobije ovako nesto:



Em sto kad stavim kursor iznad one pocrne, em su mi ikone za winamp i media, player otisle nkako dole... E sad ovo sto pocrni je normalno za ostatak menija jer je tako olaksano snalazenje, ali mi to za ove tri slicice ne treba

ovo su linkovi do css-a:
href="http://www.piksla.com/Themes/r...etgazette/css/template_css.css

ima i za moju boju teme:
http://www.piksla.com/Themes/r...rnetgazette/css/dark_color.css
 
Odgovor na temu

Aleksandar Ružičić
Software Architect, Appricot d.o.o.
Beograd

Član broj: 26939
Poruke: 2881

Jabber: krckoorascic@gmail.com
Sajt: krcko.net


+44 Profil

icon Re: Problem sa postavljanjem slicica..31.10.2008. u 16:31 - pre 189 meseci
dodaj tim ikonicama neku klasu i stavi im float:left i neki margin/padding ako bude potrebno (a bice)...
 
Odgovor na temu

kecraj
SVIP
BG

Član broj: 193888
Poruke: 8
79.101.219.*



Profil

icon Re: Problem sa postavljanjem slicica..31.10.2008. u 17:18 - pre 189 meseci
problem je u tome sto sta god da im dodam pojavljuje se greska u parsiranju.

Code:
Template Parse Error!
There was a problem loading the /Themes/rt_smf_internetgazette/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme. 
syntax error, unexpected '<'


bas sam se ubio u pojam sa time...
 
Odgovor na temu

vatri
Banja Luka, RS

Član broj: 68697
Poruke: 1006
*.broadband.blic.net.



+18 Profil

icon Re: Problem sa postavljanjem slicica..31.10.2008. u 21:50 - pre 189 meseci
Ovako na brzinu, nisam puno gledao:

probaj definisati stil za taj link koji je nad slikom ili za samu sliku:
Code:

<a(img) style="padding:0px;margin:0px;float:left">

naravno neces staviti a(img) nego a ili img
 
Odgovor na temu

[es] :: Web dizajn i CSS :: Problem sa postavljanjem slicica..

[ Pregleda: 2201 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.