Advertisement:

Author Topic: Category icons for Bender theme  (Read 17000 times)

Hello

  • Full Member
  • ***
  • Posts: 174
Re: Category icons for Bender theme
« Reply #15 on: October 04, 2013, 01:08:36 am »
pls help me i want javascript on categories like if some click on main categore then sub categories open out i have code but not working
thanks

plesk

  • Full Member
  • ***
  • Posts: 188
Re: Category icons for Bender theme
« Reply #16 on: October 29, 2013, 01:56:52 pm »
Hello
I find that these categories are too we can stick ca change in the css?,
Still after on the same page I'd like to add announcement rating (0) thank you

plesk

  • Full Member
  • ***
  • Posts: 188
Re: Category icons for Bender theme
« Reply #17 on: October 29, 2013, 06:42:30 pm »
look what http://www.toutypasse.com/ and copy the icons (or High-Tech Vehicles) that's it I'm looking for as a function to protect the theft of my pictures website

on the same page I would like to add my (announcement) beside the number o

thank you

regarde ce site http://www.toutypasse.com/   et copier les icones ( Véhicules ou High-Tech ) c'est ca que je recherche comme fonction pour proteger le vol de mes images

sur la meme page je voudrais ajouter le mon ( annonce ) a cote du numero  o

merci

mantas

  • Jr. Member
  • **
  • Posts: 52
Re: Category icons for Bender theme
« Reply #18 on: November 25, 2013, 12:31:56 pm »
Thank you, the code works great

zeroxin

  • Newbie
  • *
  • Posts: 5
Re: Category icons for Bender theme
« Reply #19 on: February 01, 2014, 04:58:56 pm »
Code: [Select]
4.)
* Then replace it with this:
<!-- YourName START eXtra code insert of main category Png icons -->
<h1><a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"> <img src="<?php echo osc_current_web_theme_url('s51extra/maincategoryicons/') . osc_category_name() .'.png' ?>" width="140px" height="60px" alt="" title=""/></a> <span><strong>(<?php echo osc_category_total_items() ; ?>)</strong></span></h1>
<!--  YourName STOP eXtra code insert of main category Png icons -->
- -

Icon for other language:

Code: [Select]
4.)
* Then replace it with this:
<!-- YourName START eXtra code insert of main category Png icons -->
<h1><a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"> <img src="<?php echo osc_current_web_theme_url('s51extra/maincategoryicons/') . osc_category_id() .'.png' ?>" width="140px" height="60px" alt="" title=""/></a> <span><strong>(<?php echo osc_category_total_items() ; ?>)</strong></span></h1>
<!--  YourName STOP eXtra code insert of main category Png icons -->
- -

Now photos should possess the category id instead of the name
use on your website of the Polish language and pictures work
you can check : adholand.nl


sorry for me english

ruk_design

  • Newbie
  • *
  • Posts: 13
Re: Category icons for Bender theme
« Reply #20 on: February 02, 2014, 02:05:01 pm »
can anyone share a full working bender theme with category icons, plus fully working.? Thanks.. It will be a great share and help.

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: Category icons for Bender theme
« Reply #21 on: February 02, 2014, 04:30:32 pm »
can anyone share a full working bender theme with category icons, plus fully working.? Thanks.. It will be a great share and help.

There should be one similar to what you asking at:
www.osshaft.org
Look for the ad - "Modified Bender theme".
Tom
« Last Edit: February 02, 2014, 04:32:54 pm by tomshaft »

toparts

  • Jr. Member
  • **
  • Posts: 53
Re: Category icons for Bender theme
« Reply #22 on: September 13, 2014, 01:52:06 pm »

.

Hi: Cus & jromero & ugogo & AVBestDeals,  -  and all other OSClass friends . . .



1.)

New subdirs like this.: ../oc-content/themes/bender/s51extra/maincategoryicons
* Create x1 eXtra sub dir  =  s51extra
* and x1 more under s51extra  =  maincategoryicons
- -

2.)

* Now create a number of PNG files, - visual corresponding to your categories,
width 140px height 60px and save them as.: Png24 interlaced transperent
and name each PNG24 file ..exactly.. as your category names.
(only a example.: Categori= For sale = For sale.png)
- -

3.)

* Now open.: functions.php :. under Bender theme
and find this piece of code
<h1><a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span></h1>
(remember to close it with comments <!--  -->
- -


4.)
* Then replace it with this:
<!-- YourName START eXtra code insert of main category Png icons -->
<h1><a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"> <img src="<?php echo osc_current_web_theme_url('s51extra/maincategoryicons/') . osc_category_name() .'.png' ?>" width="140px" height="60px" alt="" title=""/></a> <span><strong>(<?php echo osc_category_total_items() ; ?>)</strong></span></h1>
<!--  YourName STOP eXtra code insert of main category Png icons -->
- -

5.)
And 1-2-Pronto you have images on your main categories  ;D

(NOTE: I have ..not.. tested it with sub categories in several levels)
- -




Best Regards.:/ s51
.



Hello,

I have a problem, i don't find the code to remplace, my bender code is:
Quote
222.        <ul class="r-list">

223.             <li>

224.                 <h1>

225.                    <?php

226.                    $_slug      = osc_category_slug();

227.                    $_url       = osc_search_category_url();

228.                    $_name      = osc_category_name();

229.                    $_total_items = osc_category_total_items();

230.                    if ( osc_count_subcategories() > 0 ) { ?>

231.                    <span class="collapse resp-toogle"><i class="fa fa-caret-right fa-lg"></i></span>

232.                    <?php } ?>

233.                    <a class="category <?php echo $_slug; ?>" href="<?php echo $_url; ?> "><?php echo $_name ; ?></a>

234.                 </h1>

235.

236.

237.

238.                 <?php if ( osc_count_subcategories() > 0 ) { ?>

239.                   <ul>

240.                         <?php while ( osc_has_subcategories() ) { ?>

241.                             <li>

242.                             <?php if( osc_category_total_items() > 0 ) { ?>

243.                                <a class="category sub-category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span>

244.

245.                             <?php } else { ?>

246.                                 <a class="category sub-category <?php echo osc_category_slug() ; ?>" href="#"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span>

247.                             <?php } ?>

248.                             </li>

249.                         <?php } ?>

250.                   </ul>

251.                 <?php } ?>

252.             </li>

253.        </ul>


Help me please... ;)

Thanks

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: Category icons for Bender theme
« Reply #23 on: September 15, 2014, 12:57:48 am »
????
 
Look at line 243 of your code post.
 
Tom

toparts

  • Jr. Member
  • **
  • Posts: 53
Re: Category icons for Bender theme
« Reply #24 on: September 15, 2014, 01:23:02 pm »
????
 
Look at line 243 of your code post.
 
Tom

Hi Tom,

Thank you for your answer, but does not work. The code that you say is for the sub-category, when I replace I get this result (see added images,before and after).

Also the picture does not coresponds the title of the category, the image is called 'Vehiculos.png' (vehicles) but on my page, as once the image is inserted into the Subcategory 'Animals' (pets)

Ex-Gamers

  • Newbie
  • *
  • Posts: 1
Re: Category icons for Bender theme
« Reply #25 on: November 25, 2014, 09:52:03 am »
This helped me alot, thank's man... now if u ask what's with subcategorii (0) i'm trying to do a dropmenu with subcategory to every category xD wish me luck :))

monah

  • Full Member
  • ***
  • Posts: 223
Re: Category icons for Bender theme
« Reply #26 on: January 27, 2015, 02:23:10 pm »
Good . I'm here this code
Code: [Select]
<h1>
<?php
$_slug   
osc_category_slug();
$_url    osc_search_category_url();
$_name   osc_category_name();
$_total_items osc_category_total_items();
if ( 
osc_count_subcategories() > ) { ?>

<span class="collapse resp-toogle"><i class="fa fa-caret-right fa-lg"></i></span>
<?php ?>
<?php if($_total_items 0) { ?>
<a class="category <?php echo $_slug?>" href="<?php echo $_url?>"><?php echo $_name ?></a> <span>(<?php echo $_total_items ?>)</span>
<?php } else { ?>
<a class="category <?php echo $_slug?>" href="#"><?php echo $_name ?></a> <span>(<?php echo $_total_items ?>)</span>
<?php ?>
 </h1>
 <?php if ( osc_count_subcategories() > ) { ?>
   <ul>
 <?php while ( osc_has_subcategories() ) { ?>
 <li>
 <?php if( osc_category_total_items() > ) { ?>

 <?php ?>
 </li>
 <?php ?>
   </ul>
 <?php ?>
 </li>
</ul>
<?php
$i
++;
}
echo 
'</div>';
?>
How can I make the picture next to the names of categories ? Category in Russian .

falouche

  • Newbie
  • *
  • Posts: 38
(solved) Category icons for Bender theme
« Reply #27 on: March 17, 2015, 09:14:27 pm »
Hi

@toparts

I found the solution, and the tric is that you put the code below at the line 225

Code: [Select]
<a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"> <img src="<?php echo osc_current_web_theme_url('s51extra/maincategoryicons/') . osc_category_name() .'.png' ?>" width="24px" height="24px" alt="" title=""/></a>
don't touch or remove anything and it works fine for me


my web site : www.sheriki.com

Regards

Seema

  • Newbie
  • *
  • Posts: 10
Re: Category icons for Bender theme
« Reply #28 on: June 02, 2015, 08:24:28 pm »
Great! Thanks for this help It is working for me and your help made my site so beautiful see http://forsaleinfos.com/     :) :)

rainilson

  • Newbie
  • *
  • Posts: 37
Re: Category icons for Bender theme
« Reply #29 on: June 25, 2017, 06:48:12 am »
Hello friends, I am new here, I apologize for my bad English, I am trying to add images to my site category, I tried the 2 revisions, ported here by friends.

I'm using the last version of osclass.
This is my site and www.upclassificados.com.br.
Can someone please help me?