SMF Support > SMF 2.0.x Support
Can I insert images between categories?
tassie73:
I have had a good read through the topics and even looked into some of the mods that insert ads between categories, but I cannot find a solution to what I want to do.
I simply want to know where in the BoardIndex.template.php that I can insert code to be able to put in an image between the categories to break up the main forum a bit.
If anyone can help me, let me know please.
Cheers
Chris
Labradoodle-360:
Inside the foreach($context['categories'] as $category)
tassie73:
Thanks Lab
Do I just add in an image tag in there somewhere?
Sorry, still picking up php on the fly so I ask some seriously simple questions sometimes :-[
Labradoodle-360:
Try something like this...
--- Code: (Find) ---foreach ($context['categories'] as $category)
{
--- End code ---
--- Code: (Add After) ---echo '<img src="url" alt="" />';
--- End code ---
You could add a little bit of code so it wouldn't show after the last category, or something like that. Don't have time to look at the array structure, but it wouldn't be difficult at all.
tassie73:
Thanks Lab, will have a looka t this today and let you know how I go. :)
Navigation
[0] Message Index
[#] Next page
Go to full version