The following warnings occurred: | ||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
mhhk im being dumb - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: mhhk im being dumb (/showthread.php?tid=359) Pages:
1
2
|
mhhk im being dumb - mudmin - 01-15-2017 Yeah. That makes sense. I just put at the very bottom of navigation.php and it works really well there. You definitely want it to be able to load the menus before killing the page. The problem is backwards compatibility...although I really see no harm in it being in there twice if it accidentally winds up that way for some people. I'm also adding a message when someone is redirected because of page access issues. mhhk im being dumb - mudmin - 01-15-2017 Actually, I don't think it is working properly there. I'll have to run some more testing. mhhk im being dumb - mudmin - 01-15-2017 Since I'm talking about it...one of the pros of userspice 4.1 is that it works on pretty much anything. Pretty much most server configs, etc. The downside of that is that (especially when it comes to path issues), I can't do everything I want to do. Sometimes it works on my system and then I try it on a second server and it fails miserably. I think that's where I came up with the compromise of just loading the function per page. On some systems it was checking to see if you had access to navigation.php instead of the page that navigation.php was being included on. Not that it couldn't be overcome but nginx, iis, apache, wamp, lamp, xampp all have slightly different ways of handling things that create crazy errors until you can find a common way of doing things. mhhk im being dumb - sabr - 01-15-2017 The joys of trying to fix things, "yes it works, no wait....". I encounter this thought often myself. I suppose one potential option if you want to be able to be able to things like path issues and functionality you wish to include would be to include a install/site settings option (stored in the db) for the user to specify what system they are running on and then have the code adjust to relevant settings. Although that is a mini project in itself and extensively complex I imagine. The thing about not having the knowledge and experience is you can make loads of suggestions. On a side note I have not started my project yet so moving to 4.2 as I notice there is some changes which have already been included and will keep an eye on the updates. mhhk im being dumb - mudmin - 01-15-2017 4.2 is really stable. I just have a few "Todo" things I want to do (a little bit better control over what happens if someone doesn't have permission to visit a page, but I'll offer a patch from beta to final if you want to start with that one. The main things are the social login features. I'm building a few projects simultaneously, so I've kind of let 4.2 sit in beta longer than I expected...but I've gotten some good feedback, so it's been worth it. |