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!! π
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:
site:
Available for skin/mod commission! π
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.
You have to add the links under "page links" in the admin menu.
You need to explain it better please. I don't understand what you mean.
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.
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.
No, you said you created the pages. Creating the links on page links is something different. Did you do that too?
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]
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.
Yep, all the names are spelt the same.
And here's the link: http://www.hiei-fan-club.jennifermohr.com/
π
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.
*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.
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.
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,
