minglou Posted September 30, 2002 Share Posted September 30, 2002 here is a php code copied from define main page contribution: <table width="150" cellpadding="0" cellspacing="0" border=0 align="center"> <tr> <td class="main" width=50% valign="top" align="right"> <?php $mainpage_title = "News"; $mainpage_info = ""; $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $mainpage_title ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $mainpage_info); new infoBox($info_box_contents); ?> what i wanna do is put a image and link in the box, how can i do that? thanks sean Link to comment Share on other sites More sharing options...
minglou Posted September 30, 2002 Author Share Posted September 30, 2002 everybody are newbes as me??????? Link to comment Share on other sites More sharing options...
mattice Posted September 30, 2002 Share Posted September 30, 2002 Where do you want to put the image? Header or main body of the box? Breaking your example down: $mainpage_title = "News"; // this will be the header $mainpage_info = ""; // this will be the body of the box So if you write $mainpage_info = '<img rsc="my_image.jpg" border="0">'; it will contain the image ... <mattice> "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.