vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - CES Wiki Simple Search Integration (https://vborg.vbsupport.ru/showthread.php?t=136644)

thincom2000 01-15-2007 10:00 PM

CES Wiki Simple Search Integration
 
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

MaestroX 01-16-2007 07:49 AM

Great thankyou for this mod :)

Very usefull

*Installed

thincom2000 01-18-2007 04:16 AM

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. :p

redlabour 01-18-2007 05:04 AM

Great one! :)

sait.dogan 01-27-2007 02:29 PM

Great, thank you for this mod.

Very usefull.

thincom2000 02-02-2007 10:32 PM

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.

redlabour 02-19-2007 01:45 PM

Nominated for HoM. ;)

RedGTiVR6 03-08-2007 12:09 PM

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*

thincom2000 03-08-2007 03:57 PM

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.

???

RedGTiVR6 03-08-2007 05:21 PM

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

The instructions just stated upload the .xml and you're ready.


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01192 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete