Page 2 of 2
Re: Search function
Posted: Wed May 17, 2006 11:00 am
by westis
Piratos has mas made a
module of pisearch, that supposedly also searches news articles (don't know about searching other modules, the project has just been approved).
Re: Search function
Posted: Wed May 17, 2006 5:56 pm
by Piratos
Visible Parts of content and News (if one is activ and in time).
Other wishes ?
I need translations of the plugin pisearch template , because with the module it is controlled with the language name (en_US, de_DE etc.).
The templates are stored with the install. If i have more templates in other languages it is better for the start of the new module.
I have 14 days time because in june i have to spend a lot of time with custumers. Need quick replys.
Re: Search function
Posted: Wed May 17, 2006 7:06 pm
by westis
Thanks Piratos, I'm sure lots of people will appreciate this.
It would be great if you could use svn, as we then can use the Translation Center to easily add translations. Instead of having one template for each language you then just add a language variable in the template file. As soon as the files, with the en_US.php file with the language strings in the /lang folder, has been added to svn the project can be added to the Translation Center and people can translate to different languages. With external set for getting these language files, they can be included automatically with the release.
I'm sure you know how to use language strings in a module, to use only one template instead of one for each language. But in case someone is thinking of making a localized module here's how:
In the module, assign a language string to a Smarty tag like this:
$this->smarty->assign ('name_of_smarty_tag_for_lang_string_one', $this->Lang ('name_of_lang_string'));
Process the template (that is in a .tpl file in the templates sub-folder) like this:
echo $this->ProcessTemplate ('templatename.tpl');
The .tpl file can look like this:
{$name_of_smarty_tag_for_lang_string_one}
{$name_of_smarty_tag_for_lang_string_two}
That way there's only one template file, that takes the value for each language string from the translation for the language that is selected in the admin panel or set by a parameter in the module tag.
On the side of feature requests, it would be great with a drop-down where one can choose what section one wants to search, like News or Entire site. If searching modules also is added, they can be added in the dropdown too. For example searching files that are uploaded with the Uploads module, which would be great.
Possibly an advanced search button could be added too, where these more advanced search options could be selected.
Re: Search function
Posted: Thu May 18, 2006 7:58 am
by Piratos
It would be great if you could use svn
It was a long way but now i have found a way to use the needed apache folder with windows and linux via usb stick.
So for this project i will use SVN Version 1.3.3 for windows.
Re: Search function
Posted: Sat May 20, 2006 2:26 pm
by Ron@Spikecity
Piratos wrote:
Visible Parts of content and News (if one is activ and in time).
Other wishes ?
I need translations of the plugin pisearch template , because with the module it is controlled with the language name (en_US, de_DE etc.).
The templates are stored with the install. If i have more templates in other languages it is better for the start of the new module.
I have 14 days time because in june i have to spend a lot of time with custumers. Need quick replys.
I'd be honored to do the nl_NL part for you

Re: Search function
Posted: Wed May 24, 2006 12:56 pm
by Piratos
Pisearch as a module is ready and you can download it on the dev on Saturday.
This module is searching in Content and in News (Summary and news_data).
If i had time i will enable searching in gastbuch.
Re: Search function
Posted: Wed May 24, 2006 5:56 pm
by Piratos
And so it looks with 2 results (first is a content, second is a news):
[attachment deleted by admin]
Re: Search function
Posted: Thu May 25, 2006 5:04 pm
by Piratos
Module pisearch is ready to work and ready in the dev to download it.
Re: Search function
Posted: Fri May 26, 2006 8:50 am
by alby
Piratos wrote:
Module pisearch is ready to work and ready in the dev to download it.
In Patches there is a
Italian translation
Alby
Re: Search function
Posted: Sat May 27, 2006 6:37 pm
by remc0
Piratos wrote:
Module pisearch is ready to work and ready in the dev to download it.
In Patches there is a
Dutch translation
Remco
Re: Search function
Posted: Mon May 29, 2006 4:13 am
by Ted
Did I say 8-10 weeks? I meant days...
Anyway, a working version of Search is in svn. It SHOULD work with 0.13, though it needs some testing. I've also integrated it into the News module (also in svn), so for really good testing, you should grab that as well...
Let me know how it goes if anyone tries it. Thanks!
Re: Search function
Posted: Mon May 29, 2006 7:03 am
by Dr.CSS
which files in SVN do i need to update my install of News/Search...
mark
Re: Search function
Posted: Mon May 29, 2006 11:46 am
by Piratos
You need only the module pisearch .