Re: [PHP] WindPHP: "Whistler" [R26]
Quote:
Originally Posted by
FullmetalPride
Right, about the .htaccess.
Well I dunno how to write them manually. Web.config is much easier to write.
Code:
RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.+$ ./index.php [L]
it's basicly Regex
^ = start of the request url
$ = end of the request url
. = any char
+ = length
But you can also do something like
Code:
RewriteRule ^me$ ./index.php
which will redirect /me to the index.php
There're planty of tutorials, and it's just regex as I said
Re: [PHP] WindPHP: "Whistler" [R26]
Ah thanks :) I also need to learn how to add query parameters in there ($_GET)
Re: [PHP] WindPHP: "Whistler" [R26]
Quote:
Originally Posted by
FullmetalPride
Ah thanks :) I also need to learn how to add query parameters in there ($_GET)
"()" will do it for example
Code:
RewriteRule ^page/([a-z]+)$ ./index.php?page=$1
Everything within the "()" will be fetched and putted int the "$1" after ?page=
[a-z]+ is the selecter or what it will seach for
urls like /page/123 will not go throught but /page/abcde will
Re: [PHP] WindPHP: "Whistler" [R26]
Thanks joop :)
Having weird JavaScript errors. PersonalInfo is defined, and I'm using the room events widgit, but they're coming up as not defined. It makes no difference, because they both function (Room events working halfway) but you know, it'd be nice to not have any errors in the console.
http://nodebay.com/media/personalinfo.png
Re: [PHP] WindPHP: "Whistler" [R26]
Quote:
Originally Posted by
FullmetalPride
Thanks joop :)
Having weird JavaScript errors. PersonalInfo
is defined, and I'm using the room events widgit, but they're coming up as not defined. It makes no difference, because they both function (Room events working halfway) but you know, it'd be nice to not have any errors in the console.
http://nodebay.com/media/personalinfo.png
If you're on cloudflare, maybe try purging the cache or putting it into development mode? It's saying your com.js isn't there either, so maybe thats the problem.
Re: [PHP] WindPHP: "Whistler" [R26]
Com.js is never on any site. It's blank, anyways.
Re: [PHP] WindPHP: "Whistler" [R26]
Quote:
Originally Posted by
FullmetalPride
Com.js is never on any site. It's blank, anyways.
I have com.js. What i'm saying is, the js files used for PersonalInfo etc might not have updated in the CF cache
Re: [PHP] WindPHP: "Whistler" [R26]
Quote:
Originally Posted by
Jonteh
I have com.js. What i'm saying is, the js files used for PersonalInfo etc might not have updated in the CF cache
Oh ok. I don't know if I use it on my development sub domain.
EDIT: Cleared cache. Still not working. Same console errors :/
Re: [PHP] WindPHP: "Whistler" [R26]
http://nodebay.com/media/news.png
If I can get past this, I'll be able to progress further.
Unfortunately, I think it's an HTML error of sorts. Besides the news, it's all functioning quite well.
Re: [PHP] WindPHP: "Whistler" [R26]
Quote:
Originally Posted by
FullmetalPride
http://nodebay.com/media/news.png
If I can get past this, I'll be able to progress further.
Unfortunately, I think it's an HTML error of sorts. Besides the news, it's all functioning quite well.
Either that, or you're missing some CSS.
Re: [PHP] WindPHP: "Whistler" [R26]
Yeah CSS or JS problem I think.
Re: [PHP] WindPHP: "Whistler" [R26]
The files that should be linked are:
news.css (usually found in web-gallery/styles/news.css)
and news.js (usually found in web-gallery/js/news.js)
If that doesn't help, check your javascript console (F12) and make sure there are no errors regarding missing JS/CSS files
Re: [PHP] WindPHP: "Whistler" [R26]
Oh are they not?
- - - Updated - - -
They don't appear to be missing. Jabbo.eu doesn't have them on their Me page, they use PHPRetro.
I'll check PHPRetro 4 though.
Re: [PHP] WindPHP: "Whistler" [R26]
New Commit!
I fixed news, and my me page. It's now pristine. I just have to get the BG to work.
http://nodebay.com/media/latest.png
Re: [PHP] WindPHP: "Whistler" [R26]
BG working. Next I'm going to work on the tabs and stuff. Making the header dynamic right now.