SMF Support > SMF 2.0.x Support

Can I insert images between categories?

<< < (3/5) > >>

Labradoodle-360:
What you do then is follow the code I gave, and instead of inserting the code right after foreach ($context['categories'] as $category)
{ put it right before the closing }.

tassie73:
This is what I have currently.


--- Code: ---foreach ($context['categories'] as $category)
   {
   //echo '<img src="http://www.fishingboatingtasmania.com.au/cloud/banner-1.gif" alt="" />';
   if (!empty($modSettings['catsmfstyle_enable'])) {
   if (empty($category['boards']) && !$category['is_collapsed'])
         continue;

      echo '
         <tbody class="header" id="category_', $category['id'], '">
            <tr>
               <td colspan="4"  align="center">
                   
                    ';
--- End code ---

The closing } is way down the page after a heap of stuff about collapsed boards and stuff. Should I put it down there?

Labradoodle-360:
Yep!

tassie73:
Thanks mate! :D

Labradoodle-360:
Did that work for you? :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version