Reclama din panoul de admin
Scris: 20-Ian-2008, 22:03:11
Cum pot sa bag pe un forum phpbb2 reclama din panoul de admi? Mai bn zis un user care sa posteze automat pe fiecare topic?
forumul phpBB in limba romana. Opinii, implementari, ajutor, instructiuni si download.
https://phpbb3.ro/community/
##############################################################
## 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*
'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 ]------------------------------------------
#
si eo is curios , dar dupa fiecare post ?:)Cum pot sa fac sa pun reclama sa fie ultimul post, nu primul cum imi pune din codul de mai sus?