cosmosnow
Forum Replies Created
-
Forum: Installing WordPress
In reply to: WP 2.6 upgrade results in “database connection error”I reinstalled everything… all my old blog entries are gone, now, but I didn’t have that many to start with. So, I sort of started from scratch again.
Forum: Fixing WordPress
In reply to: PHP Include wordpressYour index.php should ONLY have `<?php
/* Short and sweet */
define(‘WP_USE_THEMES’, true);
require(‘wp-blog-header.php’);
?>`Then, go to WP’s default theme in your themes folder and customize the content to be your layout/custom theme. Make sure ‘default theme’ is enabled, just in case, for your WordPress.
Just ask if you have any more problems, or have questions about this method. It’s what I use, and we can always work around it.
Forum: Fixing WordPress
In reply to: How do you display the “number” of a comment?Number relating to the post. Kind of like the “order” of the post.
Forum: Fixing WordPress
In reply to: Is it best to download WordPress into your root directory?I’m using dynamic includes for the main links on my page. There’s a navigation bar on my layout. Do you have a different idea to make it easier/more convenient? I’m open to any and all suggestions.
Forum: Themes and Templates
In reply to: Is it best to download WordPress into your root directory?My site link is https://cosmosnow.net
Forum: Themes and Templates
In reply to: Is it best to download WordPress into your root directory?**the links don’t work because they are NOT “included” in the wordpress folder;
Forum: Themes and Templates
In reply to: How can WP remain consistent with my dynamic includes?Honestly, I appreciate your effort! The full path method does not work.
I don’t understand what you mean by putting the “includes into [my] theme folder”… define “includes”? Do you mean my header.php/footer.php?
I’m more or less new to PHP and the exact terminology.
I apologize!Forum: Themes and Templates
In reply to: How can WP remain consistent with my dynamic includes?here’s the code I have in my default themes index:
<?php get_header(); ?>
<?php if (isset($_GET[‘x’])) {
if (strpos($_GET[‘x’], “/”)) {
$dir = substr(str_replace(‘..’, ”, $_GET[‘x’]), 0, strpos($_GET[‘x’], “/”)) . “/”;
$file = substr(strrchr($_GET[‘x’], “/”), 1);
if (file_exists($dir.$file.”.php”)) {
include($dir.$file.”.php”);
} else {
include(“pages/default.php”);
}
} else {
if (file_exists(basename($_GET[‘x’]).”.php”)) {
include(basename($_GET[‘x’]).”.php”);
} else {
include(“pages/default.php”);
}
}
} else {
include(“pages/default.php”);
} ?><?php get_footer(); ?>
Forum: Themes and Templates
In reply to: How can WP remain consistent with my dynamic includes?How would I use full paths? Should I just directly upload the content inside my WordPress directory into the my site’s root directory?
Forum: Themes and Templates
In reply to: How can WP remain consistent with my dynamic includes?Where should I put that format? Into my themes index page?
Forum: Themes and Templates
In reply to: How can WP remain consistent with my dynamic includes?Oh.
Mainly, my other pages are in my default themes folder, so that’s where I have the dynamic includes code – in the index of my default theme.