Search found 81 matches

by GDS
Fri May 29, 2009 5:55 pm
Forum: Modules/Add-Ons
Topic: {edit_news} tag?
Replies: 4
Views: 2669

Re: {edit_news} tag?

This code seems to work: function smarty_cms_function_edit_news($params, &$smarty) { global $gCms; if (!check_permission(get_userid(false), 'Modify News')     && !quick_check_authorship($gCms->variables['content_id'],       author_pages(get_userid(false))))   return; $text = isset($param...
by GDS
Fri May 29, 2009 9:01 am
Forum: Announcements
Topic: CGFeedMaker is eminent - RSS will be removed from News.
Replies: 27
Views: 40959

Re: CGFeedMaker is eminent - RSS will be removed from News.

CGFeedMaker has the same problem with pretty URL's as News module,
as described in the thread http://forum.cmsmadesimple.org/index.ph ... 012.0.html

Special characters in title needs to be translated to avoid errors in pretty url's.


GDS


Edit: Some characters that makes trouble is: 
«»–
by GDS
Thu May 28, 2009 9:17 am
Forum: Modules/Add-Ons
Topic: {edit_news} tag?
Replies: 4
Views: 2669

Re: {edit_news} tag?

It is no longer possible to use this code because of changes in the News module.
This possibility used to save me from much work when editing news articles.

Is there anyone who knows a way to solve this problem?

GDS
by GDS
Tue May 12, 2009 12:33 pm
Forum: Announcements
Topic: Announcing CMS Made Simple 1.5.4
Replies: 8
Views: 15566

Re: Announcing CMS Made Simple 1.5.4

It is showing in Norwegian because it is the language of this site,
and there is a minor error in the translation (missing space between "Nyhetsartikler" and "som")

Adding a new article does not solve the problem.

GDS
by GDS
Tue May 12, 2009 9:38 am
Forum: Announcements
Topic: Announcing CMS Made Simple 1.5.4
Replies: 8
Views: 15566

Re: Announcing CMS Made Simple 1.5.4

After upgrading from 1.4.1 to 1.5.4, I got this error message, that I cannot remove:

Du har 1 varsel du ikke har tatt stilling til
News Du har 0 Nyhetsartiklersom ikke er publiserte

When clicking the link, I am prompted to login again, and when done,
returned to the admin main page.

GDS
by GDS
Sat Oct 25, 2008 9:52 am
Forum: Modules/Add-Ons
Topic: Search with wildcards
Replies: 15
Views: 5413

Re: Search with wildcards

Hi Rodeto, if all you want is fuzzy search,
the you need to change action.dosearch on line 27:

# $ary[] = "word = " . $db->qstr($word);
$ary[] = "word LIKE " . $db->qstr($word.'%');


This is a development discussion, these ideas are not quality tested or approved.


GDS
by GDS
Wed Sep 17, 2008 12:45 pm
Forum: Modules/Add-Ons
Topic: Search with wildcards
Replies: 15
Views: 5413

Re: Search with wildcards

Hi Russ,
the javascript/hide is ment to keep the options out of way  until the user needs them.

Your knowledge on forms seems to be better than mine.
I ageree that the fuzzy and veryfuzzy could need some explanation,
what text would you suggest?

GDS
by GDS
Tue Sep 16, 2008 3:49 pm
Forum: Modules/Add-Ons
Topic: Search with wildcards
Replies: 15
Views: 5413

Re: Search with wildcards

Hi Russ, will this do what you want? (I personally prefere the solution in the first post, it is simple and powerful) GDS # Search.module.php, Line 25: #GDS class Mode { var $value='default'; function IsChecked($X){   if($this->value==$X) return 'checked';   else return ''; } } #end # Search.module....
by GDS
Sun Sep 07, 2008 1:41 pm
Forum: Modules/Add-Ons
Topic: Search with wildcards
Replies: 15
Views: 5413

Re: Search with wildcards

I am now testing out a implementation of wildcards, as discussed above. Here are the changes i have made: # action:.default.php, Line 45 # GDS: if(!isset($params['searchmode'])) { $params['searchmode']='default'; } $this->smarty->assign('searchmode',$params['searchmode']); # end # action.dosearch.ph...
by GDS
Thu Sep 04, 2008 8:04 am
Forum: Modules/Add-Ons
Topic: Search with wildcards
Replies: 15
Views: 5413

Re: Search with wildcards

This might be implemented by using a new parameter searchmode, like this: {search searchmode="fuzzy" submit="submit fuzzy search"} Parameters: (optional) searchmode = "default" - Other values can be "wildcards" or "fuzzy" . Wildcars mode uses wildcar...
by GDS
Tue Sep 02, 2008 1:11 pm
Forum: Modules/Add-Ons
Topic: Search with wildcards
Replies: 15
Views: 5413

Re: Search with wildcards

I suppose I should have posted this in the Tips and Tricks section?

_ and % are the usual wildcards for mySQL, but it would be relatively
easy to replace _ and % with the more common wildcards ? and *
if preferred.

GDS
by GDS
Mon Sep 01, 2008 12:11 pm
Forum: Modules/Add-Ons
Topic: Search with wildcards
Replies: 15
Views: 5413

Search with wildcards

Using wildcards in search This little modification on the search module makes it possible to use the wildcards % and _  in search phrases, where % replaces zero or more charactes, and _ replaces one character. action.dosearch on line 27: # $ary[] = "word = " . $db->qstr($word); $ary[] = &q...
by GDS
Tue Aug 26, 2008 11:00 am
Forum: Modules/Add-Ons
Topic: [solved] Search in old News not possible anymore
Replies: 4
Views: 1568

Re: Search in old News not possible anymore

Reindexing did really solved the problem!
(took several minutes to finish)
Thanks for the help!  :D

GDS
by GDS
Tue Aug 26, 2008 7:47 am
Forum: Modules/Add-Ons
Topic: [solved] Search in old News not possible anymore
Replies: 4
Views: 1568

Re: Search in old News not possible anymore

No, the news articles has not expired,
they are active and listed in the News section.
With old, I refer to prior to upgrade.

As there is more than 1000 news articles,
the search facility is essential to this website.

GDS

Go to advanced search