Cum fac asa ceva?
Scris: 08-Apr-2007, 18:59:50
forumul phpBB in limba romana. Opinii, implementari, ajutor, instructiuni si download.
https://phpbb3.ro/community/
[/code]##############################################################
## Titlul MOD-ului: Forum Bot
## Autorul MOD-ului: ........
## 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 !
##############################################################
#-----[ DESCHIDE-TI ]------------------------------------------
#
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*
'POSTER_RANK' => 'Servant of pain', // puteti inlocui cu orice
'POSTER_POSTS' => 'Posts: Too many',
'MESSAGE' => '<div>**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