News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Menu bar line up on main page and forum

Started by shade3134, July 03, 2010, 11:19:05 AM

Previous topic - Next topic

shade3134

I'm trying to get my homepage menubar lined up exactly where my forum menu bar is using SSI. Unfortunately, I can't figure out where to put the code to make it line up properly. I'm new at this.

This is my forum's menu bar:



And this is my main page:



Using SSI, how could I get it to fit in the right spot? I'm guessing I have to place my menu bar code in the main template? If so, where? My main page is Wordpress.  ???

CapadY

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

shade3134

What exactly with that...Like what are you telling me to do??  ???

CapadY

Quote from: shade3134 on July 03, 2010, 11:19:05 AM
Unfortunately, I can't figure out where to put the code to make it line up properly. I'm new at this.

Quote from: capady link=topic=389136.msg2689152#msg2689152   date=1278172698
sources/subs.php

As a matter of fact I think this question also belong to the code discussion board.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

shade3134

#4
The subs.php on my wordpress?

My question is how to add the menu bar from it...I already have the code, I just don't know where in the Wordpress to put it. If you did mean subs.php in wordpress, would it place it exactly where my forum menu bar is?

CapadY

I don't think this is the right website for Wordpress support, do you ? And surely not the right board.

You can try it at the portal, bridges and integration board.

http://www.simplemachines.org/community/index.php?board=33.0
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

shade3134

Seeing as how it deals with both, posting this on the Wordpress website would have equal meaning. But thanks I'll post in the other board.

Mick.

Shade, i believe you have another post like this somewhere else but im not certain.   Im going to post it again.


In your wordpress theme open the header.php

At the very very very very very very top (line:1) add this:

<?php require("/home/******/public_html/SSI.php"); ?>

Replace the stars i omitted with your own server ID.

If you forum resides in an folder called:  "community" or "forum" or whatever, then it should be:

<?php require("/home/*******/public_html/community/SSI.php"); ?>

or...

<?php require("/home/*******/public_html/forum/SSI.php"); ?>



Then, in the same file (header.php) somewhere below the head tag add:

<?php ssi_menubar(); ?>


If the menu shows in the wrong place, keep moving the code above to where it fits your needs.





shade3134

Thanks. The code works but I'm trying to place it exactly where my forum has it. It doesn't seem to be in the header area, like maybe it's at the top of the main template index. But when I place it there, it's lower than I thought. Just trying to get that right spot. Not sure where it is....I just want it like in the screenshot of my forum on the main page.  ???

Mick.

Let me get this straight,

you want the SMF menu as close possible to the banner on your wordpress?

shade3134



You see how the menu bar is positioned there?

How do I have it positioned in the same spot on my Wordpress main page?  ???

Because naturally if I have the menu bar placed anywhere, it will do a "jump" if I click to a different page (depending on where it's put on that given page). Right??

Mick.

Quote from: shade3134 on July 03, 2010, 02:23:01 PM


You see how the menu bar is positioned there?

How do I have it positioned in the same spot on my Wordpress main page?  ???

I just told you in my previous post and you didnt answer my question.

shade3134

Quote from: bluedevil on July 03, 2010, 02:24:26 PM
Quote from: shade3134 on July 03, 2010, 02:23:01 PM


You see how the menu bar is positioned there?

How do I have it positioned in the same spot on my Wordpress main page?  ???

I just told you in my previous post and you didnt answer my question.
Not close as possible but positioned like in that screenshot.

Mick.

One last question,...... when you added the codes, did the menu in fact appeared in the wordpress page?


Mick.

Quote from: shade3134 on July 03, 2010, 02:30:59 PM
Yes.


Ok. now i'll hang up my gloves.

You need to take this issue with wordpress as the know more than any of us on where exactly this code needs to be.

It needs to be somewhere below the <body> tag but i dont know where exactly.   They should know.

shade3134

I'm still moving it around but:



This is what I got so far. How do I get the exact look (font size, font style) as the way it looks in my forum? Because if I move the code up, then the menu bar is a different font/style and are hypertext links.

EDIT: Just saw your post. Thanks.

It seems like it's a common thing done with SMF though... ???

Mick.

Quote from: shade3134 on July 03, 2010, 02:36:21 PM
I'm still moving it around but:



This is what I got so far. How do I get the exact look (font size, font style) as the way it looks in my forum? Because if I move the code up, then the menu bar is a different font/style and are hypertext links.

EDIT: Just saw your post. Thanks.

It seems like it's a common thing done with SMF though... ???


Switch to default theme in your profile and see the wordpress page.  See if it changes.



What is common in smf?

shade3134

Adding a menu bar that's consistent throughout your website.

Advertisement: