News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Related topics / Random Topic?

Started by Ivan Minic, April 27, 2005, 01:42:06 AM

Previous topic - Next topic

sifirforum.com

so they dont need that mod and will not install.

but i need.  :)
SIFIR proudly hosted by servega

dtm.exe

Quote from: Ivan Minic on August 02, 2005, 12:16:58 AM
Well, you can set it not to include topics that didn't have reply in last 6 months

That would work.

-Dan The Man

niko

I think this would be easy to do it i had glossary file


<?php
$related
[] = array(
$topic "web programming",
$words = array(
array(
"php"),
array(
"sql","mysql","database");
),
);
$related[] = array(
$topic "programming",
$words = array(
array(
"vb","visual basic","basic"),
array(
"ms","microsoft");
),
);
?>



then when posted it would look thought every topic's word, each word giving a point , but max 1 per word group

like "i like php, because php is easy to use" would give 1 point for web programming...
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Grudge

In terms of "related topics" I'd guess that they are generated when the topic is created (Based on the topic title and/or first post content) and never updated after that. Doing them every page load would be forum death
I'm only a half geek really...

sifirforum.com

for example, can we use a technic like as google adsens.  ?

they get related ads in short time..

SIFIR proudly hosted by servega

Ivan Minic

Quote from: Grudge on August 03, 2005, 09:05:45 AM
In terms of "related topics" I'd guess that they are generated when the topic is created (Based on the topic title and/or first post content) and never updated after that. Doing them every page load would be forum death
You are developer, think of something :) :)
Checkout vBulletin... that way should work charming..

Grudge

That was something - a suggestion of how to do it no less ;)

I guess I'd probably do it by timestamping when the topic list was last updated and keep 5 ID_TOPIC numbers in a column on the topic table (comma seperated). When the topic is loaded the timestamp is checked - if it's more than 5 days old it runs a new search for related topics. If it's less than 5 days old it loads the topic names for each of the 5 numbers cached in the topics table. If some of these topics are gone (i.e. deleted) then it runs another search for 5 which aren't.

Equally - if the first post of the topic is edited it invalidates the cache to force a researching of related topics.

Is that a good enough plan for you ;)

PS - I'm not intending to do this - but I'll admidt it might be a useful mod so thought I'd provide some advice :P
I'm only a half geek really...

Ivan Minic

I know the usuall way it would be performance killer, but if ou tested vB ever you would see that the way it is done there doen't effect time loading or server performance at all.. And many CMS scripts have something similar for related news and it usually works fine..

Klauser

Hello,

I am also interested in a MOD Related Topic.....since 2 days I am now using SMF and before phpBB2 which has a realy good working MOD, possible the best one for phpBB2 ... Is there any chance to convert it to SMF ?

http://www.leuchte.net/dl.php?action=cat&catid=1

> Aehnliche Beitraege - Similar Topics > http://www.leuchte.net/file.php?file=28

Regards.


niko

I'm in process of making this mod

Image avaible in my blog
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Ivan Minic


niko

Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Ivan Minic

Will you make it also SMF 1.05 compatible?
How does it work.. searching topic title.. or?

niko


Quote from: Ivan Minic on August 27, 2005, 09:07:13 PM
Will you make it also SMF 1.05 compatible?
Maybe

Quote from: Ivan Minic on August 27, 2005, 09:07:13 PM
How does it work.. searching topic title.. or?

yea currently at least
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

niko

I will try to get this out tomorrow just need to make mod-files the code should be working... I have also to make Religion essay tomorrow
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Ivan Minic


niko

Laziness owned me... but today i got the package xml's done...
just need to test this... and submit (and get approved)
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Ivan Minic

Great.. please, if possible, make if for 1.0 and 1.1 versions...

niko

mod is now waiting for approval... so release is soon...
this will work with 1.0.5 but you need to make changes manually
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Ivan Minic

 :) 8) 8) This makes me a very happy fat man  :P :)

Advertisement: