TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 391
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 349
  • Total: 349

Article options checked by default

Started by yago101, November 22, 2006, 12:47:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yago101

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

yago101


This website is proudly hosted on Crocweb Cloud Website Hosting.