vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v3.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2008, 11:20 PM
LenB LenB is offline
Senior Member
 
Join Date: Jun 2007
Posts: 196
Default Integrate SEARCH results page

I have my forum integrated but is there a way to have my SEARCH results page show the modules also.
Reply With Quote
  #2  
Old 01-11-2008, 11:01 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrate SEARCH results page

You could integrate your search.php file, though that would also integrate the main search page. Alternately, you could edit your search.php file and add some code like this to the top of the file, just below the opening <?php tag:

Code:
if ($_REQUEST['do'] = 'showresults')
{
define('VBA_PORTAL', true);
define('VBA_PAGE', 'page_identifier_here');
}
Reply With Quote
  #3  
Old 10-20-2008, 05:44 AM
djxcee djxcee is offline
Member
 
Join Date: Apr 2008
Posts: 86
Default

Brian, does this code still work?
I've tried it and my search.php comes up with errors.
Reply With Quote
  #4  
Old 10-20-2008, 10:52 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

As far as I know it does.
Reply With Quote
  #5  
Old 10-20-2008, 11:44 AM
djxcee djxcee is offline
Member
 
Join Date: Apr 2008
Posts: 86
Default

I've added it right after the <?php tag and now every time click on search I get this error: Sorry - no matches. Please try some different terms.
PHP Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.7.3 Patch Level 1 - Licence Number VBFCFD52F1
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2008 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

// ####################### Search Integration ###########################
if ($_REQUEST['do'] = 'showresults')
{
define('VBA_PORTAL'true);
define('VBA_PAGE''forum');
}

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT''search');
define('CSRF_PROTECTION'true);
Reply With Quote
  #6  
Old 10-20-2008, 12:12 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Bleh... Looks like there was a '=' sign missing in the code I posted. Change the first line to this and it should work without a problem.

Code:
if ($_REQUEST['do'] == 'showresults')
Reply With Quote
  #7  
Old 10-22-2008, 02:58 AM
eJM's Avatar
eJM eJM is offline
Senior Citizen
 
Join Date: Jul 2006
Location: teh Ether
Posts: 321
Default

Quote:
Originally Posted by Brian View Post
You could integrate your search.php file, though that would also integrate the main search page. Alternately, you could edit your search.php file and add some code like this to the top of the file, just below the opening <?php tag:

Code:
if ($_REQUEST['do'] == 'showresults')
{
define('VBA_PORTAL', true);
define('VBA_PAGE', 'page_identifier_here');
}
Wouldn't the integration be preferable to the file edit, since the edit would have to be done every time there was an update to the forum software?

R'gards,

Jim
__________________
If my post was helpful to you, or made you or ,
please take the time to register at my forum and ask
a question you've always wanted to know about floors.
The Floor Pro Community
Reply With Quote
  #8  
Old 10-22-2008, 10:34 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

It would, but currently there is not a way to only integrate certain actions from files, so the file modification is about the only way to make it work.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrated Google Search & Results DrussRob Module & Modification Discussion & Requests 4 03-17-2009 01:38 PM
empty search results not integrating Thryller Troubleshooting & Problems 9 10-21-2008 10:04 AM
Sending Search Results Magnum164 "How Do I..." Questions 4 12-02-2007 03:08 PM
Looking for a module that will show search results from specified forums Tigratrus Module & Modification Discussion & Requests 2 08-27-2007 11:52 AM
Sidebar mod on search.php results in blank pages DougM Troubleshooting / "How do I..." Questions 1 04-17-2005 05:34 PM


All times are GMT -4. The time now is 08:34 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.