Hostia nemozu chatovat na pouzivanie chatu sa prihlaste
Prihlásenie

PrihlásenieRegistrovať


Prihlásenie | Registrovať

   * Chat





harsop
Vytvoriť novú tému Odpovedať na tému  [ Príspevkov: 2 ] 
Autor Správa
 Predmet príspevku: Separate Announcements and Sticky Topics
PoslaťNapísal: 03 Sep 2007, 11:42 
V.I.P
V.I.P
Obrázok užívateľa
Registrovaný: 12 Aug 2007, 13:16
Príspevky: 56

Ty si poďakoval: 0 krát
Dostal si poďakovanie: 0 krát
Kód:
###############################################
##   Hack Title:   Separate Announcements & Sticky
##   Hack Version:   2.0.0
##   Author:      Aiencran
##   Description:   This hack separates Announcements and Sticky Topics from other topics in viewforum page.
##         
##   Compatibility:   2.0.13
##
##   Installation Level: Easy
##   Installation Time: 2 Minutes
##   Files To Edit: 3
##   viewforum.php,
##      language/lang_english/lang_main.php,
##   templates/subSilver/viewforum_body.tpl
##
##   Included Files: 1
##      includes/functions_separate.php
##
##   History:
##      2005-03-15 - Version 2.0.0
##         - Announcements and Sticky Topics are separated
##      - Sticky Topics are shown only in the first page (original behaviour)
##
##   2004-10-27 - Version 1.1.0
##         - It supports now Global Announcements
##      - Fixed sorting issues
##
##      2004-10-20 - Version 1.0.0
##         - First version
##
##   Author Notes:
##      None
##
##   Support:      None
##   Copyright:      ©2005 Separate Announcements & Sticky 2.0.0 - Aiencran
##
###############################################
##   You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads.
##   Please visit http://www.phpbbhacks.com/forums for support.
###############################################
##
###############################################
##   This hack is released under the GPL License.
##   This hack can be freely used, but not distributed, without permission.
##   Intellectual Property is retained by the hack author(s) listed above.
###############################################

#
#-----[ COPY ]------------------------------------------
#
copy includes/functions_separate.php to includes/functions_separate.php

#
#-----[ OPEN ]------------------------------------------
#
/viewforum.php

#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);

#
#-----[ AFTER, ADD ]------------------------------------
#
include($phpbb_root_path . 'includes/functions_separate.'.$phpEx);

#
#-----[ FIND ]------------------------------------------
#
$total_topics += $total_announcements;

#
#-----[ AFTER, ADD ]------------------------------------
#
$dividers = get_dividers($topic_rowset);

#
#-----[ FIND ]------------------------------------------
#
   'U_VIEW_TOPIC' => $view_topic_url)
);

#
#-----[ AFTER, ADD ]------------------------------------
#
if ( array_key_exists($i, $dividers) )
{
   $template->assign_block_vars('topicrow.divider', array(
      'L_DIV_HEADERS' => $dividers[$i])
   );
}

#
#-----[ OPEN ]------------------------------------------
#
/language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]------------------------------------
#
$lang['Global_Announcements'] = 'Global Announcements';
$lang['Announcements'] = 'Announcements';
$lang['Sticky_Topics'] = 'Sticky Topics';

#
#-----[ OPEN ]------------------------------------------
#
/templates/subSilver/viewforum_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN topicrow -->

#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN divider -->
<tr>
   <td class="catHead" colspan="6" height="28"><span class="cattitle">{topicrow.divider.L_DIV_HEADERS}</span></td>
</tr>
<!-- END divider -->

#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
#End

vytvoris si novy subor a nahras do priecinku includes cize includes\functions_separate.php a ten subor bude obsahovat
Kód:
<?php
/***************************************************************************
*                            function_separate.php
*                            -------------------
*   begin                : Tuesday, Mar 15, 2005
*   copyright            : (C) 2005 Aiencran
*   email                : cranportal-katamail.com
*
*   $Id: functions_separate.php,v 1.0.0.0 2005/03/15 15:20:00 psotfx Exp $
*
*
***************************************************************************/

/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
*
***************************************************************************/

//
// Select topic to be suggested
//
function get_dividers($topics)
{
   global $lang;

   $dividers = array();
   $total_topics = count($topics);
   $total_by_type = array (POST_GLOBAL_ANNOUNCE => 0, POST_ANNOUNCE => 0, POST_STICKY => 0, POST_NORMAL => 0);

   for ( $i=0; $i < $total_topics; $i++ )
   {
      $total_by_type[$topics[$i]['topic_type']]++;         
   }

   if ( ( $total_by_type[POST_GLOBAL_ANNOUNCE] + $total_by_type[POST_ANNOUNCE] + $total_by_type[POST_STICKY] ) != 0 )
   {
      $count_topics = 0;
     
      $dividers[$count_topics] = $lang['Global_Announcements'];
      $count_topics += $total_by_type[POST_GLOBAL_ANNOUNCE];

      $dividers[$count_topics] = $lang['Announcements'];
      $count_topics += $total_by_type[POST_ANNOUNCE];

      $dividers[$count_topics] = $lang['Sticky_Topics'];
      $count_topics += $total_by_type[POST_STICKY];

      if ( $count_topics < $total_topics )
      {
         $dividers[$count_topics] = $lang['Topics'];
      }
   }

   return $dividers;
}

?>


Profil  Offline
 

Soubory na ShareRapid (38)

Napísal: automaticky - vyhledávání ShareRapid.cz 
Výsledky hledaní na ShareRapid: 38 súborov
Nader and Simin, a Separation DVD5.part4.rar906 MBstiahnuté 97x
Nader and Simin, a Separation DVD5.part5.rar531.7 MBstiahnuté 94x
A Separation 2011 1080p BluRay x264-SONiDO.zip.008969 MBstiahnuté 25x
Nader and Simin, a Separation DVD5.part1.rar906 MBstiahnuté 100x
Nader and Simin, a Separation DVD5.part3.rar906 MBstiahnuté 100x
A Separation 2011 1080p BluRay x264-SONiDO.zip.007990 MBstiahnuté 25x
A Separation 2011 1080p BluRay x264-SONiDO.zip.001990 MBstiahnuté 25x
Zobrazení všech 38 souborů, klikni sem!


 Predmet príspevku: free slots online bonus games slots a fun las vegas website
PoslaťNapísal: 13 Aug 2011, 18:07 
Bronze
Bronze
Registrovaný: 18 Feb 2011, 09:07
Príspevky: 381

Ty si poďakoval: 0 krát
Dostal si poďakovanie: 0 krát
free slot games free slots online no deposit free bonus slot play play slots free money tabletop draw poker slot machine cleopatra slots online free to play free online casino slots games casino online video slot online video slots free free fun online slots play vintage slot machines free whales of cash slot machine free slot online and download games rainbow riches free play slots free fun slots no download slot machine repair parts play free slot games online for fun slot machines free downloads slots multi line bonus slot machines free games download slot video free play video slots multi card keno free all that glitters slots online how to hack into online slot machines spin poker slot machine sales play slot machines for free free vegas slots cleopatra loose video slot online free slots no downloads no reg online slot machine casino games play leopard spots video slot online free offline games slots downloads where can i find free online slots casino slot poker machines larry the lobster slot machine game free all that glitters slots online slot machine games bonus slot games designer best slot machines play video slots for free play casino slots free fun i want to play free no download slots for fun halloween slot games safest online slots online bally slot machines simslots free slots penny slot machine strategy play hot shot slot machine how to play slot machines with bingo patterns free casino slot machines play casino diamond double online slot slots of fortune casino review


Profil  Offline
 

Zobraziť príspevky z predchádzajúceho:  Zoradiť podľa  

Vytvoriť novú tému Odpovedať na tému  [ Príspevkov: 2 ] 


Kto je on-line

Užívatelia prezerajúci fórum: Žiadny registrovaný užívateľ nie je prítomný a 1 hosť

Panel

Hore Nemôžete zakladať nové témy v tomto fóre
Nemôžete odpovedať na témy v tomto fóre
Nemôžete upravovať svoje príspevky v tomto fóre
Nemôžete mazať svoje príspevky v tomto fóre
Nemôžete zasielať súbory v tomto fóre
Skočiť na:  
Novinky Novinky Mapa stránok Mapa stránok Zoznam mapovaných Zoznam mapovaných Zdroje RSS Zdroje RSS Zoznam RSS Zoznam RSS
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group, Instant Messenger and user status created by phpbb3hacks.com
Slovenský preklad.
phpBB SEO
Dizayn Ercan Koc
.::Filmy.cc vsetko o filmoch::.,Zábava, Voľný čas na Directory.sk,.::Filmy.cc vsetko o filmoch:: CZIN.eu optimalizace PageRank.cz it.objav.sk – pc, mobil, hry, fotoZoz.sk - Zoznam stránok Bringer.skonline-filmy