Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: pittu on April 30, 2015, 06:08:19 PM

Title: some html on forum index.
Post by: pittu on April 30, 2015, 06:08:19 PM
I want to display some product information on Forum home page ABOVE Breadcrumb navigation and BELOW the horizontal menu (home page alone) Where exactly I can insert chunk of html code on index.template.php?

thnx.
Title: Re: some html on forum index.
Post by: Kindred on April 30, 2015, 08:26:25 PM
I would recommend using a portal mod or the ad manager mod...
Title: Re: some html on forum index.
Post by: ARG01 on April 30, 2015, 09:20:01 PM
Quote from: Kindred on April 30, 2015, 08:26:25 PM
I would recommend using a portal mod or the ad manager mod...

Agreed. If you place code where needed to show "ABOVE Breadcrumb navigation and BELOW the horizontal menu" in index.template.php, getting it to show on the Home page only would be quite difficult. Using a portal would accomplish exactly what you need without requiring extra, custom code.
Title: Re: some html on forum index.
Post by: pittu on May 01, 2015, 10:47:44 PM
Mmmm... I am trying to avoid installing portals and mods as much as possible.


Quote... "ABOVE Breadcrumb navigation and BELOW the horizontal menu" in index.template.php ...


If this position is not possible, where can I keep content on index.template.php, so it ONLY displays on home page?

thnx.
Title: Re: some html on forum index.
Post by: Kindred on May 01, 2015, 11:02:36 PM
See... that's the point...

making it show only on the home page requires additional coding.

Why are you opposed to installing mods (which are clean, configurable and supported) versus hacking your code manually (which is "dirty", is not configurable and won't be easily reinstalled in the event of an upgrade or restoration.)


Basically, you are asking how to manually do something that the mods alreayd handle, quite nicely.

Of course you CAN do it manually, but I would seriously discourage it...
Title: Re: some html on forum index.
Post by: pittu on May 05, 2015, 11:05:49 AM
Quote from: Kindred on April 30, 2015, 08:26:25 PM
I would recommend using a portal mod or the ad manager mod...

I will go with my own mod because I installed couple of ad management mods, but they are more than I want. I need a simple mod so I am going to ask my programmer to create one for me.

thnx.
Title: Re: some html on forum index.
Post by: Kindred on May 05, 2015, 11:22:26 AM
then I will mark this as solved.