Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[vBMods.rocks] Add Search Engine Search Result link on vB5 Search Result page Details »
[vBMods.rocks] Add Search Engine Search Result link on vB5 Search Result page
Mod Version: 1.00, by noypiscripter (Coder/Designer) noypiscripter is offline
Developer Last Online: Aug 2022 I like it Show Printable Version Email this Page

vB Version: 5.5.5 Rating: (0 vote - 0 average) Installs: 0
Released: 01 Mar 2022 Last Update: Never Downloads: 0
Supported Template Edits  

In some cases, the vB5 search results may not provide you what you're searching for in a forum. You could replace the default vB5 Search box with the Google Search box or add a Google search result link (and other search engines) together with the vB5 search results. These search engine links will redirect the user to their search results for your site.

If you are more interested in the latter, then continue reading.

Before giving you the code to accomplish what is shown in the above screenshot, let me give you first the limitations/disadvantages of doing this modification:
  1. Your site must be public as search engines cannot index private pages.
  2. Your site will lose branding to search engines as users are taken out of your site and redirected to search engine search results page.
  3. Recent content from your forum may not be instantly available until search engines index your site.
  4. This mod requires editing the Search Results template which means the changes may cause template conflicts during upgrades.
  5. Since this requires template editing, this is not for vBCloud although there is another solution to implement it that will work on vBCloud.
If you are okay with the above, then proceed with these steps:
  1. Logon to AdminCP.
  2. Go to Styles → Search in Templates
  3. Choose the target style/theme in the "Search in Style" dropdown.
  4. In the "Search for Text" field, type widget_search_results.
  5. Select "Yes" in the "Search Titles Only" radio button.
  6. Click Find button.
  7. In the search results, double-click the template to edit it or select it then click Customize button.
  8. Find the following code (Click the Template input box and press Ctrl+F or Command+F)

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  9. Find its closing </vb:if> tag
  10. Below that code, insert the following code:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    That adds a Google search results link using the "site:" filter on search engines that search within the specified site URL which is your forum URL in this case. To add other search engine links, include the following hyperlink HTML:

    DuckDuckGo:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Bing:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Yahoo:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Yandex:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    For example, on my forum, I added Google and DuckDuckGo. Here's the code I used:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  11. Click Save button.
  12. Repeat Steps 2-11 for other active styles/themes on your forum (if any).
Demo:
Try searching on my forum or clicking this search result:

https://vbmods.rocks/search?q=IP&sea...%3A%22IP%22%7D


Enjoy!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	search-results.png
Views:	28
Size:	55.0 KB
ID:	158958  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements [vBMods.rocks] Add Custom Profile Fields in Postbit noypiscripter vBulletin 5.x Products & Extensions 14 02 Feb 2022 04:31
Miscellaneous Hacks [vBMods.rocks] Add Detailed IP Info Modal to the Who's Online page noypiscripter vBulletin 5.x Template Modifications 0 28 Jan 2022 20:57
Calendar Enhancements [vBMods.rocks] Event Date That Rocks using CSS noypiscripter vBulletin 5.x Template Modifications 4 05 Apr 2017 18:32
Miscellaneous Hacks [vBMods.rocks] Quick fix for guests having no access to the reset-password page noypiscripter vBulletin 5.x Products & Extensions 0 06 Aug 2016 01:17

Reply

Tags
bing, duckduckgo, google, yahoo, yandex


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 03:15.

Layout Options | Width: Wide Color: