TinyPortal
Development => Support => Topic started by: yago101 on November 22, 2006, 12:47:41 PM
Hello all,
I want to change the checked options by default in the new submitted articles to my site (since I often use the same options). Is that possible?
I found the code in TPortalAdmin.template.php but don't know how to do it:
$switch=0;
for($i=1 ; $i<17 ; $i++){
$switch++;
if($switch==5){
$pad=8;
$switch=0;
}
else
$pad=0;
echo '
<div style="padding-bottom: '.$pad.'px;">
<input style="vertical-align: middle;" name="tp_article_options_'.$opts[$i].'" type="checkbox" value="'.$mg['id'].'" ' , isset($options[$opts[$i]]) ? 'checked' : '' , '> '.$txt['tp-articleoptions'.$i].'
</div>';
}
Thanks :D
anyone? :coolsmiley: