Show A Category Thumbnail in Clip-Bucket v2

Hello,

Upon a customer request, I decided to write this. As time passes, I still come up with functions I didn’t know CB had and are useful. This time, we will use the function get_cat_thumb(). The function is in category.class.php. This function appears in v2.6, however I believe it is in the whole v2 branch.

1. Open the .html page where you would like the thumbnail to appear. You can use index.html, for example.

2. Paste the following code:

{assign var=CatThumb value=$CBCategory->get_cat_thumb(array("category_id"=>$idofcategory))}

h1

You need to replace $idofcategory, either with the variable that contains the category id or with the id number of the category. (“category_id”=>14  .. if category_id was 14)

3. To show the thumbnail use the following code:

{$CatThumb}

h2

4. Save and Upload.

That’s it! If for any reason it doesn’t work for you, please do not hesitate to contact me so we can work it out together. Any question, comment or article suggestion is welcomed.

Best Regards,

Richi

Looking for quality ClipBucket Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , , | Posted under ClipBucket | RSS 2.0

Author Spotlight

Richi González

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I became a Liaison between Arvixe and Clip-Bucket, so I am here to assist you with anything you need regarding Clip-Bucket or any particular computer-related subject you need. Best Regards, Richi

Leave a Reply

Your email address will not be published. Required fields are marked *


1 × = 4

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>