TinyPortal

Development => Support => Topic started by: latinlives on January 07, 2007, 09:39:40 AM

Title: Multiple 'Forums' from one install
Post by: latinlives on January 07, 2007, 09:39:40 AM
Ok, so I am trying out TP for my site, currently I am using Joomla and the bridge and also the Shared Forum Mod (http://www.simplemachines.org/community/index.php?topic=64492.0)....is there a way to do this sort of thing using TP? I really want to continue to have this functionality on my site.  Any help would be much appreciated.
Title: Re: Multiple 'Forums' from one install
Post by: rebelrose on January 08, 2007, 06:35:47 PM
Since Tiny Portal is basically just a mod for SMF, although a very nice one, I think it may be possible, the only true way to know however is to give it a shot, I would make backups first.

Let us know how it works out if you give it a try.
Title: Re: Multiple 'Forums' from one install
Post by: latinlives on January 08, 2007, 07:27:00 PM
I actually did get it working, using actions (though the recent topics block will not work when you go to a one of the "forums".....if anyone is interested I will be more than happy to show you what I did.
Title: Re: Multiple 'Forums' from one install
Post by: Sarge on February 19, 2007, 07:06:19 AM
I'm using Joomla! and the Shared Forum Mod too and I'm very interested in knowing how you got it working with TP!

Title: Re: Multiple 'Forums' from one install
Post by: arez on February 22, 2007, 03:05:51 PM
it would be nice if youÃ,´d share your knowledge, latinlives cuz iam having some problems with that ^^
Title: Re: Multiple 'Forums' from one install
Post by: latinlives on February 22, 2007, 05:44:36 PM
List of changes.

index.php one for each forum name.
line 334 'forumname' => array('BoardIndex.php', 'BoardIndex'),


Load.php, you have to add &&($_GET['action'] == 'forumname') for each forum that you put up
line 527
//SHARED FORUM MOD
if(!isset($_REQUEST['board']) &&!isset($_REQUEST['topic'])  &&isset($_REQUEST['action']) &&($_GET['action'] == 'forumname')){
$sharedforummod = $_GET['action'];
        $forumList = db_query("SELECT catList FROM {$db_prefix}forums WHERE forumName = '$sharedforummod'", __FILE__, __LINE__);
    $row_forumList = mysql_fetch_assoc($forumList);
        $user_info['query_see_board'] .= ' AND FIND_IN_SET(c.ID_CAT, "' . $row_forumList['catList'] . '")';
  }


Changing the linktree to the right forum doesnt work, and I have not had a chance to try and get it to work yet....
line 547
        // Start the linktree off empty..not quite, have to insert forum
if ($_GET['action'] == 'forumname') {$context['linktree'] = array(array('url' => $scripturl . '?action=forumname', 'name' => 'ForumName'));}

else
     $context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));



The database side is set up the same as it is in the shared forum mod for Joomla/SMF
Title: Re: Multiple 'Forums' from one install
Post by: Sarge on February 22, 2007, 07:04:52 PM
Hey, thanks a lot! I will try your changes. May we see a URL?

If I manage to get the recent topics block working with the mod, I will let you know. ;)
Title: Re: Multiple 'Forums' from one install
Post by: arez on February 22, 2007, 10:55:43 PM
i will gibe it a try tomorrow. thank you very much :)
Title: Re: Multiple 'Forums' from one install
Post by: arez on February 23, 2007, 10:34:45 AM
does not work for me... also if i create another forum with the mysql tool it wont appear in the smf_forums table
Title: Re: Multiple 'Forums' from one install
Post by: Sarge on March 18, 2007, 05:42:46 AM
I'm writing a mod for multiple forums in SMF+TP. It's based on Shared Forum Mod by Goosemoose, but it is quite a bit better. ;)

For example, the forum parameter is put in user's session/cookie, so the URLs are now quite clean. Also, I've made a mod admin panel, where you can set up your forums and set several mod options.

It's going to be cool. Check it out here (http://www.simplemachines.org/community/index.php?topic=158330.0) and comment if you have any ideas or would like a specific feature.

I plan to release a working beta as soon as possible.

EDIT: Oh, and did I mention that I'm going to release an installable mod package rather than a hack? ;)
Title: Shared Forum Mod for TP - Beta 1 released!
Post by: Sarge on April 09, 2007, 06:58:54 AM
Shared Forum Mod (SFMod) Beta 1 is released. This version is for TP only.

http://www.simplemachines.org/community/index.php?topic=158330.msg1041585#msg1041585

Tested on TP 0.9.8.3, but should work in 0.9.7.1 too.