Thread: Major Additions - Mary's Classifieds
View Single Post
  #1246  
Old 09-26-2011, 08:44 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by k6rikko View Post
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:
Code:
<body>
or change FFFFFF with your own background color


Quote:
Originally Posted by k6rikko View Post
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
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01503 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete