Ozh
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Making every page dynamic with WP?Maybe this will help ? Taken from my actual index.php :
Original :
<? if ($posts) { foreach ($posts as $post) { start_wp(); ?>
My modification :
<? switch ($_GET["a"]) :
case "download" :
case "about" :
case "custom" :
case "links" :
case "stats" :
case "404" :
case "archives" :
$page = $_GET["a"] . ".php";
include $page;
break;
default :
echo "<!-- news -->";
?>
<? if ($posts) { foreach ($posts as $post) { start_wp(); ?>
And below everything related to printing posts, added :
<? endswitch; ?>
This way, I just edit or create pages such as “about.php” with no layout designing, they are integrated in my index.php instead of all the news items. So myblog.com/index.php prints the posts, myblog.com/index.php?a=about print the content of about.php within all your menus, headers and stuff.Forum: Everything else WordPress
In reply to: Where does Google adsense goHeh, nice google ads indeed. You should go further and make them even prettier and less “discreet”, if it’s pretty, we want to see it ! 🙂
Forum: Your WordPress
In reply to: TheCheapestLink.com – come check out the deals!I am teh leet
Ozh 13:37Forum: Fixing WordPress
In reply to: Getting “More…” StatusMaybe you’ll find this of interest :
http://mookitty.co.uk/devblog/archives/2004/06/27/the-moose-is-loose/Forum: Fixing WordPress
In reply to: Making somethingSomething like this might do :
Where you have code like this :
"> <? the_title(); ?>
Enclose it in a test on $single like this :
<? if (!$single) { ?>
"> <? the_title(); ?>
<? } ?>
$single is set to 1 if you’re displaying only one item (i.e. you are on the permalink page)Forum: Plugins
In reply to: Have phpBB up & running…want to ADD a Blogwell, integration of phpbb2 into a site could be a good reading for you, but IMO you’re asking too much here. You you want looks like a phpbb plugin to me, not like an integration of WP and phpBB together.
Forum: Fixing WordPress
In reply to: Nicer URLsYeah I was going to tell the same thing about rewrite rules.
If you plan to use this trick often, you could set up a general rule like :
RewriteRule ^information/([_0-9a-z-]+)/?$ /information_$1.php [QSA]
RewriteRule ^information/([_0-9a-z-]+)/([_0-9a-z-]+)/?$ /information_$1_$2.php [QSA]
RewriteRule ^information/([_0-9a-z-]+)/([_0-9a-z-]+)/([_0-9a-z-]+)/?$ /information_$1_$2_$3.php [QSA]
RewriteRule ^information/([_0-9a-z-]+)/([_0-9a-z-]+)/([_0-9a-z-]+)/([_0-9a-z-]+)/?$ /information_$1_$2_$3_$4.php [QSA]
So that any file located in/informationcould be accessed via “fake folders” :
/information/hello/would redirect to/information_hello.php
/information/so/cool/would redirect to/information_so_cool.php
/information/I/am/l33t/would redirect to/information_I_am_l33t.php
and so on …
(not sure you could handle any length of fake URL with a single rewrite rule instead of creating one for each as I did)Forum: Themes and Templates
In reply to: Apostrophe CatastropheI’m not too happy neither with wptexturize, especially as I paste a lot of code in my blog and it fux0res it up (curly quotes in particular)
I think I’m going to tweak it so that it only applies when I want to.Forum: Themes and Templates
In reply to: Site Design(watch out, this is the creator of BLOG:CMS trying to waste our community support time)
Forum: Plugins
In reply to: Plugin : IP to NationFor future reference, I’ve added both plugins to the Wiki (individual pages) and to the Wiki Plugin list
Forum: Plugins
In reply to: Plugin : IP to NationThanks 🙂
Forum: Plugins
In reply to: Plugin : IP to NationAh yes, that looks like a very cool idea 🙂
I’ll try this tooForum: Plugins
In reply to: Plugin : IP to NationWe all promise to keep it secret 🙂
Forum: Plugins
In reply to: Plugin : IP to NationI’ve had a few feedback from people from various countries, all said it worked for them, correct country.
Forum: Plugins
In reply to: New WP Theme – Adopted.Heh, I’ve just mentionned Dotclear’s templates 2 days ago 🙂
They are indeed pretty and clean.