xoops forums

Hadesteam

Not too shy to talk
Posted on: 5/1 13:53
Hadesteam
Hadesteam (Show more)
Not too shy to talk
Posts: 159
Since: 2011/9/5 1
#1

Related news ?

I would like under each article to display a certain number of similar articles (based on keywords in the article title or its content). Such an addition to the wordpress theme. Is there any modification that will allow me to do this? Xoops version 2.5.7 Module news version 1.68 rc1

Regards

Hadesteam

Not too shy to talk
Posted on: 5/15 15:23
Hadesteam
Hadesteam (Show more)
Not too shy to talk
Posts: 159
Since: 2011/9/5 1
#2

Re: Related news ?

I need a modification or script that would randomly display 3-5 articles from the same category, in each article at the very end. Anyone ?

aerograf

Not too shy to talk
Posted on: 5/15 15:29
aerograf
aerograf (Show more)
Not too shy to talk
Posts: 148
Since: 1/7 19:01
#3

Re: Related news ?

You can take from news_block_randomnews.tpl

Hadesteam

Not too shy to talk
Posted on: 5/15 15:38
Hadesteam
Hadesteam (Show more)
Not too shy to talk
Posts: 159
Since: 2011/9/5 1
#4

Re: Related news ?

Yes, but I care that this block only shows articles from the same category. If I read an article that is in the Training section, under the article let's display 5 random articles only from the training category. But if I read article in section "Diet" then only display articles from this category "Diet".

Mamba

Moderator
Posted on: 5/15 16:39
Mamba
Mamba (Show more)
Moderator
Posts: 10390
Since: 2004/4/23
#5

Re: Related news ?

Try Publisher: https://github.com/mambax7/publisher

I just fixed that issue yesterday:
https://github.com/XoopsModules25x/publisher/issues/61
Please support XOOPS & DONATE
Use 2.5.8 | Debug | Requests | Bugs

Hadesteam

Not too shy to talk
Posted on: 5/15 17:01
Hadesteam
Hadesteam (Show more)
Not too shy to talk
Posts: 159
Since: 2011/9/5 1
#6

Re: Related news ?

To go to Publisher I would have to move everything, and to add each article to a 301 redirect so as not to lose your google position. As for my knowledge of xoops it is rather unreal;)

I mean, in category no. 1 block "randomnews" (under article) displayed only random title articles from category 1 etc.

Zap_English

Quite a regular
Posted on: 5/15 17:59
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 337
Since: 2016/5/24
#7

Re: Related news ?

If you're using publisher you can clone the random news blocks, and you can specify exactly what categories to use for each one

It's what I did for the news features on our radio station website