need help modifying a template in DLE in php

Discussion in 'PHP' started by gibsongk55, Oct 23, 2010.

  1. #1
    I need to edit the editnews.php module in DLE so it will only show the "Publish news now." checkbox if the members usergroup is < 4 value. Standard user is a 4 and below that are editors and admins.

    This is the line to the checkbox:

            <td><input type="checkbox" name="approve" value="1" {$ifapp}> {$lang['addnews_mod']}<br /><br />
    
    Code (markup):
    I've found these lines for checking the user group value:

    	if( $member_id['user_group'] < 3 ) {
    		foreach ( $user_group as $group ) {
    			if( $group['id'] > 1 ) {
    
    Code (markup):

    But I am not sure how I can put these together for the result.


    Appreciate any help,

    Gibs
     
    gibsongk55, Oct 23, 2010 IP