Quote:
Originally Posted by k6rikko
I have uploaded a picture here from the classified browsing view.
It doesnt looks very well on the page.
The white background etc.
|
You need to edit 2 templates:
1.- microclassifieds_searchgrid
2.- microclassifieds_browsegrid
Find:
Code:
<body bgcolor="#FFFFFF">
and replace with:
or change FFFFFF with your own background color
Quote:
Originally Posted by k6rikko
Whats the name and where can i find the right css or template to change the dg size (width) and fix it to the white space size ?
|
Has replied many times. You don't need to edit any css, but the classifieds.php.
Search for:
Code:
$objGrid-> FormatColumn
It appears 10 times between the lines: 1441-1454. You need to change the values in red as in example below:
Code:
$objGrid-> FormatColumn("logo","".$vbphrase["microclassifieds_photo"]."", "25", "0","0","60","center","imagelink:microclassifieds/photos/thumbs/%s:loadAd(%s),id");
$objGrid-> FormatColumn("adtype","".$vbphrase["microclassifieds_grid_adtype"]."", "40", "50", "0", "30", "center", "image:microclassifieds/images/adtype%s.png");
$objGrid-> FormatColumn("title","".$vbphrase["microclassifieds_title"]."", "13", "20", 0, "100","left", "link:loadAd(%s),id");
$objGrid-> FormatColumn("categoryid","".$vbphrase["microclassifieds_category"]."", "5", "1", 0, "70", "left", "related:select name from ".TABLE_PREFIX."microclassifieds_categories where id=%s");
$objGrid-> FormatColumn("userid","User", "5", "30", 2, "5", "left");
$objGrid-> FormatColumn("username","".$vbphrase["microclassifieds_seller"]."", "5", "30", 0, "70", "left", "link:loadUser(%s),userid");
$objGrid-> FormatColumn("newused","".$vbphrase["microclassifieds_condition"]."", "5", "30", 1, "55", "left", "select:1_".$vbulletin->options["microclassifieds_new_item"].":2_".$vbulletin->options["microclassifieds_used_item"]."");
$arrConditions = array("['adtype']==3" => "['buynow']",
"['adtype']!=3" => "['price']"
);
$objGrid-> FormatColumn("starts","".$vbphrase["microclassifieds_post_at"]."", "5", "30", 0, "50", "right");
$objGrid-> FormatColumn("price","".$vbphrase["microclassifieds_price"]."", "5", "30", 0, "60", "right", "money:".$vbulletin->options["microclassifieds_curpre"]."");
$objGrid-> FormatColumn("location","".$vbphrase["microclassifieds_location"]."", "5", "10", "0", "65", "left");
In general is the value before the aligment (eg "center"). Please note that this is a fix width (px) and not related (%).
Chris