eerste post afwijkend "first post separated mod"

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
ownageworld
Berichten: 252
Lid geworden op: 03 jun 2006, 17:35
Locatie: Brussel

eerste post afwijkend "first post separated mod"

Bericht door ownageworld » 15 okt 2006, 18:23

*dit zou onder php Mod support moeten staan, sorry!! Please verplaats*

Support Template
  • Wat is het probleem? mod werkt niet mee... ik wil dat de eerste post anders is dan de rest... echter, dit werkt niet zoals het moet (zorgt of voor lege posts,
    Wanneer ontstond het probleem? na het installeren van "Separate the first post of the topic, so you can give it's own look. "

    Adres van je forum: vb van probleem: http://www.ownageworld.com/neds/viewtopic.php?p=1#1
    Modifications op je forum: genoeg, van belang alleen de mod "Separate the first post of the topic, so you can give it's own look." Link naar de mod: http://www.phpbb.com/phpBB/viewtopic.ph ... first+post
    Huidige stijl: subsilver
    phpBB versie: nieuwste 2.0.21
    Waar is je forum gehost: welas
    Heb je onlangs iets verandert aan je forum? de mod "First post separated "
Overige opmerkingen:

Deel van de code in viewtopic.php:

Code: Selecteer alles

 //---------------------------------------------------------------------------------
   // Again this will be handled by the templating code at some point
   //---------------------------------------------------------------------------------
   //---------------------------------------------------------------------------------
   // FIRST POST MOD
   //---------------------------------------------------------------------------------
   if ($i == 0 && $start == 0)
   {
      $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
      $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

      $template->assign_block_vars('i', array(
         'ROW_COLOR' => '#' . $row_color,
         'ROW_CLASS' => $row_class, 
Stel ik vul hier bij "($i == 0 && $start == 0)" andere waardes in, komt alles er anders uit te zien, alleen niet hoe ik het wil.
Bij i==0 veel lege posts (dit zou goede waarde moeten zijn)
Bij i==1 komt de 2e post goed en anders tevoorschijn maar bovenaan, en de andere posts onderaan
Bij && start == 1 werkt het ook niet....

ownageworld
Berichten: 252
Lid geworden op: 03 jun 2006, 17:35
Locatie: Brussel

Bericht door ownageworld » 16 okt 2006, 21:30

niemand? Please iemand? :)
Of heeft iemand andere manier om zelfde effect te creeeren, maybe door vervormen van deze code?
Thnx!

Gesloten