Simple Machines Community Forum

SMF Support => Bosanski/Hrvatski/Srpski (Bosnian/Croatian/Serbian) => Language Specific Support => Teme i Grafika => Topic started by: Milos 23 on February 28, 2007, 04:11:52 AM

Title: Slike pored topica
Post by: Milos 23 on February 28, 2007, 04:11:52 AM
Imam jedno pitanje : Zelim da pored svakog topica napravim razlicitu sliku. Kako to mogu da uradim ?

Evo zelim uraditi nesto slicno kao na ovoj slici samo sa razlicitim slikama

http://img2.imagetitan.com/img.php?image=1_newadobephotoshopimage.jpg
Title: Re: Slike pored topica
Post by: Robi052 on February 28, 2007, 11:34:51 AM
http://custom.simplemachines.org/mods/index.php?mod=511
Title: Re: Slike pored topica
Post by: MarkoWeb on February 28, 2007, 11:45:17 AM
Samo to sto ja koristim je modifikovana verzija tog mod-a ;)
Title: Re: Slike pored topica
Post by: DavaMO on November 06, 2007, 07:21:40 AM
a kako ga install? :S
Title: Re: Slike pored topica
Post by: DavaMO on November 07, 2007, 09:10:40 AM
meni ovaj mod ne radi... nikako mi ga nema medju modovima...
ima li neki drugi eventualno da mogu istu stvar napravit
Title: Re: Slike pored topica
Post by: dioda on November 07, 2007, 09:30:40 AM
Izaberi u admin panelu u podesavanjima servera engleski pa ce se mozda pojaviti...
Title: Re: Slike pored topica
Post by: DavaMO on November 07, 2007, 09:42:11 AM
ne pomaze...
vec sam odustao od njega...
evo nasao samneki drugi, al i sa njim imam problema...

Boardicon1.1.2

dobijem pri inastalcijji gresku na

1.     Primjeni     ./Themes/default/BoardIndex.template.php     Neuspješno
2.    Primjeni    ./Themes/default/MessageIndex.template.php    Neuspješno
10.     Primjeni     ./Themes/default/languages/index.turkish.php     Neuspješno

ta tri... kopiro sam hrvatski preimenovo u turkish i ne prijavljuje ovo zadnje, neznam kolko je to pametno al eto.. htio sam probat jel do toga... :D

inace ova dva prva sam postavio na 777 dozvole, al i dalje ista greska? :(
Title: Re: Slike pored topica
Post by: DavaMO on November 07, 2007, 05:15:35 PM
hmmm evo jos jedno pitanje

probo sam i pjeske uradit to...

znaci, naso sam

BoardIndex.template.php i u njemu naso

// If the board is new, show a strong indicator.

if ($board['new'])

echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';

// This board doesn't have new posts, but its children do.

elseif ($board['children_new'])

echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';

// No new posts at all! The agony!!

else

echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';




i zamjenio sa:

      // If the board is new, show a strong indicator.

                if ($board['new'])

echo '<img src="', $settings['images_url'], '/onoff/new' , $board['1'] ,'1_on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
echo '<img src="', $settings['images_url'], '/onoff/new' , $board['2'] ,'2_on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
echo '<img src="', $settings['images_url'], '/onoff/new' , $board['3'] ,'3_on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';


// This board doesn't have new posts, but its children do.

elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/onoff/child' , $board['1'] ,'1_on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
echo '<img src="', $settings['images_url'], '/onoff/child' , $board['2'] ,'2_on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
echo '<img src="', $settings['images_url'], '/onoff/child' , $board['3'] ,'3_on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';

// No new posts at all!  The agony!!

else
echo '<img src="', $settings['images_url'], '/onoff/old' , $board['1'] ,'1_off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
echo '<img src="', $settings['images_url'], '/onoff/old' , $board['2'] ,'2_off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
echo '<img src="', $settings['images_url'], '/onoff/old' , $board['3'] ,'3_off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';


                        }


kako je naveo ALM OVDJE (http://www.simplemachines.org/community/index.php?topic=180704.0) ali kad pregazim stari BoardIndex.template.php dobijem gresku tipa:

Parse Error predloška!

Problem u učitavanju /Themes/default/BoardIndex.template.php predloška ili jezične datoteke. Provjerite sintaksu i pokušajte ponovno - zapamtite, jednostavni navodnici (') često moraju biti odvojeni sa kosom crtom (\). Da bi ste pogledali informacije o određenoj PHP pogreški, pokušajte pristupiti datoteci direktno.

Možete i probati osviježiti / refresh ovu stranicu ili koristite standardni predložak.

syntax error, unexpected T_ELSEIF

e sad pitanje... GDJE GRIJESIM?!  :-\ :-\
Title: Re: Slike pored topica
Post by: DavaMO on November 09, 2007, 08:24:32 PM
rjesio sam problemcic ;)

ok..

uspio sam... napokon...

u BoardIndex.template.php


// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';



zamjenio sa


// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/boards/' , $board['id'] , 'on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/boards/' , $board['id'] , 'on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/boards/' , $board['id'] , 'off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';


i onda slike upload u folder boards sa imenima 1on.gif 1on2.gif 1off.gif za svaki board dajuci broj slici ;)

www.forum.monitor.ba ;)
Title: Re: Slike pored topica
Post by: bgreda on August 25, 2008, 04:50:55 AM
Ja sam ro riješio htmk kodom u rubrici gdje se upisuje opis topica.Naravno sličicu trba negdje hostovati a to nije problem.Preporuka uzeti slicice ili ikone veličine 32x32 a toga ima more.Pozdrav
Primjer www.modran.com/smf (http://www.modran.com/smf)