Increase height of Category textbox when add news » DataLife Engine Support

DLEVIET - DataLife Engine Support Home Page

DataLife Engine Support » DataLife Engine » Edit Code » Increase height of Category textbox when add news

Increase height of Category textbox when add news

  • Author: admin;  
  • Views: 2182;  
  • Date: 14 August 2009;  
In default, the height of category when you add news is 73px

If your site have many categories, you will need to increase the height of category textbox

---------------------------------------------
1.Edit for Add News in Admin Panel
Open file engine/skins/default.skin.php
find
.cat_select


Below that line, you will see height:73px;

a) Edit height:73px; to a bigger number. Ex : height:200px;
b) Delete height:73px; if you want DLE increase the height automatically.

2. Edit for Add News in home page
open file engine/modules/addnews.php

Find

$cats = "<select name=\"catlist[]\" id=\"category\" onchange=\"onCategoryChange(this.value)\" style=\"width:316px;height:73px;\" multiple>";


a) Edit height:73px; to a bigger number. Ex : height:200px;
b) Delete height:73px; if you want DLE increase the height automatically.

Ex:
1. File engine/skins/default.skin.php
.cat_select {
color: #000000;
font-size: 11px;
font-family: Verdana;
border:1px solid #9E9E9E;
width:316px;
height:273px;
}


Or

.cat_select {
color: #000000;
font-size: 11px;
font-family: Verdana;
border:1px solid #9E9E9E;
width:316px;
}


2. File engine/modules/addnews.php
$cats = "<select name="catlist[]" id="category" style="width:316px;[b]height:273px;[/b]" multiple="multiple" />";

Or

$cats = "<select name="catlist[]" id="category" style="width:316px;" multiple="multiple" />";
We encourage you to Register or Login to website under your name.

HEROTHUY

Posted 19 November 2010 02:48 Register: 13.05.2010
Demo, please?
Information
Members of Guest cannot leave comments.

Pagerank Update

    Updates Yandex SEO
    13.04.2012
    16.02.2012
    04.02.2012
    Updates Yandex search
    17.05.2012
    15.05.2012
    12.05.2012
    Updates Yandex Catalogue
    18.05.2012
    16.05.2012
    11.05.2012
    Updates Google
    03.05.2012
    06.02.2012
    08.11.2011

Find us on Facebook

Poll

How do you know DataLife Engine Support?

Search Engine
Other DLE Support websites
Forum
Friends
Others

Sponsor

Calendar

«    May 2012    »
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31