docJay Posted January 9, 2007 Share Posted January 9, 2007 I've been torturing myself and can't come up with the right code. I want the images that come up to display only 3 and then move down to a new row. Here is my code so far. [code]<?phpif(count($awards)){$output->Text(pnclansite_opentable());$output->BoldText(_TITLE_MEDALS);$output->Text(pnclansite_closetable());$output->Text(pnclansite_opentable());foreach($awards as $award){$id = pnVarPrepHTMLDisplay($award[id]);$medalname = pnVarPrepHTMLDisplay($award[medalname]);$medalimage = pnVarPrepHTMLDisplay($award[medalimage]);$givername = pnVarPrepHTMLDisplay($award[givername]);$reasons = pnVarPrepHTMLDisplay($award[reasons]);$awarded = pnVarPrepHTMLDisplay($award[awarded]);if($awarded > 0){$awarded = date("m/d/Y", $awarded);}else { $awarded = ""; }if(pnSecAuthAction(0, 'pnclansite::awards', "$id::", ACCESS_READ)){$medal_url = pnModURL('pnclansite', 'awards', 'display', array('cs_id' => $id));$output->URL($medal_url, "$medalname");$output->Text(" ");if((count($awards))>4)){$output->LineBreak(1);$imageslimit = 1;}else{$imageslimit ++;}}}$output->LineBreak(2);$output->Text(pnclansite_closetable());}$output->SetInputMode(_PNH_PARSEINPUT);return $output->GetOutput();}[/code] Any help is appreciated.Thanks doc Link to comment https://forums.phpfreaks.com/topic/33426-dispayed-images-need-to-have-3-in-row-then-make-a-new-row/ Share on other sites More sharing options...
magic2goodil Posted January 9, 2007 Share Posted January 9, 2007 what is $output?? what class is that derived from? Link to comment https://forums.phpfreaks.com/topic/33426-dispayed-images-need-to-have-3-in-row-then-make-a-new-row/#findComment-156465 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.