Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter limne

    (@limne)

    You didn’t mention HOW you did your integration, so I gave you the basic ‘this is how we do it’ Always assume the worst 🙂

    It’s cool 🙂

    I don’t have that problem. So I can only assume this: You coded your loop in a weird way.

    Hmm… The only tag I can think of that might be responsible is this one: <?php query_posts('showposts=2');?> It’s inserted just before the <?php if (have_posts()) : ?> tag at the start of the loop. I saw it used in one of the tutorials I found online. Do you know what it does?

    You can put the PHP into WordPress, you know, rather than the other way around. Put the PHP in your theme and it would act, somewhat, like your own plugin. I think that while you could strong-arm WP into working your way, you might want to shoot yourself by the end of it. 🙂

    Hmmm… That might work. I’d only thought of using WP pages before, but I guess there really isn’t a reason I can’t pile all my own content into the theme’s folder and have it called up as includes. I guess I’m just worried about if the php might mesh right (Maybe if there are variables, arrays and functions, etc. with the same name). Do you know of cases where people have been successful in doing it this way?

    Thread Starter limne

    (@limne)

    Alright. Can someone at least answer me whether NextGEN Gallery 1.5.2 even has image sorting or if they just expurgated it because it’s so broken?

    Thread Starter limne

    (@limne)

    I think it’s possible, but you sure worded yourself in a convoluted way 🙂

    Did I? I tried my best to explain in simple terms, but this whole thing is turning out to be very complicated.

    Also, what sort of ‘non-Wordpress dynamic PHP stuff’ are we talking about?

    Mostly various image browsers and various kinds of customized sidebars for jumping between images and pages within them. So far I haven’t had much luck getting the plugins to do what I’d like them to so I’m reworking PHP a friend wrote for me a few years back.

    I have an index.php page like so…

    It seems you really didn’t understand my initial post. To recap: I’d already done everything like you’ve said. Both that snippet of code (for the WordPress Header) and the loop are already included and working properly. However, they’re severely limited in what they can do in this environment:

    Clicking on a permalink will not take you to it’s own page. Clicking a tag or category link will not take you to its respective archive page. All links simply reload the page, including the one’s I need to access older content. Now, as I understand it, these pages are usually handled by different templates in the themes folder. Because I have theme’s disabled, WP can’t access them and doesn’t know where to look for these templates, and so it simply reloads the index.php file which is limited to showing a few of the most recent posts.

    Thus, I am wondering how I can get the rest of my content (as if through archive templates) to load.

    Thread Starter limne

    (@limne)

    Let me take a stab at this and guess that what I want is impossible and that the entire WP architecture can’t be inserted into a preexisting website as some sort of plugin with all the functionality of a WP theme. It really would have been nice to have been warned of such things by the Codex…

    Thread Starter limne

    (@limne)

    I just moved the files ;P

    I don’t understand the symlink stuff so I’ll just move them back and try again.

    Hmmm… This “Blog address (URL),” If I’m using the wordpress stuff as an include on a preexisting site, (in the root directory) do I want to leave it as the root or put in the “/blog” part?

    Thread Starter limne

    (@limne)

    Jolly good.

    … Um, I have a bit of a situation here. I moved all of the WordPress stuff to a directory called “blog” and while I’m managing to load stuff from my own index page, now I can’t access my admin panel. I click on the edit button for posts and they still seem to think they’re on the same directory as the index file, but of course it just loads an unmarked version of the post. Typing the URL “blog/wp_admin/login.php” won’t let me in either.

    Besides inserting that header file, I’ve cut and pasted the loop from the index file of the default theme.

    Any idea what I’ve done wrong?

    Thread Starter limne

    (@limne)

    Good stuff. Now I can start looking at the loop more closely for what I can get out of it… What’s the difference between wp-load and wp-header? Both seem to work the same for me.

    I think I got your explanation of . and /
    I’m sure I’ve used ../ to back out of directories before, but ./ still confuses me because. I’ve always just been able to use a “file.extension” or “directory/file.extension” so I don’t see where the difference is.

    Thread Starter limne

    (@limne)

    Ah, it’s so good to wake up to a recent reply, thanks 🙂

    I’d read that page before (and several others) but I couldn’t get the methods described to work so I assumed it must be more complicated than I initially anticipated… And it is, but now that I’ve gotten it to work at all I’ll have to do some experimenting.

    One thing for now: in the code snippets that includes the header, I see that the only real difference between them is the following line:

    define('WP_USE_THEMES', false);

    Just to make sure, this is needed to stop WP from using its own them? Also, does this bit of code need to be added at the top of the page or can I just put it where I’m including stuff?

    One other thing for now; I’ve got the page and the header both in the root directory. Is there a difference between:

    require('./wp-blog-header.php'); and require('wp-blog-header.php'); ?

    I may not have mentioned but I only just started learning php, even though my entire site’s going to be powered by it 😛

    Thanks for all the help so far,

Viewing 8 replies - 1 through 8 (of 8 total)