TechGnome (@techgnome)

Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Well, I didn’t exactly dump phpBB per se…. but after looking at the two and what it would take to integrate into my site and get it to do what I wanted…. bbPress turned out the best way to go. What I did dump was Joomla! and WP (GASP! Did I just say that? Yes I did. I needed a forum more than I needed a blog. Last thing this world needed was yet another blog anyways.)

    http://tannagh.com

    -tg

    In reply to: Subforums and Feedback

    Well, that would explain why I couldn’t find it. Not intending to be snarky about it, but doncha think that little piece of info was kind of important?

    No, I am not running the alpha. I never do. Doing that (especially on a prod site) just leads to trouble. I’m running the latest stable that was available a week or two ago. I’ll have to check out the plugin.

    thanks.

    -tg

    In reply to: Subforums and Feedback

    >>You can just check the box “Forum is Category: ” in the admin (Manage > Forums) and that will prevent

    >>posts in the parent (top level) forums.

    ?? I must be blind… I don’t see any such option…. anywhere.

    -tg

    Well smother me with some butter and call me a biscuit! I figured it out. I mis-read how the get_location function works. The answer to my problem was to add a filter like so:

    add_filter( 'bb_get_location', 'my_set_forums_location' );

    And then add a function thusly:

    function my_set_forums_location () { return 'front-page'; }

    to my new forums.php file… and viola! Everything worked like it should! Woot!

    Finally figured it out… I was going about it all the wrong way… What I was trying to do was take the forums in location A and integrate them with a website at location B… after tanking my local copy of my website, I finally had a realization that I was going about all the wrong way. Instead of trying to take what was essentially two websites and linking them, I should have just scrapped both sites, re-installed bbPress on the main site, and then created the radio station as plugins around bbPress. So that’s what I am now doing. And it’s going much more smoothly than it was before. Sometimes the easiest answers are the hardest to see.

    -tg

    both…. sort of….

    let me see if I can storybook it for you….

    * User goes to main website http://tannagh.com

    * This main page lists what’s playing, what jsut played and what’s coming up

    * From this page are links to browse the online catalog, tune in, and the forums (which are at http://forums.tannagh.com ).

    * I would, at this point to also be able to include the login form… which would be tied to the bbPress database. It would have the same effect as if they had clicked the link to the forums and logged in there

    * Once the user has logged in (either through the front page or through the forums) I’d like the login form to be replaced by a greeting. In addition, if they then make a request (by going through the online catalog and hitting the Request button), I want to capture their user name (how? I’m not sure I care, all I need is the info) so that I can store it in the music database for display on the front page with their request.

    Would I be better off moving my forums out of a subdomain, and putting it under a folder in the main part of the site (so it would be http://tannagh.com/forums ) instead? Then at least I shouldn’t have any cookie issues… since it would then be from the same domain…. technically even with a subdomain it *should* be from the same domain, but cookies don’t always see themselves that way.

    Dang, why do I feel like this is harder than it should be? People integrate with WP all the time w/o (many) issues…. I think this should be easier, at least in theory.

    -tg

    YEaaah….. two different databases… in fact the databases will be on different servers… in two different parts of the country… both behind firewalls…. not a long story, but that’s the setup.

    Maybe if I explain a little more, it’ll put it into context – the web site is for a radio station. The main part of the web site will be used for initial announcements, browsing albums and making requests.

    What I want to be able to do from the website is three things:

    1) include the login from as needed (or greet the user if logged in)

    2) allow the user to make requests – if they are logged in. If they aren’t then I want to redirect them

    3) store the username with the request when made (if I can get to the user name, then I can store it in the other database – there’s a place for it already.)

    Other than that, there’s nothing I need directly from the bbPress database. I don’t need to access the database, just need to get their UserID/UserName if they are logged in (presumably if the UserName is set, they are logged in, or is that too easy? :P )

    I’d like to note that I’ve been using bbPress off and on for the last couple of years, WP for even longer and I am a programmer by trade… so don’t be afraid to the lay the technology on me, I can take it. I’m decent in PHP, but by no means an expert, and I don’t have trouble figuring out the stuff I don’t know… especially if I’m just pointed in the right direction.

    If I include the following at the top of the pages where I need it… will it give me what I need to do this:

    <?php

    require('./bb-load.php');

    $bb_db_override = false;
    do_action( 'bb_index.php_pre_db', '' );

    ?>

    I know I would need at least the first require for bb-load.php (naturally changing the path to the correct location). But would I also need the other two lines? (I will be searching the documentation for those two settings to see what I can find.)

    -tg

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