Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
CES Wiki Simple Search Integration Details »»
CES Wiki Simple Search Integration
Version: 1.0.3, by thincom2000 thincom2000 is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.6.x Rating:
Released: 01-15-2007 Last Update: 02-02-2007 Installs: 18
Uses Plugins Template Edits
 
No support by the author.

CES WIKI SIMPLE SEARCH INTEGRATION
Version: 1.0.3
Works with MediaWiki 1.6.8+, vbWiki Standard, and vbWiki Pro.

*** NEWS ***
2/2/2007 - v1.0.3 released
1/20/2007 - v1.0.2 released
1/16/2007 - v1.0.0, v1.0.1 released

Products to Install: 1
Plugins Included: 1
Files to Upload: 0
Template Edits: 2
Files to Edit: 0

What It Does:
Combines the Wiki & Forum search fields, allowing users to search the Wiki from your forum. If you are using vbWiki Pro and using the vBulletin skin, now you can get rid of the extra search box, because vBulletin's will do both!

The way it works is: if you are searching the forum, it takes you to the normal forum results page. If you select the option to Search the Wiki, instead it automatically takes you to the Special:Search page displaying the appropriate results, forwarding the article, or if it doesn't exist, telling you to create the page.

*** Changelog ***
As of Version 1.0.3:
- fixed bug where Advanced Search for posts would return threads
- updated template edits: search_forums

As of Version 1.0.2:
- Fixed bug where uninstalling other CES products would make some settings disappear

As of Version 1.0.1:
- If article exists, load the article.
- If article doesn't exist, display "you can create" message.

*** Screenshots ***
1. Pop-up Navbar Search

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-16-2007, 07:49 AM
MaestroX MaestroX is offline
 
Join Date: Aug 2006
Location: UK
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great thankyou for this mod

Very usefull

*Installed
Reply With Quote
  #3  
Old 01-18-2007, 04:16 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome. I actually originally tried writing a Full Search Integration, where it would allow selecting Advanced Criteria for both in one search, and show results from both on the same page. However, that required replacing vBulletin's search.php, and it was a pain to get the two sets of results to synchronize. The script was slow, had too many queries, and I just got fed up with doing it.

So I came out with this SIMPLE version.
Reply With Quote
  #4  
Old 01-18-2007, 05:04 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great one!
Reply With Quote
  #5  
Old 01-27-2007, 02:29 PM
sait.dogan's Avatar
sait.dogan sait.dogan is offline
 
Join Date: Dec 2006
Location: Turkey
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, thank you for this mod.

Very usefull.
Reply With Quote
  #6  
Old 02-02-2007, 10:32 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm... so I see no one found this bug in all this time.

v1.0.2 and lower has the following bug:
In Advanced Search, with "Search Forums" selected -
selecting "Show Results as -> Threads" will return results as Threads.
selecting "Show Results as -> Posts" will return results as Threads.

This issue has been fixed in v1.0.3 with a new template edit for template search_forums. You should revert the template before doing this or it won't solve anything.
Reply With Quote
  #7  
Old 02-19-2007, 01:45 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nominated for HoM.
Reply With Quote
  #8  
Old 03-08-2007, 12:09 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick issue.

I didn't see it noted in the instructions.

I've uploaded this and made the changes to the templates, but when I try and search in the Wiki, I'm taken to a completely different web page: http://www.yourdomain.com/dtz4.php

I realized that this probably ment that there was something in the code that was calling http://www.yourdomain.com

So I went into the .xml file and found it once. Uploaded again (allowing overwrite) and tried it again. Worked.

Now I'm running into issues with the actual link.

I'm not sure if this is just something with our wiki....but it needs the index.php after wiki/ (so /wiki/index.php). Changed this in the .xml as well and I've found a new issue.

Now I'm getting a problem with the link that is generated:

This link works: http://www.mp3car.com/wiki/index.php...?search=tuning

This link doesn't: http://www.mp3car.com/wiki/index.php...h=tuning&go=Go

The first link is one that I get when using the WIKI search function. The second is what I get when using the modified search function.

OK - figured it out. In the .xml file I searched for "&search" and found it in here:

Code:
<![CDATA[$globals = array_merge( $globals, array( 'showwiki'	=> TYPE_UINT ) );

$vbulletin->input->clean_array_gpc('r', $globals);

if ($vbulletin->GPC['showwiki'] == 2)
{
	exec_header_redirect( $vbulletin->options['wiki_search_path'] . '&search=' . $vbulletin->GPC['query'] . '&go=Go' );
}
else if ($vbulletin->GPC['showwiki'] == 1)
{
	$vbulletin->GPC['showposts'] = true;
}
else if ($vbulletin->GPC['showwiki'] == 0)
{
	$vbulletin->GPC['showposts'] = false;
}]]>
I changed it to be "?search" instead of "&search" and uploaded it allowing overwrite.

Now the search function works fine.

I'm not sure if these issues are specific to our forum and our wiki or if this is an issue that would be common on all wikis/forums, but I wanted to outline what I had to do to solve it incase someone else runs into the same issues.

*installed*
Reply With Quote
  #9  
Old 03-08-2007, 03:57 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, these seem to be isolated issues with your setup. I'm a little bit perplexed why you needed to edit the XML to change www.yourdomain.com specifically. There should have been a setting for this in the AdminCP, as well as a setting for the path to Special:Search that you could have played with until it went to the correct page.

It may have something to do with using /wiki/index.php/Special:Search instead of just /wiki/Special:Search, in your particular setup. I have had no problems using & instead of ? on such setups in the past.

???
Reply With Quote
  #10  
Old 03-08-2007, 05:21 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hrmm - nothing was mentioned about an options menu in the Admin CP.

The instructions just stated upload the .xml and you're ready.
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 01:14 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.06073 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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