SearchByTags_XH Plugin - Technical task

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
Korwin
Posts: 118
Joined: Sat Oct 13, 2018 3:27 pm
Location: Russia, Yekaterinburg
Contact:

SearchByTags_XH Plugin - Technical task

Post by Korwin » Thu Oct 18, 2018 6:01 am

cmb wrote:
Wed Oct 17, 2018 11:28 pm
Korwin wrote:
Wed Oct 17, 2018 9:20 pm
[…] I assumed that he would collect the meta tags of the pages and, upon clicking on the link, give a list of pages with the mentioned tags. […]
That's rather interesting: a plugin which offers to search pages by meta keywords! :)
I am an experienced user and web editor, but not a programmer. I can only articulate what is needed and why it is needed.

If you mark individual pages with several tags, then on the basis of CMSimple_XH you can create a mini-online store, or a small encyclopedia of knowledge with the help of a plugin that could search for these pages by a single tag or their combination (intersection, association).


For example, we mark pages with tags:
1. project, mini, one-story
2. project, small, mansard,
3. project, medium, one-story,
4. project, large, two-story,
...
150. project, large, one-story,

When searching, a project intersection of tags is set (which cuts off all non-project pages from the search) + large + one-story.
The result is a list of pages of projects of one-story large houses.

The same for the encyclopedia: birds + domestic + waterfowl = duck, goose.

think that such a plugin would expand the scope of CMSimple_XH, for example, for school sites, or small online stores with a limited set of products from the manufacturer.

It is a pity that I myself do not know how to make plugins.

lck
Posts: 3211
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: SearchByTags_XH Plugin - Technical task

Post by lck » Thu Oct 18, 2018 4:47 pm

An old Plugin lktags is something like that.
help.htm wrote:This plugin is designed to organize search articles website for keywords that the user specifies. module can be used immediately after installation of the system, without requiring additional coding (in a minimum set of functions).

All commands are illustrated with the screenshots from site leoblog.ru. It is in russian language, sorry, but the main ideas is shown.
...
It also runs under CMSimple_XH 1.7 if you change the following in admin.php line 10:

Code: Select all

if(isset($lktags))

Code: Select all

if (XH_wantsPluginAdministration('lktags'))
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Korwin
Posts: 118
Joined: Sat Oct 13, 2018 3:27 pm
Location: Russia, Yekaterinburg
Contact:

Re: SearchByTags_XH Plugin - Technical task

Post by Korwin » Thu Oct 18, 2018 6:22 pm

lck wrote:
Thu Oct 18, 2018 4:47 pm
An old Plugin lktags is something like that.
Thanks.
I will definitely try it. Russian is not a problem for me. :lol:
P.S. This plugin seems to fit my task more than jClouds.

Tata
Posts: 3601
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: SearchByTags_XH Plugin - Technical task

Post by Tata » Thu Oct 18, 2018 8:21 pm

I had a look at the website. Making any search it returns
Fatal error: Uncaught Error: Call to undefined function eregi() in /home/u145/leoblog.ru/WWW/cmsimple/search.php:11 Stack trace: #0 /home/u145/leoblog.ru/WWW/cmsimple/cms.php(139): include() #1 /home/u145/leoblog.ru/WWW/index.php(520): include('/home/u145/leob...') #2 {main} thrown in /home/u145/leoblog.ru/WWW/cmsimple/search.php on line 11
There seems to be necessatry to correct also the eregi function.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

olape
Posts: 3052
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: SearchByTags_XH Plugin - Technical task

Post by olape » Fri Oct 19, 2018 8:12 am

Tata wrote:
Thu Oct 18, 2018 8:21 pm
I had a look at the website. Making any search it returns
Fatal error: Uncaught Error: Call to undefined function eregi() in /home/u145/leoblog.ru/WWW/cmsimple/search.php:11 Stack trace: #0 /home/u145/leoblog.ru/WWW/cmsimple/cms.php(139): include() #1 /home/u145/leoblog.ru/WWW/index.php(520): include('/home/u145/leob...') #2 {main} thrown in /home/u145/leoblog.ru/WWW/cmsimple/search.php on line 11
There seems to be necessatry to correct also the eregi function.
The message means WWW/cmsimple/search.php (CMSimple 3.2), not the plugin.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

Tata
Posts: 3601
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: SearchByTags_XH Plugin - Technical task

Post by Tata » Fri Oct 19, 2018 3:57 pm

OK, were is this from? The plugin is installed on my localhost with CMSimple_XH v.1.7.2.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Korwin
Posts: 118
Joined: Sat Oct 13, 2018 3:27 pm
Location: Russia, Yekaterinburg
Contact:

Re: SearchByTags_XH Plugin - Technical task

Post by Korwin » Sat Oct 20, 2018 2:27 am

Tata wrote:
Thu Oct 18, 2018 8:21 pm
I had a look at the website. Making any search it returns
Fatal error: Uncaught Error: Call to undefined function eregi() in /home/u145/leoblog.ru/WWW/cmsimple/search.php:11 Stack trace: #0 /home/u145/leoblog.ru/WWW/cmsimple/cms.php(139): include() #1 /home/u145/leoblog.ru/WWW/index.php(520): include('/home/u145/leob...') #2 {main} thrown in /home/u145/leoblog.ru/WWW/cmsimple/search.php on line 11
There seems to be necessatry to correct also the eregi function.
I can't find eregi function in code lktags plugin. But I have message in debug mode:

NOTICE: Undefined index: keywords
Z:\home\xhsimple\www\plugins\lktags\index.php:195
NOTICE: Undefined variable: root_only
Z:\home\xhsimple\www\plugins\lktags\index.php:101

cmb
Posts: 14227
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: SearchByTags_XH Plugin - Technical task

Post by cmb » Sat Oct 20, 2018 9:15 am

Tata wrote:
Fri Oct 19, 2018 3:57 pm
OK, were is this from? The plugin is installed on my localhost with CMSimple_XH v.1.7.2.
The paths in the error message suggest that the error messages are from http://leoblog.ru.
Korwin wrote:
Sat Oct 20, 2018 2:27 am
NOTICE: Undefined index: keywords
Z:\home\xhsimple\www\plugins\lktags\index.php:195
$cf['meta']['keywords'] has been moved to $tx['meta']['keywords'] in CMSimple_XH 1.6, so different languages can have different keywords. Change line 195 in index.php to:

Code: Select all

$kw = lkTaglistPreprocess(explode(',',$GLOBALS['tx']['meta']['keywords']));
Korwin wrote:
Sat Oct 20, 2018 2:27 am
NOTICE: Undefined variable: root_only
Z:\home\xhsimple\www\plugins\lktags\index.php:101
This looks like a bug in the plugin (it's using an undefined variable here). To simply get rid of the notice without changing the functionality, replace line 101 in index.php with:

Code: Select all

$idx = ($s >-1) ? $s : 0;
Christoph M. Becker – Plugins for CMSimple_XH

Korwin
Posts: 118
Joined: Sat Oct 13, 2018 3:27 pm
Location: Russia, Yekaterinburg
Contact:

Re: SearchByTags_XH Plugin - Technical task

Post by Korwin » Sat Oct 20, 2018 11:47 am

Technical support on this forum is real magic! It seems that I got into a big friendly family. Thanks, Christoph!

XH - eXpanded Help?

Post Reply