GetSimple Support Forum
Search plugin (I18N) - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: Search plugin (I18N) (/showthread.php?tid=1256)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29


RE: Search plugin (I18N) - mvlcek - 2016-02-14

(2016-02-10, 21:11:22)FrédéricG Wrote: @mvlcek very very nice plugin. but any project to make a better navigation ?

Some ideas to improve (perhaps it's already possible but how ?)

...

3. Is it possible to add on the header tag prev and next (cF. https://support.google.com/webmasters/answer/1663744) like this, if we are on page 2 :
<link rel="prev" href="http://localhost/getsimple/blog/" />
<link rel="next" href="http://localhost/getsimple/blog/?page=3" />

This is not possible due to multiple reasons:
  • in the header nothing is known about the paging in the content
  • there could be multiple search results on the page, and additional ones in a sidebar



RE: Search plugin (I18N) - Oleg06 - 2016-02-16

pagination links somehow look like ?page=%PAGE
http://getsimple-themes.ru/lightbox/news/


RE: Search plugin (I18N) - mvlcek - 2016-02-17

(2016-02-16, 18:03:35)Oleg06 Wrote: pagination links somehow look like ?page=%PAGE
http://getsimple-themes.ru/lightbox/news/

Thank you. I only tested with the following in gsconfig.php, which creates links /search;3?tags=getsimple and works :-(
Code:
define('PAGIFY_SEPARATOR',';');
Fixed in 2.13.1.


RE: Search plugin (I18N) - abuhayyan - 2016-03-08

Hi,

I used <?php return_i18n_tags(); ?> in the theme component sidebar to list all tags from all pages but nothing is returning back. How do I go about it? Also would like to show the number of times the tag has been tagged in all pages.

-Abuhayyan


RE: Search plugin (I18N) - mvlcek - 2016-03-08

(2016-03-08, 16:06:05)abuhayyan Wrote: I used <?php return_i18n_tags(); ?> in the theme component sidebar to list all tags from all pages but nothing is returning back. How do I go about it? Also would like to show the number of times the tag has been tagged in all pages.

It does not output anything - you have to use the result - it is a map of tags to urls, e.g. (not tested):

Code:
<?php
$tags = return_i18n_tags();
foreach ($tags as $tag => $urls) { ?>
<span><?php echo $tag; ?> - <?php echo count($urls); ?></span>
<?php } ?>



RE: Search plugin (I18N) - abuhayyan - 2016-03-08

(2016-03-08, 17:36:48)mvlcek Wrote:
(2016-03-08, 16:06:05)abuhayyan Wrote: I used <?php return_i18n_tags(); ?> in the theme component sidebar to list all tags from all pages but nothing is returning back. How do I go about it? Also would like to show the number of times the tag has been tagged in all pages.

It does not output anything - you have to use the result - it is a map of tags to urls, e.g. (not tested):


Code:
<?php
$tags = return_i18n_tags();
foreach ($tags as $tag => $urls) { ?>
<span><?php echo $tag; ?> - <?php echo count($urls); ?></span>
<?php } ?>

Hi mvlcek,

Thanks. It worked. Amended this part <ul><li><span><?php echo $tag; ?> - <?php echo count($urls); ?></span></ul></li> in order to list it in bullet form.

How do you capitalize the first letter of the listed tags?

How do you hyperlink the tags to open the list of such pages containing the tags? Showing the title and an excerpt, clickable to open the full page.

Thanks,
Abuhayyan


RE: Search plugin (I18N) - Oleg06 - 2016-03-18

Martin, please add a checkbox to the plugin settings I18N Search to disable the tags <ul> and <li>.
They are very interfere when you use the plugin "Special pages" and various frameworks.
I did it for myself, but I'll have to re-add that functionality after each update.
http://prntscr.com/agjw7s
Maybe it will be useful for other users.
http://getsimplecms.ru/plaginy-dlya-getsimple-cms/plagin-i18n-search/


RE: Search plugin (I18N) - asemion - 2016-04-07

Hi, for all.
Very nice and useful plugin. Many thanks to mvlcek from me too.
The overall operation of this plugin logic I almost understood.
It works very well with single Tags and Words. Contents is filtered correctly and quickly.
But all additionally entered filters works with the logical AND condition.
Is the proposed in the plugin filter connection with condition OR?

So I want to ask the question - how to make in order to filter the content by using a few one kind of Tags or Words with logical OR condition?
For example:
I have a catalog of products, and it is indexed (as tags) by manufacturers. When I choose for example manufacturer Bosh - content correctly filtered and only show results that are produced by Bosh. But when entered an additional manufacturer like AEG, the filter does not show content completely. What should be done to show the content from of the two filters at once?
Is it possible to do so we can work with a several of these tags or words in the filters? This is how to make such filtering system, which uses e-commerce CMS for their catalogs filtering?
Thank you in advance for your answers.
Andrejus.


RE: Search plugin (I18N) - tadzio - 2016-09-27

Hi, I have a feeling that this is obvious, yet I have a following problem:
Using i18N Search plugin alone.

How to force this plugin to work in my specific language ALWAYS.
Sometimes it defaults to English sometimes picks second language on the same browser...


RE: Search plugin (I18N) Secondary nav not working - sarnaiz - 2016-09-28

Hi,


I have an issue with secondary nav not showing up on a page. Both the pages below are using the same default template which is calling in a sidebar component with the following code:
<?php get_i18n_navigation(return_page_slug(),1,1); ?>


http://pweaveanea.org/pwea-photos/
This page is not pulling in the secondary nav in the right column, there is only one child page, but it is not showing.

http://pweaveanea.org/what-is-pwea/
This page does pull in the secondary nav in the right column

Any suggestions for what I should look for to solve this?

The site has been updated to the most current version. The plugins have been updated too.

Thank you for any help you can provide.


RE: Search plugin (I18N) - Bigin - 2016-09-28

maybe a stupid question: Checkbox "Add to menu" is checked?


RE: Search plugin (I18N) - sarnaiz - 2016-09-28

(2016-09-28, 03:42:02)Bigin Wrote: maybe a stupid question: Checkbox "Add to menu" is checked?

Ha! Not a stupid question. You are correct! That was the issue. For some reason I thought it was not supposed to be checked and when I went back and looked thorugh the page settings again it was supposed to be checked. Sheesh. What a goof. 

Thank you so much for asking your question!! You made me relook at the pages.


RE: Search plugin (I18N) - Bigin - 2016-09-28

Have you tried to use 18N_SHOW_PAGES as the fourth parameter? http://mvlcek.bplaced.net/get-simple/multi-level-navigation:en

EDIT: Ahhh OK, you are welcome!


RE: Search plugin (I18N) - Oleg06 - 2016-10-13

Can I do the sorting switch, like this? http://opencart.templatemela.com/OPC08/OPC080198/OPC1/index.php?route=product/category&path=18&sort=p.price&order=DESC#input-sort
I know that can be sorted by name, price, or any other field, but how to make such a switch I do not know.


RE: Search plugin (I18N) - Oleg06 - 2016-10-13

Looks like I found a way to change the sort by clicking.
It needs to create clones of the search page with the language prefix _priceplus, _titleplus , in General with any (I18N required)

You just have to create the pages drop-down lists or links to select your created pages Smile
I checked - everything works.
http://getsimple-themes.ru/sorting/magazin/pervaya-kategoriya/


RE: Search plugin (I18N) - GPB61 - 2016-10-18

Hello,

I was wondering if there is the possibility to list the results by publishing date but in reverse order. I tried using '-' before date but without success.

Thank you


RE: Search plugin (I18N) - jlyon1515 - 2016-12-01

Is there an easy way to change the HTML coding of the pagination on search result pages? Currently it outputs:
div class="search-results-paging
span class="first"
span class="previous"
span (1)
span (2)
...
span class="next"
span class="next" (I think this is a bug and should be "last". It is definitely the one with the double greater than symbols)
/div

And what I've like it to output is the Bootstrap HTML for pagination:
ul class="pagination"
li class="first"
li class="previous"
li (1)
...
li class="next"
li class="last"
/ul


RE: Search plugin (I18N) - AnthonyV - 2016-12-28

Hello I have tried to download the search package but my system complains that it contains a virus.   Specifically "Win32/Spursint.A!cl".

Note: My system is Windows 7.   I got the virus warning when downloading the zip.

- I then downloaded the zip with an Ubuntu VM and it downloaded without issue. (Which does not mean much)
- I then extracted the zip and did a quick scan and did not find any issues.
- I then copied the extracted files to the same Windows computer and the AntiVirus was not triggered.

I am still somewhat concerned because the last thing I want to do is give my users a virus..    anyone have any thoughts on this?


RE: Search plugin (I18N) - mvlcek - 2016-12-28

(2016-12-28, 05:45:01)AnthonyV Wrote: Hello I have tried to download the search package but my system complains that it contains a virus.   Specifically "Win32/Spursint.A!cl".

In this case you should try a better anti virus software ;-)
The zip only contains php, html, js, css files/code.
To make sure you can test the zip on virustotal.com or a similar service: I just did this and it says it's ok.


RE: Search plugin (I18N) - AnthonyV - 2016-12-28

(2016-12-28, 06:07:49)mvlcek Wrote:
(2016-12-28, 05:45:01)AnthonyV Wrote: Hello I have tried to download the search package but my system complains that it contains a virus.   Specifically "Win32/Spursint.A!cl".

In this case you should try a better anti virus software ;-)
The zip only contains php, html, js, css files/code.
To make sure you can test the zip on virustotal.com or a similar service: I just did this and it says it's ok.

I just saw your answer now.   My AV is Microsoft Security Essentials.

Thanks.


RE: Search plugin (I18N) - AnthonyV - 2016-12-29

The search is installed and working well. I love how fast it is.

Now a question: How would I go about excluding pages from the search index or from the search results? Specifically I want to exclude pages that are not in the menu and which don't have a parent.

As an alternative I would like to be able to specify a list of slugs to exclude or something like that.

Currently the only options I see are:
- to do custom indexing or
- "process, parameter: post-processing of the results".... but I was not sure how to use that....

Thanks again.


RE: Search plugin (I18N) - Oleg06 - 2016-12-29

code to search
Code:
<?php get_i18n_search_results(array('addTags'=>'_search', 'DATE_FORMAT'=>'', 'max'=>10, 'i18n'=>0, 'numWords'=>'30', 'order'=>'created','showPaging'=>1,'HEADER'=>'','NOT_FOUND'=>'Not Found','component'=>'search')); ?>
I use plugin I18N Custom Fields.
http://prntscr.com/doztwm


RE: Search plugin (I18N) - AnthonyV - 2016-12-29

(2016-12-29, 05:13:54)Oleg06 Wrote: code to search
Code:
<?php get_i18n_search_results(array('addTags'=>'_search', 'DATE_FORMAT'=>'', 'max'=>10, 'i18n'=>0, 'numWords'=>'30', 'order'=>'created','showPaging'=>1,'HEADER'=>'','NOT_FOUND'=>'Not Found','component'=>'search')); ?>
I use plugin I18N Custom Fields.
http://prntscr.com/doztwm

Thanks that works.

Unfortunately the default does not apply to existing pages so I will need to edit them all to apply that value.


RE: Search plugin (I18N) - joyofweaving.com - 2017-03-16

Posting as a last resort. I'd like to use the search results as a list of categories on a page except to have them displayed in a single line. I need a little help with the CSS to get it to do this, please. I got the tagclassprefix figured out but I've been googling and trying several things for over an hour and can't get the list to display inline. Source code looks like this:

Code:
<li  class="search-entry  nav-categories">

I tried all manner of combinations of "nav-categories" and "li" {display:inline;} in the Innovation Theme style sheet but nothing is working. What the heck do I put in the CSS to get it to display inline?


RE: Search plugin (I18N) - Timbow - 2017-03-17

li {display:inline;} has got to be right