Advertisement:

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

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Trikovi za poboljsanje vaseg foruma
« on: May 31, 2009, 08:54:29 AM »
:: Trikovi za poboljsanje vaseg foruma ::
- Tema ce biti dopunjavana -
Napomena: Trikovi su prevedeni sa drugih jezika i prilagodjeni novijim verzijama foruma, i nisu napravljeni od strane autora postova.
Slicna Tema: Zastita vaseg smf foruma.

Lista saveta u temi:

Povecajte brzinu ucitavanja statistike foruma.
Stvari koje mozete uraditi da bi vas forum radio brze.
Kako napraviti Padajuci meni za smf 1.1.x ?
Kako da korisnik kome je rodjendan automatski dobija cestitku?
Kako ukloniti slicice iz potpisa korisnicima?
Kako saznati odakle ( sa kojih sajtova) dolaze vasi posetioci?
Kako dodati favicon ikonicu?
Vreme Online u profilu.
Pracenje Aktivnosti korisnika
Kako dodati "Go to page" ili "Skoci na stranu" dugme?
Administratori nemaju ogranicenja za Attachmente...
Tinypic Image Upload Pop-up prozor prilikom postovanja slika.
Redirektovanje Banovanih clanova na odredjenu stranicu.
Who.template.php - Odvojena lista za korisnike, goste i spidere...
Velike sesije na Debian / Ubuntu Linux serverima.
Automatski backup foruma
Loadscreen
Unapred ispisan text u postu.
Koriscenje Pretrage pre postavljanja nove teme
Kako postaviti sliku u opis foruma/podforuma ?
Rotirajuci text oko kursora
Pol: Text umesto slicice
Go to page - Biranje stranice
Mesecno prikazivanje slike u kalendaru
Vreme + Datum Online Brisanje
Efekat snega na forumu
DnP Firewall za SMF
Alternativni izgledi citata (2.x verzije)
Hot ikonice za "hot" teme
Pravljenje Socijalne Zajednice
SMF Facebook LIKE dugme
Backup i Restore baze podataka
Zabrana kopiranja teksta
Kalendar na Simple Portalu
Aktivne teme Smf 2.0 RC 2 + oglasi
Kako ubaciti Google Analytics kod?
Slike bez img taga
Dužina naslova teme
Iskoristite maksimum SMF-a :: XML, RSS i RSS2 Feed
Automatski kodiraj linkove


Takodje pogledajte:
Sakrivanje e-maila pri registraciji


Povecajte brzinu ucitavanja statistike foruma.
na ovaj nacin mozete umnogo povecati brzinu ucitavanja strane sa statistikama na vasem forumu .
(koja se inace, ako ste primetili, ucitava sporije nego ostale strane)

Udjite u phpMyAdmin i postavite "index" na sledece linije:
- u tabeli smf_members  > gender i totalTimeLoggedIn
- U tabeli smf_topics > numReplies i ID_MEMBER_STARTED


Stvari koje mozete uraditi da bi vas forum radio brze.

1. Pokrecite "mark read for inactive users" skriptu periodicno, kako bi rasteretili bazu podataka.

2. Iskljucite poslednje postove na pocetnoj strani foruma.

3. Iskljucite kalentar. Pri svakom ucitavanju foruma smf pretrazuje kalentar (event) i time usporava rad vaseg foruma.

4. Nemojte koristiti "post moderation" ukoliko imate veci broj postova dnevno.

5. Iskljucite hostname lookups.

6. Izbrisite neaktivne korisnike. Neaktivni korisnici zauzimaju mesto u bazi podataka, i time opterecuju server. Brisanje neaktivnih clanova mozete uraditi sa ovim modom. Link

7. Smanjite broj podforuma na svom forumu. Svaki novi podforum dodatno opterecuje vasu bazu i povecava vreme potrebno za ucitavanje stranice foruma.Nagomilavaju se podaci u  log_boards and log_mark_read tabelama u bazi, i sa svakim registrovanim korisnikom, vas forum je sve optereceniji.

8. Koristite bazu iskljucivo za smf! Ukoliko na hostu imate instalirane jos neke CMS sisteme, portale, forume za njih napravite posebne baze, a smf bazu neka koristi samo smf forum.

9. Ukoliko vam je ukljucen search ili pretraga, podesite dozvole za pretrazivanje foruma za odredjene grupe clanova. Podesite i vreme izmedju pretraga, kao i broj karaktera pri pretrazivanju.

10. Obezbedite forum protiv spamera. Zastitite vas smf forum!





Kako napraviti Padajuci meni za smf 1.1.x ?



Testirano i radi na: IE6, IE7, Firefox, Opera, Safari, Google Chrome


index.template.php

Nadjite:
Code: [Select]
</head>
<body>';
Zamenite sa:
Code: [Select]
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/ddlevelsfiles/ddlevelsmenu-base.css" />
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/ddlevelsfiles/ddlevelsmenu-topbar.css" />
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/ddlevelsfiles/ddlevelsmenu-sidebar.css" />
   <script language="JavaScript" type="text/javascript" src="', $settings['theme_url'], '/ddlevelsfiles/ddlevelsmenu.js"></script>';

/***********************************************
* All Levels Navigational Menu- (c) Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

echo '
</head>
<body>';

Nadjite:
Code: [Select]
    </table>
   </div>';


   // Show the menu here, according to the menu sub template.
   template_menu();

Zamenite sa:
   
Code: [Select]
  </table>';

   // Show the menu here, according to the menu sub template.
   template_menu();

   echo '</div>';

Nadjite:
 
Code: [Select]
  // Show the start of the tab section.
   echo '
         <table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
            <tr>
               <td class="maintab_' , $first , '">&nbsp;</td>';

   // Show the [home] button.
   echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '">' , $txt[103] , '</a>
            </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Show the [help] button.
   echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
            </td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // How about the [search] button?
   if ($context['allow_search'])
      echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
            </td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
            </td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
            </td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
            </td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // The [calendar]!
   if ($context['allow_calendar'])
      echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // the [member] list button
   if ($context['allow_memberlist'])
      echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
            </td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
      echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
            </td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
      echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
            </td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
      echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
            </td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // The end of tab section.
   echo '
            <td class="maintab_' , $last , '">&nbsp;</td>
         </tr>
      </table>';

Zamenite sa:
Code: [Select]
echo '
<div id="ddtopmenubar" class="mattblackmenu">
<ul>';

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

   // Show the [help] button.
   echo '<li', $current_action == 'help' ? ' class="current_page"' : '', '> <a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';

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

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

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

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

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

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

   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
   echo '<li', $current_action == 'login' ? ' class="current_page"' : '', '><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', $current_action == 'register' ? ' class="current_page"' : '', '><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';


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




echo '
</ul>
</div>

<script type="text/javascript">
ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
</script>

<!--HTML for the Drop Down Menus associated with Top Menu Bar-->
<!--They should be inserted OUTSIDE any element other than the BODY tag itself-->
<!--A good location would be the end of the page (right above "</BODY>")-->';

echo '
<!--Top Drop Down Menu 1 HTML-->
<ul id="ddsubmenu1" class="ddsubmenustyle">
<li><a href="', $scripturl, '?action=profile">' , $txt['hcm_summary'] , '</a></li>
<li><a href="', $scripturl, '?action=profile;sa=account">' , $txt['hcm_account'] , '</a></li>
<li><a href="', $scripturl, '?action=profile;sa=forumProfile">' , $txt['hcm_forumProfile'] , '</a></li>
</ul>';

echo '
<!--Top Drop Down Menu 2 HTML-->
<ul id="ddsubmenu2" class="ddsubmenustyle">
<li><a href="', $scripturl, '?action=pm">' , $txt['hcm_readmessages'] , '</a></li>
<li><a href="', $scripturl, '?action=pm;sa=send">' , $txt['hcm_sendmessage'] , '</a></li>
</ul>';

echo '
<!--Top Drop Down Menu 3 HTML-->
<ul id="ddsubmenu3" class="ddsubmenustyle">
<li><a href="', $scripturl, '?action=mlist">' , $txt['hcm_viewmembers'] , '</a></li>
<li><a href="', $scripturl, '?action=mlist;sa=search">' , $txt['hcm_searchmembers'] , '</a></li>
</ul>';


Modifications.english.php

nadjite:
Code: [Select]
?>
Dodati pre:
Code: [Select]
$txt['hcm_summary'] = 'Summary';
$txt['hcm_account'] = 'Account Settings';
$txt['hcm_forumProfile'] = 'Forum Profile';
$txt['hcm_readmessages'] = 'Read Your Messages';
$txt['hcm_sendmessage'] = 'Send A Message';
$txt['hcm_viewmembers'] = 'View The Memberlist';
$txt['hcm_searchmembers'] = 'Search For Members';

Dodajte fajl koji je prikacen uz poruku u direktorijum vase teme.
Primer: www.sajt/forum/Themes/default/ddlevelsfiles

Otvorite ddlevelsmenu.js i nadjite:

   
Code: [Select]
downarrowpointer: ["http://www.sitename.com/forum/Themes/default/images/sort_down.gif", 12,12], //path to "down arrow" image that gets added to main menu items (last 2 parameters should be width/height of img)
    rightarrowpointer: ["http://www.sitename.com/forum/Themes/default/images/selected.gif", 12,12], //path to "right arrow" image that gets added to LI elements within drop down menu containing additional menus

Promenite www.sitename.com sa domenom vaseg foruma.,,
« Last Edit: January 05, 2011, 03:36:28 PM by Dzonny »

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • 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 #1 on: May 31, 2009, 09:33:33 AM »
Kako da korisnik kome je rodjendan automatski dobija cestitku?

Load.php
Nadjite;
Code: [Select]
$user_info['groups'] = array_unique($user_info['groups']);Dodati posle:
Code: [Select]
if (isset($user_settings['birthdate']))
   {
      $cur_date = getdate(forum_time());
      $user_info['today_is_birthday'] = $cur_date['mon'] == substr($user_settings['birthdate'], 5, 2) && $cur_date['mday'] == substr($user_settings['birthdate'], 8);
   }

nadjite:
Code: [Select]
'email' => &$user_info['email']Zamenite sa:
Code: [Select]
      'email' => &$user_info['email'],
      'today_is_birthday' => &$user_info['today_is_birthday'],


Index,template.php
Nadjite;
Code: [Select]
  echo '
                     ', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';
Zamenite sa:
Code: [Select]
  if ($context['user']['today_is_birthday'])
         echo '
                     CONGRATULATIONS <b>', $context['user']['name'], '</b>, have a <img src="', $settings['images_url'], '/bdaycake.gif" width="40" alt="" />';
      else
         echo '
                     ', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';



Kako ukloniti slicice iz potpisa korisnicima?

Style,css
Dodajte klasu:
Code: [Select]
.signature img
{
   display: none;
}

Posle ovoga ocististe kes u browseru i slicice se nece pokazivati... :)
Napomena: Korisnik dobija čestitku posle prijave na forum, ne na mejl ili na neki drugi način.
« Last Edit: May 29, 2010, 11:44:45 AM by Dzonny »

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • 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 #2 on: May 31, 2009, 09:40:56 AM »
Kako saznati odakle ( sa kojih sajtova) dolaze vasi posetioci?

Index,tempalte.php
Bilo gde u body tagu staviti:
Code: [Select]
/* Getting the referrer information and saving it to text file */
$referrer=strtolower(getenv('HTTP_REFERER'));
$agent=strtolower($_SERVER['HTTP_USER_AGENT']);
if (empty($referrer) || ereg("slurp", $agent) || ereg("bot", $agent) || ereg("spider", $agent) || ereg("crawler", $agent) || ereg("http://www.nesto.com/", $referrer)) {
}
else{
$message = "\n\nReferrer : " . getenv('HTTP_REFERER') . "\nUser Agent : ". strtolower($_SERVER['HTTP_USER_AGENT']) . "\nIP Address : http://whois.domaintools.com/" . getenv('REMOTE_ADDR') . "\nDate and Time : " . date("l dS F Y h:i:s A"). "\n";
$fp=fopen("referrer.txt", 'a' );
fwrite($fp, $message);
fclose($fp);
}
/* End of referrer information retrieval code */
nesto.com promenite sa vasim domenom, a referrer.txt mozete promeniti (ali nemorate) u zavisnosti od toga kako hocete da vam se zove fajl u koji ce se podaci upisivati...

Napravite fajl referrer.txt (ili kako ste vec upisali u gornjem kodu) i sacuvajte ga u root vaseg foruma.
Informacije o korisnicima mozete videti kada ukucate adresu tog fajla npr, http://www.sajt.com/referrer.txt
Podatke iz tog fajla mozete izbrisati rucno s' vremena na vreme da vam se ne bi upisivali nepotrebni podaci...


Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • 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 #3 on: May 31, 2009, 09:51:20 AM »
Kako dodati favicon ikonicu?



Index,template.php
Code: [Select]
<title>', $context['page_title'], '</title>';Zamenite sa:
Code: [Select]
<title>', $context['page_title'], '</title>';

echo '<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />';
echo '<link rel="icon" href="/favicon.ico" type="image/x-icon" />';

Napravite ikonicu favicon.ico. Ikonica mora biti formata 16 x 16 i upoadujte se u root vaseg sajta / foruma.


Drugi nacin
Favicon Mod
Add favicon support






Vreme Online u profilu.

 Otvorite: Profile.template.php
Nadjite:
Code: [Select]
   // If the person looking is an admin they can check the members IP address and hostname.
   if ($user_info['is_admin'])
   {
      echo '
            <tr>
               <td width="40%">
                  <b>', $txt[512], ': </b>
               </td><td>
                  <a href="', $scripturl, '?action=trackip;searchip=', $context['member']['ip'], '" target="_blank">', $context['member']['ip'], '</a>
               </td>
            </tr><tr>
               <td width="40%">
                  <b>', $txt['hostname'], ': </b>
               </td><td width="55%">
                  <div title="', $context['member']['hostname'], '" style="width: 100%; overflow: hidden; font-style: italic;">', $context['member']['hostname'], '</div>
               </td>
            </tr>

Zameniti sa:
Code: [Select]
   // If the person looking is an admin they can check the members IP address and hostname.
   if ($user_info['is_admin'])
   {
      echo '
            <tr>
               <td width="40%" align="right">
                  <b>', $txt[512], ': </b>
               </td><td>
                  <a href="', $scripturl, '?action=trackip;searchip=', $context['member']['ip'], '" target="_blank">', $context['member']['ip'], '</a>
               </td>
            </tr>';
   }
echo '
            <tr>
               <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
            </tr>
            <tr>
               <td align="right"><b>', $txt['statPanel_total_time_online'], ':</b></td>
               <td>', $context['member']['time_logged_in'], '</td>
            </tr>';

Add to Profile.english.php in language files:
Code: [Select]
$txt['statPanel_total_time_online'] = 'Total Time Spent Online';
« Last Edit: June 08, 2009, 03:28:38 PM by Dzonny »

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • 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 #4 on: May 31, 2009, 09:55:14 AM »
Pracenje Aktivnosti korisnika

Pomocu ove skripte mozete pratiti aktivnost svojih korisnika, na osnovu Imena, ID clana, ili nicka...
Jednostavno uploadujte fajl tracker.php u root foruma, i pokretanjem tog fajla dobicete informacije o odredjenom korisniku.


Re: Trikovi za poboljsanje vaseg foruma
« Reply #5 on: May 31, 2009, 03:12:57 PM »
Jebote dzonny..pa ti si stvarno car :) svaka ti cast na ovome..a hoce toga biti jos..? Tih "tutorijala"..? Nego htio sam te pitat..kako mislis ovo..

Kako saznati odakle ( sa kojih sajtova) dolaze vasi posetioci?

Ja bi si to stavio..ako se to moze podesit za drzave..i sorry ako ti spammam temu, ako smeta..neka marko obrise..nemam nista protiv.. Pozdrav :)

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • 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 #6 on: June 01, 2009, 05:09:54 AM »
Dodacu josh kad budem imao vremena, tako da ce tema biti dopunjavana...
Quote
Kako saznati odakle ( sa kojih sajtova) dolaze vasi posetioci?
Npr ako na sajtu bla.com ima link do tvog sajta, bice zabelezeno da je korisnik kliknuvsi na taj link dosao do tebe, ili korisnici koji dodju sa googla ili drugih pretrazivaca, reci za pretragu i slicno... :)
Moze biti korisno nekome...
A za drzave jedino da se prijavish na neki sajt koji prati statistike (ako ih vec nemash integrisane u hostu)

Offline Founder 2008

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • No limit.
    • ZvanicnaStranica.MojForum.net on Facebook
    • MojForum.net
Re: Trikovi za poboljsanje vaseg foruma
« Reply #7 on: June 01, 2009, 08:26:08 AM »
Ako ih ima u c-panelu tj na hostu i jos na google analytics-u mislim da je to sasvim dovoljno jer se i tamo azuriraju skoro sve statistike...

Offline Bob Marley

  • Full Member
  • ***
  • Posts: 677
  • Gender: Male
  • n008
    • KSFB
Re: Trikovi za poboljsanje vaseg foruma
« Reply #8 on: June 01, 2009, 09:15:35 AM »
Dzonny da li se "mark read for inactive users" pokazala kao sigurna skripta?

-Edit-

Moja nestrpljivost je jos jednom pobedila. Upravo sam upotrebio ovu skriptu i odradila je posao ODLICNO.
« Last Edit: June 01, 2009, 09:57:30 AM by Bob Marley »

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • 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 #9 on: June 01, 2009, 09:52:24 AM »
Da radi, odlicno kao sto si i sam primetio, i oslobadja dosta memorije... :)

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • 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 #10 on: June 01, 2009, 12:26:38 PM »
Kako dodati "Go to page" ili "Skoci na stranu" dugme?

Display.template.php

Nadjite:
Code: [Select]
function template_main()
{
        global $context, $settings, $options, $txt, $scripturl, $modSettings;

Dodajte posle:

 
Code: [Select]
      echo '
        <script type="text/javascript">
        <!--
                function jumptopage(box)
                {
                        jumpbox = document.getElementById("jumptopageinput"+box);
                        var reply = (jumpbox.value-1) * ', $modSettings['defaultMaxMessages'], ';
                        var page = "', $scripturl, '?topic=', $context['current_topic'], '." + reply;
                        window.location = page;
                }
        -->
        </script>';

Nadjite:
Code: [Select]
<b>', $txt[139], ':</b> ', $context['page_index];
Dodati posle:
       
Code: [Select]
echo ' Jump to Page <input type="text" id="jumptopageinput" name="jumptopageinput" size="4" /> <input type="button" onclick="jumptopage()" value="Go"/>';

Nadjite
Code: [Select]
<a name="bot"></a><b>', $txt[139], ':</b> ', $context['page_index],
Dodati posle:
Code: [Select]
'Jump to Page <input type="text" id="jumptopageinput2" name="jumptopageinput2" size="4" /> <input type="button" onclick="jumptopage(2)" value="Go"/>',

Offline NikolaSN

  • Semi-Newbie
  • *
  • Posts: 34
Re: Trikovi za poboljsanje vaseg foruma
« Reply #11 on: June 01, 2009, 05:30:21 PM »
Jako korisni trikovi Dzoony, nastavicu da pratim temu, jer je jako kvalitetno zapoceta. Samo tako nastavi!!!

pozdrav
 ;)

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • 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 #12 on: June 02, 2009, 04:55:33 AM »
Administratori nemaju ogranicenja za Attachmente...

Post.php
Nadjite:
Code: [Select]
if (!empty($modSettings['attachmentSizeLimit']) && $_FILES['attachment']['size'][$n] > $modSettings['attachmentSizeLimit'] * 1024)Zameniti sa:
Code: [Select]
if (!$user_info['is_admin'] && !empty($modSettings['attachmentSizeLimit']) && $_FILES['attachment']['size'][$n] > $modSettings['attachmentSizeLimit'] * 1024)




Tinypic Image Upload Pop-up prozor prilikom postovanja slika.

1. Preuzmite tinypic.html fajl dodat u ovoj poruci i uploadujte ga u root vaseg foruma.
2. Preuzmite uploadimage.gif slicicu i takodje je uploadujte u root foruma.


Otvorite /Themes/vasa tema/Post.template.php
Nadjite:
Code: [Select]
      echo '
            </td>
         </tr>';
   }

   // Now start printing all of the smileys.
   if (!empty($context['smileys']['postform']))
Dodajte pre:
Code: [Select]
echo '&nbsp;&nbsp;<a onclick="window.open(\'ADRESA HTML FAJLA OVDE\',\'POPUP\',\'width=280,height=540,scrollbars=0\');return false;" href="#"><img src="ADRESA UPLOADOVANE SLICICE OVDE" border="0"></a>';Promenite Adresu html fajla i slicice sa vasom adresom i to je to...

Screenshots:



http://i44.tinypic.com/2wp4cgk.gif
http://i39.tinypic.com/2dl273l.gif

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • 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 #13 on: June 04, 2009, 06:43:30 AM »
Redirektovanje Banovanih clanova na odredjenu stranicu.

/Sources/Security.php

Nadjite:
     
Code: [Select]
// You banned, sucka!
      fatal_error(sprintf($txt[430], $old_name) . $_SESSION['ban']['full_ban']['reason']);

Zamenite sa:
Code: [Select]
      // You banned, sucka!
      redirectexit('http://www.vasa_adresa.com/nesto.php', false);
      fatal_error(sprintf($txt[430], $old_name) . $_SESSION['ban']['full_ban']['reason']);





Who.template.php - Odvojena lista za korisnike, goste i spidere...

Trebalo bi raditi sa svim Custom temama...

Uploadujte prikacen fajl u direktorijum vase teme i uzivajte.

Ukoliko zelite da prevedete mozete uraditi sledece:
Prikaceni fajl naci:
Code: [Select]
        $brokendown = array (
                'Members' => array(),
                'Guests' => array(),
                'Spiders' => array(),
        );
Zameniti sa:
Code: [Select]
        $brokendown = array (
                'Korisnici' => array(),
                'Gosti' => array(),
                'Roboti' => array(),
        );

Nadjite:
Code: [Select]
                if ( $member['id'] != 0 )
                        $brokendown['Members'][] = &$context['members'][$key];
                else if ( $spider )
                        $brokendown['Spiders'][] = &$context['members'][$key];
                else
                        $brokendown['Guests'][] = &$context['members'][$key];

Zameniti sa:
Code: [Select]
                if ( $member['id'] != 0 )
                        $brokendown['Korisnici'][] = &$context['members'][$key];
                else if ( $spider )
                        $brokendown['Roboti'][] = &$context['members'][$key];
                else
                        $brokendown['Gosti'][] = &$context['members'][$key];
« Last Edit: June 16, 2009, 05:59:47 PM by Dzonny »

Offline Bob Marley

  • Full Member
  • ***
  • Posts: 677
  • Gender: Male
  • n008
    • KSFB
Re: Trikovi za poboljsanje vaseg foruma
« Reply #14 on: June 04, 2009, 01:08:17 PM »
Dzonny da li postoji neki nacin da svim korisnicima izbrishem sve privatne poruke? :) (Osim "nacina" da ih lepo zamolim.)

Offline Founder 2008

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • No limit.
    • ZvanicnaStranica.MojForum.net on Facebook
    • MojForum.net
Re: Trikovi za poboljsanje vaseg foruma
« Reply #15 on: June 04, 2009, 01:31:05 PM »
Dzonny da li postoji neki nacin da svim korisnicima izbrishem sve privatne poruke? :) (Osim "nacina" da ih lepo zamolim.)

Preko phpmyadmin  ;)

Offline Bob Marley

  • Full Member
  • ***
  • Posts: 677
  • Gender: Male
  • n008
    • KSFB
Re: Trikovi za poboljsanje vaseg foruma
« Reply #16 on: June 04, 2009, 01:43:53 PM »
Dakle moram da dizem phpmyadmin blah :) (Inace Verat net hosting nema ni Cpanel ni nista ;) )

Offline Founder 2008

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • No limit.
    • ZvanicnaStranica.MojForum.net on Facebook
    • MojForum.net
Re: Trikovi za poboljsanje vaseg foruma
« Reply #17 on: June 04, 2009, 02:08:16 PM »
E pa mislio sam da imas c-panel. A bazu skidas preko admin panela?

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,614
  • 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 #18 on: June 04, 2009, 02:18:20 PM »
Bob Marley - Svaki iole ozbiljan hosting ima phpMyAdmin...
Preko chega inache pristupash bazi? I radish backup? :/

btw, ima i mod za to, pa probaj ga...
http://custom.simplemachines.org/mods/index.php?mod=1058

Re: Trikovi za poboljsanje vaseg foruma
« Reply #19 on: June 04, 2009, 03:49:31 PM »
Zasto se ovo ne stavi ko sticky? Mozda bi bilo dobro..posto ima dobrih stvari..a s vremenom ce tema otic na kraj foruma..pa ce se teze naci..