Member
Member
carasmo   2006-11-11, 00:56
#1

Hello,

Please put a search form on the board. I'm looking for a way to add a custom page in more detail with .htacess installed.

Wouldn't it rock if you could add a custom field (like expression engine) and make an about us page and other stuff like that. But that'a whole 'nother subject.

I think, even with my limited scripting, I can add another table and just make a page like that (I have no clue how to add it to the admin section and, for that matter, when an upgrade comes along what a pain to re-create).

Thanks!

Member
Member
Chilifrei64   2006-11-11, 01:57
#2

As far as the search..
http://www.zenphoto.org/support/search.php

as for the "us" page you can accomplish that by

anything.php becomes /index.php?p=anything

You can add the following rule to your .htaccess to be able to visit the page from /page/anything:

RewriteRule ^page/([A-Za-z0-9-]+)/?$ index.php?p=$1 [L,QSA]

This must go UNDER the RewriteRule ^page/([0-9]+)/?$ line

Developer
Developer
trisweb   2006-11-11, 09:52
#3

I'll add the search field prominently on the front page! Sorry for not realizing it was gone in the upgrade (it was an upgrade of bbPress, btw, not just a theme change

Daniel's right about putting in custom PHP pages. In a theme, anything.php (in the theme's folder) is accessible through index.php?p=anything . Also, if you add that rewrite rule, it's also going to be in future versions so you won't need to worry about it in your themes ever again

Member
Member
carasmo   2006-11-11, 17:18
#4

You rock! And you too.

Thanks. This is an excellent forum. Very clean.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.