Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search plugin (I18N)
(2020-06-11, 05:00:04)hameau Wrote: Forget my last effort, it's the wrong direction.

This is wrong:
(2020-05-12, 19:28:11)Alan-A Wrote: The links in the tag cloud are rendered correctly - pointing to, for example:
- http://.../getsimple/suchergebnisse_en/?tags=translation

I think the search result link should always be http://.../getsimple/suchergebnisse/?tags= ... (i.e., without _en suffix). The display language is set internally and handled by I18N Search.

... and it was that simple ......
Once more, many thanks - that was a make-or-break problem.
Web Developer and Translator (German > English)
Reply
For some reason, the plug-in does not look for words with hyphens, for example MST-1 it will no longer find, can you do something about it?
Reply
Are there Ajax specialists here? I need to replace the search tag from the first to the second when a radio button is clicked.
Code:
<li class="uk-overflow-auto uk-overlay-default<?php if (returnPageField(return_page_slug(), 'use-header')=='on') { ?> uk-margin-large-top<?php } ?>">
  <div class="uk-padding-small">
    <h2 class="uk-text-white uk-h4 uk-margin-remove uk-padding-small uk-background-extra uk-text-center uk-border-rounded">333333 33 33333 33333?</h2>
    <div class="uk-overflow-hidden uk-margin-top uk-grid-small uk-child-width-1-2@s uk-margin-bottom" data-uk-grid uk-scrollspy="cls: uk-animation-slide-bottom-small; target: > div; delay: 100; repeat: false;">
      <div>
        <label class="uk-border uk-padding"><input type="radio" class="uk-radio radio-<?php getPageField(return_page_slug(),'color-button'); ?>" name="branch1" value="first" /><span class="uk-margin-small-left">Man</span></label>
      </div>
      <div>
        <label class="uk-border uk-padding"><input type="radio" class="uk-radio radio-<?php getPageField(return_page_slug(),'color-button'); ?>" name="branch1" value="second" /><span class="uk-margin-small-left">Woman</span></label>
      </div>                                        
    </div>
  </div>
</li>
<?php global $language; get_i18n_search_results(array('tags'=>'first _parent_'.return_page_slug(), 'lang'=>@$language,'words'=>' ', 'DATE_FORMAT'=>'', 'max'=>99, 'i18n'=>0, 'numWords'=>'-1', 'order'=>'+menuOrder','showPaging'=>0,'HEADER'=>'','NOT_FOUND'=>'')); ?>
Reply
Made a transliteration list that can be pasted into the "Transliteration Settings" field at the bottom of the "Configure I18N Search" Settings page.
As far as I can see, it covers all "Latin-type" European languages with all kinds of accents, but not cyrillic, greek etc.


Attached Files
.txt   accents-transliteration-list for i18n-search-settings.txt (Size: 1.12 KB / Downloads: 7)
Reply
However, as I have been using this search function for several years, I must admit that there is one thing I never understood (mainly because I did not need it):

What exactly is a "tag"?
How do I invent it? How can I (must I?) add a tag to a page? Do I need a custom field "tags" for this? Or must it be contained in the content?

Please forgive me for the stupid question.
Probably it is so simple that I never got it ...
Reply
(2022-07-02, 03:34:39)Knobbles Wrote: What exactly is a "tag"?

If you open a page in the GetSimple back end 'Pages' tab and then open the 'Page Options' section, you'll see the 'Tags & Keywords' field. On a clean install of GetSimple, the index.html  page has the entries 'getsimple, easy, content management system' here.
If you then look at the page source you'll see these texts in line 27 as:

Code:
<meta name="keywords" content="getsimple, easy, content management system" />
You can also use Tags & Keywords in a Tag Cloud as I've got on my web-site.
I don't know how much weight the 'keywords' meta tag is given by Google and co. nowadays - perhaps someone with an up-to-date knowledge of SEO can advise.
Best wishes,
Web Developer and Translator (German > English)
Reply
Oh, I see.
Tags & Keywords.

All the time I completely missed the word "Tags".
Thank you!
Reply
(2022-07-05, 00:22:50)Knobbles Wrote: All the time I completely missed the word "Tags".
I know this sort of situation only too well ....
... and I'm glad I could help
Web Developer and Translator (German > English)
Reply
Hello, I have a request or at least an issue I cannot solve:
Currently the longest "readable" tag/keyword I18N Search can see is two words, any phrase with 3 words or more will be displayed in tag cloud but will not show any results. Is it possible to extend the max phrase size so longer tags/phrases can be used?
Glowczynski.pl - webmaster, graphic designer, translator.
For any job offers contact me via artur@glowczynski.pl.
Reply
(2023-01-24, 10:55:54)Artur Wrote: Hello, I have a request or at least an issue I cannot solve:
Currently the longest "readable" tag/keyword I18N Search can see is two words, any phrase with 3 words or more will be displayed in tag cloud but will not show any results. Is it possible to extend the max phrase size so longer tags/phrases can be used?

Thank you for reporting this bug that I was unaware of. It is fixed in

I18N Search version 2.13.2
  • fixes searching for tags with more than 2 words
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
Awesome plugin Smile

Is there a way show a Tag Cloud filtered by a template?
Example-template: post.php

Of maybe a better idea: is it possible indexing  ONLY Pages from a specific template (post.php or product.php)
Reply
Hello,

Adding keywords (comma seperated), and when save the page, it shows a blank screen with an error:

Fatal error: 'continue' not in the 'loop' or 'switch' context in /../public_html/gscms/plugins/i18n_search/indexer.class.php on line 265

PS: Debug mode is enabled
Reply
I18N Search 2.13.4:
  • fit for php8
  • new language: nl (by Simplicitie)
  • updated languages: da, pl
tuxy, the bug found by you has also been fixed.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
(2023-01-28, 02:48:44)mvlcek Wrote: I18N Search 2.13.4:
  • fit for php8
  • new language: nl (by Simplicitie)
  • updated languages: da, pl
tuxy, the bug found by you has also been fixed.

Wow! superfast support!!!
You do amazing work!
Your plugins are really awesome!!!!
I try made a blog with GS CMS, but try using the core page-functionality.
So do a lot of experiments with GS, if all my experiments works, then change my Blog-website from Bludit to GS Smile

Thanks a lot!
Reply
For testing the search plugin, adding the shortcodes

(% searchform %)
(% searchresults %)

on this page https://gscms.webkust.be/algemeen/

It shows the searchform, but test search for a keyword: geld , nothing shows.

Also adding this code in the sidebar.php:

<?php get_i18n_search_form(array('slug'=>'search','showTags'=>0)); ?>

But the Tag Cloud don't show up.

For testing, remove the files:

../data/other/i18n_*_index.txt

so it can regenerate, but nothing helps :/

What i do wrong??

Using php 8.1
Reply
(2023-01-28, 05:05:16)tuxy Wrote: For testing the search plugin, adding the shortcodes

(% searchform %)
(% searchresults %)

on this page https://gscms.webkust.be/algemeen/

It shows the searchform, but test search for a keyword: geld , nothing shows.

Also adding this code in the sidebar.php:

<?php get_i18n_search_form(array('slug'=>'search','showTags'=>0)); ?>

But the Tag Cloud don't show up.

For testing, remove the files:

../data/other/i18n_*_index.txt

so it can regenerate, but nothing helps :/

What i do wrong??

Using php 8.1

Thanks for being php8 compatibility tester ;-)

You specified 'showTags'=>0, thus no tag cloud is shown. Use 1 to show the tag cloud.
Additionally your page (often) shows php errors in the sidebar, so I suppose, you are still working on it.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
Found why not showing the search results.
When disable the Use Fancy URLs option in the GS settings page then it works.

Can i use Fancy Urls with the search-plugin?

(My apologies for all my posts)
Reply
Hi mvlcek,
Yes, i do a lot of testing :⁠-⁠D and debugging is enabled.
Okay i try this tommorow about the tagcloud.

Thé search results works now, but only with Fancy URL's disabled :/
Can i use Fancy URL's with the search plugin?

Thanks again for your help Wink
Reply
(2023-01-28, 06:43:46)tuxy Wrote: Can i use Fancy URL's with the search plugin?

Yes, you can, if you have your server (e.g. .htaccess) correctly configured.
However, you must make sure that your rewrite rules pass on the parameters. For apache this would be done with the QSA flag, e.g.
Code:
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
RewriteRule ^ index.php [L]
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
(2023-01-28, 07:29:57)mvlcek Wrote:
(2023-01-28, 06:43:46)tuxy Wrote: Can i use Fancy URL's with the search plugin?

Yes, you can, if you have your server (e.g. .htaccess) correctly configured.
However, you must make sure that your rewrite rules pass on the parameters. For apache this would be done with the QSA flag, e.g.
Code:
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
RewriteRule ^ index.php [L]

Adding this htaccess rules, but doesn't work, i mean i can't login anymore in GS.
The problem is this rule:
RewriteRule ^ index.php [L]

After disable this rule, i can login to my website, but the search doesnt't work.

This is my htaccess:

#

# GetSimple CMS htaccess ROOT file

# apache 2.4

#



# The following require certain allow overrides, if getting 500 error comment them out one by one

# can be resolved in apache httpd.conf to ensure security alternatives



#Redirect HTTP to HTTPS (change example.com to proper domain)

#RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$

#RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

#RewriteCond %{SERVER_PORT} 80

#RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]



# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin

#RewriteCond %{HTTP_HOST} !^$

#RewriteCond %{HTTP_HOST} !^www\. [NC]

#RewriteCond %{HTTP_HOST} (.+)$

#RewriteRule ^(.*)$ http://www.%1/$1 [R=permanent,L] .



# Enable gzip compression

#AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript



# override charset

AddDefaultCharset UTF-8



# prevent directory listings

Options -Indexes



# Follow symbolink links, This is required for rewrites on some hosts

Options +FollowSymLinks



# Set the default handler.

DirectoryIndex index.php



# blocks direct access to the XML files - they hold all the data!

<Files ~ "\.xml$">

<IfModule !mod_authz_core.c>

Deny from all

</IfModule>

<IfModule mod_access_compat.c>

Deny from all

</IfModule>

<IfModule mod_authz_core.c>

<IfModule !mod_access_compat.c>

Require all denied

</IfModule>

</IfModule>

</Files>



<Files sitemap.xml>

<IfModule !mod_authz_core.c>

Allow from all

</IfModule>

<IfModule mod_access_compat.c>

Allow from all

</IfModule>

<IfModule mod_authz_core.c>

<IfModule !mod_access_compat.c>

Require all granted

</IfModule>

</IfModule>

</Files>



# handle rewrites for fancy urls

<IfModule mod_rewrite.c>

RewriteEngine on



# Usually RewriteBase is just '/', but

# replace it with your subdirectory path

RewriteBase /



RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

# RewriteRule ^ index.php [L]
</IfModule>

Maybe the problem is, the test-website is on a subdomain https://gscms.webkust.be ?
Reply
Try adding the tagCloud in my sidebar.php with: 'showTags'=>1

<?php get_i18n_search_form(array('slug'=>'search','showTags'=>1)); ?>

But doesnt't work!
Only the search form is showing
Reply
(2023-01-28, 09:06:31)tuxy Wrote: Try adding the tagCloud in my sidebar.php with: 'showTags'=>1

<?php get_i18n_search_form(array('slug'=>'search','showTags'=>1)); ?>

But doesnt't work!
Only the search form is showing


<?php get_i18n_tags(array('slug'=>'search', 'minTagSize'=>60, 'maxTagSize'=>160)); ?>
Reply
Thanks for your help Oleg06.
The TagCloud works perfect!!!
Happy :⁠-⁠)
Reply
Today test the I18N Search plugin again, now installed GS CE in the root of my hosting (https://webkust.be), but the search function doesn't work, see my test-pages:

https://webkust.be/algemeen/
https://webkust.be/search/

Also if you click on a tag in the sidebar, the links doesn't work.

When disable Fancy Urls then it works well Undecided

Strange, this is a clean GS CE install
For testing change to another theme, but nothing :-(

In the past test a lot of (flatfile) cms-systems on other (sub)domains, without any problems.

I hope someone can help me please :-(

For more info about my server-config:
https://webkust.be/phpinfo/
Reply
I FOUND IT!!!

In gsconfig.php, disable the canonical option:

# Enable Canonical Redirects?
# define('GSCANONICAL', 1);
Reply




Users browsing this thread: 35 Guest(s)