Recent Topics

1 Mar 14, 2008 16:39    

My b2evolution Version: Not Entered

I'm trying to merge the Login link displayed in my skin with other custom links like My Messageboards, About Me, etc. I want them all to be on the same line (and the login link to not be there if someone is logged in). The best I could do is either have it all disappear if someone is logged in or if a person is not logged in get 2 lines, one with the merged links then followed by one without.

Is there a way to merge the Menu container code below with the repeated code for HOME, ABOUT ME, MY MESSAGEBOARDS listed below?

<div class="pageHeader">

// ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
skin_container( NT_('Menu'), array(
// The following params will be used as defaults for widgets included in this container:
'block_start' => ' ',
'block_end' => ' ',
'block_display_title' => false,
'list_start' => ' ',
'list_end' => ' ',
'item_start' => '<h2>',
'item_end' => ' | <a href="">HOME</a> | <a href="">ABOUT ME</a> | <a href="">MY MESSAGEBOARDS</a></h2>',
) );
// ----------------------------- END OF "Menu" CONTAINER -----------------------------
<h2><a href="">HOME</a> | <a href="">ABOUT ME</a> | <a href="">MY MESSAGEBOARDS</a></h2>

2 Mar 15, 2008 01:12

Hmmm... ok well if someone doesn't know how to do that, any ideas on code that will go something like this:

if not logged in - do code above
else (meaning not logged in) display the other headers?

3 Mar 15, 2008 01:52

Make up your mind! The first is a matter of adding widgets to the menu container via the back office. The second is off topic and has been covered many times already.

4 Mar 15, 2008 01:56

Ed: I'll take #1, please.

5 Mar 15, 2008 02:02

EdB wrote:

The first is a matter of adding widgets to the menu container via the back office.


6 Mar 15, 2008 02:23

In my list of widgets already installed, there are none that say or try to say Menu Container. Nor is there one when I hit install widgets. Could you be a tad more verbose than smileys, please.

7 Mar 15, 2008 02:28

Your list of installed widgets? um... are you sure you don't mean list of installed plugins?

Blog settings -> pick a blog -> widgets -> see all the containers identified, with a list of all widgets installed in those containers. Find "Menu" container. Click "add new widget" or something like that. You can probably take it from there yah?

BTW sometimes plugins make widgets, so yeah you install the plugin, but then pick the blog the widget will go on, and pick the container the widget will go in. Calendar is an example of that.

What's verbose mean :?: :roll: ;)

8 Mar 15, 2008 02:29

The best I could do is add a home link and a login link but alas, they won't appear in the same line like I need, let alone add about me or other links to that in one line.

9 Mar 15, 2008 02:36

Well you've changed the values to the parameters that go before and after a LIST item to be the actual items so that might be part of the problem. Like for example never minding what you've got in the first post here, doing a view source on your page shows me that you've got "<div class="$whatever_it_is$">" twice, so of course you are getting each line item twice. Maybe you've duplicated the Menu container code? Dunno for sure exactly what the issue is, but seeing your view source shows me that you're pretty close to having what you want - just not there entirely yet. Duplicating <div class="widget_core_menu_link"> is the root of the problem right now though, so figure out why it shows up twice and you'll have your bits on one line.

I think.

10 Mar 15, 2008 02:45

Got it, pretty sure I'm just about there now. Will have it working next to no time, thanks for your help Ed!

BTW... verbose = your last two posts. Perfectly executed, I couldn't have done it without them! :p

Form is loading...

Advanced CMS – This forum is powered by b2evolution CMS, a complete engine for your website.