Advertisement:

Author Topic: Trikovi za poboljsanje vaseg foruma  (Read 97989 times)

Offline Tixy

  • Newbie
  • *
  • Posts: 2
Re: Trikovi za poboljsanje vaseg foruma
« Reply #80 on: December 17, 2009, 01:17:28 PM »
Eeee, hvala vam puno za ovo! Meni, mamlazu, treba 'vako nacrtati da bih uspela d' uradim kako valja!

Divni ste!

Offline Dvar[Kanjac-Bo]

  • Newbie
  • *
  • Posts: 7
Re: Trikovi za poboljsanje vaseg foruma
« Reply #81 on: January 05, 2010, 10:00:40 AM »
Ovo mi je puno pomoglo  ;) ;)

Hvala

Offline DRAZEN92

  • Newbie
  • *
  • Posts: 2
Re: Trikovi za poboljsanje vaseg foruma
« Reply #82 on: January 18, 2010, 04:21:33 PM »
Kada kazes da dodamo kod u index. bla bla   Gde je taj index??? 

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,616
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Trikovi za poboljsanje vaseg foruma
« Reply #83 on: January 18, 2010, 04:46:12 PM »
Ako misliš na index.template.php onda u direktorijumu teme koju koristiš.

Offline DRAZEN92

  • Newbie
  • *
  • Posts: 2
Re: Trikovi za poboljsanje vaseg foruma
« Reply #84 on: January 19, 2010, 08:40:52 AM »
Da na to mislim...
A moj problem je ovaj:

Jedan drug je napravio forum i to sve i meni je dao head admina znaci imam pristup svemu...  i zelim malo da doradim forum da stavim onaj padajuci meni i tako to... Ali neznam gde da ukucam te kodove i to...
Hvala na odgovoru

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,616
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Trikovi za poboljsanje vaseg foruma
« Reply #85 on: January 19, 2010, 01:06:35 PM »
Sve piše u prvom postu teme. Od fajlova koji se edituju, do kodova i detaljnog upustva. Detaljnije nije moglo :D
Pročitaj, biće ti jasno.

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,616
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Trikovi za poboljsanje vaseg foruma
« Reply #86 on: May 04, 2010, 01:41:50 PM »
Ubacivanje zastave države iz koje dolazi poster (na osnovu IP adrese)

Ispod avatara će se pojaviti zastava države iz koje dolazi korisnik koji je ostavio post.


Podaci se vuku sa api.hostip.info.

Otvorite Themes/default/Display.template.php
Nađite:
Code: [Select]
         // Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo '
                        <li class="avatar" style="overflow: auto;">
                           <a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
                              ', $message['member']['avatar']['image'], '
                           </a>
                        </li>';
(kod može biti drugačiji, ali bitno je da postavite posle avatara ili već gde god želite da se zastava prikaže.)

Posle dodajte:
Code: [Select]
                        //Show Country
                        echo'
                        <img src="http://api.hostip.info/flag.php?ip=' . $message['member']['ip'] . '"></a><br />';

Napomene:
- Zastave će se pojaviti za korisnike koji postuju posle ubacivanja koda, znači za postove od ranije zastava neće biti prikazana.
- Dimenzije zastave možete smanjiti i prilagoditi potrebama pošto su po defaultu 108x54 px.
- Ukoliko koristite previše zahteva prema api.hostingip serveru, najverovatnije će zatražiti da koristitie db unose za ovakve slučajeve.

Offline Skipper.

  • SMF Hero
  • ******
  • Posts: 2,433
  • Gender: Male
  • Ako si nekom pomogao spremi se da trpiš posledice.
    • FMBalkan on Facebook
    • @FM_Balkan on Twitter
    • FM-Balkan
Re: Trikovi za poboljsanje vaseg foruma
« Reply #87 on: May 25, 2010, 05:10:58 PM »
Automatski backup foruma
  • Drugi Korak
Cron Jobs
MySQL Backup


Cron jobs mozete naci u cPanelu hosta koji koristite. Kliknite na cron jobs zatim na advanced (unix style).

Sada trebate napraviti novi "cron job", a za nasu skriptu to bi trebalo biti ovako:
Code: [Select]
minute : 00
hour : 01
day : *
month : *
weekday : *
command : /home/username/daily.sh

Ova skripta govori vreme kada se radi backup, u ovom primeru jednom dnevno, a to mozete promeniti prema svojim potrebama.
Samo pazite da se fajlovi ne nagomilaju, tako da preporucujem da povremeno ispraznite database direktorijum, tj da izbrisete stare backupove...

Pokušao sam ovo da uradim međutim ne mogu da pronađem cron jobs nigde  :(
      

It's very simple. Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and—as it always has—rock crushes scissors.

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,616
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Trikovi za poboljsanje vaseg foruma
« Reply #88 on: May 25, 2010, 05:55:15 PM »
Trebao bi to imati u cpanelu hosta, ako nemaš kontaktiraj host i vidi sa njima postoji li ta opcija i mogu li ti je uključiti.

Offline Skipper.

  • SMF Hero
  • ******
  • Posts: 2,433
  • Gender: Male
  • Ako si nekom pomogao spremi se da trpiš posledice.
    • FMBalkan on Facebook
    • @FM_Balkan on Twitter
    • FM-Balkan
Re: Trikovi za poboljsanje vaseg foruma
« Reply #89 on: May 26, 2010, 02:33:41 PM »
Kontaktirao host i odgovorili mi da ne mogu pokretati shell skripte. Jbga >:(
      

It's very simple. Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and—as it always has—rock crushes scissors.

Offline CaSiNo RoYaLe

  • SMF Hero
  • ******
  • Posts: 1,472
  • Gender: Male
  • vBulletin < SMF
Re: Trikovi za poboljsanje vaseg foruma
« Reply #90 on: June 01, 2010, 03:02:27 PM »
Zabrana kopiranja teksta s vašeg foruma!
-S ovime možete zabraniti korisnicima desni klik miša na vašem forumu!

U index.template.php nađite:
Code: [Select]
<body>
i zamijenite sa:

Code: [Select]
<body onContextMenu="return false;">

Nisam siguran da mi možemo vamo stavljati trikove,ako ne smijemo,moderator nek izbriše ;)
« Last Edit: June 01, 2010, 03:12:30 PM by CaSiNoO »

Offline ▓▒RapidBelgrade▒▓

  • SMF Hero
  • ******
  • Posts: 1,716
  • Gender: Male
  • The GOD is bussy.............. may I help you.. ?
    • RapidBelgrade™
Re: Trikovi za poboljsanje vaseg foruma
« Reply #91 on: June 01, 2010, 03:25:36 PM »
a sto to ne stavis kod tebe kad je dobro?

drugim recima to ne radi !!!


My working day begins with awakening drink coffee and then steal all day...

Offline CaSiNo RoYaLe

  • SMF Hero
  • ******
  • Posts: 1,472
  • Gender: Male
  • vBulletin < SMF
Re: Trikovi za poboljsanje vaseg foruma
« Reply #92 on: June 01, 2010, 03:32:34 PM »
stavio sam pa sam makao
i to radi provjerio sam kod sebe,ponavljam PA SAM MAKAO

Offline ▓▒RapidBelgrade▒▓

  • SMF Hero
  • ******
  • Posts: 1,716
  • Gender: Male
  • The GOD is bussy.............. may I help you.. ?
    • RapidBelgrade™
Re: Trikovi za poboljsanje vaseg foruma
« Reply #93 on: June 01, 2010, 03:37:31 PM »
hehehe   a sto si makao?  pa reci ljudima da i kad se to stavi uvek moze da se kopira sa "ctrl C"

salim se ja malo al video sam ja odavno da je to glupost


My working day begins with awakening drink coffee and then steal all day...

Offline CaSiNo RoYaLe

  • SMF Hero
  • ******
  • Posts: 1,472
  • Gender: Male
  • vBulletin < SMF
Re: Trikovi za poboljsanje vaseg foruma
« Reply #94 on: June 01, 2010, 03:41:29 PM »
hahaha ma znam ali ne znaju svi za te kratice :P

Offline Bob Marley

  • Full Member
  • ***
  • Posts: 677
  • Gender: Male
  • n008
    • KSFB
Re: Trikovi za poboljsanje vaseg foruma
« Reply #95 on: June 01, 2010, 04:24:39 PM »
Omsh.... Ctrl+C i Ctrl+V je nesto krajnje osnovno, da bi zapravo zabranio koriscenje teksta trebas da nadjes nesto sto ce zapravo da zabrani selektovanje teskta. Ali opet na kraju ako se neko toliko okomio na odredjeni sadrzaj uradice print screen stranice, pa ce iskoristi jedan od mnogih programa koji izvlace tekst iz slika :P Tako da zapravo svi pokusaji su uzaludni :)

Offline nirre

  • Jr. Member
  • **
  • Posts: 168
  • Gender: Male
    • Savez studenata farmacije
Re: Trikovi za poboljsanje vaseg foruma
« Reply #96 on: June 01, 2010, 04:30:19 PM »
Ili jednostavno iskljucis JAVASCRIPT i kopiras sve do mile volje

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,887
  • Gender: Male
  • Sapienti satis.
Re: Trikovi za poboljsanje vaseg foruma
« Reply #97 on: June 02, 2010, 05:26:19 AM »
Da ne otvaram novu temu. Samo jedno pitanje. Je li trik s who.php radi i na SMF- u 2?
My Mods

Sugested that too. Hey ho. I'd link you to the original discussion but it's not visible to most people (seekrit team board stuff that is more dangerous than wikileaks).


Don't PM me for support! Use the appropriate support board!

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,616
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Trikovi za poboljsanje vaseg foruma
« Reply #98 on: June 08, 2010, 04:33:31 PM »
Mastered, mislim da radi samo na 1.1.x, ali probaj na 2.0, samo sačuvaj svoj who. template da možeš posle da ga vratiš.

CaSiNoO, hvala na doprinosu. Naravno svi mogu staviti ovde svoje izmene, trikove ili štagod...


Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,887
  • Gender: Male
  • Sapienti satis.
Re: Trikovi za poboljsanje vaseg foruma
« Reply #99 on: June 09, 2010, 04:30:39 AM »
                       
OKVIR OKO POST PROFILA

Ovo je već star trik, ali koliko vidim mnogi ljudi ga još uvijek ne znaju.

SMF 1.1.x

Prvo otvorite style.css i dodajte ovo:

Code: [Select]
.memdetails {
    padding-top: 3px;
    padding-right: 0px;
    padding-bottom: 3px;
    padding-left: 3px;
    margin: 3px 0px 3px 3px;
    background-color: #fafcfe;
    border-top: 1px solid #686868 ;
    border-right: 1px solid #686868 ;
    border-left: 1px solid #686868 ;
    border-bottom: 1px solid #686868;
}

Otvorite Display.template.php i napravite sljedeće:




Nađite   

Code: [Select]
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';

Zamijenite

Code: [Select]
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<div class="memdetails"><b>', $message['member']['link'], '</b></div>
<div class="smalltext">';



Nađite

Code: [Select]
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';

Zamijenite

Code: [Select]
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
<div class="memdetails">', $message['member']['title'], '</div>';



Nađite

Code: [Select]
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';


Zamijenite

Code: [Select]
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
<div class="memdetails">', $message['member']['group'], '</div>';



Nađite

Code: [Select]
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';

Zamijenite

Code: [Select]
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<div class="memdetails">', $message['member']['post_group'], '</div>';
echo '
<div class="memdetails">', $message['member']['group_stars'], '</div>';



Nađite

Code: [Select]
// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

Zamijenite

Code: [Select]
// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '

<div class="memdetails">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</div>';
elseif ($modSettings['karmaMode'] == '2')
echo '

<div class="memdetails">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</div>';



Nađite

Code: [Select]
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" align="middle" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';

Zamijenite

Code: [Select]

// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
<div class="memdetails">', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" align="middle" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /></div>';


Nađite

Code: [Select]
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';

Zamijenite

Code: [Select]
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
<div class="memdetails">', $txt[231], ': ', $message['member']['gender']['image'], '</div>';



Nađite

Code: [Select]
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';

Zamijenite

Code: [Select]
// Show how many posts they have made.
echo '
<div class="memdetails">', $txt[26], ': ', $message['member']['posts'], '</div>';



Nađite

Code: [Select]
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';

Zamijenite

Code: [Select]
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div class="memdetails"><div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div></div>';



Nađite

Code: [Select]
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';

Zamijenite
Code: [Select]
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<div class="memdetails">', $message['member']['blurb'], '</div>';



Nađite

Code: [Select]
// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '<br />';

// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';


Zamijenite

Code: [Select]
// This shows the popular messaging icons.
echo '
<div class="memdetails">', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '';

// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a></div>';



SMF 2

Otvorite index.css i dodajte ovo:
Code: [Select]
.memdetails {
    padding-top: 3px;
    padding-right: 0px;
    padding-bottom: 3px;
    padding-left: 3px;
    margin: 3px 0px 3px 3px;
    background-color: #fafcfe;
    border-top: 1px solid #686868 ;
    border-right: 1px solid #686868 ;
    border-left: 1px solid #686868 ;
    border-bottom: 1px solid #686868;
}

Zatim u istom CSS fileu napravite sljedeće izmjene:

Nađite
 
Code: [Select]
#quickReplyOptions #warning
{
   border: none;
   text-align: left;
   margin: 0;
   width: 25%;
}

Dodajte nakon toga

Code: [Select]
li.margintop {
    border: solid 1px #454F4F;
   margin-top: 0px;
   margin-bottom: 4px;
   padding-top: 4px;
}

.poster h4 {
    border: solid 1px #454F4F;
   margin-bottom: 4px;
}

.poster li {
    text-align: center;
    border: solid 1px #454F4F;
   margin-bottom: 4px;
}

.poster .nolist li {
    text-align: center;
    border: none;
}

Širinu možete namjestiti ovdje:

Code: [Select]
.poster {   
    width: 15%;
}

.postarea
{
   margin-left: 15%;
}

Rezultat:



Ako želite da Vam okviri budu zaobljeni dodajte ovo u style/index.css:

Code: [Select]
-moz-border-radius:5px;
-webkit-border-radius:5px;

Zaobljeni okviri ne rade na IE- u!
« Last Edit: January 30, 2011, 04:55:53 AM by Masterd »
My Mods

Sugested that too. Hey ho. I'd link you to the original discussion but it's not visible to most people (seekrit team board stuff that is more dangerous than wikileaks).


Don't PM me for support! Use the appropriate support board!