Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: BlackPowderSmoke - kesäkuu 11, 2014, 10:51:37 AP

Otsikko: Moving info center to the top of the index page
Kirjoitti: BlackPowderSmoke - kesäkuu 11, 2014, 10:51:37 AP
I am using curve theme and my version is 2.0.7 and would like to relocate the info center to the area just below the header. I sure would appreciate any help.
Otsikko: Re: Moving info center to the top of the index page
Kirjoitti: Matthew K. - kesäkuu 11, 2014, 10:56:38 AP
Are you wanting this to show up on every page...or just the boardindex still, but at the top?
Otsikko: Re: Moving info center to the top of the index page
Kirjoitti: BlackPowderSmoke - kesäkuu 11, 2014, 05:22:57 IP
I am working on this for a friend, he asked for the front page, but I think he would prefer every page.
Otsikko: Re: Moving info center to the top of the index page
Kirjoitti: mashby - kesäkuu 11, 2014, 06:26:09 IP
It's a bigger effort if it's every page. How about confirming with your friend first? It's pretty easy to move the Info Center to the top on just the main page. I think it would be odd to have that type of thing on every page. Just my opinion anyway.
Otsikko: Re: Moving info center to the top of the index page
Kirjoitti: BlackPowderSmoke - kesäkuu 11, 2014, 06:28:25 IP
Thanks. I will check with him.
Otsikko: Re: Moving info center to the top of the index page
Kirjoitti: BlackPowderSmoke - kesäkuu 11, 2014, 07:28:48 IP
Front page is sufficient. I am glad I took the advice given and did not continue to make assumptions.
Otsikko: Re: Moving info center to the top of the index page
Kirjoitti: mashby - kesäkuu 11, 2014, 08:28:53 IP
OK, cool. In Themes/default/BoardIndex.template.php, you'll find this bit:
template_info_center();

You'll want to move that line up to something like line 16, or more like right after these lines:
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;

That should move it to the top of the main page.
Otsikko: Re: Moving info center to the top of the index page
Kirjoitti: Matthew K. - kesäkuu 11, 2014, 10:31:22 IP
If you attach your BoardIndex.template.php file, one of us can make the change for you too :)
Otsikko: Re: Moving info center to the top of the index page
Kirjoitti: BlackPowderSmoke - kesäkuu 11, 2014, 11:07:59 IP
Got it. I want to thank mashby and everyone that responded. IT WORKS!!!  :D