Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Same here, did you ever figure this out?

    What’s the status on this? I can’t figure it out …

    Thread Starter geddeth

    (@geddeth)

    Thanks for your replies, I had sort of come to those conclusions myself. But it’s nice to have them confirmed.

    FWIW, I have decided on the method with the custom template and am redirecting from / to /blog/portalpage which is a bit ugly, but gets the job done. I can then mess with the template and not worry about whether the WP framework is initialized properly.

    On a sidenote: once upon a time (I believe pre-1.5) it was possible to set your page slug to anything you liked. Now I can’t even set it to / or some random address. That kind of sucks, since I (also) use the links of pages for navigation, and that would allow me to link to stuff outside of WP. The actual page content would never be viewed of course, only the page slug would be important. Huh.

    Thread Starter geddeth

    (@geddeth)

    No tips on this one? Is it even feasible?

    In short, I just want to show most of my theme, a few post headers, do some custom PHP things, display some stats and so on. I don’t mind initializing the WP core to do this, as long as I can call regular template tags and pick things out that way.

    Anyone have a take on this? Easy/difficult?

    Thanks.

    Well, can you be more specific about what happens when you click on links without the index.php part? Does it work if you manually insert the index.php into the url and visit that page?

    I think this is intentional. Omitting the index.php just tells the webserver to use the default IndexPage, which ought to be index.php anyway. It saves space in the URI.

    Why do you want to fix it?

    G.

    Forum: Plugins
    In reply to: Gallery 2 and WordPress
    Thread Starter geddeth

    (@geddeth)

    Well, if you mean a demo setup that you can play with, I’m not quite sure. But there are some sample galleries here:
    https://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=21047

    Forum: Plugins
    In reply to: Gallery 2 and WordPress
    Thread Starter geddeth

    (@geddeth)

    Well … I’ve not come very far. No matter how I attempt to get access to WP’s API, I keep bumping into the same error:

    Fatal error: Call to a member function on a non-object in /home/test/www/wp-includes/functions.php on line 1068

    In this case, I used the Smarty function include_php to include wp-blog-header.php from within Gallery’s global.tpl.

    I believe the problem lies in how the $wpdb class is instantiated and then globalized in wp-includes/wp-db.php but I haven’t been able to figure out how to get around this.

    Anyone have this going for Gallery 1.5+ and WP1.5 ?

    I’m trying to find the cleanest approach, but am having trouble getting WP to load from a Gallery template. The trouble seems to be that WP can’t load when I include wp-blog-header.php from the Gallery template. I get a weird “Call to non-member function”-error from PHP.

    Basically, I’d like to include the WP header before the G2 header in gallery/html_wrap/gallery.header and vice versa in gallery.footer.

    But it seems there must be more to it than this (not counting CSS modifications, of course).

    Any thoughts?

    Samme issue here with Debian Sarge, Apache 2, MySQL 4.1 and WP1.5.

    Forum: Plugins
    In reply to: Gallery 2 and WordPress
    Thread Starter geddeth

    (@geddeth)

    Hi JuneBleeds, thanks for your reply.
    Unfortunately, since I’m only a peripheral developer and have no impact or influence on the work on the official part of G2, I can give no such guarantees.

    However, I can tell you that G2 is nothing like G1 in that respect. It uses a top-layer database API which allows, say, plugin devs to use an abstract syntax for direct database access to G2 (I assume that is what you mean) which doesn’t change, regardless of how the actual table structure looks. I’m fairly confident that the API interface to the G2 database will stick to it’s current form, so this shouldn’t be an issue.

    I understand how alpha releases of software can seem intimidating, but Gallery 2 in it’s current form is quite usable and is nothing like more traditional alpha-phase software, in my opinion.

    In short, G2 is not G1, it’s much more flexible. It’s theming and template system can be a bit of a mouthful, though, and that’s why I’ve asked around here before I attempt to do this from scratch, on my own. I’d be happy to collaborate on this little project, though. ??

    Cheers,
    G.

    Thread Starter geddeth

    (@geddeth)

    .. of course, clicking on category links or titles always sends you to the /news page … hmm. Must think more.

    Thread Starter geddeth

    (@geddeth)

    Well, seems I solved the problem in a completely different manner: I carry a global PHP variable that indicates which section of the site is loaded a the moment, and can leave out the sidebar and change the list_cats() parameters according to whether I’m in News or Articles. I did this in the custom template, and it seems to work.

    It’s not very clean as it sets WP aside somewhat, but at least it stays in one template and I don’t have to hack (much). Now for some sleep. ??

    Cheers,
    G.

    Thread Starter geddeth

    (@geddeth)

    Thanks, Lorelle, for that information.

    I’ve used the GET parameter category_name and the list_cats() function to divide my content into two main categories, Weblog and Articles. Now I’m trying to figure out how to have these two shown from different directories (https://site.com/news/ and https://site.com/articles).

    I should say that I’m using WP from CVS, so I’ve moved that part of the discussion to the beta forums.

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