1

Topic: Modifying Nav Links Causes Issues

I am currently trying to modify generate_navlinks() in the functions.php file in order to remove rules, login, logout, and register from the nav links.  I have integrated a working site wide login and do not need the rundundancy.

If I comment out or removed any of the $links[] =  it causes an error immediately. 

Parse error: parse error, unexpected T_VARIABLE, expecting ';' in /home/electrp1/public_html/e-liberty.org/forum/include/functions.php on line 1058

Line 1058 is the following portion of the function dump():

for ($i = 0; $i  $num_args; ++$i)


Any suggestions?

Re: Modifying Nav Links Causes Issues

I'm getting no problems when I try to comment out the links.

Try commenting these lines out:
244
245
252
253
265
272

3

Re: Modifying Nav Links Causes Issues

Dmac,

I had the same problem as you.  I changed the mentioned line to the following:

for ($i = 0; $num_args; ++$i)

I'm not sure why the $i was in the middle of this but removing it solves the problem.  I don't know if Krilik is using an older version of forum but I downloaded the latest one.  I haven't had any problems so far with this alteration but if anyone can see anything wrong please let me know.

Hope this helps.