162.patch

Suneesh PM, 06/30/2010 06:56 AM

Download (4.07 KB)

View differences:

admin/miscellaneous.php
187 187
            mysql_query($sql) or mysql_die($sql);
188 188
        }
189 189
        
190
        if (is_numeric($_POST['search_box_in_body']))
191
        {
192
            $sql = "UPDATE `sconfig` SET
193
                   `svalue`='" . (int) $_POST['search_box_in_body'] . "' WHERE
194
                   `soption`='search_box_in_body'";
195
            mysql_query($sql) or mysql_die($sql);
196
            $smarty->assign('search_box_in_body', $_POST['search_box_in_body']);
197
        }
198
        
190 199
        $msg = $lang['settings_updated'];
191 200
    }
192 201
}
install/sql/upgrade_2.7_to_2.8.sql
31 31
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
32 32

  
33 33
INSERT INTO `email_templates` (`email_id` ,`email_subject` ,`email_body` ,`comment`) VALUES ('video_response_notify', '[SITE_NAME] - Video response to "[VIDEO_TITLE]"', '<p><a href="[SITE_URL]/[USERNAME]">[USERNAME]</a> has posted a video in response to <a href="[VIDEO_URL]">[VIDEO_TITLE]</a></p> <p>Response Video: <a href="[RESPONSE_VIDEO_URL]">[RESPONSE_VIDEO_TITLE]</a></p><p>This video requires your approval. You can approve or reject it by visiting the following link.</p><p><a href="[VERIFY_LINK]">[VERIFY_LINK]</a></p><p>Thanks</p><p><a href="[SITE_URL]">[SITE_NAME]</a> Team</p>', 'video response notify');
34
INSERT INTO `sconfig` (`soption` ,`svalue`) VALUES ('search_box_in_body', '0');
install/sql/vshare.sql
566 566
INSERT INTO `sconfig` (`soption`, `svalue`) VALUES('user_comments_per_page', '5');
567 567
INSERT INTO `sconfig` (`soption`, `svalue`) VALUES('num_new_videos', '5');
568 568
INSERT INTO `sconfig` (`soption`, `svalue`) VALUES('num_watch_videos', '20');
569
INSERT INTO `sconfig` (`soption` ,`svalue`) VALUES('search_box_in_body', '0');
569 570

  
570 571
-- Table structure for table `servers`
571 572

  
templates/admin/miscellaneous.tpl
137 137
        <label for="num_max_channels">Max Channels per video:</label>
138 138
        <input type="text" name="num_max_channels" id="num_max_channels" value="{$num_max_channels}" />
139 139
    </div>
140
    
141
    <div>
142
        <label for="search_box_in_body">Search box in body:</label>
143
        <select name="search_box_in_body" id="search_box_in_body">
144
            <option value="0" {if $search_box_in_body =='0'}selected="selected"{/if}>Disable</option>
145
            <option value="1" {if $search_box_in_body =='1'}selected="selected"{/if}>Enable</option>
146
        </select>
147
    </div>
140 148

  
141 149
    <div class="submit">
142 150
        <input type="submit" name="submit" value="Update" />
templates/header.tpl
92 92
    
93 93
    {insert name=advertise adv_name='banner_top'}
94 94
    
95
    {include file=search_box.tpl}
95
    {if $search_box_in_body eq "1"}
96
        {include file=search_box.tpl}
97
    {/if}
96 98
    
97 99
    <div id="main" class="clearfix">
98 100
    
99
-