Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Center menu

Aloittaja lendario, heinäkuu 14, 2011, 05:06:57 IP

« edellinen - seuraava »

lendario

I would like to know how to center the menu of my forum.
Cntralizar images that are used for navigation.

Link to the forum:
http://mmorpgbr.net/smf/index.php


hugs o/

Deaks

as you are using a modified dzinerstudio theme I would suggest asking on there support forums.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Sir Osis of Liver


Hey, Lendario.  Try this -

In index.template.php find this:



<div id="toolbar">
',template_menu(),'
</div>




Change to this:



<div align="center">
<div id="toolbar" style="display: inline-block;">
',template_menu(),'
</div>
</div>




While you're here, look up your Search box thread and grab the correct bg image for the widget we put in your header.

When in Emor, do as the Snamors.
                              - D. Lister

lendario

Krash always helping me *-*
Thank you so much.
Look man the pty code that you asked me not look exactly like this:


<div id="toolbar">
',template_menu(),'
</div>


It is well:

<div id="toolbar">
<div id="nav">
',template_menu(),'
</div>
</div>


Prem adptei the code you sent me to stay right there:
so let
       <div align="center">
<div id="toolbar" style="display: inline-block;">
<div id="nav">
',template_menu(),'
</div>
                </div>
</div>


More so, the menu actually centered over the bottom of it had been independent only button, leaving the side without any background.
As the picture below.


About the search box *-*
I will put it now and thanks again

Sir Osis of Liver


This should work-



<div id="nav" align="center">
<div id="nav" style="display: inline-block;">
',template_menu(),'
</div>
</div>




If it's not right, attach your index.template.php and /css/index.css.

When in Emor, do as the Snamors.
                              - D. Lister

Gary

^ For reference that code is invalid, you cant declare an id attribute more than once. :P
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Sir Osis of Liver

Oops.



<div id="nav" align="center">
<div style="display: inline-block;">
',template_menu(),'
</div>
</div>




Thx, Gary.

When in Emor, do as the Snamors.
                              - D. Lister

lendario

Neither the first nor the second worked.
Both were among the most bottomless in any corner.  :'(

Sir Osis of Liver

Attach your index.template.php and /css/index.css.

When in Emor, do as the Snamors.
                              - D. Lister

lendario

#9
Attached.

Sir Osis of Liver


No way to test it, but this should work -



<div id="toolbar" align="center">
<div id="nav" style="display: inline-block;">
',template_menu(),'
</div>
</div>



Your modded navbar already has the second div wrapper, so you don't need another one, just add the formatting codes.

When in Emor, do as the Snamors.
                              - D. Lister

lendario

#11
Look at the code works however the letters of the forum have become enormous. Even with the code removed are still giants, please help me urgently.


http://img202.imageshack.us/img202/886/screen1mh.jpg


http://img204.imageshack.us/img204/4262/screen2phn.jpg

Sir Osis of Liver

#12
Can't see the problem - your board is in Maintenance mode.  You must have made a syntax error when you changed the code.  Attach the edited index.template.php so I can see what you did.


Don't see anything wrong in your screenshots, and the index template you're running now has the original navbar code, not the edit.  Can you take it out of maintenance mode?

When in Emor, do as the Snamors.
                              - D. Lister

lendario

I posted some screens for you to see.

I just put the code you asked me  :'(

Sir Osis of Liver


Take your forum out of maintenance mode.

When in Emor, do as the Snamors.
                              - D. Lister

lendario


Sir Osis of Liver

Ok, I see it.  You're running the original template_menu code, not the centering edit, and it is correct and displays correctly.  There are two possible causes for the problem:

1 - The shoutbox code you added just below the template_menu code is screwing things up.  Comment it out and see what happens.

2 - You edited something in BoardIndex.template.php or installed a mod that changed it.


When in Emor, do as the Snamors.
                              - D. Lister

lendario

Look man, everything was normal, I've had a chat before the change to centralization, but when I put the code gave it, so I took the code and was still the same.

I am the Necromancer that I did not change anything beyond the code-centricity index.template.php

Ja uninstall the chatbox and it's still the same.

Sir Osis of Liver

#18
index.template.php is displaying correctly - it is identical to an earlier version of the template that I have from your board, except for the shoutbox.  The problem is in BoardIndex.template.php, which displays everything between the header and footer. 

Is the shoutbox added by installing a mod?

Have you tried uploading a clean BoardIndex.template.php?



I'm able to duplicate the problem in Silent Wave by running you're index.template.php.  Stand by - I'll go through the code again......





When in Emor, do as the Snamors.
                              - D. Lister

lendario

I installed mod from its own chat without any further modification.
I just sent a BoardIndex.template.php clean but still the same, nothing has changed.

Advertisement: