51
Gamma Osclass Theme / Re: Custom fields listed in two columns
« Last post by MB Themes on February 10, 2025, 09:19:16 AM »Thanks for sharing
![Wink ;)](https://forums.osclasspoint.com/Smileys/osclass-emoji/wink.gif)
.custom-fields .list {
display: grid;
grid-template-columns: repeat(2, 1fr); /* Two equal columns */
gap: 4px; /* Space between cells */
width: 100%;
}
.custom-fields .field {
display: flex;
background: #e3e3e3; /* Light grey background */
color: #000; /* Black text */
padding: 2px 8px; /* Cell padding */
border: 0px solid #e3e3e3; /* Cell border */
}
.custom-fields .field .name {
font-weight: bold;
margin-right: 5px;
flex: 1; /* Allows even spacing */
}
.custom-fields .field .value {
flex: 1;
}
.custom-fields .field, .job-detail table tr, .real-detail table tr, .car-detail table tr, .real-detail .detail2, #atr-item li, #atr-item li.atr-type-checkbox, #atr-item li.atr-type-select {float:left;clear:both;width:100%;padding:6px 0px;background:#e3e3e3;margin:0;list-style-type: disc; display: list-item;}
There could be some issue, try to debug osclass and see errors. Also database logs.Isn't this code for adding new views to listings? I said I see 0x views in admin backend under Listings section.
Check this section in oc-includes/osclass/controller/item.phpCode: [Select]if(!osc_is_admin_user_logged_in() && !($item['fk_i_user_id']!='' && $item['fk_i_user_id']==osc_logged_user_id())) {
require_once(osc_lib_path() . 'osclass/user-agents.php');
foreach($user_agents as $ua) {
if(preg_match('|'.$ua.'|', Params::getServerParam('HTTP_USER_AGENT'))) {
$mStats = new ItemStats();
$mStats->increase('i_num_views', $item['pk_i_id']);
break;
}
}
}
(id="something")