Webboard: UserScore with PHP
[email protected] 16 Dec 2009 06:08:48 -0000
| Newsgroups | gmane.comp.web.mnogosearch.php-frontend |
|---|---|
| Message-ID | <[email protected]> |
Author: Alexander Barkov Email: [email protected] Message: > Hi, > > I'm trying to set a "UserScore" with PHP but this has no effect, e.g.: > > $res = Udm_Set_Agent_Param_Ex($udmAgent, 'UserScoreFactor', 255); > $res = Udm_Set_Agent_Param_Ex($udmAgent, 'UserScore', 'hztest '.'"SELECT rec_id, 255 FROM url WHERE rec_id=483"'); > $res = Udm_Set_Agent_Param_Ex($udmAgent, 'us', 'hztest'); > > The above example should only give one record (id=483) a higher score. > Any suggestions? > > best regards, > Amar Try this: $res = Udm_Set_Agent_Param_Ex($udmAgent, 'UserScoreFactor 255'); $res = Udm_Set_Agent_Param_Ex($udmAgent, 'UserScore hztest "SELECT rec_id, 255 FROM url WHERE rec_id=483"'); $res = Udm_Set_Agent_Param_Ex($udmAgent, 'ReplaceVar us hztest'); Reply: <http://www.mnogosearch.org/board/message.php?id=21026>