BenWalker
-
Unexpected T_Class on line 12
Any reason for the ternary operator?
-
Wordpress URLs
Sorry -- you posted while I replied. This is all about php now not htaccess You don't seem to realise how these are connected. As I allude to above, parts of this process can be done by either. It is down to you as to which you want to us…
-
Wordpress URLs
There are lots of ways of achieving what you want to achieve. The first is to use .htaccess to rewrite everything to index.php (except the files you want a user to access directly). You can then use something like: $_SERVER['REQUEST_URI']…
-
Sharing Stylesheets & Current Navigational Highlighting
@chrisburton has your solution but if you changed && to || it might work. I have a similar situation on my site where && doesn't work but || does. Just to clarify, since it isn't mentioned above, the reason &&…
-
Logo critique
In my head I pronounce it like unearth, but ending like inert. I did not associate it with unity or art, since my go-to pronunciation didn't make it sound like either of those two words. I'm not sure either of those matter necessarily, b…
-
How do I install all this great stuff? - I'm still stuck!
I imagine they're themes? So you put them in wp-content --> themes Ooh, good point. I'd assumed bizolly was talking about stand-alone packages, like sliders, etc.
-
How do I install all this great stuff? - I'm still stuck!
Hi Bizolly. Your question is complicated to answer, since it often depends on you knowing a little about how to write your own webpages. The short answer is that these are generally not items you "install". The CSS and JavaScript files yo…
-
Login with Twitter (Kirby)
Couldn't his URLs just be redirects? Have a look at this: https://dev.twitter.com/docs/auth/implementing-sign-twitter You'd probably need to develop your own plugin for this, but it doesn't look too challenging. Twitter links to so…
-
Website Keyword Stacking
What are you trying to achieve? The main search engines don't use meta keywords to affect page ranking. I would ask your clients to use your design with the link in the footer if they appreciated your work. That way, they are in control and yo…
-
hover prob
To clarify: The elements on the left are HTML elements that relate to particular components in the picture. When you highlight one of these elements, you want the area it relates to on the picture to also be highlighted. I would recommend you loo…
-
hover prob
I'm confused by your question. EDIT: Just worked it out. Give me a minute and I'll answer properly :-)
-
Reverse PHP Increment
Actually, scrap that. My code is the one to use :-) ... I think
-
Reverse PHP Increment
@hotpink is correct, but the page count will end in zero. Subtract at the end of the loop to end with one.
-
From Wordpress to Kirby
Avoiding 5.4 is a bad plan. If nothing you used required 5.4, why would it be preferable? Is it just a case of being future-proof? Obviously there's no reason not to run it if you can, but given that isn't the case, why is it better …
-
WordPress/WampServer Page Error
"What am I actually telling my computer to do when I select this?" localhost/wordpress/feel-good-candy/ The directory above doesn't actually exist on your server. Wordpress will produce a file called .htaccess that has a series of…
-
From Wordpress to Kirby
@Lexabi You should avoid hosts that only offer php 5.4. @traq says above that the markdown module doesn't work with 5.4. My host doesn't provide dropbox support, but still runs kirby perfectly as they use php 5.3. I'm just sticking t…
-
From Wordpress to Kirby
Yeah, dropbox is a no-go. I don't want to switch hosts though (I really like them), and I can't afford to upgrade right now, so I'll stick to local writing and ftp uploading. C'est la vie.
-
Should I name my website pages with the .php extension, even if there is no PHP in the code?
Your file extensions don't have to have anything to do with your URLs. As long as a URL that used to link somewhere still ends up linking somewhere, you'll be fine. I personally don't like mixing things up. I like everything to have …
-
From Wordpress to Kirby
Add this to your html element to prevent horizontal jump You know, I never really notice this, so never think to prevent it. Thanks for the pointer. Now I've just got to hear back from my web host as to whether it's possible to get d…
-
From Wordpress to Kirby
By the way, if you're a student, there's a discount on the license. I contacted Bastian yesterday about this and he responded this morning with the code. I now have a license and the website is live :-) http://furryphilosopher.walker…
-
From Wordpress to Kirby
I've just spent the last few hours playing with Kirby and it is fucking amazing (pardon my French). In that time I've converted my wordpress blog's templates to Kirby's framework, including appropriate snippets and two types of b…
-
HTAccess - Fake directory to actual subdirectory.
Sorry -- I should have been more specific when I said "put it earlier" :-) I'm glad you've got it working.
-
HTAccess - Fake directory to actual subdirectory.
Could you post again what you are using. I moved the line beneath the RewriteBase and it worked fine. I would suggest finishing the line with [L] if you aren't looking to further process the URL.
-
HTAccess - Fake directory to actual subdirectory.
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] This block combined tells the server that if the request doesn't point to an existing file or directory, then re-route it to index.php. Your …
-
HTAccess - Fake directory to actual subdirectory.
Your code loses the demos part in the regex. You need to include it. RewriteRule ^demos/(.*) /wp-content/themes/themename/$1 $1 will read FILENAME.PHP, so the final URL becomes /wp-content/themes/themename/FILENAME.PHP. Try: RewriteRule ^demos/…
-
number of who is online with php and mysql !
How do you currently handle logging in? If a user is logged in, I would normally assign a session id that is then expunged either on logout or after a set time period. You might do it differently. Either way, there should be something that is diff…
-
can anyone provide some web space with no charge
You can host a site yourself as well if needed. Cheap computers like the Raspberry Pi have very low running costs and most home internet packages provide sufficient bandwidth to cover a small site's need, provided there aren't many large f…
-
Pagination for Splitting results from mysql
You'll need some conditionals. As I said above: If $page is greater than one, you will want a link back to $page - 1. If $page * 5 is less than or equal to $result, you will want a link to $page + 1.
-
Pagination for Splitting results from mysql
Sorry -- should have mentioned you will need to give links to the other pages. $page will show the page they are on, while $result will show you the total number of entries. If $page is greater than one, you will want a link back to $page - 1. If…