Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 2 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: News module +keywords
by przemeks on 2006/6/17 21:12:57

Hello guys,

I use News 1.44 and this hack doesn't work, i don't know what is wrong.

My query to database (example):

le="color: #000000"><?php SELECT * FROM xoops_stories WHERE MATCH (keywords) AGAINST ('xoops, cms, php') AND storyid != '2'


I add fulltext to 'keywords' row.

The code:

le="color: #000000"><?php $number = mysql_numrows($wykonaj); echo $number;


always return '0'

I think that this query is wrong...

I don't have any other ideas...

Could anyone help me ?

----edit-----

I removed from query

le="color: #000000"><?php AND storyid != '$id'


and this query return the same story. Something of this query must be wrong.

----edit-----

I check several queries and I know what the problem is. This query search stories which include all of those keywords in row 'keywords' not one...

Any ideas ?

----

I work on XOOPS 2.0.13.2 - in this version something must blocks this query.
Re: News module +keywords
by exbanious on 2005/7/14 23:24:51

you might want to turn your debug on and see what it says.
there are several places in news 1.3.1 that make references to the keywords function.
off hand, "admin/index.php", "submit.php" and "class.newsstory.php", in addition to "article.php". you would have to add these references in as well...

i had made several modifications to news 1.2 and found it much easier to port those changes over to higher versions, rather than add elements from later versions to earlier ones. but everyone has their own method, so do whatever works for you.
Re: News module +keywords
by przemeks on 2005/7/14 9:56:21

I'm also thinking about "related articles" in News 1.1 (in this version i add much modygications). I create a "keywords" row in table xoops_stories, with "full text" and other values from News 1.3.1 but when i put any code in article.php to read a keyowrds (for example $story['keywords'] = $article->keywords();) the article.php is displaying blank page.

What i made wrong, why i can't connect to keywords row ?

Something blocks this :/
Re: News module +keywords
by Marco on 2005/7/13 20:59:22

do you know news 1.3.1 has these features embeeded ?
marco
Re: News module +keywords
by indream on 2005/7/13 20:42:17

how can i use this hack in news 1.1 ?

i need this keywords hack and
previus article - next article function hack for news 1.1

Who's Online

79 user(s) are online (41 user(s) are browsing Support Forums)


Members: 0


Guests: 79


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits