Adding content infr...
 
Notifications
Clear all

Adding content infront of {menu_context} and adding spacing to it , Simplicity

16 Posts
3 Users
0 Reactions
4,247 Views
(@guest6977)
Posts: 0
 

hello , i'm trying to add a line of words infront of {menu_Content} on simplicity

but when i do it kicks it to the line above , with {menu_content} below it,

where do i look to edit  {menu_content}

i also need to add some spaces to  {menu_content} cause my links are running togheath under 2 of them, thank you - Cagalli


 
Posted : 15/08/2010 1:09 am
(@lyndsie)
Posts: 1263
Member Moderator
 

{menu_content} can be generated a couple of ways. This wiki article talks about them: https://efiction.org/wiki/index.php5?title=How_to_change_the_site_menu


 
Posted : 15/08/2010 1:12 am
(@guest6977)
Posts: 0
 

Yes , Lyndsie thats how to add to the {menu_content} array , but dosen't show the code behind it ( where i need to add the space) or why it;s forcing the text i'm adding to the line above it.... ( or adding {menu_content) after on a newline) , but thank you for the reply


 
Posted : 15/08/2010 1:32 am
(@lyndsie)
Posts: 1263
Member Moderator
 

I'm not familiar with the Simplicity skin. Where did you download it from? Can you link to the site so we can see the problem?


 
Posted : 15/08/2010 1:32 pm
(@guest6977)
Posts: 0
 

http://sylvia.the-hatta.com/efiction/index.php is the site, and the skin came with the default package...


 
Posted : 15/08/2010 2:34 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

The skins that come with eFiction v 3 are Elegance, CSSZen, and Zenlike. Looks like Simplicity was made by the Tonya given in the credit link at the bottom of the page: http://nameless.fengurl-dreams.com/layouts.htm. Can you paste in your site's specific variables.php? It looks like that's where the menus are defined, but yours has different links than the default Simplicity skin.


 
Posted : 15/08/2010 4:34 pm
(@guest6977)
Posts: 0
 
$blocks["menu"]["content"] = array (
0 => 'Fanfiction:',
    1 => 'home',
2 => 'register',
3 => 'login',
4 => 'logout',
5 => 'help',
6 => 'contactus',
7 => 'challenges',
8 => 'tens',
9 => 'search');

thats {menu_content} var...


 
Posted : 15/08/2010 10:24 pm
(@tammy)
Posts: 2577
Member Moderator
 

What are you trying to do?  Something like:


Menu: Home
          Search
          Browse

And it's putting out something like:


Menu:

Home
Search
Browse

That's because the {menu_content} in that skin is set to output as an unordered list.  The list is displayed as a block which by default has margin.  There's no simple solution for what you're wanting. 

BTW, filling out the support request template stickied at the top of the forum is always a good idea when asking for help.  At the very least we usually ask for a link to your site so we can see the issue ourselves.

Also, if you want a good search engine ranking for your site that skin might not be a good one to use.  It uses tables for formatting the page which lower your search engine ranking.


 
Posted : 16/08/2010 5:43 pm
(@guest6977)
Posts: 0
 

whats were trying to do is:

Fanfiction: Home Register Login

so on so fourth ... and add a space between home and register, because they run togeather...


 
Posted : 17/08/2010 5:24 pm
(@tammy)
Posts: 2577
Member Moderator
 

So you're trying to turn the vertical menu horizontal?  You're probably going to have to edit the skin's variables.php and change the 'style' for the menu block from 1 to 0.


$blocks['menu']['style'] = 1;

Then you're going to have to change the style.css to make the new format work right.


 
Posted : 17/08/2010 6:29 pm
(@guest6977)
Posts: 0
 

the array already prints out on a single line what i want to do ia add " FanFiction" in front of it and add spaces... refer to the link to it to see.....


 
Posted : 18/08/2010 1:12 am
(@tammy)
Posts: 2577
Member Moderator
 

This looks nothing like any of the provided skins.  However, viewing the source tells me you need to set your menu div to inline display in your CSS.


#menu {
display: inline;
}

You've also got some funky spacing in the names of your links (Home, Login, etc.)  If you were trying to space out the links, that's not going to work.  You need to add margin to the #menu A declaration in the CSS.


 
Posted : 18/08/2010 4:18 pm
(@guest6977)
Posts: 0
 
The css currenly has this :
[code
]#menu {
}
#menu li {display: inline;}
#menu ul {
list-style: none;
display: block;
}

Does that help any ?


 
Posted : 19/08/2010 6:33 pm
(@tammy)
Posts: 2577
Member Moderator
 

Yes, I already told you what to change it to.


 
Posted : 20/08/2010 12:17 am
(@guest6977)
Posts: 0
 

There is no #menu A declaration in my CSS file. And I also tried it in the menu part that i do have and it still didn't work.


 
Posted : 25/08/2010 11:27 pm
Page 1 / 2
Share: