[RC1] Add related topics to your forum using Omgili

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

[RC1] Add related topics to your forum using Omgili

Postby rangeva » Thu Sep 07, 2006 8:21 am

MOD Title: Add related topics to your forum
MOD Description: This mod adds topics from ten of thousand forums (Using Omgili) to any of your forums (one or more). The topics relevance is set using Tags.
MOD Version: 0.1

MOD Features:
* This mod lets you add related topics to your forum from ten of thousand forums indexed by Omgili
* Add up to 10 topics for each forum
* Add topic to multiple forums
* Set the topics interest using search tags
* Set different topic interests for different forums


MOD Download: Add related topics to your forum v0.1 (5.1 KB)
Last Stable version: N/A

MOD Screenshot: View Forum

MOD History:

2006-09-07 - Version 0.1
- Initial Release

Author Notes:

- Mod demo can be found here

- Make sure you set the $forum_id to the right number. For example this forum id is 16. If you want to add topics to more then one forum add || (or) to the if statement i.e.

Code: Select all
if($forum_id == 1 || $forum_id == 2)



- Don't forget to set the appropriate search tags to make the topics related to your forum. For example:

Code: Select all
$Tags = 'help OR php';


Note: You can use all the search features Omgili offer on the $Tags variable: Omgili search features

- You can test the results you are going to get by using Omgili

- If you want different topics for different forums, use an if statement:

Code: Select all
if($forum_id == 2)
     $Tags = 'Movies OR DVD';



- The script uses cache, if you want to delete the cache, delete the "rsscache_*" files in the cache directory.

- FYI Omgili doesn't store topic view nor date, so the date presented is now, and the views number is random to fit well in the layout.

Cheers,
Ran Geva 8)
rangeva
Registered User
 
Posts: 25
Joined: Thu Sep 07, 2006 7:52 am

Postby rangeva » Thu Sep 07, 2006 4:30 pm

Screenshot taken from OmgiliForum:
Image
rangeva
Registered User
 
Posts: 25
Joined: Thu Sep 07, 2006 7:52 am

Postby nutebul » Fri Sep 08, 2006 9:41 am

Cool! I'm starting a new forum and that will give some content to my empty forums :)

Thanks!!! 8)
nutebul
Registered User
 
Posts: 2
Joined: Fri Sep 08, 2006 6:54 am

Postby drathbun » Fri Sep 08, 2006 12:00 pm

When someone clicks the links to these "other" topics, where do they go? Do they stay on your board, or do they go somewhere else, where the topic actually is found?

I guess I don't understand the point... :?
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
drathbun
Former Team Member
 
Posts: 12157
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE

Postby rangeva » Fri Sep 08, 2006 2:03 pm

The "other" topics are syndicated topics from other boards. When someone clicks them they will go to the board where the post is from.

The topics are retrieved using Omgili RSS feed. You can specify the interest tags and you will get the topics back.

You can add 1 to 10 topics for your forums. It's an added content for your board about any subject you choose.
rangeva
Registered User
 
Posts: 25
Joined: Thu Sep 07, 2006 7:52 am

Postby drathbun » Fri Sep 08, 2006 3:40 pm

So if I'm trying to build up my own board, why would I want to provide content from someone else's board? I want people to stay on my own board, not go elsewhere. :-) I realize I'm just whining now, and will shut up, as there may be folks that are interested in this MOD.

Good luck with your project, thanks for the explanation.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
drathbun
Former Team Member
 
Posts: 12157
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE

Postby rangeva » Fri Sep 08, 2006 7:48 pm

It adds content to your board. In any website you will find external links but people are coming back for those links.
Also this MOD shouldn't replace your users posts :) it's an addition on top of your members posts.

If you own a forum about technology and internet for example, your users will appriciate as many posts about their interest :)
rangeva
Registered User
 
Posts: 25
Joined: Thu Sep 07, 2006 7:52 am

Re: Trouble [RC1] Add related topics to your forum using Omgili

Postby pyrole » Wed Oct 03, 2007 2:40 pm

Hi,

I recently installed this mod and it works perfectly well on my localhost server, but when I installed it on to the server, it does not show the related topics on the specified Forum.

I am sure I've specified forum_id correctly, i have chmodded the cache directory to 777.

The tags are correct....
but the topics just dont show up on the specified forum.

Kindly help me out and point me the right direction.

Thanks in advance :)
http://www.indianskatersforum.com

Promoting Skating in India.
pyrole
Registered User
 
Posts: 5
Joined: Mon Oct 01, 2007 1:51 pm

Re: [RC1] Add related topics to your forum using Omgili

Postby rangeva » Wed Oct 03, 2007 4:04 pm

Maybe your inbound port 80 is closed? So when the php runs the:
http://www.omgili.com/rss.search?q=news URL it is blocked?
rangeva
Registered User
 
Posts: 25
Joined: Thu Sep 07, 2006 7:52 am

Re: [RC1] Add related topics to your forum using Omgili

Postby pyrole » Wed Oct 03, 2007 5:36 pm

No its is not blocked :(
http://www.indianskatersforum.com

Promoting Skating in India.
pyrole
Registered User
 
Posts: 5
Joined: Mon Oct 01, 2007 1:51 pm

Re: [RC1] Add related topics to your forum using Omgili

Postby rangeva » Wed Oct 03, 2007 8:54 pm

what server software are you using?
Can you run WGet on the script and see if you get a result?

Can you run phpbb in debug mode and see the error message?
rangeva
Registered User
 
Posts: 25
Joined: Thu Sep 07, 2006 7:52 am

Re: [RC1] Add related topics to your forum using Omgili

Postby pyrole » Thu Oct 04, 2007 5:26 am

My webhost is using apache and mysql...

And I cannot run phpbb in debug mode.....actually i don't have any idea that phpbb can be run in a debug mode...now that you have brought it up... i'll try that....


Another thing i would like to add is....there is no error message at all...
An rss file (name:="rsscache_59f75d0fba7be8671dc5e59cc4db9694")is formed in the cache directory contains just a few characters ... i am pasting its content below:-

Code: Select all
b:0;


Just the above:- Now I suppose this could mean that it connects to omgili.com but is unable to fetch the results for some reason.

I checked about the debug mode, it was enabled already...but was'nt showing any errors.

The problem is that, I installed omgili to show relevant topics on a specified forum and it is not showing, rest all is working absolutely fine....whereas the same thign is working on my local computer like a charm.

I have no clue about this ... :(
http://www.indianskatersforum.com

Promoting Skating in India.
pyrole
Registered User
 
Posts: 5
Joined: Mon Oct 01, 2007 1:51 pm

Re: [RC1] Add related topics to your forum using Omgili

Postby rangeva » Thu Oct 04, 2007 7:52 am

I dont know if its the cache dir problem but lets try to disable it. In your viewforum.php you added the mod. Find the cache definition - "$rss->cache_dir = './cache'; " and set it to '' like this "$rss->cache_dir = ''; "
This should set it so it won't use the cache dir. Let me know how it works.
rangeva
Registered User
 
Posts: 25
Joined: Thu Sep 07, 2006 7:52 am

Re: [RC1] Add related topics to your forum using Omgili

Postby rangeva » Thu Oct 04, 2007 7:52 am

Aslo please try to run wget from your server on the URL you are trying to fetch and see what is the result.
rangeva
Registered User
 
Posts: 25
Joined: Thu Sep 07, 2006 7:52 am

Re: [RC1] Add related topics to your forum using Omgili

Postby pyrole » Thu Oct 04, 2007 8:37 pm

Ok, trying the cache dir thingy right now.

Btw how do i use wget on my server for those url :( i have no clue about that...
Thank you for your time.
http://www.indianskatersforum.com

Promoting Skating in India.
pyrole
Registered User
 
Posts: 5
Joined: Mon Oct 01, 2007 1:51 pm

Next

Return to [2.0.x] MODs in Development

Who is online

Users browsing this forum: No registered users and 5 guests