- Impact
- 0
PHP Forum Banner Rotation HELP!
Hi!
I want to turn this one banner into a rotation involving 2 or more banners!
Im really not great at coding, and would apprecicate somebody to give me the correct code to put in to make this happen! for the banner just use a random image, then i can just change it!
Code:
Thanks Guys!
Hi!
I want to turn this one banner into a rotation involving 2 or more banners!
Im really not great at coding, and would apprecicate somebody to give me the correct code to put in to make this happen! for the banner just use a random image, then i can just change it!
Code:
Code:
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' => 'Advertisement',
'POSTER_RANK' => 'Advertiser',
'MESSAGE' => '<div align="center"><a href="http://www.inx-gaming.co.uk" target="_blank"><img src="http://www.inx-gaming.co.uk/images/banners/inxgaming-468x60.jpg"></img></a></div>',
'L_MINI_POST_ALT' => $mini_post_alt,
'U_MINI_POST' => $mini_post_url,
'U_POST_ID' => 'ad')
);
}
}
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Thanks Guys!