Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 06-11-2008, 02:35 PM
zivester zivester is offline
 
Join Date: May 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check it out in the link I posted:

Code:
http://www.streetstyle.com/search2.php
Half of the options on the search page aren't loaded/are missing... its very weird :-/
Reply With Quote
  #12  
Old 06-11-2008, 03:03 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, if that is all you have in your page, then you will need to add quite a bit. You need the code to populate all the drop-downs and the forum list, etc. You may even need to include the search phrasegroup. I'd start by taking a look at the search.php page and copying some of the code from there since you are doing another search page.
Reply With Quote
  #13  
Old 06-11-2008, 04:46 PM
zivester zivester is offline
 
Join Date: May 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just breaking it down to something as simple as the following line:

Code:
<select name="titleonly">
<option value="0" $titleonlyselected[0]>$vbphrase[search_entire_posts]</option>
<option value="1" $titleonlyselected[1]>$vbphrase[search_titles_only]</option>
$vbphrase[search_titles_only] prints perfectly fine, while $vbphrase[search_entire_posts] does not...

There is no reference to either of these in search.php.... has anyone successfully created their own search page using the vBulletin templates?

--------------- Added [DATE]1213219314[/DATE] at [TIME]1213219314[/TIME] ---------------

Ok.. I got the forms to showup correctly.. but now when I make searches, I get a "search id is not valid or has expired"

Where do I go from here?
Reply With Quote
  #14  
Old 06-11-2008, 08:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

search_titles_only is a Global phrase. search_entire_posts is a Searching phrase. So, you need to include the 'search' phrasegroup at the top of your script.

As for the search id, is it getting inserted into the database when the search is first performed?
Reply With Quote
  #15  
Old 06-11-2008, 09:13 PM
zivester zivester is offline
 
Join Date: May 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$searchforumbits is the only part of the page that isn't getting filled out... I've included the necessary files to get the rest to fill out, but can't figure our where those are set..

hmmm

I'm thinking its some linking issue? note: I have changed the base URL at the top of the page to /forum/
Reply With Quote
  #16  
Old 06-11-2008, 09:17 PM
zivester zivester is offline
 
Join Date: May 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh Snap... even my regular search isn't working... what did I do ?


EDIT:

and Memberlist Search does work...

--------------- Added [DATE]1213223628[/DATE] at [TIME]1213223628[/TIME] ---------------

I think it only doesn't work, when it is actually returning a result... cause if i search for some random word, it'll return saying it didn't find it.. but if i search for a word that i know is there, like "celtics" it throws the error.
Reply With Quote
  #17  
Old 06-11-2008, 09:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you look at the vb search.php page, they define $searchforumbits around line 2065. Have you included the code for that in your custom page? (It needs the line above that which calls a function so you need to include the page that the function is in also.)
Reply With Quote
Reply


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


All times are GMT. The time now is 02:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06642 seconds
  • Memory Usage 2,220KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete