Advertisement:

Author Topic: CustomSearch  (Read 7931 times)

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
CustomSearch
« on: May 16, 2010, 01:01:14 PM »
Link to Mod

CustomSearch

Author: D#S (russian support: BIOHAZARD)
Current Version: 1.0
Compatibility: SMF 2.0
Languages:

Features
Add a custom searches to your forum:
  • Google
  • Yandex
  • Nigma

Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Useful Links
Manual Installation Of Mods
How Do I Modify Files?

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)



Changelog
Legend:
! = Bugfix
- = Removed
+ = New Feature
o = Update
> = New Language
^ = Initial/New Release

Code: [Select]
2011.08.10 - v. 1.0
o SMF 2.0 Gold  compatible version.
2010.05.18 - v. 0.2
! Extendent search fixed
2010.05.16 - v. 0.1.
+ Some language files change.
2010.05.12 - v. 0.0
^ Initial release.
« Last Edit: August 11, 2011, 06:51:11 AM by D#S »
ai dont spik inglish
@ ol

Offline Cutter65

  • Semi-Newbie
  • *
  • Posts: 81
    • Outdoor-talk Forum
Re: CustomSearch
« Reply #1 on: May 17, 2010, 01:08:15 PM »
Nice Mod!

I'm getting a error in the log when you do a search from the search button in the menu bar. Searching from the search button where you can select the type of search above the news works without the error. Im using the default theme and RC 2.0 RC3

Error reads:
forum/index.php?action=search2
Apply Filter: Only show the errors with the same message
8: Undefined index: custom
Apply Filter: Only show the errors from this file
File: /forum/Sources/Search.php
Line: 267

Line: 267 reads:   
==>267: switch ($_POST['custom']){

Cutter

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: CustomSearch
« Reply #2 on: May 18, 2010, 09:55:02 AM »
thanks, fixed in CS v. 0.2
ai dont spik inglish
@ ol

Offline Cutter65

  • Semi-Newbie
  • *
  • Posts: 81
    • Outdoor-talk Forum
Re: CustomSearch
« Reply #3 on: May 18, 2010, 03:26:20 PM »
Works great now D#S!  ;D

Thanks for the update!

Cutter

Offline searchgr

  • Sophist Member
  • *****
  • Posts: 1,247
Re: CustomSearch
« Reply #4 on: June 09, 2010, 07:02:23 AM »
Is it compatible to rc2?

Offline hitboy

  • Semi-Newbie
  • *
  • Posts: 25
    • Web Hosting Forum
Re: CustomSearch
« Reply #5 on: June 09, 2010, 02:45:02 PM »
This looks pretty cool thanks I am going to add the google search

Offline Alpay

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,634
  • Gender: Male
  • test
    • Personal Web Page
Re: CustomSearch
« Reply #6 on: June 12, 2010, 07:59:29 AM »
Turkish Translate :


Code: [Select]
// BIOHAZARD:CustomSearch strings
$txt['admin_menu_CustomSearch'] = 'Geliştirilmiş Arama';
$txt['CustomSearch_settings_title'] = 'Geliştirilmiş Arama Ayarları';
$txt['CustomSearch_settings_desc'] = 'Geliştirilmiş Arama Ayarlarını Düzenle';
//Strings for the settings area
$txt['CustomSearch_use_Google'] = 'Google Aramasını Kullan';
$txt['CustomSearch_use_Yandex'] = 'Yandex Aramasını Kullan';
$txt['CustomSearch_use_Nigma'] = 'Nigma Aramasını Kullan';
// Strings for the select box in index.template.php
$txt['CustomSearch_SMF'] = 'Varsayılan';
$txt['CustomSearch_Google'] = 'Google';
$txt['CustomSearch_Yandex'] = 'Yandex';
$txt['CustomSearch_Nigma'] = 'Nigma';
// End BIOHAZARD:CustomSearch strings

Offline Leemy

  • Full Member
  • ***
  • Posts: 443
Re: CustomSearch
« Reply #7 on: July 02, 2010, 11:39:38 PM »
Thanks D#S i've added it to my site. I now have "default" and "google". Is there a way to switch it so that Google is Default and SMF is secondary?

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: CustomSearch
« Reply #8 on: July 11, 2010, 05:53:13 PM »
Thanks D#S i've added it to my site. I now have "default" and "google". Is there a way to switch it so that Google is Default and SMF is secondary?
it is in "to do list"
ai dont spik inglish
@ ol

Offline hash899

  • Semi-Newbie
  • *
  • Posts: 34
Re: CustomSearch
« Reply #9 on: July 18, 2010, 08:00:14 AM »
Hi,

Is there a 2.0 RC2 version? appreciate the help.

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: CustomSearch
« Reply #10 on: July 18, 2010, 08:09:22 AM »
just install this mod in compatibility mode
ai dont spik inglish
@ ol

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,065
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: CustomSearch
« Reply #11 on: November 19, 2010, 12:29:53 PM »
Is there a way to make this mod 1.1.x friendly?
I need my search option to be like what is on this site.
I want to be able to add google custom search there.

or a way to delete my default search box (or make it appear only to some membergroups) so everybody will use google custom search instead?

Offline Leemy

  • Full Member
  • ***
  • Posts: 443
Re: CustomSearch
« Reply #12 on: January 09, 2011, 12:25:03 AM »
This is not compatible with RC4?

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: CustomSearch
« Reply #13 on: January 31, 2011, 02:50:00 PM »
not yet
maybe two days needed
ai dont spik inglish
@ ol

Offline Leemy

  • Full Member
  • ***
  • Posts: 443
Re: CustomSearch
« Reply #14 on: April 26, 2011, 09:24:35 PM »
Thanks D#S i've added it to my site. I now have "default" and "google". Is there a way to switch it so that Google is Default and SMF is secondary?
it is in "to do list"

Any ETA on this? Thanks. Also it would be better to open the search result in a new tab/window so the user does not leave your site.

Offline Sudhakar Arjunan

  • Sophist Member
  • *****
  • Posts: 1,227
  • Gender: Male
  • SMF is the best forum tool
    • IT Acumens - Webdesigning & Webhositing services in Chennai
Re: CustomSearch
« Reply #15 on: August 11, 2011, 06:18:50 AM »
Nice mod,

With this google search could we integrate our google search adsense code.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: CustomSearch
« Reply #16 on: August 11, 2011, 06:47:01 AM »
ai dont spik inglish
@ ol

Offline Srinib

  • Jr. Member
  • **
  • Posts: 207
    • India Exit Polls
Re: CustomSearch
« Reply #17 on: July 10, 2012, 03:00:34 PM »
Nice MOD. But unfortunately not working for 2.0.2. I have this message when i tried to install.
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Any idea when this will be ready for 2.0.2?

Offline Mooby The Golden Sock

  • Semi-Newbie
  • *
  • Posts: 12
Re: CustomSearch
« Reply #18 on: January 19, 2013, 01:52:54 PM »
Awesome mod!

Once you've installed it, you can use the manual parse instructions for SMF 2.0 to go back and edit the codes.  Since they're in list form, it's quite easy to add new general search engines onto the list--from YouTube to Wikipedia to Amazon to whatever else.  Just change the url to the search url of the desired page, and take off the part that searches the site url.  As long as you can find the correct search url (usually by searching the site with a nonsense term), it's pretty easy to set up.

Offline Srinib

  • Jr. Member
  • **
  • Posts: 207
    • India Exit Polls
Re: CustomSearch
« Reply #19 on: January 19, 2013, 03:36:59 PM »
Am i missing something here?

I installed it for my test forum on v2.0.3. Assume as www.my-test-forum.com.
Ran a search on the word "health" in Default. That works fine.
I did the same search using "Google" instead of "Default". Now Google retrieved some links only from my www.my-test-forum.com.

Is it the way it should work?

I assumed that "google" search will show up the same result when we use goolge.com.