Support » Themes and Templates » WordPress Search Bar in phpBB Forum – Possible?

  • Craig



    The website I am currently working on can be found here:

    Simply put, it is a gaming community website. Nothing to professional or extraordinary. On the site I have the latest WordPress installed (2.8.3) as well as phpBB3 for the forums. I have made my theme in WordPress and am now porting it over to the phpBB forums so they look seamless.

    The WordPress and phpBB are on two different databases.

    I do not have commenting enabled on the WordPress half of the site as it would be unneeded for this project, so all I need really is for the users to log into the forums and not the WordPress, I do that for updates. In the header, you will notice a search bar. This is utilized with a searchform.php file that is called with the following:

    <?php include(TEMPLATEPATH . ‘/searchform.php’); ?>

    The actual searchform.php contains the below:

    <?php $search_text = "Type a keyword and press enter..."; ?>
    <form method="get" id="searchform"
    action="<?php bloginfo('home'); ?>/">
    <input type="text" value="<?php echo $search_text; ?>"
    name="s" id="s"
    onblur="if (this.value == '')
    {this.value = '<?php echo $search_text; ?>';}"
    onfocus="if (this.value == '<?php echo $search_text; ?>')
    {this.value = '';}" />
    <input type="hidden" id="searchsubmit" />

    My question is, how can I keep the search bar the same for on the phpBB pages? I have the entire header and theme already ported (or about to be) but the search bar will not. I don’t need nor want the search bar to suddenly start searching the phpBB as well, just the WordPress site as if you were still ON the WordPress pages.

    Users can utilize the more advanced forum searching features within the forum itself.

    Please, anyone have any advice? Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Craig



    Anyone? Anything?



    I doubt I’m the only person to add a WordPress search bar into a phpBB page…

    All I need to know if how to make a search bar that will search without the need of a submit button, searches the WordPress database and then spits out the results on the search.php file in the WordPress theme.




    So, I take it I should abandon all hope then??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Search Bar in phpBB Forum – Possible?’ is closed to new replies.