Page 1 of 1

OBBLM Menu List issue version 0.97 SVN

Posted: Sun Jan 29, 2017 9:56 am
by teza25
Hi,
I had a problem with the PDF Roster giving the error "FPDF error: Some data has already been output, can't send PDF file". I have a mercury vps pre built system also on .97, I copied the site to a scratch built webserver and it works.
On the Hosted box I installed 0.97 SVN but from a download of a zip called NAF Master.
Now the PDF works but my web page menu is just a long list of options instead of the usual menu bar with drop downs list.
Anyway of changing the menu format?
Attached sample screenshot
Thanks

Re: OBBLM Menu List issue version 0.97 SVN

Posted: Mon Jan 30, 2017 12:43 pm
by Tim
Looks like the files/stylesheets for the CSSMenu /css3menu (not sure which is used in 0.97) are missing.

Do you have an url to your page?

Re: OBBLM Menu List issue version 0.97 SVN

Posted: Mon Jan 30, 2017 9:54 pm
by teza25
I backed it out. I will reinstate it for you to check after Tuesday 8:30am UK time tomorrow

Url yobbs.obblm.com

cheers
teza

Re: OBBLM Menu List issue version 0.97 SVN

Posted: Tue Jan 31, 2017 7:50 am
by teza25
I can see differences in the coding, worked ok on my test server. I think a restart of the apache service is required.

Re: OBBLM Menu List issue version 0.97 SVN

Posted: Tue Jan 31, 2017 10:28 am
by Tim
I'm not sure, what your codebase is, it seems a bit inconsistent. It looks like your CSS does not match the code (the menu is a bit tricky).

You can change the marked line to fix it in your code (see attached browser capture). Using the latest stylesheets from NAFLM might also do the trick (i can not test it at work, I have to check my local installation of the current master branch on why it works there).

Please correct it in lib/class_htmlout.php function make_menu.
reference: https://github.com/TheNAF/naflm/blob/ma ... t.php#L979

Re: OBBLM Menu List issue version 0.97 SVN

Posted: Tue Jan 31, 2017 7:43 pm
by teza25
Hi Tim

Brute force did it, I copied the class_htmlout.php from my original working site and success, all working!

Bang on the money

PDF also working now

Cheers
Terry

Re: OBBLM Menu List issue version 0.97 SVN

Posted: Wed Feb 01, 2017 8:19 am
by Tim
Probably not the best idea to mix the code of different versions that way. Might cause some side effects and makes it insupportable for others.
Did you just slap the old CSS files into the new installation of NAF Master? Because that's what likely caused your menu issues then.

Re: OBBLM Menu List issue version 0.97 SVN

Posted: Thu Feb 02, 2017 8:00 am
by teza25
I kept the OBBLM download files separate, i suspect it happened unintentionally by filezilla, a double click of a file will sync it. I also assumed .97 SVN is the version but found different coding when comparing files, I now know there are different flavours out there.

Thanks for you help
Cheers
Terry