PDA

View Full Version : subforum style


yzztik
09-30-2003, 02:12 AM
Is there a hack, or can someone write one that sets the styles of subforums to the one of its parent by default or unless you set it to something different?

Gary King
09-30-2003, 02:16 AM
Is there a hack, or can someone write one that sets the styles of subforums to the one of its parent by default or unless you set it to something different?
Why not just set them manually..?

Or too many forums?

yzztik
09-30-2003, 02:22 AM
Yeah too many ... I mean I can do it ... was just curious if there was some easier way. I have 4 private forums with their own schemes and each of them have 3-4 subforums so thats like 10 forums ... its not a HUGE deal ... was just curious. Always looking to make my life easier lol

Gary King
09-30-2003, 02:45 AM
Open admin/forum.php and find $DB_site->query("UPDATE forum
SET
styleid='$styleset', title='".addslashes($title)."', description='".addslashes($description)."',
active='$isactive', displayorder='$displayorder', parentid='$parentid', parentlist=$parentlist,
allowposting='$allowposting', cancontainthreads='$cancontainthreads', daysprune='$daysprune',
newpostemail='".addslashes($newpostemail)."', newthreademail='".addslashes($newthreademail)."',
moderatenew='$moderatenew', allowhtml='$aallowhtmlcode', allowbbcode='$aallowbbcode',
allowimages='$aallowimgcode', allowsmilies='$aallowsmilies', allowicons='$aallowicons',
styleoverride='$styleoverride', allowratings='$allowratings', countposts='$countposts',
moderateattach='$moderateattach', storereply='$storereply', storethread='$storethread', minpostsperday='$minpostsperday'
WHERE forumid='$forumid'");
Below, add $DB_site->query("UPDATE forum SET styleid='$styleset', styleoverride='$styleoverride' WHERE parentid = '$forumid'");Should work.