Member
Member
sint   2009-12-29, 15:34
#1
while creating my custom theme, i come about a problem with the logout link. i've created a header.php and included it in every page. the logout link works fine, except for the 404 page, its not loading.

seems like, the function does not exist on a logout page?

this is my code inside the header.php to load the link:

`if (function_exists('printUserLogin_out')) { printUserLogin_out('[*]', '');`
Member
Member
sbillard   2009-12-29, 18:15
#2
Does your custom theme include a 404.php script?
Member
Member
sint   2009-12-29, 19:21
#3
ya, the file is working fine on 404 errors, except the included header.php doesn't show the logout link in the top of the page.
Member
Member
sint   2009-12-29, 19:46
#4
ok, i've played around a bit more. if i copy the code inside the 404 it does nothing as well.
the function does not exist on 404 pages. so `function_exists('printUserLogin_out')` returns false and `printUserLogin_out()` gives an error.

maybe i should use a hardcoded link?! would work for now...
Member
Member
sbillard   2009-12-29, 21:12
#5
Yes. We don't currently load the plugins on a 404 error. I will change that in the nightly build.
Member
Member
sint   2009-12-29, 22:51
#6
great! i just wanted to have the 404 page like all other pages, with navigation in top.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.