[PHP][phpbBB-MOD] Forum Bot !

Started by -=[Vyorel]=-, Jul 08, 2009, 03:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

##############################################################
## Titlul MOD-ului: Forum Bot
## Autorul MOD-ului: PainMaster
## Descrierea MOD-ului: Acest MOD va lasa sa va adaugati reclamele dupa primul post din topic-uri
## Versiunea: 1.0.0
##
## Dificultatea: Usor
## Durata: 3-5 minute
## Fisiere de editat:
##          viewtopic.php
##
##############################################################
## Inainte de a instala acest MOD , va recomand sa faceti backup la fisierul viewtopic.php , deoarece oricat de sigur ar fi MOD-ul , nu se stie niciodata ce poate face neatentia !
##############################################################


#-----[ DESCHIDETI ]------------------------------------------
#
viewtopic.php

#
#-----[ CAUTATI ]------------------------------------------
#
   $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
   $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

#
#-----[ INLOCUITI CU ]------------------------------------------
#
   $row_color = ( !($num % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
   $row_class = ( !($num % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
   $num ++;

#
#-----[ CAUTATI ]------------------------------------------
#
      'U_POST_ID' => $postrow[$i]['post_id'])
   );

#
#-----[ DUPA,ADAUGATI ]------------------------------------------
#
   if($i == $ad_after)
   {
      $row_color = ( !($num % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
      $row_class = ( !($num % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
      $num ++;

       $mini_post_url = append_sid('viewtopic.' . $phpEx . '?' . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#ad';
      $template->assign_block_vars('postrow', array(
         'ROW_COLOR' => '#' . $row_color,
         'ROW_CLASS' => $row_class,
         'POST_DATE' => $post_date,
         'POST_SUBJECT' => 'Advertisement',
         'MINI_POST_IMG' => $mini_post_img,
         'POSTER_NAME' => 'Forum Bot',        // puteti inlocui cu orice[color=red]*[/color]
       'POSTER_RANK' => 'Servant of pain',  // puteti inlocui cu orice
         'POSTER_POSTS' => 'Posts: Too many',
         'MESSAGE' => '<div>[color=red]**[/color]INSERATI CODU RECLAMEI</div>',
         'L_MINI_POST_ALT' => $mini_post_alt,
         'U_MINI_POST' => $mini_post_url,
         'U_POST_ID' => 'ad')
      );
   }

#
#-----[ SALVATI/INCHIDETI FISIERUL ]------------------------------------------
#
# SM


* - puteti inlocui cu orice inafara de caracterul " ' "
** - la fel si in cod , cu orice inafara de caracterul " ' "