Skins > CSSZen &...
 
Notifications
Clear all

Skins > CSSZen > Variables > footermenu > add items to the menu

20 Posts
5 Users
0 Reactions
4,894 Views
(@sugarinice)
Posts: 41
Eminent Member
Topic starter
 

I tried to add more links to the bottom menu but each time I save the variables file and upload it I get this error messgae,

Parse error: syntax error, unexpected T_LNUMBER, expecting ')' in /home2/jennifer/public_html/hiei-fan-club/skins/Hiei/variables.php on line 27

Are you not able to add more items footermenu or have I done something wrong? Here's the edited coding,

$blocks["menu"]["style"] = 0;
$blocks["footermenu"] = array(
"title" => "",
"status" => "1",
"file" => "menu/menu.php",
"style" => 0,
"content" => array (
0 => 'help',
1 => 'rules',
2 => 'contactus'
3 => 'tos'
4 => 'abuse'
5 => 'rate'
)
);

and the original,

$blocks["menu"]["style"] = 0;
$blocks["footermenu"] = array(
"title" => "",
"status" => "1",
"file" => "menu/menu.php",
"style" => 0,
"content" => array (
0 => 'help',
1 => 'rules',
2 => 'contactus'
)
);

Help please? Thanks so much!! πŸ˜€


 
Posted : 22/03/2009 6:35 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Replace it with this:

$blocks["menu"]["style"] = 0;
$blocks["footermenu"] = array(
  "title" => "",
  "status" => "1",
  "file" => "menu/menu.php",
  "style" => 0,
  "content" => array (
      0 => 'help',
      1 => 'rules',
      2 => 'contactus',
      3 => 'tos',
      4 => 'abuse',
      5 => 'rate'
  )
);

The error's popping up because you forgot to add the commas after each array item.

πŸ™‚


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 22/03/2009 6:58 pm
(@sugarinice)
Posts: 41
Eminent Member
Topic starter
 

Okay, yay! No error! πŸ˜€ Thanks!
Now,I need more help though. It only added the TOS. Not the other ones listed and the pages have been created.


 
Posted : 22/03/2009 7:18 pm
(@carissa)
Posts: 791
Member Moderator
 

You have to add the links under "page links" in the admin menu.


 
Posted : 22/03/2009 9:52 pm
(@sugarinice)
Posts: 41
Eminent Member
Topic starter
 

You need to explain it better please. I don't understand what you mean.


 
Posted : 22/03/2009 11:53 pm
(@carissa)
Posts: 791
Member Moderator
 

There's not much to explain. Click on admin, and there is a link near the end called "page links". Click on that, scroll to the bottom and click on add new link. Click on that and fill in the form. You can leave link access key blank. The name of the link should be what you put in your variables.php and the text of the link is what you want to appear on the page. Everything else is pretty self explanatory.

If the links you want to use are already in the list, click on edit next to the appropriate ones and adjust your variables.php with the correct name of the link.


 
Posted : 23/03/2009 9:27 am
(@sugarinice)
Posts: 41
Eminent Member
Topic starter
 

Oh! Well I already did that. I've already created the links. The fact is they aren't showing up. I think I said that.


 
Posted : 23/03/2009 9:30 am
(@carissa)
Posts: 791
Member Moderator
 

No, you said you created the pages. Creating the links on page links is something different. Did you do that too?


 
Posted : 23/03/2009 9:33 am
(@sugarinice)
Posts: 41
Eminent Member
Topic starter
 

I don't understand then.
When you create the pages you have to put in the page link name too. I click save and when I got to created pages (or whatever it's called) I can click on the name and it'll take me to the page.
So I don't understand. Doesn't that mean I created the link? O.o
You're going to need to explain it differantly cause I'm totally lost. I'm sorry,

[EDIT]
I may understand...I think...
I went under page links. Al lthe links seem to be there is that's what you mean? They created themselves automatically.
I still can't get the links to show up on the bottom though?
[/EDIT]


 
Posted : 23/03/2009 10:35 am
(@carissa)
Posts: 791
Member Moderator
 

did you check to make sure you're using the right names for the links in the variables.php file? It has to be exact.

ETA: Where is the link to your site? I need to see it.


 
Posted : 23/03/2009 11:25 am
(@sugarinice)
Posts: 41
Eminent Member
Topic starter
 

Yep, all the names are spelt the same.
And here's the link: http://www.hiei-fan-club.jennifermohr.com/
πŸ˜€


 
Posted : 23/03/2009 11:33 am
(@lyndsie)
Posts: 1263
Member Moderator
 

Here's a link to adding page links in the wiki: https://efiction.org/wiki/index.php5?title=Adding_custom_links

You added all of those links to the variables.php you quoted above manually, correct?  I think that's not meant to be done that way.  You should check out the first option, here: https://efiction.org/wiki/index.php5?title=Adding_custom_links#Via_the_admin_panel.  Looks like yours are being controlled by that, not variables.php. Or they could be universal page links, ie. {home}, {authors}, etc.

This also explains the menu in best detail: https://efiction.org/wiki/index.php5?title=How_to_change_the_site_menu

ETA:
I downloaded your header.tpl, and they are universal page links.


<div class="content"><ul id="onemenulist">
<li>{recent}</li>
<li>{authors}</li>
<li>{catslink}</li>
<li>{titles}</li>
<li>{series}</li>
<li>{challenges}</li>
<li>{tens}</li> 
<li>{search}</li>
</ul>
</div>

This is the wiki entry: https://efiction.org/wiki/index.php5?title=Universal_page_links.  Take the name of the page link and put it in curly brackets following the pattern above and it should work fine.


 
Posted : 23/03/2009 2:38 pm
(@sugarinice)
Posts: 41
Eminent Member
Topic starter
 

*blinks* @_@
Um...what?
I looked at the link and I don't understand at all.
Call me an idiot but now I'm more confused.
Sorry...but I'm totally lost.


 
Posted : 23/03/2009 2:47 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

Okay, so the menu is defined by the universal page links.  Here's what you need to do, assuming that what you provided are actually the proper names for the page links you created.  I'm pulling this from the variables.php you quoted earlier.

Find this in header.tpl:


<div class="content"><ul id="onemenulist">
<li>{recent}</li>
<li>{authors}</li>
<li>{catslink}</li>
<li>{titles}</li>
<li>{series}</li>
<li>{challenges}</li>
<li>{tens}</li> 
<li>{search}</li>
</ul>
</div>

Replace with this:


<div class="content"><ul id="onemenulist">
<li>{recent}</li>
<li>{authors}</li>
<li>{catslink}</li>
<li>{titles}</li>
<li>{series}</li>
<li>{challenges}</li>
<li>{tens}</li> 
<li>{search}</li>
<li>{tos}</li>
<li>{abuse}</li>
<li>{rate}</li>
</ul>
</div>

There's also help, rules, and contactus in that variables.php file, but I'm not clear on whether you want that to appear or not, since it was a part of the original variables.php and not the custom pages you made.  If you do want them, then you can add them in like above.


 
Posted : 23/03/2009 3:06 pm
(@sugarinice)
Posts: 41
Eminent Member
Topic starter
 

Oh! Okie dokie! πŸ˜€ I'll try it!

[EDIT]
Problem, my header TPL looks like this,


<!-- START BLOCK : header -->
<body>
<div id="{page_id}">
<div id="banner">
<div id="sitename">{sitename}</div>
<div id="slogan">{slogan}</div>
<div id="skin">{skinchange_content}</div>
<div id="rss">{rss}</div>
{menu_content}
{login_content}
</div>
<div id="mainpage">
<!-- END BLOCK : header -->


And that's the header for CSSZen. Is there another header?

Sorry I'm a pain in the butt,

 
Posted : 24/03/2009 11:25 am
Page 1 / 2
Share: