Малко помощ за Osclass

test1test2

New Member
Здравейте, писах на двама потребители във форума ако могат да дадат мнение, но отговор няма за това ще попитам в темата, ако може някой да помогне.
Става въпрос за osclass и как точно се добавят и разпределят по страниците банерите в сайта. Първо пробвах с плъгина "Ads4OSClass", но не се получава и до колкото разбрах от форума на сайта на osclass, той се използва само за adsense. Опитвам се да поставя 3 банера на adsense(на всяка страница да са различни) и 2-3 допълнителни(да са едни и същи на всяка страница) за друга реклама, както и да се появяват на началната страница, разделите и в публикуването на обяви. До колкото разбрах трябва да се пипне кода на темата(ще използвам "Modern") за да се направят места за банерите и след това да се добавят. Ако може някой запознат да помогне по простичко :)

Другият въпрос ми е как да добавя икони на разделите в сайта, пробвах по няколко начина но все не се получава. Ето един метод но може би не правя нещо както трябва.

oc-content/themes/modern/style.css

/* categories image */ Това го поставям в style.css(пробвах на няколко места), но не знам точно къде, защото няма такъв раздел за да го заместя.
.home #main .categories .category h1 .category{ padding: 10px 51px 20px;}
.home #main .categories .category h1 .category.cat_1 { background: url(images/sprite.gif) no-repeat scroll -15px -5px transparent;}
.home #main .categories .category h1 .category.cat_2 { background: url(images/sprite.gif) no-repeat scroll -15px -50px transparent;}
.home #main .categories .category h1 .category.cat_3 { background: url(images/sprite.gif) no-repeat scroll -15px -105px transparent;}
.home #main .categories .category h1 .category.cat_4 { background: url(images/sprite.gif) no-repeat scroll -15px -160px transparent;}
.home #main .categories .category h1 .category.cat_5 { background: url(images/sprite.gif) no-repeat scroll -15px -230px transparent;}
.home #main .categories .category h1 .category.cat_6 { background: url(images/sprite.gif) no-repeat scroll -15px -285px transparent;}
.home #main .categories .category h1 .category.cat_7 { background: url(images/sprite.gif) no-repeat scroll -15px -350px transparent;}
.home #main .categories .category h1 .category.cat_8 { background: url(images/sprite.gif) no-repeat scroll -15px -410px transparent;}

oc-content/themes/modern/main.php Това го поставям в "main.php" и го замествам.

<?php while ( osc_has_categories() ) { ?>
<div class="category">
<h1><strong><a class="category cat_<?php echo osc_category_id() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?><span>&nbsp;&nbsp(<?php echo osc_category_total_items() ; ?>)</span></a></strong></h1>
<?php if ( osc_count_subcategories() > 0 ) { ?>
<ul>
<?php while ( osc_has_subcategories() ) { ?>
<li><a class="category cat_<?php echo osc_category_id() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span></li>
<?php } ?>
</ul>
<?php } ?>
</div>
<?php

oc-content/themes/modern/images/sprite.gif Картинките ги поставям в images.


Още един начин, но пак не се получава.


Locate the following in Bcute style.css ( OR whatever theme you've copied the files into) and change the category. NAME to the new name of the category in admin:::


/* categories image */
.home #main .categories .category h1 .category.for-sale { background: url(../images/sale.gif) no-repeat; padding: 25px; padding-top: 10px;}
.home #main .categories .category h1 .category.vehicles { background: url(../images/vehicle.gif) no-repeat; padding: 25px; padding-top: 10px;}
.home #main .categories .category h1 .category.classes { background: url(../images/classes.gif) no-repeat; padding: 25px; padding-top: 10px;}
.home #main .categories .category h1 .category.my-listings { background: url(../images/realestate.gif) no-repeat; padding: 15px; padding-top: 20px;}
.home #main .categories .category h1 .category.services { background: url(../images/services.gif) no-repeat; padding: 25px; padding-top: 10px;}
.home #main .categories .category h1 .category.community { background: url(../images/community.gif) no-repeat; padding: 25px; padding-top: 10px;}
.home #main .categories .category h1 .category.non-mls-listings { background: url(../images/realestate.gif) no-repeat; padding: 15px; padding-top: 20px;}
.home #main .categories .category h1 .category.jobs { background: url(../images/jobs.gif) no-repeat; padding: 25px; padding-top: 10px;}
.home #main .categories .category h1 .category.thinking-of-selling { background: url(../images/realestate.gif) no-repeat; padding: 15px; padding-top: 20px;}


If the category contains more then one word. You MUST have a( - ) between each word.

The images must be placed into the oc-content/themes/THEME-NAME/images folder.

Благодаря на всички, които ми помогнат. :beer:



Огромни Благодарности на "Kohorta" за помощта.

Темата е за триене !!!
 
Последно редактирано:

Горе