MyBB Community Forums

Full Version: Div to display on one page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I was wondering if someone could help me.

I would like to make a <div> that will only be displayed on one page of my forum and another <div> that displays on all pages excluding this page. I want to place this in the header and I want it for my homepage so I'm unable to use xthread.

Any help would be appreciated.

Thanks,
Kyle
by home page do you mean index or portal ? in general, we use template conditionals plugin for such requirement
(2015-07-24, 09:32 AM).m. Wrote: [ -> ]by home page do you mean index or portal ? in general, we use template conditionals plugin for such requirement

Thanks for responding, I am referring to the index page.

If I installed the plugin how do I go about creating what I need above?
can be like below
<if THIS_SCRIPT == 'index.php' then>
code to be shown on the index
<else>
code to be shown on other pages
</if>
That worked great, thank you.