Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Sarge on March 17, 2007, 02:58:49 AM

Title: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Sarge on March 17, 2007, 02:58:49 AM
I'm writing a Shared Forum Mod for SMF and SMF+TinyPortal. I got the original idea and code from Goosemoose. Read about his Shared Forum Mod for Joomla+SMF (http://www.simplemachines.org/community/index.php?topic=64492.0) to get a general idea about what this mod does.

Since some users (including me) have asked for a SMF and/or SMF+TP version, I'm writing a mod for them. This topic is: 1) to discuss about what you would expect from it, and 2) to ask and give support for the latest version.

Please note that my mod is currently in beta. Use at your own risk. That said, I try to help with every difficulty you might experience in installing, configuring and using it.

You can see it in action at http://www.albwebmaster.com/index.php

The latest version for SMF 1.1.x only (no SMF 2.0 or TinyPortal support) is 0.2.5.4 and can be downloaded from: http://www.albwebmaster.com/index.php?topic=40.0
The latest version for SMF 1.1.x and TinyPortal 0.9.8.3 is 0.2.5.3 and can be downloaded from:
http://www.albwebmaster.com/index.php?topic=27.0


Technical info:
My version uses a session variable, instead of a URL parameter, to preserve the current forum name across a user's session. This way, it's not necessary to put the forum name in every URL. In fact, the only URLs (so far) where the forum name is present are those when switching forums (index.php?action=forumname) and when clicking on categories (index.php?action=forumname#cat_id); in all other cases, the URLs are the same as those of an unmodified SMF or SMF+TP forum.

(Note that this post will be updated often.)

Currently testing with:
SMF 1.1.8
TinyPortal 0.9.8.3

Already done:
+ Create an installable base mod package, updated after every feature completion.
+ Show categories for the current forum only.
+ Remove the FORUM button added by TP to the template.
+ Modify the linktree in Load.php to display current forum name.
+ Create a mod control panel to set up forums.
+ Modify Recent.php to display recent topics, unread topics and unread replies for the current forum only.
+ Remove base forum name and URL ($scripturl) from linktree.
+ Set a default forum (configurable in mod's admin panel).
+ Add code to check for forum name (and select the proper one if it's missing) when a user accesses a board or topic directly (without choosing a forum first).
+ Simplify code by putting current forum settings in the $context array. This makes it easier to work with templates.
+ Modify page titles according to current forum.
+ Add support for forum-specific themes, i.e. each forum can have its own theme.
+ Add jumpto (drop-down) menus for forums and fix category links in original "Jump To:" menus.
+ Add mod strings in Modifications.english.php.
+ Add several options in mod's control panel.
+ Sanitize input data.
+ Change board name near the top of page to current forum name.
+ Add support for the Babylon and Classic themes.
+ Add a setting to turn the mod on or off.
+ Add support for forum-specific header logos, i.e. each forum can have its own logo.
+ Add support for board-specific themes.
+ Add support for forum-specific languages.
+ Add a dropdown menu button for forums.
+ Start separate mod development branches for SMF and SMF+TP.
+ Bug fixes.

To do (in no particular order):
- Modify TP's Recent block to filter recent topics.
- Add support for forum-specific TinyPortal articles.
- Add forum-specific support for other mods.
- Fully conform to Coding Guidelines (http://docs.simplemachines.org/index.php?board=10.0), Modification Approval Guidelines (http://www.simplemachines.org/community/index.php?topic=117819.0) and Mod Team Coding Guidelines (http://custom.simplemachines.org/mods/guidelines.php).
- Submit the mod for approval.

In the future - to do (in no particular order):
- Add more options that can also be set based on membergroup, subforum and/or permissions -- these may include theme display, banners, ads etc.

Ideas, suggestions, comments etc. are always welcome!
Title: Re: Shared Forum Mod
Post by: Gwydion Frost on March 21, 2007, 12:08:49 AM
I'd be willing to beta this with you.
Title: Re: Shared Forum Mod
Post by: Sarge on March 21, 2007, 01:55:12 AM
Quote from: Gwydion Frost on March 21, 2007, 12:08:49 AM
I'd be willing to beta this with you.

I'm currently testing my mod on both localhost and an online site I've set up for testing purposes. When I'm comfortable releasing a beta, I'll let you know here.

Do you have any idea or comment about the features or maybe about something I've missed out?
Title: Re: Shared Forum Mod
Post by: Gwydion Frost on March 21, 2007, 10:44:54 AM
Quote from: Sarge on March 17, 2007, 02:58:49 AM
Currently testing with:
SMF 1.1.2
TinyPortal 0.9.7.1

Tiny Portal is up to 0.9.8.3 now.

QuoteAlready done:
+ Create an installable base mod package, updated after every feature completion.
+ Show categories for the current forum only.

So far so good.

Quote+ Remove the forum action added by TP.

Clarify.

Quote+ Modify the linktree in Load.php to display current forum name.

Good.

Quote+ Create a mod admin panel to set up forums.

Clarify (because SMF already has one...so what exactly makes yours different?).

Quote+ Modify Recent.php to display recent topics, unread topics and unread replies for the current forum only.

Good.

QuoteTo do (in no particular order):
- Add code to check for forum name (and select the proper one if it's missing) when a user accesses a board or topic directly (without choosing a forum first).

Good.

Quote- Modify TP's Recent Posts block to filter recent topics.

By forum (single forum listing)? By forum (multiple forums listing)? By forum (chosen forum listing)? All of the above? Clarify.

Quote- Add an option to modify page titles according to current forum name.
- Add an option to remove base forum name and URL ($scripturl) from linktree.

Good.

Quote- Start separate mod development branches for SMF and SMF+TP.

Good, and not good. I use TP myself, and I am glad you are taking it into consideration. I think that the 'two branches' technically could be covered with only one version, depending upon which branch you really think you need to tweak. I mean in theory, the only hurdle you need to figure out is how to make Tiny Portal think the same thing that SMF and the users do... its sorta running very separate forums. The big trick is making SMF easily think it.

Quote- Find a way to insert forum buttons in the template -- any suggestions???

Yeah, Take that "Jump to:" dropmenu and make it TWO. Clean. Simple.

You can pick from one side or the other.

Quote- Add mod strings in Modifications.template.php.
- Fully conform to Coding Guidelines (http://docs.simplemachines.org/index.php?board=10.0), Modification Approval Guidelines (http://www.simplemachines.org/community/index.php?topic=117819.0) and Mod Team Coding Guidelines (http://custom.simplemachines.org/mods/guidelines.php).

Yeah. Good. ;)

QuoteIdeas, suggestions, comments etc. are always welcome!

Absorbing a multi-profile mod into this concept would make it much more fun. ;)
Title: Re: Shared Forum Mod
Post by: Sarge on March 21, 2007, 01:52:14 PM
Quote from: Gwydion Frost on March 21, 2007, 10:44:54 AM
Quote from: Sarge on March 17, 2007, 02:58:49 AM
Currently testing with:
SMF 1.1.2
TinyPortal 0.9.7.1

Tiny Portal is up to 0.9.8.3 now.

EDIT: I just did a quick test; my mod installs fine in TP 0.9.8.3.


Quote from: Gwydion Frost on March 21, 2007, 10:44:54 AM
Quote+ Remove the forum action added by TP.

Clarify.

Now it seems to me that this is not even necessary. What actually needs to be done is to remove the FORUM button in template, because it won't be needed anymore, and replace it with a "Jump To:" menu or something.

Quote from: Gwydion Frost on March 21, 2007, 10:44:54 AM
Quote+ Create a mod admin panel to set up forums.

Clarify (because SMF already has one...so what exactly makes yours different?).

Not an SMF admin panel replacement, no. :) Just an additional tab in Features and Options, just like Custom Actions Mod. Click on the image below:

(http://img339.imageshack.us/img339/1350/sfmodwh0.png) (http://img339.imageshack.us/img339/1350/sfmodwh0.png)


Quote from: Gwydion Frost on March 21, 2007, 10:44:54 AM
Quote- Modify TP's Recent Posts block to filter recent topics.

By forum (single forum listing)? By forum (multiple forums listing)? By forum (chosen forum listing)? All of the above? Clarify.

Good question. I'm thinking of displaying recent posts in TP's Recent Posts block:
- when in homepage, for all forums;
- when inside a forum, for this forum only.

What do you think?

Quote from: Gwydion Frost on March 21, 2007, 10:44:54 AM
Quote- Start separate mod development branches for SMF and SMF+TP.

Good, and not good. I use TP myself, and I am glad you are taking it into consideration. I think that the 'two branches' technically could be covered with only one version, depending upon which branch you really think you need to tweak. I mean in theory, the only hurdle you need to figure out is how to make Tiny Portal think the same thing that SMF and the users do... its sorta running very separate forums. The big trick is making SMF easily think it.

The way I see it, SMF needs fewer modifications than SMF+TP. It might be required for the mod to automatically detect if TP is installed, and modify TP code accordingly. I don't think there's a way to test for this condition in the modification.xml install file, is there?


Quote from: Gwydion Frost on March 21, 2007, 10:44:54 AM
Quote- Find a way to insert forum buttons in the template -- any suggestions???

Yeah, Take that "Jump to:" dropmenu and make it TWO. Clean. Simple.

Great idea! Where in the template do you suggest the drop-down menu should be placed?


Quote from: Gwydion Frost on March 21, 2007, 10:44:54 AM
QuoteIdeas, suggestions, comments etc. are always welcome!

Absorbing a multi-profile mod into this concept would make it much more fun. ;)

Please clarify. :)
Title: Re: Shared Forum Mod
Post by: Sarge on March 21, 2007, 09:47:37 PM
I set up a test site with what I've done so far:

http://www.albwebmaster.com/

The FORUM button is removed by the mod. On the right side you can see the Forums block, listing General and IT.

The "General" forum has 1 category.
The "IT" forum has 2 categories.

There's also a 4th category, not included in any of the 2 forums, so of course it stays hidden... or so I think.

I'd really like some feedback. :)

EDIT: Have a look at the linktree (and page title when you switch to a forum). Nice, isn't it?
Title: Re: Shared Forum Mod
Post by: Gwydion Frost on March 22, 2007, 01:50:28 AM
Quote from: Sarge on March 21, 2007, 01:52:14 PM
I know. I'll test my mod with the latest TP version too.

I had no doubts... ;)

QuoteNow it seems to me that this is not even necessary. What actually needs to be done is to remove the FORUM button in template, because it won't be needed anymore, and replace it with a "Jump To:" menu or something.

I wouldn't even bother to touch this at all. This is simply a "load current BoardIndex" button.

QuoteNot an SMF admin panel replacement, no. :) Just an additional tab in Features and Options, just like Custom Actions Mod. Click on the image below:

(http://img339.imageshack.us/img339/1350/sfmodwh0.png) (http://img339.imageshack.us/img339/1350/sfmodwh0.png)

Good.

Quote
Quote from: Gwydion Frost on March 21, 2007, 10:44:54 AM
Quote- Modify TP's Recent Posts block to filter recent topics.

By forum (single forum listing)? By forum (multiple forums listing)? By forum (chosen forum listing)? All of the above? Clarify.

Good question. I'm thinking of displaying recent posts in TP's Recent Posts block:
- when in homepage, for all forums;
- when inside a forum, for this forum only.

What do you think?

I think making it "check" buttons, and leaving the option in the Admin's hands is the best idea, so they can choose what the Recent Posts block will display, fitting their own needs.

QuoteThe way I see it, SMF needs fewer modifications than SMF+TP. It might be required for the mod to automatically detect if TP is installed, and modify TP code accordingly. I don't think there's a way to test for this condition in the modification.xml install file, is there?

Well, if it detects for a certain table or file that TP uniquely installs, and runs its mods based on that parameter alone...? (If TPortal_index.php is found, do this, else do this... etc etc.) I dunno... I am good at thinking up ways for the software to do neat new tricks using apps it already has, but dunno enough coding to save my own life (proverbial old dog, 'nuff said).


QuoteGreat idea! Where in the template do you suggest the drop-down menu should be placed?

It should read on that bar: Jump to: [forum dropdown list] [current forum board dropdown list][go]

Quote
Quote from: Gwydion Frost on March 21, 2007, 10:44:54 AM
Absorbing a multi-profile mod into this concept would make it much more fun. ;)

Please clarify. :)

Well, from an RPG site point of view, being Bob from Ohio on the OOC forum, Orgus the Destroyer in the IC World forum, and Blue Sage, Creative Director, on the Compendium forum.

One log-in. Board ID identifies Profile ID to post under, by permissions. ;)
Title: Re: Shared Forum Mod
Post by: Sarge on March 22, 2007, 02:45:46 AM
Quote from: Gwydion Frost on March 22, 2007, 01:50:28 AM

I had no doubts... ;)

I need this mod for my site too. Of course I have to test! :D

The mod installs successfully on TP 0.9.8.3. I'll test further, but I don't think the behavior will be any different. We'll see.


Quote from: Gwydion Frost on March 22, 2007, 01:50:28 AM
I wouldn't even bother to touch this at all. This is simply a "load current BoardIndex" button.

You're right. Might as well leave it there as it is. I removed the FORUM button, though.


Quote from: Gwydion Frost on March 22, 2007, 01:50:28 AM
Good.

Glad you like it. :) Of course, I'm going to add more options there.


Quote from: Gwydion Frost on March 22, 2007, 01:50:28 AM
I think making it "check" buttons, and leaving the option in the Admin's hands is the best idea, so they can choose what the Recent Posts block will display, fitting their own needs.

Yes, that makes sense. What do you think should the settings be and how should they behave?


Quote from: Gwydion Frost on March 22, 2007, 01:50:28 AM
Well, if it detects for a certain table or file that TP uniquely installs, and runs its mods based on that parameter alone...? (If TPortal_index.php is found, do this, else do this... etc etc.) I dunno... I am good at thinking up ways for the software to do neat new tricks using apps it already has, but dunno enough coding to save my own life (proverbial old dog, 'nuff said).

That would require a .php instead of an .xml install file, I'm afraid. I will make one, but I want to concentrate on getting the current features finished first. You know, I can always make a version 1.1, 2.0 etc... Good suggestion, though; I'll keep it in mind.

Quote from: Gwydion Frost on March 22, 2007, 01:50:28 AM
It should read on that bar: Jump to: [forum dropdown list] [current forum board dropdown list][go]

Yes, that's logical. I was actually coding that before I read your post. ;)


Quote from: Gwydion Frost on March 22, 2007, 01:50:28 AM
Well, from an RPG site point of view, being Bob from Ohio on the OOC forum, Orgus the Destroyer in the IC World forum, and Blue Sage, Creative Director, on the Compendium forum.

One log-in. Board ID identifies Profile ID to post under, by permissions. ;)

I think it has to wait. It would be a MAJOR feature, but it may require a lot of coding. However, I'll consider adding that option in future.

Be sure to check the mod online meanwhile:
http://www.albwebmaster.com/
Title: Re: Shared Forum Mod
Post by: DenDen60 on March 23, 2007, 11:42:53 PM
Well this is a great mod. This is what I need.

I prensently have around 10 instances of SMF-TP running. They alll have the same look and feel and are link together by one user database.

A few questions

1 - What about themes. How would we install them? Would we install only one theme and it would be the same for all. I imgine that the theme would reflect the name of the forum.

2 - What about Custom Profile Field Mod. I heard from WinRule that this would be included in a future version of SMF but meanwhile, would we be able to install Custom Profile Field Mod.

3 - How would the URL's work? would it be something like www.abc.com/forum_A, www.abc.com/forum_B etc?

4 - How much work did this mod ask from you?

5 - It will take only one MySQL database. What will be the effect of this on the load on the database?

6 - When will this mod be available?

If I could have this mod working that would be great.

Thanks

DenDen60
Title: Re: Shared Forum Mod
Post by: DenDen60 on March 23, 2007, 11:55:01 PM
Forgot to ask,

What about the search option, will it search allt the forums at once or only a selected forums.

Suggestion, on the firts page, it should search all forums but once in a specific forum, search that forum only.

Denden60
Title: Re: Shared Forum Mod
Post by: Sarge on March 24, 2007, 03:25:27 AM
Quote from: denden60 on March 23, 2007, 11:42:53 PM
Well this is a great mod. This is what I need.

Thanks for your interest, DenDen60. I'm glad you like it so far. I need it for my site too, so that's why I started writing it. I fully intend to release the mod to the SMF community as soon as I have finished a working version.

Quote from: denden60 on March 23, 2007, 11:42:53 PM
I prensently have around 10 instances of SMF-TP running. They alll have the same look and feel and are link together by one user database.

Shared Forum Mod (SFMod for short) is intended for single, normal installations of SMF and TP; it does not take multiple instances into account. It might work, but I can't assure you of that.

Quote from: denden60 on March 23, 2007, 11:42:53 PM
1 - What about themes. How would we install them? Would we install only one theme and it would be the same for all. I imgine that the theme would reflect the name of the forum.

SFMod installs on, and modifies, the default (Core) template. You'll have to modify other themes manually.

I understand that people have trouble with some custom themes. So, I intend to make as few theme modifications as possible. For example, linktree is modified in Load.php, not index.template.php.

Quote from: denden60 on March 23, 2007, 11:42:53 PM
2 - What about Custom Profile Field Mod. I heard from WinRule that this would be included in a future version of SMF but meanwhile, would we be able to install Custom Profile Field Mod.

I haven't tested Custom Profile Field Mod with SMF+TP+SFMod yet, but I will sometime. Note that SFMod is based on Custom Action Mod by winrules, so it shouldn't have many conflicts with CPF, if at all.

Quote from: denden60 on March 23, 2007, 11:42:53 PM
3 - How would the URL's work? would it be something like www.abc.com/forum_A, www.abc.com/forum_B etc?

With very few exceptions, URLs should be the same as those of an unmodified SMF+TP installations. The forum parameter value is set and updated through a session variable, not a URL variable. For more information, please read the first post on this topic.

Quote from: denden60 on March 23, 2007, 11:42:53 PM
4 - How much work did this mod ask from you?

A few hours so far, I guess. The mod is still not finished, and I intend to simplify the code to make it simpler and easier to maintain.

Quote from: denden60 on March 23, 2007, 11:42:53 PM
5 - It will take only one MySQL database. What will be the effect of this on the load on the database?

The effect should be negligible. At present (the mod is still in alpha development stage), there are only two additional queries, which are very quick and get executed only in two special circumstances: when topic (2 queries) or board (1 query) is set in URL. Each query retrieves a single field from a single row in one database table.

Quote from: denden60 on March 23, 2007, 11:42:53 PM
6 - When will this mod be available?

As soon as I have a working version that I'm satisfied with. :)


Quote from: denden60 on March 23, 2007, 11:42:53 PM
If I could have this mod working that would be great.

Thanks

DenDen60

Sure you will. I intend to submit the mod for approval too.

I see that you have registered on the test online forum. If you have any further comments, please post them here, so that everyone can benefit.

Quote from: denden60 on March 23, 2007, 11:55:01 PM
What about the search option, will it search allt the forums at once or only a selected forums.

Suggestion, on the firts page, it should search all forums but once in a specific forum, search that forum only.

I haven't tested the search option, but I plan to work on it. ;)

Thanks again!
Sarge
Title: Re: Shared Forum Mod
Post by: DenDen60 on March 24, 2007, 07:18:40 AM
Sarge wrote: Shared Forum Mod (SFMod for short) is intended for single, normal installations of SMF and TP; it does not take multiple instances into account. It might work, but I can't assure you of that.

I understand that but I also understand that I would not need 10 instances with your mod.

Please tell me if I am right but the way I understand it, I would have only one installation but could have 10 different forums on it with 10 different TP frontpage for them.

AM I right in assuming this?

Thanks

DenDen60

Title: Re: Shared Forum Mod
Post by: Sarge on March 24, 2007, 12:13:25 PM
Quote from: denden60 on March 24, 2007, 07:18:40 AM
I understand that but I also understand that I would not need 10 instances with your mod.

Please tell me if I am right but the way I understand it, I would have only one installation but could have 10 different forums on it with 10 different TP frontpage for them.

AM I right in assuming this?

Yes and no.

The mod is based on the concept that forums are collections of categories, just like categories are collections of boards.

There's one set of users, global moderators, admins etc. and they are shared across all forums. The forums (i.e. collections of categories) can be accessed through the frontpage, so the frontpage is the same for all forums.

But the mod can be made so that each forum can have its own theme.
Title: Re: Shared Forum Mod
Post by: DenDen60 on March 24, 2007, 03:44:04 PM
Quote from: Sarge on March 24, 2007, 12:13:25 PM

Yes and no.

The mod is based on the concept that forums are collections of categories, just like categories are collections of boards.

There's one set of users, global moderators, admins etc. and they are shared across all forums. The forums (i.e. collections of categories) can be accessed through the frontpage, so the frontpage is the same for all forums.

But the mod can be made so that each forum can have its own theme.

Well it might work for me if when I go from forum 1 to forum 2 the title of the forum changes from forum 1 to forum 2.

From your point of view, what would be the maximun number of different forums that could organize like this?

DenDen60

Title: Re: Shared Forum Mod
Post by: Sarge on March 25, 2007, 02:57:33 AM
Quote from: denden60 on March 24, 2007, 03:44:04 PM
Well it might work for me if when I go from forum 1 to forum 2 the title of the forum changes from forum 1 to forum 2.

If you are talking about the page title or linktree, the mod already does that. You can see it in action at the online test site.

You can specify the title for each forum. Click on the screenshot (in a previous post) to see how the mod admin panel looks like.


Quote from: denden60 on March 24, 2007, 03:44:04 PM
From your point of view, what would be the maximun number of different forums that could organize like this?

There's no theoretical limit. 10 forums should be fine.
Title: Re: Shared Forum Mod
Post by: DenDen60 on March 25, 2007, 07:32:46 AM
 Sarge wrote : You can specify the title for each forum. Click on the screenshot (in a previous post) to see how the mod admin panel looks like.

Yes but on the top it does not change.

If you look at your web site:
http://www.albwebmaster.com/index.php? the name on the top stays AlbWebMaster wheter your are on one forum ot the other.

I need this to change each time I change forum.

You should intstall an other theme on you site so that we can see it in action.

Thanks and keep up the good work.

DenDen60  
Title: Re: Shared Forum Mod
Post by: Sarge on March 26, 2007, 03:59:29 AM
Quote from: denden60 on March 25, 2007, 07:32:46 AM
Sarge wrote : You can specify the title for each forum. Click on the screenshot (in a previous post) to see how the mod admin panel looks like.

Yes but on the top it does not change.

If you look at your web site:
http://www.albwebmaster.com/index.php? the name on the top stays AlbWebMaster wheter your are on one forum ot the other.

I need this to change each time I change forum.

Well spotted. ;) It was set in TPortal.php, a TP file. I changed that too.

Quote from: denden60 on March 25, 2007, 07:32:46 AM
You should intstall an other theme on you site so that we can see it in action.

Thanks and keep up the good work.

DenDen60 

I updated the mod (again, LOL). Now you can also specify the id for the forum theme you want to use. As an example, I installed the Aero79 and Manuscript themes for TP; I set Aero79 for the General forum and Manuscript for the IT forum in mod's control panel. Try it and see if it's working correctly - it looks OK to me, but I might have missed something, you know.

Thanks for the encouraging words and support. :)
Title: Re: Shared Forum Mod
Post by: Sarge on March 26, 2007, 04:14:18 AM
Quote from: denden60 on March 23, 2007, 11:55:01 PM
What about the search option, will it search allt the forums at once or only a selected forums.

Suggestion, on the firts page, it should search all forums but once in a specific forum, search that forum only.

The search option will search in the current forum only. Due to the way the mod works, if no forum has been selected yet, a default forum will be searched.

In the online test site, the default forum is "General".
Title: Re: Shared Forum Mod
Post by: DenDen60 on March 26, 2007, 10:10:19 PM
I wrote :If you look at your web site:
http://www.albwebmaster.com/index.php? the name on the top stays AlbWebMaster wheter your are on one forum ot the other.

I need this to change each time I change forum.

You wrote: Well spotted.  It was set in TPortal.php, a TP file. I changed that too.

Well I think I did not explain it well. I meant The title needs to change.

Thanks

Denis
Title: Re: Shared Forum Mod
Post by: Sarge on March 27, 2007, 02:06:14 AM
Quote from: denden60 on March 26, 2007, 10:10:19 PM
I wrote :If you look at your web site:
http://www.albwebmaster.com/index.php? the name on the top stays AlbWebMaster wheter your are on one forum ot the other.

I need this to change each time I change forum.

You wrote: Well spotted.  It was set in TPortal.php, a TP file. I changed that too.

Well I think I did not explain it well. I meant The title needs to change.

Thanks

Denis

If you are talking about the page title (the window title in your browser), now it changes every time you switch to a(nother) forum. It only stays "AlbWebMaster" while you have not  entered a forum yet. The mod has no way of knowing which forum should be displayed without the user telling the mod which forum to display (i.e. by clicking on a forum, board or topic link). Do you have any idea about what should be done about this?

If you're talking about something else, please tell me.
Title: Re: Shared Forum Mod
Post by: Sarge on March 27, 2007, 02:55:37 AM
Quote from: Gwydion Frost on March 22, 2007, 01:50:28 AM
QuoteGreat idea! Where in the template do you suggest the drop-down menu should be placed?

It should read on that bar: Jump to: [forum dropdown list] [current forum board dropdown list][go]

Implemented. Just a little bit different:
Forum: [forum dropdown list] [go]
Jump to: [current forum board/category dropdown list][go]

(http://img145.imageshack.us/img145/6312/jumptoforumpr1.png)
Title: Re: Shared Forum Mod
Post by: KreedGhost on March 27, 2007, 03:57:56 PM
I would love to test this on my forum, I have been looking for a MOD like this for sometime....
Title: Re: Shared Forum Mod
Post by: DenDen60 on March 28, 2007, 03:55:15 PM
Quote from: Sarge on March 27, 2007, 02:06:14 AM
Quote from: denden60 on March 26, 2007, 10:10:19 PM
I wrote :If you look at your web site:
http://www.albwebmaster.com/index.php? the name on the top stays AlbWebMaster wheter your are on one forum ot the other.

I need this to change each time I change forum.

You wrote: Well spotted.  It was set in TPortal.php, a TP file. I changed that too.

Well I think I did not explain it well. I meant The title needs to change.

Thanks

Denis

If you are talking about the page title (the window title in your browser), now it changes every time you switch to a(nother) forum. It only stays "AlbWebMaster" while you have not  entered a forum yet. The mod has no way of knowing which forum should be displayed without the user telling the mod which forum to display (i.e. by clicking on a forum, board or topic link). Do you have any idea about what should be done about this?

If you're talking about something else, please tell me.

Sarge, I am talking about the name of your forum that appears in the Blue sky just under Hello... and you have 0 message. There you see Albwebmaster. I need this to change to reflect the name of the forum where the person is.

DenDen60
Title: Re: Shared Forum Mod
Post by: Sarge on March 28, 2007, 08:15:52 PM
Quote from: denden60 on March 28, 2007, 03:55:15 PM
rge, I am talking about the name of your forum that appears in the Blue sky just under Hello... and you have 0 message. There you see Albwebmaster. I need this to change to reflect the name of the forum where the person is.

DenDen60

I see. I will fix that.
Title: Re: Shared Forum Mod
Post by: Sarge on March 29, 2007, 04:00:27 AM
I have added some options in the mod's control panel:

(http://img248.imageshack.us/img248/3920/optionsob5.png)

I've implemented some of them and I'm working on the rest.

Please comment on what should be there (or not).
Title: Re: Shared Forum Mod
Post by: DenDen60 on March 29, 2007, 12:13:35 PM
Quote from: Sarge on March 28, 2007, 08:15:52 PM
Quote from: denden60 on March 28, 2007, 03:55:15 PM
rge, I am talking about the name of your forum that appears in the Blue sky just under Hello... and you have 0 message. There you see Albwebmaster. I need this to change to reflect the name of the forum where the person is.

DenDen60

I see. I will fix that.
That would be great. Thanks
Title: Re: Shared Forum Mod
Post by: DenDen60 on March 29, 2007, 12:28:23 PM
Quote from: Sarge on March 29, 2007, 04:00:27 AM
I have added some options in the mod's control panel:

(http://img248.imageshack.us/img248/3920/optionsob5.png)

I've implemented some of them and I'm working on the rest.

Please comment on what should be there (or not).

From my point of view some of these should be options that user could select while using.

Ex. In one case user would like to see only his own post or unread replies in current forum, but in another he would like to see his own posts or unread replies from all forums.

Same for the search. Sometime you want to search local, sometime you want to search global.

In my humble opinion of course

DenDen60
Ps.: You are doing a good job. ;-)
Title: Re: Shared Forum Mod
Post by: Sarge on March 29, 2007, 08:00:01 PM
Quote
From my point of view some of these should be options that user could select while using.

Ex. In one case user would like to see only his own post or unread replies in current forum, but in another he would like to see his own posts or unread replies from all forums.

Same for the search. Sometime you want to search local, sometime you want to search global.

Where would the user select these options?

Quote
In my humble opinion of course

DenDen60

Your opinion counts as much as mine. :)

Quote
Ps.: You are doing a good job. ;-)

Thank you.
Title: Re: Shared Forum Mod
Post by: DenDen60 on March 30, 2007, 12:37:43 PM
Quote from: Sarge on March 29, 2007, 08:00:01 PM
Quote
From my point of view some of these should be options that user could select while using.

Ex. In one case user would like to see only his own post or unread replies in current forum, but in another he would like to see his own posts or unread replies from all forums.

Same for the search. Sometime you want to search local, sometime you want to search global.

Where would the user select these options?

Quote

When he is using it. Ex. Profil, view my post in this forum, view my post in all forums.

Search would be when the user uses advance search. He could select this forum or all forums.

DenDen60

Title: Re: Shared Forum Mod
Post by: Sarge on March 30, 2007, 01:33:25 PM
Adding a user option to display own posts in all forums should be easy. I plan to implement it after the first beta is released.

I will see about the "search in all forums" option.
Title: Re: Shared Forum Mod
Post by: Sarge on March 31, 2007, 03:16:30 PM
Quote
Adding a user option to display own posts in all forums should be easy. I plan to implement it after the first beta is released.

I will see about the "search in all forums" option.

I figured out a way to enable displaying own posts in all forums as well as global search. The online demo of the mod will reflect these changes as soon as I can get some time to work on it.

I intend to make a "set it and forget it" mod, meaning that an admin will only have to install the mod and create forums; the admin will only have to set options to enable own posts, searching etc. globally (i.e. for all forums, just like in an original SMF installation). Therefore, I will change options from "current forum only" to "all forums", so that the admin can enable them if he/she wants.

Due to real life obligations, I don't think I'll be able to work with the mod during the next few days. But I hope to release a working beta by the end of next week.

Please be patient. :) Thank you.
Title: Re: Shared Forum Mod
Post by: Sarge on April 03, 2007, 06:10:07 AM
Just a small update. The head of page now displays current forum title instead of main forum name, as requested:

Quote from: denden60 on March 28, 2007, 03:55:15 PM
Sarge, I am talking about the name of your forum that appears in the Blue sky just under Hello... and you have 0 message. There you see Albwebmaster. I need this to change to reflect the name of the forum where the person is.

The change is made in Load.php, so it should work in all themes.
Title: Re: Shared Forum Mod
Post by: DenDen60 on April 03, 2007, 07:42:58 PM
Excellent.

Your doing a good job

Denden60

Title: Re: Shared Forum Mod
Post by: Sarge on April 05, 2007, 09:30:27 AM
I updated the mod and uploaded it to www.albwebmaster.com. Most changes are behind the scenes, so don't expect much of a difference from a user's perspective. That said, I fixed the jumpto in the search results page and added an additional jumpto for forums there. If you spot anything (visual or otherwise) that should be fixed or modified, please don't hesitate to write in this topic.

I implemented all of the mod admin panel options, except for the last (I will implement it too); also, the last change I made (see above) interferes with the first mod admin panel option, so it needs some tweaking.

Quote from: denden60 on March 29, 2007, 12:28:23 PM
From my point of view some of these should be options that user could select while using.

Ex. In one case user would like to see only his own post or unread replies in current forum, but in another he would like to see his own posts or unread replies from all forums.

Same for the search. Sometime you want to search local, sometime you want to search global.

I will implement these options next. They will rely on the global settings. For example, if the admin has disabled "Search in all forums," the user won't be able to do so; but if the admin has enabled the global option, it will be deactivated by default, but the user can choose it if he/she wants to.

I need some ideas about where to implement the user options for search, unread posts, unread replies, own posts and whatever else. I'm talking about the visual appearance and functionality, leave the coding to me. :)

For some reasons, I don't like to set any mod-related user options in their profile - it seems like there are quite a few mods for profiles, so SFMod might conflict with some of them.

The list of changes made so far is a bit long: 36. However, most changes are small and shouldn't interfere with the normal flow of operation.

The first beta version of the mod will (hopefully) be released this weekend, with each change listed as a separate file modification, so it should be easier to find and fix installation issues.
Title: Re: Shared Forum Mod
Post by: DenDen60 on April 05, 2007, 01:34:15 PM
I need some ideas about where to implement the user options for search, unread posts, unread replies, own posts and whatever else.


Well I think you should add unread posts and unread replies on the 'frontpage". When people would clik or mouse-over it the options would appear.

Same thing for "Search". When people would clik or mouse-over it the options would appear.

For unread posts and unread replies , I would put tme under "Profile".  You could have the option "All" and "List of all the forums" that the person participated in.

IMHO of course

Title: Re: Shared Forum Mod - Tiny Portal
Post by: DenDen60 on April 05, 2007, 02:17:49 PM
If you are able to do so, It would be good that you add an extra option in TP so that we can have a different FrontPage for every forum.

DenDen60
Title: Re: Shared Forum Mod
Post by: Sarge on April 05, 2007, 06:42:39 PM
Quote from: denden60 on April 05, 2007, 01:34:15 PM
Well I think you should add unread posts and unread replies on the 'frontpage".

I think those are already there, in the User block...

(http://img440.imageshack.us/img440/139/userblockdf3.png)

Exactly what are you suggesting? Do you mean adding global ("... in all forums") options there?


Quote from: denden60 on April 05, 2007, 01:34:15 PM
When people would clik or mouse-over it the options would appear.

What do you mean by "mouse-over"? Maybe I've missed something, but I don't think you can set options by "mousing over," at least in the default template.


Quote from: denden60 on April 05, 2007, 01:34:15 PM
Same thing for "Search". When people would clik or mouse-over it the options would appear.

See above my question about "mouse-over". But I guess I can add a "Search in all forums" option in the Advanced Search page. Where exactly would you like me to add it? I believe it would have to be a link (not a checkbox), in order for the "Choose a board to search in, or search all" list to include all forums... ;)


Quote from: denden60 on April 05, 2007, 01:34:15 PM
For unread posts and unread replies , I would put tme under "Profile".  You could have the option "All" and "List of all the forums" that the person participated in.

Well, I did write that I don't really like the idea of messing with Profile, didn't I? :) Besides, that's not where those options are in the default template -- instead, they're in the Recent bar at the top of forum(s):

(http://img155.imageshack.us/img155/7026/recentya6.png)

So I might add the "Show unread posts in all forums since last visit." and "Show new replies to your posts in all forums." options there. What do you think?

I'm not sure I understand what do you mean by "List of all the forums". Can you elaborate please?


Quote from: denden60 on April 05, 2007, 02:17:49 PM
If you are able to do so, It would be good that you add an extra option in TP so that we can have a different FrontPage for every forum.

Yes, that would be cool! I'll see what I can do after the first beta is released.


Thanks a lot for your time, comments and suggestions, DenDen60!

Regards,
Sarge
Title: Re: Shared Forum Mod
Post by: Sarge on April 07, 2007, 07:58:41 AM
Quote from: Sarge on April 05, 2007, 09:30:27 AM
I implemented all of the mod admin panel options, except for the last (I will implement it too); also, the last change I made (see above) interferes with the first mod admin panel option, so it needs some tweaking.

I have some difficulties with the "Let the Recent block show recent topics from all forums in homepage? (TinyPortal)" option, so I left it unimplemented for the moment. That block uses ssi_recentTopics() in SSI.php instead of Recent.php code, so I have to experiment with it a bit more.

The conflict between "Hide main forum in linktree?" and setting the current forum name at the top of the page is fixed. Previously, the main forum name (if shown) in linktree was set to the current forum name, which is not the desired behavior.

Other changes: the current forum name is now set also in the RSS/XML feeds, the Wireless template and the Printpage template. Please test them and report any errors. Thank you.

Quote from: Sarge on April 05, 2007, 09:30:27 AM
Quote from: denden60 on March 29, 2007, 12:28:23 PM
From my point of view some of these should be options that user could select while using.

Ex. In one case user would like to see only his own post or unread replies in current forum, but in another he would like to see his own posts or unread replies from all forums.

Same for the search. Sometime you want to search local, sometime you want to search global.

I will implement these options next. They will rely on the global settings. For example, if the admin has disabled "Search in all forums," the user won't be able to do so; but if the admin has enabled the global option, it will be deactivated by default, but the user can choose it if he/she wants to.

These will be done after the first beta.

Quote from: Sarge on April 05, 2007, 09:30:27 AM
The first beta version of the mod will (hopefully) be released this weekend, with each change listed as a separate file modification, so it should be easier to find and fix installation issues.

The beta will be released for TinyPortal only.

You will have to add (sub)forum links yourself; I will tell you how I added them in AlbWebMaster.

Regards.
Title: Re: Shared Forum Mod
Post by: Sarge on April 07, 2007, 03:26:17 PM
PLEASE NOTE: This is beta software, not meant for production sites. Use it at your own risk!

Shared Forum Mod 0.2.0 - Beta 1 for TinyPortal is released.

Download it from here:
http://www.albwebmaster.com/index.php?topic=4.0




The mod's control panel is at Admin > Features and Options > Shared Forum tab.




How to add forum links in your TP site:

1. Go to Admin > TinyPortal > Block Manager.

2. Switch to Add MenuItem tab.
Repeat step 2. for each forum.

3. Switch to Menu Manager tab.

5. Switch to Edit Blocks tab

Enjoy!

Please report all bugs, errors, suggestions, ideas and comments in this topic.



Notes:

-- This mod only modifies the default (SMF Default - Core) theme; you have to modify other themes manually.
-- If "Override forum theme (admins only)" doesn't work for you, please select a user-default theme in your profile; you may choose any theme you want (even the one that is used as default) -- just don't select "Forum or Board Default".

Regards,
Sarge
Title: Re: Shared Forum Mod
Post by: KreedGhost on April 07, 2007, 04:41:06 PM
Quote from: Sarge on April 07, 2007, 03:26:17 PM



How to add forum links in your TP site:

1. Go to Admin > TinyPortal > Block Manager.

2. Switch to Add MenuItem tab.

  • Enter the Title (name or description) for your first forum.
  • Select Link in the Type column.
  • Enter your forum link:
    http://www.yoursite.com/forum/index.php?action=FORUM_NAME
    in the Item column. (This presumes you have already created the forum in the mod's control panel.)
  • Select a Position (the default one should be fine).
Repeat step 2. for each forum.

3. Switch to Menu Manager tab.

  • Arrange positions in the first column (Pos).
  • Turn "Off Demo Articles".

5. Switch to Edit Blocks tab

  • Add a right side block as a menubox.
    • Select a block title (for example, Forums).
  • Activate the block.

Enjoy!

Please report all bugs, errors, suggestions, ideas and comments in this topic.



Notes:

-- This mod only modifies the default (SMF Default - Core) theme; you have to modify other themes manually.
-- If "Override forum theme (admins only)" doesn't work for you, please select a user-default theme in your profile; you may choose any theme you want (even the one that is used as default) -- just don't select "Forum or Board Default".

Regards,
Sarge

Right now the only problem I am having is when I make all the changes as you said above, but no matter what forum I choose they take me back to the same one. You can see what I am saying if you go to www.sabnnetwork.org and look to the right side in the links menu for forums and click on Sabn Network or San Andreas by Night...
**Edit***
I figured it out......It had something to do with the address url path....Alright also, when I go to create a new catagory for the new subforum it doesn't show up and I made the catagory list 3,4,5 and nothing shows up...

Fixed that, so far I have no errors in the logs at all with anything..The mod is awesome.....
Title: Re: Shared Forum Mod
Post by: Sarge on April 08, 2007, 09:04:14 PM
Quote from: KreedGhost on April 07, 2007, 04:41:06 PM
Right now the only problem I am having is when I make all the changes as you said above, but no matter what forum I choose they take me back to the same one. You can see what I am saying if you go to www.sabnnetwork.org and look to the right side in the links menu for forums and click on Sabn Network or San Andreas by Night...
**Edit***
I figured it out......It had something to do with the address url path....Alright also, when I go to create a new catagory for the new subforum it doesn't show up and I made the catagory list 3,4,5 and nothing shows up...

Fixed that, so far I have no errors in the logs at all with anything..The mod is awesome.....

I know that I should have written some documentation when I released the beta. Well, I'm already writing it and will it post later.

1. After you set up a (sub)forum and click the Save button at the end of the mod's page, the [ Go To Forum ] link is your forum link. Use that when you set up the list of your forums.

2. When you create a new category at Admin > Forum > Boards > Create New Category tab, it won't show under any forum until you include it in the Category List setting of a forum. But, if you access a child board directly, it will show under the Default forum - see SFMod's control panel.

In Albwebmaster, for example, there are 4 categories: cat. 1 is included in the General Forum (which is also the default forum), cat. 2 and 3 are in IT and cat. 4 isn't included in any forum; but you can still access its child board "Board 4-1" directly if you know its ID:
http://www.albwebmaster.com/index.php?board=4.0

Board permissions apply in all cases! ;)


Quote from: KreedGhost on April 07, 2007, 04:41:06 PM
Fixed that, so far I have no errors in the logs at all with anything..The mod is awesome.....

Yep, I fixed the errors before releasing the mod. ;) Glad you like it! :)

If you need any help with modifying the template that your forum is using, I'm willing to assist. If you want to do it yourself, you can always use Daniel15 (http://www.simplemachines.org/community/index.php?action=profile;u=9547)'s Package Parser: http://modparser.dev.dansoftaustralia.net/ to see what changes are made by the mod to the default theme.
Select "Only Theme edits (editing a theme to support a mod)" to display, well, only theme edits.
Title: Re: Shared Forum Mod
Post by: catahoulabulldog on April 08, 2007, 11:13:24 PM
I currently run a TP/SMF site, and love them both.

But, I sit on the edge of deciding to take on a new idea, a website that has a main "portal" with completely seperate but linked forums within that CMS front page system... did I actually find one? am I reading this correctly?
Title: Re: Shared Forum Mod
Post by: Sarge on April 08, 2007, 11:34:25 PM
Quote from: catahoulabulldog on April 08, 2007, 11:13:24 PM
I currently run a TP/SMF site, and love them both.

But, I sit on the edge of deciding to take on a new idea, a website that has a main "portal" with completely seperate but linked forums within that CMS front page system... did I actually find one? am I reading this correctly?

No and yes.

Shared Forum Mod (SFMod for short) does not create "completely separate" forums; instead, it creates subforums within one forum.

The base concept of this mod is: subforums are collections of categories, just like categories are collections of boards. So it is actually a content-filtering mod.

There is a reason why it is named "Shared Forum Mod" and not "Multiple Forums Mod": you have one forum installation, one set of users, one set of categories, boards and topics, and they're shared across all subforums. You choose which categories (and their child boards and topics) are displayed by each subforum. You can even share a category between 2 subforums, so that it appears in both of them.

So, recent posts, unread replies, own posts and search results are, by default, filtered to show only those topics/posts in boards inside categories that "belong" to the current subforum.

To repeat, see the mod in action at the online test site http://www.albwebmaster.com/.

I created 4 categories there: the category with ID=1 is included in the "General Forum" and cat. 2 and 3 are in "The IT Forum". (You can see the Forums block in the right side panel.) Category 4 isn't included in any forum, but you can still access its child board "Board 4-1" directly if you know its ID:
http://www.albwebmaster.com/index.php?board=4.0
Title: Re: Shared Forum Mod
Post by: catahoulabulldog on April 08, 2007, 11:47:03 PM
I can see that I will have to install and play to see if this will meet what I am thinking I need..... but all I can say is WOW nice job.... I wish I could understand the "how it works" of this so that I could grab the concept better. shared DB while maintaining seperate content, AND  the ability to have shared content and look?
Title: Re: Shared Forum Mod
Post by: Sarge on April 09, 2007, 01:47:23 AM
Quote from: catahoulabulldog on April 08, 2007, 11:47:03 PM
I can see that I will have to install and play to see if this will meet what I am thinking I need..... but all I can say is WOW nice job.... I wish I could understand the "how it works" of this so that I could grab the concept better. shared DB while maintaining seperate content, AND  the ability to have shared content and look?

OK, let me give an example to help you grab the concept better. It's really simple, actually.

Say, you have a RPG (role-playing games) forum named "RPG Forum" with 5 categories and their child boards. The first category is for site rules and updates, member introductions, etc. The other categories (2, 3, 4 and 5) are each about a certain RPG setting:

1) General
2) Hogwarts
3) Lord of the Rings
4) Star Wars
5) Dungeons & Dragons

The Hogwarts category, for example, has 7 boards, one for each year at the Hogwarts School of Witchcraft and Wizardry (Harry Potter's school). After registering, forum members can reply and post topics in those boards, as well as boards in other categories if they wish.

Say, you'd like each category to be displayed separately from the others. You'd also like to show a different template for each category (you have already installed the templates, of course). This is where SFMod comes in: you create 5 (sub)forums, one for each category -- you assign category 1 to the General forum, category 2 (Hogwarts) to the Hogwarts forum, category 3 to the LOTR forum and so on.

Then you put 5 links on the homepage, 1 for each forum. When a user clicks on the link for a forum, only categories, boards and topics inside that forum are displayed. Also, TP's Recent block only shows recent topics for that forum. Simple idea, isn't it?

SFMod has a setting called "Default forum," where you choose which forum should be displayed when users visit your site for the first time, or when their previous sessions have expired when they visit again. In this example, you would want to make General the default forum, so that first-time users can read about what your site is about, rules, available RPGs etc.

I'm new to TP, so I'm investigating TP's article system etc. to see if further modifications are needed or desired. If you think something is missing or should be in the mod, let me know!
Title: Re: Shared Forum Mod
Post by: Sarge on April 09, 2007, 03:43:38 AM
SFMod 0.2.1

List of changes:
+ Added support for the UTF-8 version of English.

Mod strings are now added to either Modifications.english.php or Modifications.english-utf8.php, whichever is present (click on the picture to see it larger):

(http://img179.imageshack.us/img179/7375/skipxd4.png) (http://img179.imageshack.us/img179/7375/skipxd4.png)

Get it here:
http://www.albwebmaster.com/index.php?topic=5.0

Special thanks to KreedGhost for pointing that out.
Title: Re: Shared Forum Mod
Post by: KreedGhost on April 09, 2007, 04:53:13 PM
I have been playing with this mod for a few days and been looking it over, getting things going in it and until today I have been able to fix the small things as I said in my post above. Now I have come to an issue that I can't seem to get around, so Sarge hopfully you will have the answer to this one....

It's ironic that you were talking about this mod being used for an RPG forum, this is actually the perfect mod for that and the ironic thing about it is, the forum I am using it on is an RPG forum.

Anyways here is my problem...

I created as I said earlier catagories asigned them to the proper catagory list so they would show up in the sub-forum that I have created. Well I have the sub-forum listed at 3,4,5,6,7,8 because for that one I need the multiple catagories in it, well now my problem is the catagories aren't showing up anywhere, especially in the sub-forum where they should be, and then when I take away any of the numbers from the catagory list nothing shows up in that sub-forum.

I have tried to delete the sub-forum and set it back up but the same two catagories still show in it..

Any suggestions?


Alright, Imma an idiot, though one thing I would like to say, and I think this will depend on how many times you delete catagories, I only have in a sense 5 catagories right now but the newest one is number 12 in the catagory list and I think this is because when you delete a catagory a new number is put in it's place. SO if that is true, then when making new catagories for your sub forums' you should mouse over the catagory name to make sure that it is the same as the number you place up in the catagory list..

If I am wrong, Sarge feel free to call me an idiot.....
Title: Re: Shared Forum Mod
Post by: Sarge on April 10, 2007, 04:42:34 AM
Quote from: KreedGhost on April 09, 2007, 04:53:13 PM
It's ironic that you were talking about this mod being used for an RPG forum, this is actually the perfect mod for that and the ironic thing about it is, the forum I am using it on is an RPG forum.

If you think that this is the perfect mod for RPG forums, wait until I figure out a (hopefully) proper way to write a mod for multiple profiles...

http://www.simplemachines.org/community/index.php?topic=160699.msg1027243#msg1027243

Of course, my MPMod would be compatible with SFMod. What a powerful duo they would make...

Quote from: KreedGhost on April 09, 2007, 04:53:13 PM
Anyways here is my problem...

<snip>

Alright, Imma an idiot, though one thing I would like to say, and I think this will depend on how many times you delete catagories, I only have in a sense 5 catagories right now but the newest one is number 12 in the catagory list and I think this is because when you delete a catagory a new number is put in it's place. SO if that is true, then when making new catagories for your sub forums' you should mouse over the catagory name to make sure that it is the same as the number you place up in the catagory list..

If I am wrong, Sarge feel free to call me an idiot.....

I won't lie to you... In a way, you're right. :D It has actually to do with how SMF and most database systems (including MySQL) work.




Explanation:

The first category -- created during SMF installation -- gets an ID = 1. Simply said, every created category gets the ID of the last created category + 1 (technically, this statement may be slightly incorrect, but that's what happens in most systems).

If you delete a category, its ID is not reused; neither are category IDs resorted. In other words, every created category ID is unique.

Example: if you have category 1, 2 and 3 and delete category 2, the remaining categories would be 1 and 3; the next created category would have the ID of 4, not 2 (because IDs of deleted categories are not reused) nor 3 (because the category ID list is not resorted).

The next ID to be used is computed and saved automatically in the categories database table. So, even if you create and, later, delete category 4 (the last one created), the system knows that the category ID that will be used next should be 5.




There's another possible situation: you enter a valid category ID in a Category List; some time later, you delete that category but you don't remember to update the mod settings. Boom, the mod "doesn't work."

I was thinking today that the mod should check if the selected theme ID is valid and replace it with 0 ("Forum or Board Default") if it is not. Your issue with category IDs strikes the same note. Actually, theme IDs and other SMF IDs as well follow the same convention as explained above. Therefore, in future versions I will add error checking regarding invalid and corrupt settings.
Title: Re: Shared Forum Mod
Post by: Sarge on April 10, 2007, 05:05:46 AM
To aid with site indexing, I think it would be best if the "Page Title" for the forum that will be used as "Default Forum" has the name of your site or something similar. That's because the default forum's page title is also used for meta content and is among the first things that Googlebot (or whatever search engine robot is crawling your site) will see.

I have disallowed robots to crawl AlbWebMaster.com, but if I allowed them, I guess that the site's homepage would be listed as "General Forum" and not AlbWebMaster. That's because the mod modifies both meta description and page title:


<meta name="description" content="General Forum" />
...
<title>General Forum</title>
Title: Re: Shared Forum Mod
Post by: KGIII on April 10, 2007, 05:15:49 AM
I have watched... Listened... And pondered... How long 'fore this is a mod that is SMF specific without needing TP or, in case I missed something, is it that way already?
Title: Re: Shared Forum Mod
Post by: Sarge on April 10, 2007, 05:43:29 AM
Quote from: KGIII on April 10, 2007, 05:15:49 AM
I have watched... Listened... And pondered... How long 'fore this is a mod that is SMF specific without needing TP or, in case I missed something, is it that way already?

The mod makes just a few TP-specific changes and they're not essential.

You know, I would have released a SMF-only version already... if I knew a way to insert (sub)forum buttons or links in the default template! See the "To do" list in first post.

I don't want to insert static buttons, because their number can change... and besides, there's no way 10 forum buttons would look good in the main menu, would they?

An idea would be to change the HOME button into a FORUMS dropdown menu, perhaps a suckerfish variant. I have asked about this here:
http://www.simplemachines.org/community/index.php?topic=158224.0
but I didn't get an answer I didn't know already! Maybe it's my English or the tedious way I write, who knows...  :-\

I also asked at the TinyPortal forum:
http://www.tinyportal.net/index.php?topic=14843.0
where I got better responses... which tells a lot about how concise my posts should be.

The way the menu should work is similar to the upper menu (Home   Download   Customize  Support   Community   About   Docs) in the new SMF theme. I like the underline, which shows where you are and which is exactly part of what I need: the second row of the FORUMS menu.

Visit the links at the end of my post here at SM.org (http://www.simplemachines.org/community/index.php?topic=158224.0) and see the image in my post at TP.net (http://www.tinyportal.net/index.php?topic=14843.0) to see what I'm talking about.

I might become a Charter Member just to get my hands on the new default theme code...
Title: Re: Shared Forum Mod
Post by: KGIII on April 10, 2007, 05:46:55 AM
Feel free to drop me a PM if you would like. Yeah - I've been watching to see how far you went with this. ;)
Title: Re: Shared Forum Mod
Post by: KreedGhost on April 10, 2007, 08:38:07 AM
If you think that this is the perfect mod for RPG forums, wait until I figure out a (hopefully) proper way to write a mod for multiple profiles...

http://www.simplemachines.org/community/index.php?topic=160699.msg1027243#msg1027243

Of course, my MPMod would be compatible with SFMod. What a powerful duo they would make...


This is perfect for RPG forums, but it is also something that is great to have for any forum that you would want to give an aspect of different "messageboards" to, it allows to unclutter large boards that have tons of catagories, giving the admin the chance to make things look cleaner and less distracting, that is my opinion though.

I was thinking today that the mod should check if the selected theme ID is valid and replace it with 0 ("Forum or Board Default") if it is not. Your issue with category IDs strikes the same note. Actually, theme IDs and other SMF IDs as well follow the same convention as explained above. Therefore, in future versions I will add error checking regarding invalid and corrupt settings.

I think that would be a good idea, because it confused me for a few hours on why it wasn't working. So hopefully anyone else who has this problem will look at that because your explanation explains it rather well.....
------------------------------------------------------
As for the multiple profile mod, I am waiting for that one, we had talked about it in that thread and Sarge if you need help or are looking for ideas to place in it to make it function and give users things that they would need, then I am full off useless information and would be willing ot beta that and also give ideas.....
Title: Re: Shared Forum Mod
Post by: Sarge on April 11, 2007, 09:02:50 AM
Shared Forum Mod 0.2.2

Download it here:
http://www.albwebmaster.com/index.php?topic=6.0

Changes:
+ Fixed a search tag in modification.xml for conformance.
+ Changed "Forum Theme" into a select menu in mod's control panel.
+ Let the admin not specify a particular theme for a forum by selecting "Forum or Board Default" for a forum theme.

Now you don't have to know a theme's ID in order to set it for a forum. You can select it by name.

You can also choose "Forum or Board Default" to let SMF handle themes for users without the mod getting in the way, just like in an unmodded SMF installation. However, admins can still use their own default theme if the option "Override forum theme (admins only)" is selected.
Title: Re: Shared Forum Mod
Post by: Sarge on April 25, 2007, 08:48:34 PM
Shared Forum Mod 0.2.3

Download it here:
http://www.albwebmaster.com/index.php?topic=7.0

Changes:
+ Fixed moderation actions that involve 2 forums (moving and merging topics etc).
Title: Re: Shared Forum Mod
Post by: cody on May 09, 2007, 08:31:12 PM
Im having a problem, that I am not quite sure if its related to this mod or not, but I have two sites, both us SMF and TP both are on the same server, but the site that uses the SFMod anytime you go to the Show unread posts, or Show replies, or Show own posts I get The server is currently under high stress. Please try again shortly.

Any help would be greatly appreciated.  The server is not under high stress because its not happening to my other smf/tp site on the same server not to mention I am the only person on the site at the moment..
Title: Re: Shared Forum Mod
Post by: Sarge on May 09, 2007, 10:37:16 PM
Basically, SFMod only adds the category IDs list to $user_info['query_see_board'], which specifies the list of boards that the member has permission to see (visit); it is passed to MySQL queries (hence the name query_see_board).

Here's the relevant code of SFMod:

$user_info['query_see_board'] .= ' AND FIND_IN_SET(b.ID_CAT, "' . $context['current_forum']['cat_list'] . '")';


For every board the member has access to, access is further restricted by checking whether the board is inside the categories specified for the subforum in question; if it is not, unread posts etc. will not be retrieved for those boards later in SMF code.

Although I haven't made any benchmarking, my guess is that forum speed should increase instead of decrease, since less unread posts etc. will be retrieved for a subforum from the database.

Where do you get the message "The server is currently under high stress. Please try again shortly."?
Title: Re: Shared Forum Mod
Post by: cody on May 10, 2007, 04:33:09 PM
the ?action=unread, ?action=unreadreplies, and ?action=profile;u=1;sa=showPosts pages are the ones that return that error.
Title: Re: Shared Forum Mod
Post by: Sarge on May 11, 2007, 01:23:21 AM
Quote from: cody on May 10, 2007, 04:33:09 PM
the ?action=unread, ?action=unreadreplies, and ?action=profile;u=1;sa=showPosts pages are the ones that return that error.

Can you post or PM me a link to your forum?
Title: Re: Shared Forum Mod
Post by: Iomega0318 on May 11, 2007, 05:47:37 AM
Ok so just curious will this work without TP?
I don't really want to use TP and was wondering if the errors I am getting are just because I dont have it installed? Here are the parts of code it is not finding..
<file name="$sourcedir/Load.php">
<operation>
<search position="before"><![CDATA[
        $context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));
]]></search>
<add><![CDATA[
// Added by the Shared Forum Mod - SFMod.
if (!empty($context['current_forum']['page_title']))
$context['linktree'] = array(array('url' => $scripturl . '?action=' . $context['current_forum']['name'], 'name' => $context['current_forum']['page_title']));
]]></add>
</operation>
</file>

<file name="$sourcedir/Load.php">
<operation>
<search position="replace"><![CDATA[
                                'url' => $scripturl . '?action=forum#' . $board_info['cat']['id'],
]]></search>
<add><![CDATA[
                                'url' => $scripturl . '?action=' . $context['current_forum']['name'] . '#' . $board_info['cat']['id'],
]]></add>
</operation>
</file>

<file name="$themedir/index.template.php">
<operation>
<search position="replace"><![CDATA[
if($settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['tp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last">&nbsp;</td>' : '';
]]></search>
<add><![CDATA[
if($settings['TPortal_front_type']!='boardindex' && !empty($context['current_forum']['TP_show_forum_button']))
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['tp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last">&nbsp;</td>' : '';
]]></add>
</operation>
</file>

<file name="$themedir/index.template.php">
<operation>
<search position="replace"><![CDATA[
                                        ', theme_copyright(), ' <br />', tportal_version() , '
]]></search>
<add><![CDATA[
                                        ', theme_copyright(), ' <br />', tportal_version() , '<br />', 'Shared Forum Mod 0.2 &copy; <a href="http://www.zeriyt.com" target="_blank">Z&euml;ri YT!</a>', '
]]></add>
</operation>
</file>

And then it doesn't find TPortal.php but that's because it's not there lol
Title: Re: Shared Forum Mod
Post by: Sarge on May 11, 2007, 08:33:09 AM
I know about it. Thing is, TP installation modifies some SMF code that is also modified by my mod. So I have created a TP version of my mod, which can install after TP has been installed.

My mod doesn't use any functionality or code from TP, so TP is not really needed for it. As I mentioned before, the only reason why I haven't created a SMF-only version is the lack of a good way to add subforum links/buttons. I would prefer to modify the HOME menu (in SMF) or FORUM menu (in TP) into a mouse-over drop-down FORUMS menu.

Adding a second row in the main menu wouldn't be very bad either -- I will release a version based on this. The downside is that you can't add too many buttons there.
Title: Re: Shared Forum Mod
Post by: Iomega0318 on May 11, 2007, 09:07:31 AM
Yeah I had thought about adding a second row as well, but that could get long depending on how many forums you plan on creating.. I am looking into mouse over drop down boxes as that seems like the best and most logical way to go..
Title: Re: Shared Forum Mod
Post by: Iomega0318 on May 11, 2007, 12:05:09 PM
3 Hours and a 100 searches later lol.. here check this out:
http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm
Title: Re: Shared Forum Mod
Post by: Sarge on May 11, 2007, 12:26:30 PM
Quote from: Iomega0318 on May 11, 2007, 12:05:09 PM
3 Hours and a 100 searches later lol.. here check this out:
http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm

Nice link. :)

There are several great solutions out there. Here's one of them:
http://www.alistapart.com/articles/hybrid/

Thing is, I suck at webdesign, especially CSS. On the other hand, if anyone could make the necessary changes to SMF's default theme, I could include them in my mod.
Title: Re: Shared Forum Mod
Post by: Iomega0318 on May 11, 2007, 12:32:46 PM
You don't need to know anything about css to use the one I showed you lol, all you have to do is upload it put in the links and that's it, its all taken care of for you, I will look at the link you posted
I have no idea where to begin with the mod, so if you can post what is needed just to generate the links, I will take a stab at creating it, also those errors I was getting before can I install the mod without them? Cause if so I can just install it and test it out from here..
Title: Re: Shared Forum Mod
Post by: Sarge on May 11, 2007, 12:43:44 PM
Quote from: Iomega0318 on May 11, 2007, 12:32:46 PM
You don't need to know anything about css to use the one I showed you lol, all you have to do is upload it put in the links and that's it, its all taken care of for you, I will look at the link you posted

Maybe I'm wrong, but I don't see any Firefox compatibility there...

Quote from: Iomega0318 on May 11, 2007, 12:32:46 PM
I have no idea where to begin with the mod, so if you can post what is needed just to generate the links, I will take a stab at creating it, also those errors I was getting before can I install the mod without them? Cause if so I can just install it and test it out from here..

Nevermind the mod for the moment, just try to convert the HOME button in SMF to a mouse-over drop-down menu. Use a fixed list of submenus.

The article link I posted has received very good reviews. But, if you insist to use AnyLink, have a look at this instead:
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

An advice: test the solution with Firefox, or else I won't include it in the mod, I'm afraid.
Title: Re: Shared Forum Mod
Post by: Iomega0318 on May 11, 2007, 12:59:34 PM
Yeah that one might work too, but the links might be a problem as they would have to be generated at the top in the CSS as it still uses CSS it's just inside the file not outside, btw I always use FF as a browser and it seems to work fine, let me make some mods to my forum and see if I can make it work right..
Title: Re: Shared Forum Mod
Post by: Sarge on May 11, 2007, 01:22:01 PM
You might want to modify Themes/default/style.css instead of creating a separate CSS file or including it in index.template.php. This way you stand better chance to avoid duplication.
Title: Re: Shared Forum Mod
Post by: Iomega0318 on May 11, 2007, 01:58:35 PM
Ok did that, I also added the js info to the Themes/default/script.js, this way everything already gets called up no need to add in more than the needed code all I need to do now is get the link to work lol
Title: Re: Shared Forum Mod
Post by: Iomega0318 on May 14, 2007, 04:54:38 PM
I just thought about something, why not create the new link called "Forums" or something, and instead of making it a drop down menu make it take you to a different page, and list the forums perhaps in categories, or just list them with a short description or something.. dunno just throwing things out here
I found this on a site I was looking at if you care to take a look
http://www.smfhacks.com/hacks/SMF-Links.html
Title: Re: Shared Forum Mod
Post by: Sarge on May 15, 2007, 02:21:06 AM
Quote from: Iomega0318 on May 14, 2007, 04:54:38 PM
I just thought about something, why not create the new link called "Forums" or something, and instead of making it a drop down menu make it take you to a different page

Sorry, but that's simply too crude, long-winded and irritating to the user. A simple way is not always the best.

Anyway, I think I've made some progress. I'll keep you posted.
Title: Re: Shared Forum Mod
Post by: Mossa TheGreat on May 18, 2007, 05:11:10 PM
Hi Sarge,

My name is Mossa TheGreat, and I was trying to make a similar mod like yours. One where you can have a menu with links to forums in it. I have to create this mod for my website. But since you are already working on it and could use some help, may I assist you with Beta testing and perhaps - if I can handle, and you need me to - code something for your mod.

I just need the download links for your mod and other requirements, like TinyPortal, I found it now, and also your mod. I registered at your site with this username: "Mossa TheGreat". It said that it needs the Administrator to approve my account. Can you please do that?

My MSN is: [email protected].

My Gmail: [email protected].

My Skype: mossathegreat.

Please inform me with my Gmail which chatting service you usually use. Because I do not have them all open always for performance reasons.

Thank you in advance, and good luck!

Mossa TheGreat
Title: Re: Shared Forum Mod
Post by: PoLlama on June 05, 2007, 10:01:15 PM
Just curious, does this allow people to be 'admins' over the shared forum, but not the whole forum.
Title: Re: Shared Forum Mod
Post by: Neol on June 06, 2007, 04:46:20 AM
Quote from: PoLlama on June 05, 2007, 10:01:15 PM
Just curious, does this allow people to be 'admins' over the shared forum, but not the whole forum.

No, the current version doesn't have support for subforum admins. Anyway, what's the point of that?
Title: Re: Shared Forum Mod
Post by: Mossa TheGreat on June 06, 2007, 05:00:06 AM
Hello! I have sent you a PM on that demonstration site of yours. Hope you got it.

It is about installation of the mod. It is not working on a fresh installation of SMF 1.1.2, and TinyPortal. I am using the recommended versions. I get the Modification Parse Error.
Title: Re: Shared Forum Mod
Post by: Sarge on June 06, 2007, 06:39:39 AM
Quote from: Mossa TheGreat on June 06, 2007, 05:00:06 AM
It is about installation of the mod. It is not working on a fresh installation of SMF 1.1.2, and TinyPortal. I am using the recommended versions. I get the Modification Parse Error.

Is "Modification parse error" only for SharedForum.php?
Title: Modification Parse Error
Post by: Mossa TheGreat on June 06, 2007, 06:51:28 AM
Well, I do not really know, here is a picture of the message that I get.

(http://i174.photobucket.com/albums/w117/MossaTheGreat/Random/smf_sfm_error_01.jpg)

You can probably get a bigger picture if you right click on it.
Title: Re: Shared Forum Mod
Post by: Sarge on June 06, 2007, 06:53:41 AM
1) Does it happen with other mods?

2) Have you tried this:  ???
http://www.simplemachines.org/community/index.php?topic=28393.msg950338#msg950338

3) and this:
http://custom.simplemachines.org/mods/index.php?mod=724

4) What operating system are you using? Are SMF files and directories read-only (Windows), or are permissions set to 777 (Linux)?
Title: Re: Shared Forum Mod
Post by: Mossa TheGreat on June 06, 2007, 07:22:04 AM
Allow me to answer your question as they are listed:

1: No, the error I am getting did not appear when I installed serval mods, like TinyPortal, and the Template mod that you reffered me to. I can try more mods if you wish?

2: Well... I have an XAMPP setup, in Windows XP Proffersional SP2, so I tried to open a FileZilla Server and log through a client. I made a user, that can log into htdocs, and I tried to change the permission for the package and the temp folder, that the link suggested me to make, but it did not solve the issue with the installation of Shared Forum Mod.

3: I installed the mod, that is it. And I tried to install the Shared Forum Mod. Nothing happend.

4: My OS is: Windows XP, Proffersional Edition. I have the Service Pack 2 installed.

PS: I will try to change the permission through windows Explorer. I think you wsaid something about CHMOD being a Linux function, therefore it does not work on Windows OS?

Quote<Sarge> FileZilla attempts to use chmod, which is a UNIX/Linux command

Thank you for your help Sarge, hope we can make this mod perfectly bug free.
Title: Re: Shared Forum Mod
Post by: Sarge on June 06, 2007, 07:44:52 AM
Quote from: Mossa TheGreat on June 06, 2007, 07:22:04 AM
Thank you for your help Sarge, hope we can make this mod perfectly bug free.

This mod may have bugs, but not in installation. :)

Since you're using Windows, open Windows Explorer, right-click on the SMF folder and select Properties from the context menu. In the General tab, clear the Read-only attribute and click Apply; in the next dialog, select "Apply changes to this folder, subfolders and files".

(http://img143.imageshack.us/img143/6922/unreadonlyii2.png)

Also make sure that the operating system allows Apache to modify files for this folder. As far as I know, the "Everyone" group is needed for Apache.

(http://img295.imageshack.us/img295/6650/secoz0.png)

After that, try to install the mod again.

This is not a very security-conscious solution, but it works. The best alternative is to use professional hosting; some free plans can be found in Hosts and Hosting (http://www.simplemachines.org/community/index.php?board=4.0).
Title: Re: Shared Forum Mod
Post by: PoLlama on June 08, 2007, 08:18:05 PM
Quote from: Zeri YT! on June 06, 2007, 04:46:20 AM
Quote from: PoLlama on June 05, 2007, 10:01:15 PM
Just curious, does this allow people to be 'admins' over the shared forum, but not the whole forum.

No, the current version doesn't have support for subforum admins. Anyway, what's the point of that?
Say you wanted to host forums for people, but more on a personal unified forum setting.

Whats the point of a shared forum mod?
Title: Re: Shared Forum Mod
Post by: Sarge on June 09, 2007, 04:16:29 AM
Quote from: PoLlama on June 08, 2007, 08:18:05 PM
Say you wanted to host forums for people, but more on a personal unified forum setting.

Whats the point of a shared forum mod?

This mod only works inside a single forum installation, not a "cluster" of forums.

The point is to separate some content parts from the others as much as possible, by defining which groups of categories -- called subforums -- to display to the user.

When you click on a board, you see topics within that board only. When you click on a subforum, you see categories within that subforum only.

This mod is especially useful for RPG forums or for very large forums with a lot of categories and boards.

Check my previous posts in this topic, as well as the demo website, for clearer explanations.
Title: Re: Shared Forum Mod
Post by: PoLlama on June 10, 2007, 02:25:25 PM
Is it possible you will add in "sub-admins"? People who have admin powers over a sub forum?

And heres an idea, 'Global Boards'. Boards that appear in every category regardless, however can be reordered differently by the admin/sub-admin.
Title: Re: Shared Forum Mod
Post by: Sarge on June 11, 2007, 11:55:28 AM
Quote from: PoLlama on June 10, 2007, 02:25:25 PM
Is it possible you will add in "sub-admins"? People who have admin powers over a sub forum?

Not in this version, but it can be done.

Exactly what powers would you like these "sub-admins" to have? Obviously they can't download the database (not even just the data in their subforum), or do some other operations that can be done only by a normal admin.


Quote from: PoLlama on June 10, 2007, 02:25:25 PM
And heres an idea, 'Global Boards'. Boards that appear in every category regardless, however can be reordered differently by the admin/sub-admin.

Nice idea for another mod. ;)
Title: Re: Shared Forum Mod
Post by: PoLlama on June 14, 2007, 08:34:43 PM
The sub-admins I guess would be able to create boards, delete boards, reorganize etc.  Also with tiny portal features such as blocks. A theme could also be created for each 'sub-forum' which they can edit through the forum.

For the package manager, members, server-related, and stuff that controls the entire forum would have to be excluded.

Like a hybird between a forum and a forum hosting service basically. I don't see the point in a sub-forum otherwise... its just a forum with sub forums in a way with the ability to separate them some.

Sorry if my grammars not up to par at the moment, i've had a 'mind block' all day.
Title: Re: Shared Forum Mod
Post by: Sarge on June 15, 2007, 07:16:43 AM
Quote from: PoLlama on June 14, 2007, 08:34:43 PM
The sub-admins I guess would be able to create boards, delete boards, reorganize etc.  Also with tiny portal features such as blocks.

I don't know, I have to think a lot about it. The way I see it, this feature would require implementing either restricted access to the main Admin panel or a separate admin panel for subforums. The first choice might be easier to implement, but the second could be more secure. Again, I have to see what I can do about it.


Quote from: PoLlama on June 14, 2007, 08:34:43 PM
A theme could also be created for each 'sub-forum' which they can edit through the forum.

This would probably be the easiest feature to add. The themes would have to be already installed by the main forum admin, I guess.

The current version of the mod already enables the main admin to select what theme should display for a subforum. I guess switching the mod to the permissions-based system would be the best way to accomplish this.


Quote from: PoLlama on June 14, 2007, 08:34:43 PM
For the package manager, members, server-related, and stuff that controls the entire forum would have to be excluded.

Of course.


Quote from: PoLlama on June 14, 2007, 08:34:43 PM
Like a hybird between a forum and a forum hosting service basically. I don't see the point in a sub-forum otherwise... its just a forum with sub forums in a way with the ability to separate them some.


The original idea was simply to enable admins to divide the forum into logically separate subforums, so that each user can see what part of the forum he/she wants to, rather than the whole thing. The behavior is very similar to viewing a single board or a single category (provided other categories are hidden/collapsed).

There's nothing to stop me from turning this mod into a more advanced solution, though. ;)


Quote from: PoLlama on June 14, 2007, 08:34:43 PM
Sorry if my grammars not up to par at the moment, i've had a 'mind block' all day.

No problem. I'm not a native English speaker, so I have high tolerance towards spelling and grammatical errors. :)
Title: Re: Shared Forum Mod
Post by: Flying Drupalist on June 16, 2007, 07:29:53 PM
Hello, I have the latest TP and I'm trying to run your mod but...


Installations actions for "Shared Forum Mod":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/SharedForum.php    
2.    Execute Modification    -    Modification parse error

My version is rather heavily modded, is there some way I can install your code manually?
Title: Re: Shared Forum Mod
Post by: Sarge on June 17, 2007, 02:16:00 AM
Quote from: Miraploy on June 16, 2007, 07:29:53 PM
1.    Extract File    ./Sources/SharedForum.php    
2.    Execute Modification    -    Modification parse error

Looks like either a file permission or PHP version/configuration issue. Are you using a local SMF install (i.e. in your computer) under Windows?
Title: Re: Shared Forum Mod
Post by: Mossa TheGreat on June 17, 2007, 04:38:20 AM
Quote from: Miraploy on June 16, 2007, 07:29:53 PM
Installations actions for "Shared Forum Mod":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/SharedForum.php    
2.    Execute Modification    -    Modification parse error

You need to tell us if it is Local or remote server you testing this out in. If it is a host, please verify if it is Windows or Linux they are using. If you look above you will find links that I visited and tried out to fix this issue.

At first I used XAMPP locally to test this mod out, then I was soo tired of trying to fix the issue with XAMPP, so I switched to EasyPHP, and it works with that.

One thing: You cannot change file permission with Windows, with is crap, I tried the command line thing, and it doesn't work. I'll give you a link in a second...
Title: Re: Shared Forum Mod
Post by: Flying Drupalist on June 17, 2007, 09:08:24 PM
No it's one of those dreamhost servers, :P AFAIK it's not windows...
Title: Re: Shared Forum Mod
Post by: Sarge on June 18, 2007, 01:37:09 AM
Mossa, thanks for the support. :)

Quote from: Miraploy on June 17, 2007, 09:08:24 PM
No it's one of those dreamhost servers, :P AFAIK it's not windows...

Copy/paste here all info from SMF Admin > Support and Credits > Version Information section.
Title: Re: Shared Forum Mod
Post by: Flying Drupalist on June 18, 2007, 02:02:25 AM

Version Information:
Forum version: SMF 1.1.2 (more detailed)
Current SMF version: SMF 1.1.2
PHP version: 5.2.2
MySQL version: 5.0.24a-standard-log
Server version: Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2
GD version: bundled (2.0.34 compatible)
Title: Re: Shared Forum Mod
Post by: Sarge on June 18, 2007, 11:12:14 AM
Quote from: Miraploy on June 18, 2007, 02:02:25 AM
PHP version: 5.2.2
Server version: Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54

That's strange, PHP is reported as both 5.2.x and 4.4.x.

There's a reported issue with PHP 5.2 and mod installation (especially large ones) in SMF. I will see what I can do and will report back.

By the way, the upcoming version of the mod will have tighter code and will be easier to install manually.
Title: Re: Shared Forum Mod
Post by: Flying Drupalist on June 18, 2007, 11:38:07 AM
Thank you for your support. Most other packages install correctly, but there are a few that runs into similar errors. I am eagerly awaiting the next patch... I really hope it comes soon, I want this mod pretty bad! :P
Title: Re: Shared Forum Mod
Post by: momsandtots on June 20, 2007, 11:13:36 AM
I tried the Mod by Sarge: Problems i incured:

Advertising can't be seperated per forum (my goal was to have different forums for different citys and communities so advertising capabilities has to be able to modified per forum.)

Couldn't get the categories to list properly per forum

This could all be due to my lack of lnowledge.
Title: Re: Shared Forum Mod
Post by: Flying Drupalist on June 23, 2007, 09:54:02 PM
ahh! I really need this very very much. Please help! :D
Title: Re: Shared Forum Mod
Post by: Sarge on June 24, 2007, 11:44:15 AM
Quote from: momsandtots on June 20, 2007, 11:13:36 AM
Advertising can't be seperated per forum (my goal was to have different forums for different citys and communities so advertising capabilities has to be able to modified per forum.)

What are you using to display ads in your forum? Basically, it's an interoperatibility thing -- both components have to be adapted in order to work together. :)

Quote from: momsandtots on June 20, 2007, 11:13:36 AM
Couldn't get the categories to list properly per forum

Can you elaborate a bit on that?
Title: Bug: Show FORUM button setting...
Post by: Mossa TheGreat on June 25, 2007, 01:45:48 PM
Hello Sarge, and everyone else aboard.

I have experienced that the setting to re-enable the Forum button, that is integraded with TinyPortal, does not work properly. If anyone else is experiencing this, please tell me.

Here is the if statement that is not allowing the forum button to appear:
if($settings['TPortal_front_type']!='boardindex' && !empty($context['current_forum']['TP_show_forum_button']))


And here is how it looked like before the mod was installed:
if($settings['TPortal_front_type']!='boardindex')

If anyone else is experience this same issue or have a fix, please feel free to report back to us, the peopler within this thread.

Best Regards,
Mossa TheGreat's Samurai...
Title: Re: Shared Forum Mod
Post by: Hj Ahmad Rasyid Hj Ismail on July 07, 2007, 02:51:37 PM
Great mod! Really it is great! A great thank you to Sarge and Goosemoose.

Your mod works even greater if it used with default membergroup mod during registration. User have to choose a group when they register and they can only view and access the registred group (allowed category) but no others.
Title: Re: Shared Forum Mod
Post by: Sarge on July 08, 2007, 11:29:02 AM
Nice to know this mod is of value to you. :)

Just so you know, you can specify more than 1 category in the Category List -- just separate the category IDs with commas. For example, if you want a subforum to consist of the categories 1, 2 and 5, you can add them like this:

1,2,5

Title: Re: Shared Forum Mod
Post by: Neol on July 08, 2007, 07:43:05 PM
Quote from: momsandtots on June 20, 2007, 11:13:36 AM
I tried the Mod by Sarge: Problems i incured:

Advertising can't be seperated per forum (my goal was to have different forums for different citys and communities so advertising capabilities has to be able to modified per forum.)


Use different themes for each forum and than add the Adverts directly into the theme (index.template.php) ;)
Title: Re: Shared Forum Mod
Post by: Mossa TheGreat on July 08, 2007, 07:47:36 PM
Quote from: Zeri YT! on July 08, 2007, 07:43:05 PM
Quote from: momsandtots on June 20, 2007, 11:13:36 AM
I tried the Mod by Sarge: Problems i incured:

Advertising can't be seperated per forum (my goal was to have different forums for different citys and communities so advertising capabilities has to be able to modified per forum.)


Use different themes for each forum and than add the Adverts directly into the theme (index.template.php) ;)

I could think of a more sophisticated method for improving the mods stability, however, that means work, and unless Sarge wish it, I don't want to devote time into it.

Zeri YT!: Good plan for inconvenience, would work perfectly fine. And you can "duplicate" your theme within SMF.
Title: Re: Shared Forum Mod
Post by: Sarge on July 09, 2007, 02:55:40 AM
Quote from: Mossa TheGreat on July 08, 2007, 07:47:36 PM
Quote from: Zeri YT! on July 08, 2007, 07:43:05 PM
Use different themes for each forum and than add the Adverts directly into the theme (index.template.php) ;)

I could think of a more sophisticated method for improving the mods stability, however, that means work, and unless Sarge wish it, I don't want to devote time into it.

Posting what you have in mind wouldn't hurt. :)
Title: Re: Shared Forum Mod
Post by: momsandtots on July 22, 2007, 06:17:28 PM
Any chance of allowing recent posts for All forums to be displayed in the recent post on the front page etc?
Title: Re: Shared Forum Mod
Post by: Sarge on July 22, 2007, 08:33:59 PM
Quote from: momsandtots on July 22, 2007, 06:17:28 PM
Any chance of allowing recent posts for All forums to be displayed in the recent post on the front page etc?

I'll work on it. ;)
Title: Re: Shared Forum Mod
Post by: momsandtots on July 24, 2007, 01:37:15 AM
Excellent, I decided to use this mod at another site of mine. www.kitcartalk.com currently I have  5 boards running off of it.
Title: Re: Shared Forum Mod
Post by: ogmios on July 26, 2007, 11:32:39 AM
i'm getting a 'test failed' message when i try to install the package and i haven't continued... it happens for when it's trying to modify index.template.php in themes/default... i'm using the babylon theme by default, so i'm not sure if i should ignore it or not...

what should i do?

this is going to be fabulous for my board... thanks!
Title: Re: Shared Forum Mod
Post by: Sarge on July 27, 2007, 01:52:57 AM
Quote from: ogmios on July 26, 2007, 11:32:39 AM
i'm getting a 'test failed' message when i try to install the package and i haven't continued... it happens for when it's trying to modify index.template.php in themes/default...

Please copy and paste the entire line that reports the "Test failed!" error, including the number.


Quote from: ogmios on July 26, 2007, 11:32:39 AM
i'm using the babylon theme by default, so i'm not sure if i should ignore it or not...

The Babylon theme is not supported, but I will add support for it.
Title: Re: Shared Forum Mod
Post by: ogmios on July 27, 2007, 12:24:49 PM
QuotePlease copy and paste the entire line that reports the "Test failed!" error, including the number.

--- here's what i got:
50.  Execute Modification  ./Themes/default/index.template.php   Test failed
51.  Execute Modification  ./Themes/default/index.template.php   Test failed


Quote
The Babylon theme is not supported, but I will add support for it.

--- bless your heart
Title: Re: Shared Forum Mod
Post by: Sarge on July 29, 2007, 04:52:21 AM
Quote from: ogmios on July 27, 2007, 12:24:49 PM
--- here's what i got:
50.  Execute Modification  ./Themes/default/index.template.php   Test failed
51.  Execute Modification  ./Themes/default/index.template.php   Test failed

Just to be sure, which version of the mod are you using?

Open Themes/default/index.template.php and search for:

TPortal_front_type


and:

tportal_version()


Post the lines that contain them.
Title: Re: Shared Forum Mod
Post by: ogmios on August 01, 2007, 11:55:11 PM
QuoteJust to be sure, which version of the mod are you using?
--- shared forum mod ver. 0.2.3
--- tiny portal ver. 0.9.7
--- SMF ver. 1.1.3


QuoteOpen Themes/default/index.template.php and search for:
Code: 'TPortal_front_type' and Code: 'tportal_version()'

Post the lines that contain them.

--- i looked up and down and 'TPortal_front_type' can't be found...
--- for 'tportal_version()', i have: ', theme_copyright(), ' <br />', tportal_version() , '

--- i'm gonna upgrade my TP soon
Title: Re: Shared Forum Mod
Post by: Sarge on August 02, 2007, 01:18:34 AM
Quote from: ogmios on August 01, 2007, 11:55:11 PM
--- i'm gonna upgrade my TP soon

Please do that and try the mod installation again. The other line that contains TPortal_front_type should be present in index.template.php too for the mod installation to succeed on that file.
Title: Re: Shared Forum Mod
Post by: ogmios on August 02, 2007, 09:14:18 AM
I upgraded my TP (now 0.9.8) and tried to reinstall the package but got the EXACT same results (errors on lines 50 & 51)...

I found this in index.template.php (which, of course, may have been there all along):
if($settings['TPortal_front_type']!='boardindex')



Title: Re: Shared Forum Mod
Post by: Sarge on August 02, 2007, 11:37:41 AM
Try chmodding Themes/default/index.template.php to 777 (or maybe 755).

How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477)
Title: Re: Shared Forum Mod
Post by: ogmios on August 02, 2007, 03:47:51 PM
the folders 'theme' and 'babylon' are set at 755...

index.template.php was at 644... i tried 755 first - no luck, then 777 - no luck...

same errors (lines 50 and 51)...
Title: Re: Shared Forum Mod
Post by: Abangyarudo on August 02, 2007, 08:02:28 PM
greetings i have had a problem with the subforums mod on features and layout the descripitons for what to put in the boxs is missing. My forum uses english as the language i don't remember getting any errors on install but its possible because I installed it awhile ago and worked on fixing other modifications that have had problems was kind of looking for a program to take screenshots to more easily explain this.

PS: Sorry for sending you a 2nd pm Sarge
Title: Re: Shared Forum Mod
Post by: Sarge on August 02, 2007, 08:16:32 PM
What is selected as "Default Forum Language" in Admin > Server Settings > Core Configuration tab?
Title: Re: Shared Forum Mod
Post by: Abangyarudo on August 02, 2007, 08:29:38 PM
English don't know if this effects it at all but I have a custom smf/tp theme the Black Rain Theme By Crip
Title: Re: Shared Forum Mod
Post by: Sarge on August 02, 2007, 08:55:36 PM
Quote from: Abangyarudo on August 02, 2007, 08:29:38 PM
English don't know if this effects it at all but I have a custom smf/tp theme the Black Rain Theme By Crip

Copy all lines that start with $txt['SFMod_ from Themes/default/languages/Modifications.english.php to Themes/your_custom_theme/languages/Modifications.english.php -- be sure to add those lines before the ?> tag at the end of the file, not after.
Title: Re: Shared Forum Mod
Post by: Abangyarudo on August 02, 2007, 09:27:59 PM
thanks that worked. Great mod
Title: Re: Shared Forum Mod
Post by: perplexed on August 03, 2007, 12:10:05 PM
hi  I have a few separate forums and after reading this, wish this mod had been available way back then, and I could have had them all in one database.  does anyone know how to merge a couple of forums together, so I could then have one but then try this mod to run them separately?
Title: Re: Shared Forum Mod
Post by: Abangyarudo on August 03, 2007, 03:42:16 PM
I have a custom theme I was wondering where the code for the forum button is so I can add it manually. Also to make sure I understand this would change the theme if they clicked the category and narrow it down correct if so how do I set it so that it does that but shows all the categories on the main index?

Was also wondering if there is any plans to be able to set the forum look through membergroup?
Title: Re: Shared Forum Mod
Post by: Sarge on August 03, 2007, 10:13:25 PM
Quote from: perplexed on August 03, 2007, 12:10:05 PM
hi  I have a few separate forums and after reading this, wish this mod had been available way back then, and I could have had them all in one database.  does anyone know how to merge a couple of forums together, so I could then have one but then try this mod to run them separately?

As I posted in the other topic, I think a few members are working on a merge script. For example:
http://www.simplemachines.org/community/index.php?topic=173198.0
Title: Re: Shared Forum Mod
Post by: Sarge on August 03, 2007, 10:45:27 PM
Quote from: Abangyarudo on August 03, 2007, 03:42:16 PM
I have a custom theme I was wondering where the code for the forum button is so I can add it manually.

The mod's control panel is at Admin > Features and Options > Shared Forum tab. The tab itself should show up in all themes. To add mod strings to a custom theme, read one of my recent posts above:
http://www.simplemachines.org/community/index.php?topic=158330.msg1186571#msg1186571

Make sure to copy the strings from and to the correct language files. For example, if the "Default Forum Language" in Admin > Server Settings > Core Configuration tab is selected as English-utf8 (which is the case in some Fantastico SMF installs), you have to work with Modifications.english-utf8.php files. Same thing with any other languages that you have added to your forum and that are used by your forum members.

Quote from: Abangyarudo on August 03, 2007, 03:42:16 PM
Also to make sure I understand this would change the theme if they clicked the category and narrow it down correct if so how do I set it so that it does that but shows all the categories on the main index?

I'm not sure if I understand you, but... to show all categories, create a subforum and list all categories there.

Quote from: Abangyarudo on August 03, 2007, 03:42:16 PM
Was also wondering if there is any plans to be able to set the forum look through membergroup?

No, there are no plans for that at the moment.

Note: there's a mod to do that for a non-SFMod'ed forum: Change Theme Permission (http://custom.simplemachines.org/mods/index.php?mod=795). I might expand that mod in the future to work with subforums.
Title: Re: Shared Forum Mod
Post by: perplexed on August 06, 2007, 02:28:50 PM
I had a quick look at your site and I wondered if it was possible to display one of the forums as default, rather than having to select one each time?

Also can a category belong to more than one forum?

Would this cause confusion among members as they try to find things or will it make it clearer do you think?  See I think it would be simpler but members don't always see it that way.
Title: Re: Shared Forum Mod
Post by: Sarge on August 07, 2007, 02:18:39 AM
Quote from: perplexed on August 06, 2007, 02:28:50 PM
I had a quick look at your site and I wondered if it was possible to display one of the forums as default, rather than having to select one each time?

Depends on what you mean. There's a "Default forum" option at the middle of the mod control panel page. By default, the first forum in the list is the default, but you can select any forum there.

What does it mean?... It means that a guest or member will see the default forum until they click on another forum. The last forum selected is the one the guest/member will see until their cookie expires. (The cookie doesn't expire if you have selected "Forever" or "Keep me logged in" when logging in.)


Quote from: perplexed on August 06, 2007, 02:28:50 PM
Also can a category belong to more than one forum?

Yes.


Quote from: perplexed on August 06, 2007, 02:28:50 PM
Would this cause confusion among members as they try to find things or will it make it clearer do you think?  See I think it would be simpler but members don't always see it that way.

True. Yes, it can cause confusion. It did in my forum. You would have to explain the way your forum operates to your forum members. :)
Title: Re: Shared Forum Mod
Post by: perplexed on August 07, 2007, 04:49:14 AM
ok that's cool, thanks for answering, all sounds good.  I like the idea and its good there is a default option, I think that would be less confusing for people.

Are there any problems with google indexing the forum or finding the forums?

Title: Re: Shared Forum Mod
Post by: perplexed on August 07, 2007, 12:19:20 PM
sorry I just tried to install this in package manager and got this

Installations actions for "Shared Forum Mod":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/SharedForum.php    
2.    Execute Modification    -    Modification parse error

I have had this with a few mods recently and have tried everything suggested to no avail, so it looks like I won't be able to try this mod until they come up with a fix for the problem.
Title: Re: Shared Forum Mod
Post by: Sarge on August 07, 2007, 08:22:06 PM
Post the information from SMF Admin > Support and Credits > Version Information section. I think you're running SMF 1.1.2 and PHP 5.2.x; if so, update your forum to SMF 1.1.3 (there should be a link in Package Manager to do this). SMF 1.1.3 fixes some issues with PHP 5.2.x and mod installation.
Title: Re: Shared Forum Mod
Post by: perplexed on August 09, 2007, 11:09:43 AM
ah ok, yes I am on 1.1.2, can't upgrade at the moment.  Didnt realise it was 1.1.3 only, my bad.
I will try the mod again after I have upgraded
Title: Re: Shared Forum Mod
Post by: Sarge on August 09, 2007, 08:36:56 PM
Quote from: perplexed on August 09, 2007, 11:09:43 AM
ah ok, yes I am on 1.1.2, can't upgrade at the moment.  Didnt realise it was 1.1.3 only, my bad.
I will try the mod again after I have upgraded

Well, it should work for 1.1.2 -- version 0.2.3 of the mod was finished before SMF 1.1.3 came out. The problem, as I explained above, lies with Package Manager and mod installation under PHP 5.2.x, which results in "Modification Parse Error" for fairly large mods; this is fixed in SMF 1.1.3.
Title: Re: Shared Forum Mod
Post by: perplexed on August 10, 2007, 06:24:54 AM
Quote from: Sarge on August 09, 2007, 08:36:56 PM
Quote from: perplexed on August 09, 2007, 11:09:43 AM
ah ok, yes I am on 1.1.2, can't upgrade at the moment.  Didnt realise it was 1.1.3 only, my bad.
I will try the mod again after I have upgraded

Well, it should work for 1.1.2 -- version 0.2.3 of the mod was finished before SMF 1.1.3 came out. The problem, as I explained above, lies with Package Manager and mod installation under PHP 5.2.x, which results in "Modification Parse Error" for fairly large mods; this is fixed in SMF 1.1.3.

really?  It's fixed for 1.1.3 - I hadn't heard that.  I might have to upgrade sooner than expected in that case, as that is preventing me from installing a few things

thanks for the info :)
Title: Re: Shared Forum Mod
Post by: Abangyarudo on August 10, 2007, 07:48:03 AM
out of curiousity would it be hard to code the sub-forum look being determined by membergroup?
Title: Re: Shared Forum Mod
Post by: Flying Drupalist on August 11, 2007, 09:27:37 AM
Hello Sarge, we chatted briefly about tp in the irc but I was unfortunately called away and didn't catch your answer. I had tp installed at one point but now I'm relying more on SSI and extensive theme changes, custom actions, and a bunch of other nice stuff rather than tp. However your mod would make my site much much better. I was wondering what must be edited on my site to allow Shared Forum compatability.

Thanks.
Title: Re: Shared Forum Mod
Post by: Sarge on August 12, 2007, 01:50:53 AM
Quote from: Abangyarudo on August 10, 2007, 07:48:03 AM
out of curiousity would it be hard to code the sub-forum look being determined by membergroup?

May I ask why? I'd like an example of why this would be useful, if you don't mind.
Title: Re: Shared Forum Mod
Post by: Sarge on August 12, 2007, 02:00:04 AM
Quote from: Miraploy on August 11, 2007, 09:27:37 AM
I was wondering what must be edited on my site to allow Shared Forum compatability.

You need to edit the templates and put your subforum links there, because the mod won't list them anywhere for you, except in the mod page in Admin > Features and Options > Shared Forum Mod. If you do that, I can create an SMF-only version.

I'm working on a new (SMF-only) version that will also feature a custom menu for links to subforums. TP support will be added either through a patch (a supplemental mod) or a separate package. However, I can't say when I'll release it, maybe in a month or two.
Title: Re: Shared Forum Mod
Post by: Abangyarudo on August 12, 2007, 07:44:34 AM
Quote from: Sarge on August 12, 2007, 02:00:04 AM
Quote from: Miraploy on August 11, 2007, 09:27:37 AM
I was wondering what must be edited on my site to allow Shared Forum compatability.

You need to edit the templates and put your subforum links there, because the mod won't list them anywhere for you, except in the mod page in Admin > Features and Options > Shared Forum Mod. If you do that, I can create an SMF-only version.

I'm working on a new (SMF-only) version that will also feature a custom menu for links to subforums. TP support will be added either through a patch (a supplemental mod) or a separate package. However, I can't say when I'll release it, maybe in a month or two.

I have a role playing forum where most of my member's characters are in membergroups for the game.  I was planning on creating a different banner and look for each game.
Title: Re: Shared Forum Mod
Post by: ogmios on August 12, 2007, 08:58:59 PM
QuoteTry chmodding Themes/default/index.template.php to 777 (or maybe 755).

How do I chmod? / what is chmod?

Quote
the folders 'theme' and 'babylon' are set at 755...

index.template.php was at 644... i tried 755 first - no luck, then 777 - no luck...

same errors (lines 50 and 51)...

sarge, would you happen to have any more suggestions for what i can do to get the shared forum mod installed?

thanks again
Title: Re: Shared Forum Mod
Post by: Flying Drupalist on August 12, 2007, 09:00:25 PM
Sarge, that's fine. But is it safe for me to install your mod without TP? I just don't want to kill anything...
Title: Re: Shared Forum Mod
Post by: momsandtots on August 12, 2007, 10:01:53 PM
Any Progress on showint the post for all forums at the same time?
Title: Re: Shared Forum Mod
Post by: Sarge on August 13, 2007, 02:12:39 AM
Quote from: Abangyarudo on August 12, 2007, 07:44:34 AM
I have a role playing forum where most of my member's characters are in membergroups for the game.  I was planning on creating a different banner and look for each game.

I see. That function would be nice to have and shouldn't be very hard to code. I am concentrating on porting the current code to the new version and won't add any more membergroup or permission options for now, but I will definitely work on them in the future.

So I added your request to the future to-do list:
Quote from: Sarge on March 17, 2007, 02:58:49 AM
In the future - to do (in no particular order):
- Add more options that can be set based on membergroup, subforum and/or permissions -- these may include theme display, banners, ads etc.
Title: Re: Shared Forum Mod
Post by: Sarge on August 13, 2007, 02:15:10 AM
Quote from: Miraploy on August 12, 2007, 09:00:25 PM
Sarge, that's fine. But is it safe for me to install your mod without TP? I just don't want to kill anything...

You have to install a separate version that will install in SMF -- the current version needs TinyPortal to install.

I will post the SMF-only variant of SFMod version 0.2.3 later.
Title: Re: Shared Forum Mod
Post by: Sarge on August 13, 2007, 02:17:07 AM
Quote from: momsandtots on August 12, 2007, 10:01:53 PM
Any Progress on showint the post for all forums at the same time?

Sorry, I'm not there yet. I'm currently working on converting the current code to the new version. I will implement what you asked after that.
Title: Re: Shared Forum Mod
Post by: Sarge on August 13, 2007, 02:28:52 AM
Quote from: ogmios on August 12, 2007, 08:58:59 PM
QuoteTry chmodding Themes/default/index.template.php to 777 (or maybe 755).

How do I chmod? / what is chmod?

Quote
the folders 'theme' and 'babylon' are set at 755...

index.template.php was at 644... i tried 755 first - no luck, then 777 - no luck...

same errors (lines 50 and 51)...

sarge, would you happen to have any more suggestions for what i can do to get the shared forum mod installed?

thanks again

Version 0.2.3 of the mod won't install on the Babylon and Classic themes, it does only on the default (SMF Default Theme - Core).

I will post a new maintenance version (0.2.4 or something) that will install on all three themes. ;)

Title: Re: Shared Forum Mod
Post by: Sarge on August 13, 2007, 07:09:41 AM
Quote from: Sarge on August 13, 2007, 02:28:52 AM
I will post a new maintenance version (0.2.4 or something) that will install on all three themes. ;)

Said and done. Shared Forum Mod 0.2.4 released. (http://www.albwebmaster.com/index.php?topic=11.0)
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ogmios on August 13, 2007, 09:33:14 AM
here's what i got trying to apply 0.2.4:

51.     Execute Modification     ./Themes/default/index.template.php      Test failed
52.    Execute Modification    ./Themes/default/index.template.php     Test failed

62.    Execute Modification    ./Themes/babylon/index.template.php    Test failed
63.    Execute Modification    ./Themes/babylon/index.template.php    Test failed

65.    Execute Modification    ./Themes/babylon/index.template.php    Test failed





Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on August 14, 2007, 02:22:59 AM
Quote from: ogmios on August 13, 2007, 09:33:14 AM
here's what i got trying to apply 0.2.4:

51.     Execute Modification     ./Themes/default/index.template.php      Test failed
52.    Execute Modification    ./Themes/default/index.template.php     Test failed

62.    Execute Modification    ./Themes/babylon/index.template.php    Test failed
63.    Execute Modification    ./Themes/babylon/index.template.php    Test failed

65.    Execute Modification    ./Themes/babylon/index.template.php    Test failed

Your themes seem to be modified by some other mod. Post Themes/default/index.template.php and Themes/babylon/index.template.php -- either attach them to your reply or paste their contents for each of them between [code] and [/code].

Have you installed TinyPortal? If so, which version?
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ogmios on August 14, 2007, 01:33:17 PM
--- i upgraded TP to 0.9.8

--- i was wondering about mods... some of the mods i installed, i haven't used (like the gallery2 bridge) or i don't use anymore (SMF gallerylite)... they, among others, have not been uninstalled... here's the list of mods:

Enhanced Calendar  1.0
SMF Gallery Lite 1.6.4
BBC Permission Mod 1.0
TinyPortal 0.983
Board Default Sort 1.25
Gallery 2 Integration 1.0beta2
TinyPortal 0.97
Custom Profile Field Mod 3.16
SMF Gallery Lite 1.7.1
Picture forum view par MkC 4.0


--- i've also done my own manipulation to index.template.php to do some small tweaks here and there...

--- both index.template.php files are attached (filename prefixed with correct theme)...

*** note: not sure if it makes a difference or not but i use the babylon theme exclusively, by default, for everyone (users cannot change)...


Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on August 14, 2007, 02:45:52 PM
Quote from: ogmios on August 14, 2007, 01:33:17 PM
--- i've also done my own manipulation to index.template.php to do some small tweaks here and there...

--- both index.template.php files are attached (filename prefixed with correct theme)...

It was the tweaks you made to the forum logo and name etc. that caused the mod installation test to fail on those files.

Find attached your copy of Themes/babylon/index.template.php with newlines converted from CR/LF to LF (the UNIX-style used by SMF) and extra (double) newlines removed. I advise you to edit SMF template files using a better text editor, like ConTEXT (http://www.context.cx) or Notepad++ (http://notepad-plus.sourceforge.net), instead of Notepad or Windows Write which are known to mangle UNIX-style newlines when saving files under default options.

Also find attached a version of my mod specially patched for your forum.

Alternatively, use SMF Package Parser (http://modparser.dev.dansoftaustralia.net/index.php) -- select "Only Theme edits (editing a theme to support a mod)" -- to find theme edits and then apply the changes yourself.

EDIT: fixed paths in the mod installation files for the Babylon and Classic themes.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ogmios on August 14, 2007, 03:19:58 PM
QuoteI advise you to edit SMF template files using a better text editor, like ConTEXT or Notepad++, instead of Notepad or Windows Write which are known to mangle UNIX-style newlines when saving files under default options.

---- i may have used wordpad a loooooooooong time ago, but i've been using dreamweaver for everything over the last year or so... still no good? regardless, i'll be checking out ConTEXT and Notepad++ fer sure...

QuoteSMF Package Parser
---- sweet - thank you!

QuoteAlso find attached a version of my mod specially patched for your forum.
---- i will be getting to this sometime today... i very much appreciate all of the help... i'll report back shortly...

thanks again!

Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on August 14, 2007, 03:28:26 PM
Quote from: ogmios on August 14, 2007, 03:19:58 PM
... i've been using dreamweaver for everything over the last year or so...

There should be some configuration options in Dreamweaver to not convert LF to CR/LF.

Quote from: ogmios on August 14, 2007, 03:19:58 PM
QuoteAlso find attached a version of my mod specially patched for your forum.
---- i will be getting to this sometime today... i very much appreciate all of the help... i'll report back shortly...

Please redownload the mod package file (I reuploaded it). I fixed some installation paths for the Babylon and Classic themes so that there won't be any errors in SMF Admin > Forum Error Log.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ogmios on August 14, 2007, 03:58:19 PM
QuotePlease redownload the mod package file (I reuploaded it). I fixed some installation paths for the Babylon and Classic themes so that there won't be any errors in SMF Admin > Forum Error Log.

got it  ;)
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ogmios on August 16, 2007, 03:49:48 PM
well sarge, things have changed...

while the wonderful package you put together for me worked splendidly, the group of us had further discussions and have changed up our plan for the website...

we decided that we didn't want to have a different forum for each branch of our community because anyone may be interested in anything... this makes the idea of having just one forum for everything work better than having it split up and spread out...

now, what we talked about having, is the ability to have different branches of our community, but each branch would have a different TP front page... each front page, in turn, would be loaded with blocks containing info for that branches' area of interest (either pulled from a certain forum category, or a rss feed, etc.)...

but only have one forum that is the 'root' of the whole thing...


i don't know if this is possible, but regardless - THANK YOU for all of the help...
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: PoLlama on August 16, 2007, 10:24:23 PM
Is there support for the sub-forum 'watchers', 'owners' or whatever they're called to setup their own categories and boards?
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on August 16, 2007, 11:08:26 PM
Quote from: ogmios on August 16, 2007, 03:49:48 PM
now, what we talked about having, is the ability to have different branches of our community, but each branch would have a different TP front page... each front page, in turn, would be loaded with blocks containing info for that branches' area of interest (either pulled from a certain forum category, or a rss feed, etc.)...

How are the "branches" defined? Do they consist of either specific categories for each "branch" or RSS feeds, or are they defined in some other way?

Regardless of whether SFMod is installed or not, you can modify TP blocks to display information based on variables: current category or board, action etc. This is how SFMod works, actually.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on August 16, 2007, 11:12:06 PM
Quote from: PoLlama on August 16, 2007, 10:24:23 PM
Is there support for the sub-forum 'watchers', 'owners' or whatever they're called to setup their own categories and boards?

Not in the current version. Basically, all SFMod does is display only some categories at any one time, instead of all of them. However, your request for subforum admins and/or moderators has been asked before and I will consider adding this kind of feature in future versions of the mod.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ogmios on August 17, 2007, 09:03:07 AM
QuoteHow are the "branches" defined? Do they consist of either specific categories for each "branch" or RSS feeds, or are they defined in some other way?

the working idea now is to have an html page load first that would present the visitor with the choice of going into any one of our three areas of interest...

for example, one area of interest (or 'branch') would be for entertainment (games, books, tv, music, etc.) and would be associated with the weekly radio program we do in town, the second area would be for environmental/global/government concerns and would be associated with the group of us that are promoting those things... the third area would be dedicated to the local talk in town and list events for the area, etc. etc. etc....

we were going to have a separate forum for each, but it was decided one forum would be better (as anyone can be interested in anything)...

so a visitor would (at the beginning) click on the area of interest that they want to visit, and it would take them to a TP front-page for that area... for example, if they visited the entertainment area, the front-page would be designed for that area (with different blocks of html, php, script - whatever) with modules of all sorts of fun things (and would also have an area for pulling posts from one of the forum board categories)...

so our idea would have three front-pages, each designed for the area of interest, but with one forum board at the root of it all...



Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ogmios on September 06, 2007, 12:00:27 PM
sarge,
there have been new developments with our team and we are now looking forward to using the shared forum mod...

but i'm having a few problems:

1. i have my main forum running and i installed the package (with no errors), but i can only make active, the new forums i add - and once added, i can't get the main forum to appear...

2. i'm hoping that once i get the site functioning properly with the new additional forums, i can have each individual forum show it's own set of TP blocks... is that possible?

3. wanting to upgrade to SMF 2.0, i figured i may have to uninstall the shared forum mod package... when trying to uninstall, i get this error:

62.  Execute Modification  ./Themes/babylon/index.template.php  Test failed

(i assume it's from modifying index.template.php between when i installed the mod until now, but not sure what part...) please advise...

4. finally, after installing the mod successfully, i am getting these errors consistently:

75.45.72.184    Guest
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Themes/babylon/BoardIndex.template.php (eval?)
Line: 103
Today at 11:40:08 AM

75.45.72.184 Guest
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Sources/BoardIndex.php
Line: 440
Today at 11:40:08 AM

75.45.72.184 Guest
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Sources/TPortal.php
Line: 1403
Today at 11:40:08 AM

75.45.72.184 kathy
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Themes/default/languages/Who.english.php (eval?)
Line: 103
?action=who
Today at 11:40:02 AM



thanks for your time... look forward to hearing from you... glad our team 'came around' and saw the benefits your mod has for us...

Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: GC on September 08, 2007, 02:07:22 AM
How bout an option so that a user can have a different signature on each forum. So say we have SMF1 and SMF2, I have to set 2 different signatures, one on SMF1 and set another signature or maybe the same thing on SMF2.

This would be VERY VERY VERY handy for my site!

Maybe even a way to have myfirstsite.com/index.php and mysecondsite.com/index.php without the whole /stuff/in/here/site1.html or however it works in gooses.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ogmios on September 12, 2007, 01:24:56 PM
sarge,
when trying to uninstall the shared forum mod, i get this:

62.  Execute Modification  ./Themes/babylon/index.template.php  Test failed




thanks for any help...
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ormuz on September 13, 2007, 02:35:34 PM
Is this working with SEO4SMF mod ?
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on September 13, 2007, 03:00:17 PM
Quote from: ormuz on September 13, 2007, 02:35:34 PM
Is this working with SEO4SMF mod ?

Yes. I use both in my forum (look at the second link in my signature).
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ormuz on September 13, 2007, 03:03:25 PM
Installation failed on tinyportal

error in index.php

What can be wrong with my smf fresh install?
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on September 13, 2007, 03:38:47 PM
Quote from: ogmios on September 06, 2007, 12:00:27 PM
1. i have my main forum running and i installed the package (with no errors), but i can only make active, the new forums i add - and once added, i can't get the main forum to appear...

That's how the mod works... Workaround: create another forum and add all categories there.


Quote from: ogmios on September 06, 2007, 12:00:27 PM
2. i'm hoping that once i get the site functioning properly with the new additional forums, i can have each individual forum show it's own set of TP blocks... is that possible?

It is possible, but you have to modify TP. Unfortunately, the mod has always been intended to use just a TP menublock for the forums list, nothing more. Some TP-specific functionality will be added later, though.


Quote from: ogmios on September 06, 2007, 12:00:27 PM
3. wanting to upgrade to SMF 2.0, i figured i may have to uninstall the shared forum mod package... when trying to uninstall, i get this error:

62.  Execute Modification  ./Themes/babylon/index.template.php  Test failed

(i assume it's from modifying index.template.php between when i installed the mod until now, but not sure what part...) please advise...

That's probably why. Attach index.template.php.


Quote from: ogmios on September 06, 2007, 12:00:27 PM
4. finally, after installing the mod successfully, i am getting these errors consistently:

75.45.72.184    Guest
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Themes/babylon/BoardIndex.template.php (eval?)
Line: 103
Today at 11:40:08 AM

75.45.72.184 Guest
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Sources/BoardIndex.php
Line: 440
Today at 11:40:08 AM

75.45.72.184 Guest
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Sources/TPortal.php
Line: 1403
Today at 11:40:08 AM

75.45.72.184 kathy
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Themes/default/languages/Who.english.php (eval?)
Line: 103
?action=who
Today at 11:40:02 AM


It looks like the mod hasn't been uninstalled cleanly.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on September 13, 2007, 03:41:43 PM
Quote from: ormuz on September 13, 2007, 03:03:25 PM
Installation failed on tinyportal

error in index.php

What can be wrong with my smf fresh install?

Post the info from SMF Admin > Support and Credits > Version Information section.

Where does the test fail during installation? Look at the last post by ogmios for an example.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ormuz on September 13, 2007, 04:03:24 PM
Quote from: Sarge on September 13, 2007, 03:41:43 PM
Quote from: ormuz on September 13, 2007, 03:03:25 PM
Installation failed on tinyportal

error in index.php

What can be wrong with my smf fresh install?

Post the info from SMF Admin > Support and Credits > Version Information section.

Where does the test fail during installation? Look at the last post by ogmios for an example.

Versão do Fórum: SMF 1.1.3 (mais detalhado)
Versão actual do SMF: SMF 1.1.3

It says               /index.php        Failed
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on September 13, 2007, 04:11:05 PM
Quote from: ormuz on September 13, 2007, 04:03:24 PM
It says               /index.php        Failed

Can you post the whole line, including the number?
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ormuz on September 13, 2007, 04:18:11 PM
The line? Where can I see the number?

I put this image in the SEO4SMF topic... is the same file and error

http://www.simplemachines.org/community/index.php?topic=155313.msg1239346#msg1239346
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on September 13, 2007, 04:50:19 PM
Quote from: ormuz on September 13, 2007, 04:18:11 PM
The line? Where can I see the number?

It should look like this:

10.     Execute Modification     ./index.php      Test failed

In other words, the number (10 in this case) is on the left.

What did you use to upload SMF files? Does index.php really contain blank lines after every line? It's not like that in the distribution package, and that's why the installation fails.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ormuz on September 13, 2007, 05:06:56 PM
When I try to install tinyportal...

8.     Executar modificação     ./index.php     Falha (Failed)
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on September 13, 2007, 05:15:19 PM
Download index.php and attach it to your reply. Click on Additional Options... below the post text box to do that.

(http://img242.imageshack.us/img242/5985/attachna7.png) (http://img242.imageshack.us/img242/5985/attachna7.png)
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ormuz on September 13, 2007, 05:26:27 PM
Ok, thnks for your help! This is a very important mod for me, i've a forum with over 100,000 posts and 40% of the content is adult XXX! I've recently converted the biggest webmasters portuguese community for smf...

But I can't upload attach files in this forum, I don't know why...

So I will post the index.php

<?php

/**********************************************************************************

* index.php                                                                       *

***********************************************************************************

* SMF: Simple Machines Forum                                                      *

* Open-Source Project Inspired by Zef Hemel ([email protected])                    *

* =============================================================================== *

* Software Version:           SMF 1.1.3                                           *

* Software by:                Simple Machines (http://www.simplemachines.org)     *

* Copyright 2006-2007 by:     Simple Machines LLC (http://www.simplemachines.org) *

*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *

* Support, News, Updates at:  http://www.simplemachines.org                       *

***********************************************************************************

* This program is free software; you may redistribute it and/or modify it under   *

* the terms of the provided license as published by Simple Machines LLC.          *

*                                                                                 *

* This program is distributed in the hope that it is and will be useful, but      *

* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *

* or FITNESS FOR A PARTICULAR PURPOSE.                                            *

*                                                                                 *

* See the "license.txt" file for details of the Simple Machines license.          *

* The latest version can always be found at http://www.simplemachines.org.        *

**********************************************************************************/





/* This, as you have probably guessed, is the crux on which SMF functions.

Everything should start here, so all the setup and security is done

properly.  The most interesting part of this file is the action array in

the smf_main() function.  It is formatted as so:



'action-in-url' => array('Source-File.php', 'FunctionToCall'),



Then, you can access the FunctionToCall() function from Source-File.php

with the URL index.php?action=action-in-url.  Relatively simple, no?

*/



$forum_version 'SMF 1.1.3';



// Get everything started up...

define('SMF'1);

@
set_magic_quotes_runtime(0);

error_reporting(E_ALL);

$time_start microtime();



// Load the settings...

require_once(dirname(__FILE__) . '/Settings.php');



// And important includes.

require_once($sourcedir '/QueryString.php');

require_once(
$sourcedir '/Subs.php');

require_once(
$sourcedir '/Errors.php');

require_once(
$sourcedir '/Load.php');

require_once(
$sourcedir '/Security.php');



// Using an old version of PHP?

if (@version_compare(PHP_VERSION'4.2.3') != 1)

require_once($sourcedir '/Subs-Compat.php');



// If $maintenance is set specifically to 2, then we're upgrading or something.

if (!empty($maintenance) && $maintenance == 2)

db_fatal_error();



// Connect to the MySQL database.

if (empty($db_persist))

$db_connection = @mysql_connect($db_server$db_user$db_passwd);

else

$db_connection = @mysql_pconnect($db_server$db_user$db_passwd);



// Show an error if the connection couldn't be made.

if (!$db_connection || !@mysql_select_db($db_name$db_connection))

db_fatal_error();



// Load the settings from the settings table, and perform operations like optimizing.

reloadSettings();

// Clean the request variables, add slashes, etc.

cleanRequest();

$context = array();



// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.

if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)

$_REQUEST['wap2'] = 1;

elseif (isset(
$_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)

{

if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)

$_REQUEST['imode'] = 1;

else

$_REQUEST['wap'] = 1;

}



if (!
defined('WIRELESS'))

define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));



// Some settings and headers are different for wireless protocols.

if (WIRELESS)

{

define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' '')));



// Some cellphones can't handle output compression...

$modSettings['enableCompressedOutput'] = '0';

// !!! Do we want these hard coded?

$modSettings['defaultMaxMessages'] = 5;

$modSettings['defaultMaxTopics'] = 9;



// Wireless protocol header.

if (WIRELESS_PROTOCOL == 'wap')

header('Content-Type: text/vnd.wap.wml');

}



// Check if compressed output is enabled, supported, and not already being done.

if (!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 0)

{

// If zlib is being used, turn off output compression.

if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION'4.2.0') == -1)

$modSettings['enableCompressedOutput'] = '0';

else

ob_start('ob_gzhandler');

}

// This makes it so headers can be sent!

if (empty($modSettings['enableCompressedOutput']))

ob_start();



// Register an error handler.

set_error_handler('error_handler');



// Start the session. (assuming it hasn't already been.)

loadSession();



// What function shall we execute? (done like this for memory's sake.)

call_user_func(smf_main());



// Call obExit specially; we're coming from the main area ;).

obExit(nullnulltrue);



// The main controlling function.

function smf_main()

{

global $modSettings$settings$user_info$board$topic$maintenance$sourcedir;



// Special case: session keep-alive.

if (isset($_GET['action']) && $_GET['action'] == 'keepalive')

die;



// Load the user's cookie (or set as guest) and load their settings.

loadUserSettings();



// Load the current board's information.

loadBoard();



// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)

loadTheme();



// Check if the user should be disallowed access.

is_not_banned();



// Load the current user's permissions.

loadPermissions();



// Do some logging, unless this is an attachment, avatar, theme option or XML feed.

if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach''jsoption''.xml')))

{

// Log this user as online.

writeLog();



// Track forum statistics and hits...?

if (!empty($modSettings['hitStats']))

trackStats(array('hits' => '+'));

}



// Is the forum in maintenance mode? (doesn't apply to administrators.)

if (!empty($maintenance) && !allowedTo('admin_forum'))

{

// You can only login.... otherwise, you're getting the "maintenance mode" display.

if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'login2')

{

require_once($sourcedir '/LogInOut.php');

return 'Login2';

}

// Don't even try it, sonny.

else

{

require_once($sourcedir '/Subs-Auth.php');

return 'InMaintenance';

}

}

// If guest access is off, a guest can only do one of the very few following actions.

elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login''login2''register''register2''reminder''activate''smstats''help''.xml''verificationcode'))))

{

require_once($sourcedir '/Subs-Auth.php');

return 'KickGuest';

}

elseif (empty($_REQUEST['action']))

{

// Action and board are both empty... BoardIndex!

if (empty($board) && empty($topic))

{

require_once($sourcedir '/BoardIndex.php');

return 'BoardIndex';

}

// Topic is empty, and action is empty.... MessageIndex!

elseif (empty($topic))

{

require_once($sourcedir '/MessageIndex.php');

return 'MessageIndex';

}

// Board is not empty... topic is not empty... action is empty.. Display!

else

{

require_once($sourcedir '/Display.php');

return 'Display';

}

}



// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).

$actionArray = array(

'activate' => array('Register.php''Activate'),

'admin' => array('Admin.php''Admin'),

'announce' => array('Post.php''AnnounceTopic'),

'ban' => array('ManageBans.php''Ban'),

'boardrecount' => array('Admin.php''AdminBoardRecount'),

'buddy' => array('Subs-Members.php''BuddyListToggle'),

'calendar' => array('Calendar.php''CalendarMain'),

'cleanperms' => array('Admin.php''CleanupPermissions'),

'collapse' => array('Subs-Boards.php''CollapseCategory'),

'convertentities' => array('Admin.php''ConvertEntities'),

'convertutf8' => array('Admin.php''ConvertUtf8'),

'coppa' => array('Register.php''CoppaForm'),

'deletemsg' => array('RemoveTopic.php''DeleteMessage'),

'detailedversion' => array('Admin.php''VersionDetail'),

'display' => array('Display.php''Display'),

'dlattach' => array('Display.php''Download'),

'dumpdb' => array('DumpDatabase.php''DumpDatabase2'),

'editpoll' => array('Poll.php''EditPoll'),

'editpoll2' => array('Poll.php''EditPoll2'),

'featuresettings' => array('ModSettings.php''ModifyFeatureSettings'),

'featuresettings2' => array('ModSettings.php''ModifyFeatureSettings2'),

'findmember' => array('Subs-Auth.php''JSMembers'),

'help' => array('Help.php''ShowHelp'),

'helpadmin' => array('Help.php''ShowAdminHelp'),

'im' => array('PersonalMessage.php''MessageMain'),

'jsoption' => array('Themes.php''SetJavaScript'),

'jsmodify' => array('Post.php''JavaScriptModify'),

'lock' => array('LockTopic.php''LockTopic'),

'lockVoting' => array('Poll.php''LockVoting'),

'login' => array('LogInOut.php''Login'),

'login2' => array('LogInOut.php''Login2'),

'logout' => array('LogInOut.php''Logout'),

'maintain' => array('Admin.php''Maintenance'),

'manageattachments' => array('ManageAttachments.php''ManageAttachments'),

'manageboards' => array('ManageBoards.php''ManageBoards'),

'managecalendar' => array('ManageCalendar.php''ManageCalendar'),

'managesearch' => array('ManageSearch.php''ManageSearch'),

'markasread' => array('Subs-Boards.php''MarkRead'),

'membergroups' => array('ManageMembergroups.php''ModifyMembergroups'),

'mergetopics' => array('SplitTopics.php''MergeTopics'),

'mlist' => array('Memberlist.php''Memberlist'),

'modifycat' => array('ManageBoards.php''ModifyCat'),

'modifykarma' => array('Karma.php''ModifyKarma'),

'modlog' => array('Modlog.php''ViewModlog'),

'movetopic' => array('MoveTopic.php''MoveTopic'),

'movetopic2' => array('MoveTopic.php''MoveTopic2'),

'news' => array('ManageNews.php''ManageNews'),

'notify' => array('Notify.php''Notify'),

'notifyboard' => array('Notify.php''BoardNotify'),

'optimizetables' => array('Admin.php''OptimizeTables'),

'packageget' => array('PackageGet.php''PackageGet'),

'packages' => array('Packages.php''Packages'),

'permissions' => array('ManagePermissions.php''ModifyPermissions'),

'pgdownload' => array('PackageGet.php''PackageGet'),

'pm' => array('PersonalMessage.php''MessageMain'),

'post' => array('Post.php''Post'),

'post2' => array('Post.php''Post2'),

'postsettings' => array('ManagePosts.php''ManagePostSettings'),

'printpage' => array('Printpage.php''PrintTopic'),

'profile' => array('Profile.php''ModifyProfile'),

'profile2' => array('Profile.php''ModifyProfile2'),

'quotefast' => array('Post.php''QuoteFast'),

'quickmod' => array('Subs-Boards.php''QuickModeration'),

'quickmod2' => array('Subs-Boards.php''QuickModeration2'),

'recent' => array('Recent.php''RecentPosts'),

'regcenter' => array('ManageRegistration.php''RegCenter'),

'register' => array('Register.php''Register'),

'register2' => array('Register.php''Register2'),

'reminder' => array('Reminder.php''RemindMe'),

'removetopic2' => array('RemoveTopic.php''RemoveTopic2'),

'removeoldtopics2' => array('RemoveTopic.php''RemoveOldTopics2'),

'removepoll' => array('Poll.php''RemovePoll'),

'repairboards' => array('RepairBoards.php''RepairBoards'),

'reporttm' => array('SendTopic.php''ReportToModerator'),

'reports' => array('Reports.php''ReportsMain'),

'requestmembers' => array('Subs-Auth.php''RequestMembers'),

'search' => array('Search.php''PlushSearch1'),

'search2' => array('Search.php''PlushSearch2'),

'sendtopic' => array('SendTopic.php''SendTopic'),

'serversettings' => array('ManageServer.php''ModifySettings'),

'serversettings2' => array('ManageServer.php''ModifySettings2'),

'smileys' => array('ManageSmileys.php''ManageSmileys'),

'smstats' => array('Stats.php''SMStats'),

'spellcheck' => array('Subs-Post.php''SpellCheck'),

'splittopics' => array('SplitTopics.php''SplitTopics'),

'stats' => array('Stats.php''DisplayStats'),

'sticky' => array('LockTopic.php''Sticky'),

'theme' => array('Themes.php''ThemesMain'),

'trackip' => array('Profile.php''trackIP'),

'about:mozilla' => array('Karma.php''BookOfUnknown'),

'about:unknown' => array('Karma.php''BookOfUnknown'),

'unread' => array('Recent.php''UnreadTopics'),

'unreadreplies' => array('Recent.php''UnreadTopics'),

'viewErrorLog' => array('ManageErrors.php''ViewErrorLog'),

'viewmembers' => array('ManageMembers.php''ViewMembers'),

'viewprofile' => array('Profile.php''ModifyProfile'),

'verificationcode' => array('Register.php''VerificationCode'),

'vote' => array('Poll.php''Vote'),

'viewquery' => array('ViewQuery.php''ViewQuery'),

'who' => array('Who.php''Who'),

'.xml' => array('News.php''ShowXmlFeed'),

);



// Get the function and file to include - if it's not there, do the board index.

if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))

{

// Catch the action with the theme?

if (!empty($settings['catch_action']))

{

require_once($sourcedir '/Themes.php');

return 'WrapAction';

}



// Fall through to the board index then...

require_once($sourcedir '/BoardIndex.php');

return 'BoardIndex';

}



// Otherwise, it was set - so let's go to that action.

require_once($sourcedir '/' $actionArray[$_REQUEST['action']][0]);

return $actionArray[$_REQUEST['action']][1];

}



?>
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on September 13, 2007, 06:03:22 PM
Compress index.php into a .zip archive, upload the archive somewhere (preferrably not in your adult forum address...) and post the link here.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ormuz on September 13, 2007, 06:12:57 PM
Quote from: Sarge on September 13, 2007, 06:03:22 PM
Compress index.php into a .zip archive, upload the archive somewhere (preferrably not in your adult forum address...) and post the link here.

www.aoposte.com/images/index.rar
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on September 13, 2007, 06:20:46 PM
Your index.php contains blank extra lines. Upload all files from the SMF Large Upgrade package to your forum directory, except upgrade.php and the two .sql files. Note that this will remove all modifications that you may have made or installed in your forum.

Be sure to set the transfer type as Binary (not ASCII or Automatic) -- your FTP program should have an option for this.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ormuz on September 13, 2007, 06:37:47 PM
ok, I will try that! thnks once again
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ogmios on September 13, 2007, 09:30:48 PM
thanks sarge... [index.template.php attached]

i played around a bit during the time we were figuring out if we were going implement the mod, and in doing so, i installed, then uninstalled, then installed, then uninstalled, then installed and rode with it... during all that hubbub, i never received an error during the installs and uninstalls...

but the error log started to fill up with those examples i posted and now when i do the uninstall, i get the 'execute modification' error...

(just in case it helps)




Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: ogmios on September 26, 2007, 12:38:02 PM
sarge,
just bumping for a chance to get some help on our previous discussion... index.template.php attached to the post above...

i'm getting this when trying to uninstall:
62.  Execute Modification  ./Themes/babylon/index.template.php  Test failed

please let me know... thanks...
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: dazlia on October 06, 2007, 05:43:40 AM
forgive me here guys but i'm confused.

I have 2 separate SMF forums and all i want to do is share the members and membergroups database for now. will this mod allow me to do that really easily? and if so I cant find a link to download it? has it not been released yet?

P.S before anyyone asks, both forums are on the same server? :)

HELP!!!!! lol
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: christicehurst on October 06, 2007, 07:51:54 AM
Quote from: dazlia on October 06, 2007, 05:43:40 AM
forgive me here guys but i'm confused.

I have 2 separate SMF forums and all i want to do is share the members and membergroups database for now. will this mod allow me to do that really easily? and if so I cant find a link to download it? has it not been released yet?

P.S before anyyone asks, both forums are on the same server? :)

HELP!!!!! lol

I want to share the members only.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Neol on October 18, 2007, 06:50:16 AM
Quote from: ogmios on September 26, 2007, 12:38:02 PM
sarge,
just bumping for a chance to get some help on our previous discussion... index.template.php attached to the post above...

i'm getting this when trying to uninstall:
62.  Execute Modification  ./Themes/babylon/index.template.php  Test failed

please let me know... thanks...

For a few days Sarge won't be online. You have to wait my friend.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on November 13, 2007, 12:59:51 AM
Quote from: dazlia on October 06, 2007, 05:43:40 AM
I have 2 separate SMF forums and all i want to do is share the members and membergroups database for now. will this mod allow me to do that really easily?

Quote from: christicehurst on October 06, 2007, 07:51:54 AM
I want to share the members only.

No, this mod is designed to work only on single SMF installations.


Quote from: dazlia on October 06, 2007, 05:43:40 AM
and if so I cant find a link to download it? has it not been released yet?

The download link is in the first post. You have to register in my demo forum to download the mod package.
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on November 13, 2007, 01:01:18 AM
Quote from: ogmios on September 26, 2007, 12:38:02 PM
sarge,
just bumping for a chance to get some help on our previous discussion... index.template.php attached to the post above...

i'm getting this when trying to uninstall:
62.  Execute Modification  ./Themes/babylon/index.template.php  Test failed

please let me know... thanks...

Sorry for the delay, ogmios. Do you still need help with the template?
Title: Re: Shared Forum Mod -- latest version: 0.2.4
Post by: Sarge on November 13, 2007, 01:17:39 AM
Just to let you all know, I have been working on SFMod recently. Version 0.2.5 will be out shortly and will have support for forum-specific logo images, more compact code and bug fixes.
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on November 13, 2007, 07:01:01 AM
As promised, here's the release announcement and download topic for SFMod 0.2.5:

Shared Forum Mod 0.2.5 released (http://www.albwebmaster.com/index.php?topic=14.0)

Changes from 0.2.4:
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: jheroen on November 15, 2007, 08:22:17 AM
hi sarge.....

i think i'm really missing something to get your mod working. i made several new forums added categories, made some posts but still i cant choose a forum when i want to apply your mod. the drop down menu doesn't come up with 1 forum

helppppppp

i tried to make forums on other sites of mine where smf is running together with joomla and i succeeded so that's not the point here......

can you help me out?
maybe you want to have an admin account?
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: ormuz on November 15, 2007, 11:00:57 AM
Do u have tinyportal installed?
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: jheroen on November 15, 2007, 12:09:16 PM
Quote from: ormuz on November 15, 2007, 11:00:57 AM
Do u have tinyportal installed?
yes, latest version
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on November 15, 2007, 03:42:56 PM
Quote from: jheroen on November 15, 2007, 08:22:17 AM
i think i'm really missing something to get your mod working. i made several new forums added categories, made some posts but still i cant choose a forum when i want to apply your mod. the drop down menu doesn't come up with 1 forum

Which drop down menu? The one for the default forum in the mod's control panel page, or the one for forum navigation, in board and topic display? If the latter, what theme are you using?


Quote from: jheroen on November 15, 2007, 08:22:17 AM
can you help me out?
maybe you want to have an admin account?

Sure. PM me the details.
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: jheroen on November 16, 2007, 03:26:37 AM
done
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on November 16, 2007, 04:03:47 AM
Quote from: jheroen on November 16, 2007, 03:26:37 AM
done

Check your PM inbox. The account has to be activated. :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: jheroen on November 16, 2007, 04:29:45 AM
Quote from: Sarge on November 16, 2007, 04:03:47 AM
Quote from: jheroen on November 16, 2007, 03:26:37 AM
done

Check your PM inbox. The account has to be activated. :)

done:P
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on November 16, 2007, 06:37:41 AM
Done.

You had to add 1 or more subforums.

I added 2 example (sub)forums and you can test them by checking "Enable this mod?" in Admin > Features and Options > Shared Forum tab. The links are /index.php?action=general and /index.php?action=newforum (add your main forum URL at the beginning, of course).

The "default forum" is simply the forum that will be displayed to members and guests that haven't selected a forum, board, topic or post during their session. If you don't select a default forum, the main forum will be displayed at first.

I also added a menubox with the two new subforums as link menuitems; I also activated the menubox and put it as the first block on the right. Refer to the TinyPortal documentation about how to create, edit and activate menuboxes and link menuitems.
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: jheroen on November 16, 2007, 07:04:03 AM
great sarge thanks!

i will figure out how i can make the forums so that every forum gets the same categories and forums, in the 2 forums you made the postings are the same. is it possible to create new forums with the same cats and forums but not with the postings shared?
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on November 16, 2007, 07:07:19 AM
If two forums display the same categories, then the same boards, topics and posts will be displayed.
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Tick on December 30, 2007, 08:04:21 PM
I have this mod going and also have the coppermine gallery bridged with smf.   When trying to access the forum with this mod inabled I get this error .   Fatal error: Call to undefined function sfmod_fixboardlist() in /home/chromeho/public_html/foyer/Sources/Load.php on line 530   Is there a easy fix for this one to make it not conflict with the cpg bridge?
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Tick on December 31, 2007, 12:10:50 AM
This has been resolved. 
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: ogmios on January 03, 2008, 12:31:13 PM
Quote from: Sarge on November 13, 2007, 01:01:18 AM
Quote from: ogmios on September 26, 2007, 12:38:02 PM
sarge,
just bumping for a chance to get some help on our previous discussion... index.template.php attached to the post above...

i'm getting this when trying to uninstall:
62.  Execute Modification  ./Themes/babylon/index.template.php  Test failed

please let me know... thanks...

Sorry for the delay, ogmios. Do you still need help with the template?

yes, sarge, i need still need help uninstalling the mod
- and -
fixing the errors (listed below) that i believe may be related to the mod...
- and -
i haven't been able to move a post since i installed the mod - related?

please find the attached index.template.php


Quote75.45.72.184       Guest
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Themes/babylon/BoardIndex.template.php (eval?)
Line: 103
Today at 11:40:08 AM

75.45.72.184    Guest
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Sources/BoardIndex.php
Line: 440
Today at 11:40:08 AM

75.45.72.184    Guest
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Sources/TPortal.php
Line: 1403
Today at 11:40:08 AM

75.45.72.184    kathy
8: Undefined index: current_forum
File: /home/rootcoll/public_html/Themes/default/languages/Who.english.php (eval?)
Line: 103
?action=who
Today at 11:40:02 AM
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on January 03, 2008, 03:59:38 PM
Quote from: Tick on December 30, 2007, 08:04:21 PM
I have this mod going and also have the coppermine gallery bridged with smf.   When trying to access the forum with this mod inabled I get this error .   Fatal error: Call to undefined function sfmod_fixboardlist() in /home/chromeho/public_html/foyer/Sources/Load.php on line 530   Is there a easy fix for this one to make it not conflict with the cpg bridge?

Quote from: Tick on December 31, 2007, 12:10:50 AM
This has been resolved. 

Can you please tell us how you solved it? I'd like to know if it was a bug in the mod that caused the error, so that I can include a fix in the next version. ;)
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Tick on January 03, 2008, 04:15:06 PM
I did not fix this but I will link the person here who did and he can tell what he did.  Tick
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on January 03, 2008, 04:43:34 PM
Quote from: ogmios on January 03, 2008, 12:31:13 PM
yes, sarge, i need still need help uninstalling the mod
- and -
fixing the errors (listed below) that i believe may be related to the mod...
- and -
i haven't been able to move a post since i installed the mod - related?

please find the attached index.template.php

I attached your index.template.php without my mod changes. This is for the Babylon theme, right?

The errors are caused by earlier versions of the mod when you have no subforums set up; once you create a subforum, the errors go away. I believe I fixed this bug in 0.2.5 -- let me know if you want the latest version installed (there are a few theme changes from previous versions).

Moving a post requires splitting the post from the topic into a new topic and either a) merging the new topic into another topic, or b) moving the new topic to another board. Which one have you tried to do? Also, did you try as a moderator or as an admin?
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on January 03, 2008, 04:45:15 PM
Quote from: Tick on January 03, 2008, 04:15:06 PM
I did not fix this but I will link the person here who did and he can tell what he did.  Tick

Thank you. :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: ogmios on January 03, 2008, 10:17:41 PM
QuoteI attached your index.template.php without my mod changes. This is for the Babylon theme, right?

---- yes, it was for the babylon theme... should i run an uninstall with my current index.template.php (ignoring the error), then upload the one you just attached for me?


QuoteThe errors are caused by earlier versions of the mod when you have no subforums set up; once you create a subforum, the errors go away. I believe I fixed this bug in 0.2.5 -- let me know if you want the latest version installed (there are a few theme changes from previous versions).

---- ok


QuoteMoving a post requires splitting the post from the topic into a new topic and either a) merging the new topic into another topic, or b) moving the new topic to another board. Which one have you tried to do? Also, did you try as a moderator or as an admin?

---- ah ha... logging in as the main admin gave me a different error... gotta upgrade my database apparently (looking into it now)...

---- this is the message i got:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5
File: /home/rootcoll/public_html/Sources/MoveTopic.php
Line: 99

Note: It appears that your database may require an upgrade.
Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.10.
The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on January 03, 2008, 10:58:32 PM
Quote from: ogmios on January 03, 2008, 10:17:41 PM
---- yes, it was for the babylon theme... should i run an uninstall with my current index.template.php (ignoring the error), then upload the one you just attached for me?

Yes, if Package Manager reports errors only on Themes/babylon/index.template.php. If there are errors on other files, let me know.

Just in case, be sure to download a backup of all files in the Sources/ and Themes/ directories, as well as index.php in the main forum directory (where Settings.php and SSI.php are) before uninstalling the mod.


Quote from: ogmios on January 03, 2008, 10:17:41 PM
QuoteThe errors are caused by earlier versions of the mod when you have no subforums set up; once you create a subforum, the errors go away. I believe I fixed this bug in 0.2.5 -- let me know if you want the latest version installed (there are a few theme changes from previous versions).

---- ok

Do you want to try the new version? I can make a special mod package for your templates if you want.


Quote from: ogmios on January 03, 2008, 10:17:41 PM
---- ah ha... logging in as the main admin gave me a different error... gotta upgrade my database apparently (looking into it now)...

---- this is the message i got:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5
File: /home/rootcoll/public_html/Sources/MoveTopic.php
Line: 99

Note: It appears that your database may require an upgrade.
Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.10.
The above error might possibly go away if you execute the latest version of upgrade.php.


Can you post lines 90-101 from MoveTopic.php, before and after uninstalling the mod? What errors do you get as a moderator?

Also, there's no SMF 1.10 (but there's SMF 1.0.10 and 1.1) -- can you copy/paste the error?
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: ogmios on January 04, 2008, 08:02:24 AM
QuoteWhat errors do you get as a moderator?

---- there are no moderators, but there are lower-level admins and one main admin... the lower-level admins get this message when trying to move a post:

Database Error
Please try again. If you come back to this error screen, report the error to an administrator.


---- at the same time the above error appears, it also appears in the 'recent posts' TP block... (the 'recent posts' block works fine except when the error appears)...



---- NOW, as the main admin, i get this error message when trying to move a post:

Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5
File: /home/rootcoll/public_html/Sources/MoveTopic.php
Line: 99


---- and when the above error appears, this shows up in the 'recent posts' TP block:

Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ms.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_LAST_MSG DESC
LIMIT 7' at line 15
File: /home/rootcoll/public_html/SSI.php
Line: 361





---- from movetopic.php:

// Added by the Shared Forum Mod - SFMod.
$user_info['query_see_board'] = $context['current_forum']['query_see_all_forums'];

// Get a list of boards this moderator can move to.
$request = db_query("
SELECT b.ID_BOARD, b.name, b.childLevel, c.name AS catName
FROM {$db_prefix}boards AS b
LEFT JOIN {$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT)
WHERE b.ID_BOARD != $board
AND $user_info[query_see_board]" /* . (!in_array(0, $boards) ? "
AND b.ID_BOARD IN (" . implode(', ', $boards) . ")" : '') .*/, __FILE__, __LINE__);
$context['boards'] = array();
while ($row = mysql_fetch_assoc($request))
$context['boards'][] = array(
'id' => $row['ID_BOARD'],
'name' => $row['name'],
'category' => $row['catName'],
'child_level' => $row['childLevel'],
'selected' => !empty($_SESSION['move_to_topic']) && $_SESSION['move_to_topic'] == $row['ID_BOARD']
);
mysql_free_result($request);

if (empty($context['boards']))
fatal_lang_error('moveto_noboards', false);

$context['page_title'] = $txt[132];

$context['back_to_topic'] = isset($_REQUEST['goback']);

if ($user_info['language'] != $language)
{
loadLanguage('index', $language);
$temp = $txt['movetopic_default'];
loadLanguage('index');

$txt['movetopic_default'] = $temp;
}




---- i ran upgrade.php which only removed the "Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.10. The above error might possibly go away if you execute the latest version of upgrade.php." message...


---- we won't be needing the mod for right now... everything is still in development, so i'm not sure if it'll be needed yet... hell, we haven't even decided on our new name yet - nor a template - lol...

(thank you)




Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on January 04, 2008, 08:42:15 AM
OK... a few things:

1) Do you see any related errors in Admin > Forum Error Log?

2) Have you uninstalled SFMod? Do those errors show up after uninstalling it?

3) What is the MySQL version installed on the server? You can check the version in SMF Admin > Support and Credits > Version information section.
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: ogmios on January 04, 2008, 09:15:14 AM

1) Do you see any related errors in Admin > Forum Error Log?
---- there are tons of errors... looking through the first few pages worth, i see nothing related to movetopic.php (or any type of sql error)... i really only see '8: Undefined index: current_forum' errors...

2) Have you uninstalled SFMod? Do those errors show up after uninstalling it?
---- in lieu of the sql stuff, i didn't do the uninstall yet... shall i go ahead with it then?

3) What is the MySQL version installed on the server? You can check the version in SMF Admin > Support and Credits > Version information section.
---- MySQL version: 4.1.22 - standard
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on January 04, 2008, 09:23:20 AM
Quote from: ogmios on January 04, 2008, 09:15:14 AM
2) Have you uninstalled SFMod? Do those errors show up after uninstalling it?
---- in lieu of the sql stuff, i didn't do the uninstall yet... shall i go ahead with it then?

Yes, but get a backup beforehand:

Quote from: Sarge on January 03, 2008, 10:58:32 PM
Just in case, be sure to download a backup of all files in the Sources/ and Themes/ directories, as well as index.php in the main forum directory (where Settings.php and SSI.php are) before uninstalling the mod.
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: ogmios on January 04, 2008, 10:00:03 AM
---- uninstall went smooth and i uploaded the index.template.php file you made for me...

---- i can now move posts (no errors)
---- nothing is showing up in the error log
---- everything looks great!

thank you thank you thank you...
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Dragooon on January 04, 2008, 11:18:51 AM
Quote from: Sarge on January 03, 2008, 03:59:38 PM
Quote from: Tick on December 30, 2007, 08:04:21 PM
I have this mod going and also have the coppermine gallery bridged with smf.   When trying to access the forum with this mod inabled I get this error .   Fatal error: Call to undefined function sfmod_fixboardlist() in /home/chromeho/public_html/foyer/Sources/Load.php on line 530   Is there a easy fix for this one to make it not conflict with the cpg bridge?

Quote from: Tick on December 31, 2007, 12:10:50 AM
This has been resolved. 

Can you please tell us how you solved it? I'd like to know if it was a bug in the mod that caused the error, so that I can include a fix in the next version. ;)
I was the one who fixed this problem :)
Coppermine was using SSI.php as its way of connecting to SMF and the shared mod file was only called by index.php. So I made SSI also call the file and problem solved :).
Title: Re: Shared Forum Mod -- latest version: 0.2.5
Post by: Sarge on January 08, 2008, 10:55:54 AM
Quote from: Dragooon on January 04, 2008, 11:18:51 AM
I was the one who fixed this problem :)
Coppermine was using SSI.php as its way of connecting to SMF and the shared mod file was only called by index.php. So I made SSI also call the file and problem solved :).

Thank you. :)

0.2.5.1
Title: Re: Shared Forum Mod -- latest version: 0.2.5.1
Post by: Hj Ahmad Rasyid Hj Ismail on February 02, 2008, 07:21:00 AM
The function Show FORUM button in default template? (TinyPortal) is not functioning. Though I ticked the box the button is still missing. How do I fix this?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.1
Post by: Sarge on February 06, 2008, 05:11:32 AM
Quote from: ahrasis on February 02, 2008, 07:21:00 AM
The function Show FORUM button in default template? (TinyPortal) is not functioning. Though I ticked the box the button is still missing. How do I fix this?

Fixed. ;)

Shared Forum Mod 0.2.5.2

This is a bugfix release. No new features are added. Package is attached.

Changes from 0.2.5.1:

Procedure: Uninstall the old version before installing the new one.
Download: http://www.albwebmaster.com/index.php?topic=20.0
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Dragooon on February 06, 2008, 05:13:26 AM
Ah Very nice mod but..it does create some problems wherever $user_info['query_see_board'] is used, as only specific instead of all the boards are loaded there have been some problems in the admin panels.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Sarge on February 06, 2008, 05:15:42 AM
Note that display of the FORUM button depends also on TinyPortal settings: Admin > TinyPortal > Settings > Front Page tab > "What to show on front page:" If this option is set to "Go directly to forum index," the button is not shown by TinyPortal -- and SFMod does not modify this behavior.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Sarge on February 06, 2008, 05:16:03 AM
Quote from: Dragooon on February 06, 2008, 05:13:26 AM
Ah Very nice mod but..it does create some problems wherever $user_info['query_see_board'] is used, as only specific instead of all the boards are loaded there have been some problems in the admin panels.

What problems?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Dragooon on February 06, 2008, 08:21:34 AM
example in Smileys, There might be problems in Editing the smileys order or adding smileys.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Sarge on February 06, 2008, 08:47:21 AM
Quote from: Dragooon on February 06, 2008, 08:21:34 AM
example in Smileys, There might be problems in Editing the smileys order or adding smileys.

I can't see how my mod would interfere with smiley operations... I tried editing the smileys order and had no problems with that.

If you're convinced that SFMod causes such issues, test your SMF+TP installation before and after installing the mod. Be sure to use the latest versions.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Dragooon on February 06, 2008, 11:55:23 AM
I fixed one's problem with smileys admin interface not functioning properly, It wasn't loading all the boards or smileys because the $user_info['query_see_board'] was allowing to do so, BTW, I don't actually use this mod but thought I'd let you know. Once I got time I will try this again. BTW, I am not trying to be negative here :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Sarge on February 06, 2008, 12:01:25 PM
Dragooon, I know that you're not trying to be negative. In fact, I appreciate it when people report problems with my code, because this allows me to make it better.

However, I need to be able to reproduce the issue in order to find out why it happens and how to fix it. The minimum info needed is the exact versions used and a step-by-step example.

Thank you. :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Dragooon on February 06, 2008, 12:06:01 PM
This is kind of what happened IIRC,
SMF Smileys uses $user_info['query_see_board']  to load up the smileys, now this mod was altering it to limit it to 1 category and only smileys which were being shown to 1 Category was being shown.

I duplicated the $user_info['query_see_board'] in Load.php in paste it above the functions of manage smileys and it made them all load.

It was also giving the Unknown table c in Edit Smileys order

Soon once I get my localhost up I might try to re-create it. This happen sometime in Mid Jan.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Hj Ahmad Rasyid Hj Ismail on February 08, 2008, 01:42:51 PM
Quote from: Sarge on February 06, 2008, 05:11:32 AM
Quote from: ahrasis on February 02, 2008, 07:21:00 AM
The function Show FORUM button in default template? (TinyPortal) is not functioning. Though I ticked the box the button is still missing. How do I fix this?

Fixed. ;)

Shared Forum Mod 0.2.5.2

This is a bugfix release. No new features are added. Package is attached.

Changes from 0.2.5.1:

  • Fixed a bug with the FORUM button not showing in the homepage.
  • Fixed a bug with forum-specific themes not being used.

Procedure: Uninstall the old version before installing the new one.
Download: http://www.albwebmaster.com/index.php?topic=20.0

Ooooh... Great! Just in time with Ortio's new plugin for CB.

Cant wait to test.

Thank you very much.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Hj Ahmad Rasyid Hj Ismail on February 08, 2008, 08:47:34 PM
After reading your thread and goosemoose for several time, I now understand some differences between yours and goosemoose shared forum mod. It is about the url. I prefer goosemoose mod better but surely with some improvement that you have contributed. I will do the mod manually then.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Sarge on February 09, 2008, 11:11:39 AM
Quote from: ahrasis on February 08, 2008, 08:47:34 PM
After reading your thread and goosemoose for several time, I now understand some differences between yours and goosemoose shared forum mod. It is about the url. I prefer goosemoose mod better but surely with some improvement that you have contributed. I will do the mod manually then.

Goosemoose's mod is for Joomla+SMF, using Orstio's Bridge. Mine is for SMF+TP (with plans to release it for plain SMF as well).

Some of the differences in URLs are there because of the base platform. When SMF is integrated with Joomla/Mambo, URLs are set up according to Joomla/Mambo standards, not SMF's.

I haven't tested my mod in SMF when integrated with Joomla/Mambo, but I'd love to hear about it.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Hj Ahmad Rasyid Hj Ismail on February 12, 2008, 05:35:25 PM
Quote from: Sarge on February 09, 2008, 11:11:39 AM
Goosemoose's mod is for Joomla+SMF, using Orstio's Bridge. Mine is for SMF+TP (with plans to release it for plain SMF as well).
Yes. I am intending to do the same with mambo 4.6.3. I am awaiting for sfmod simply for smf without tiny portal as well. Hopefully the bridge will also provide support for sfmod as well.

Quote from: Sarge on February 09, 2008, 11:11:39 AM
Some of the differences in URLs are there because of the base platform. When SMF is integrated with Joomla/Mambo, URLs are set up according to Joomla/Mambo standards, not SMF's.
Correct me if I am wrong. IMHO the url is important not because of item id for smf in mambo but rather category id to make sure that users in specific forum (category/ies) remain in there without knowing they are sharing part of a big forum. With mambo or not, Goosemoose's mod have the capability of hiding other category/ies.

Say I have 5 sites to share one forum. I can point all 5 sites to one forum without the users actually realize they are going to the same forum. The main category/ies remain visible for all 5 sites' users but they will have specific category/ies on their own. With the url (eg. forum=cat) setting, all button will not allow the users to go to (eg. forum=dog) though they may share some category/ies (like 1 & 2).

Thus you can build a lot more users for your forum with variety of sites or you can simply use the original Goosemoose's idea of using 3 forums in one site.

Quote from: Sarge on February 09, 2008, 11:11:39 AM
I haven't tested my mod in SMF when integrated with Joomla/Mambo, but I'd love to hear about it.
I have tested it but failed to get the wanted result as I've described above. The best thing is still using Goosemoose's mod (with yours improvement of course).

Just my 2 cents.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Sarge on February 13, 2008, 02:55:38 AM
SFMod uses a session variable to keep track of the (sub)forum the member is visiting; so, the reason why there's no forum parameter in the URL is because it's not needed. Categories are hidden and/or shared just like in Goosemoose's mod.

SFMod is still in beta and development is a bit slow, due to me being busy with other things as well. I do plan to start a separate branch for "plain vanilla" SMF (without TinyPortal). Read my previous posts in this topic for more information.

FYI, there's another mod, similar to Goosemoose's and mine, but it supports subdomains: Multidomain SMF forum (http://www.simplemachines.org/community/index.php?topic=171340.0)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: perplexed on March 25, 2008, 02:40:16 PM
hi Sarge

I was reading this topic multidomain mod  (http://www.simplemachines.org/community/index.php?topic=171340.0) where you mentioned you might look at adding multidomain option to your mod.

Any advance on that yet?

Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Sarge on March 26, 2008, 05:18:00 AM
Quote from: perplexed on March 25, 2008, 02:40:16 PM
I was reading this topic multidomain mod  (http://www.simplemachines.org/community/index.php?topic=171340.0) where you mentioned you might look at adding multidomain option to your mod.

Any advance on that yet?

No, not yet. I'm actually working on the next version (doing the database stuff now), but I haven't arrived at the multidomain part yet. I'm not sure if I will be able to add that feature, but I will try. :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: perplexed on March 26, 2008, 06:40:17 AM
ok thanks,  I really just want to mirror my existing forum on two different domains and was hoping this might do the trick easily for me
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Hj Ahmad Rasyid Hj Ismail on March 29, 2008, 07:30:34 PM
Quote from: Sarge on February 13, 2008, 02:55:38 AM
Categories are hidden and/or shared just like in Goosemoose's mod.
What do you mean that categories are hidden here? Can you describe this further? So far I only see categories are shared but not hidden using SFMod.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: eaglesoars on April 11, 2008, 12:01:42 AM
Quote from: Sarge on March 21, 2007, 01:55:12 AM

I'm currently testing my mod on both localhost and an online site I've set up for testing purposes. When I'm comfortable releasing a beta, I'll let you know here.

Do you have any idea or comment about the features or maybe about something I've missed out?

I'm using this mod on a forum and really love it!
http://chromehorn.net/foyer/index.php (http://chromehorn.net/foyer/index.php)
This is NOT a test site so everyone is welcome to look it over and check out the mod but please respect my members.

Anyway, I'm getting ready to use it on another site because of how well I like it.

If I could improve it in anyway My wish for it would be for each forum to have it's own completely different Home page and to have each forum have the option of showing ALL new posts across the forums, or just the new posts for that particular forum.

My intent was to have the Grand Foyer be the front door to my site with All new posts showing and the front page showing things for the whole community while each forun showed only stuff to the specifics of that forum.

But I do love the mod even as it is, keep up the great work (http://i125.photobucket.com/albums/p80/Chrome_Horn_BG/36_1_11.gif)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Sarge on April 19, 2008, 11:22:19 AM
Shared Forum Mod 0.2.5.3 is released (http://www.albwebmaster.com/index.php?topic=27.0)

Changes from 0.2.5.2:
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Sarge on April 19, 2008, 11:53:37 AM
Quote from: ahrasis on March 29, 2008, 07:30:34 PM
Quote from: Sarge on February 13, 2008, 02:55:38 AM
Categories are hidden and/or shared just like in Goosemoose's mod.
What do you mean that categories are hidden here? Can you describe this further? So far I only see categories are shared but not hidden using SFMod.

Example: Your forum has 5 categories, with IDs 1, 2, 4, 7 and 10. You have created two subforums: the first with categories 1 and 2 and the second with categories 7 and 10. Because you haven't included category 4 in a subforum, it will not show up anywhere -- in effect, it remains hidden.

However, every member with proper permissions can access that category from its direct URL (/index.php#4). Just because it's hidden doesn't mean it can't be found ;)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.2
Post by: Sarge on April 19, 2008, 12:03:17 PM
Quote from: eaglesoars on April 11, 2008, 12:01:42 AM
I'm using this mod on a forum and really love it!
http://chromehorn.net/foyer/index.php (http://chromehorn.net/foyer/index.php)
This is NOT a test site so everyone is welcome to look it over and check out the mod but please respect my members.

Anyway, I'm getting ready to use it on another site because of how well I like it.

Your site is nice :) I'm glad my mod has helped with it.

Quote from: eaglesoars on April 11, 2008, 12:01:42 AM
If I could improve it in anyway My wish for it would be for each forum to have it's own completely different Home page and to have each forum have the option of showing ALL new posts across the forums, or just the new posts for that particular forum.

My intent was to have the Grand Foyer be the front door to my site with All new posts showing and the front page showing things for the whole community while each forun showed only stuff to the specifics of that forum.

This can be, in part, achieved with forum-specific articles. I added this to the "To Do" list (see first post). The next major version of SFMod (0.3) will feature this, but I may add it to the 0.2.5.x branch as well. Also, both branches will have the TinyPortal recent posts filtering available soon.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: eaglesoars on April 19, 2008, 12:36:00 PM
Please keep up the great work, this is really one of the best mods there are.

Last year I had 4 separate forums for these, but members wouldn't join all 4 to participate in them so this works great.

BTW, Tick from Tiny Portal Hosting is the one that showed this to me when I told him what I was trying to do.

My new forum is a community site with forums  for #1 the homeowners and families. #2Homeowners Assn. Members & #3 Board of Directors.

Do you know if anyone using this mod is also using SMFHacks Store or Classifieds mods? He said he didn't know if it would work with the multiforum mod. I'd like to add them to the sites too.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on April 19, 2008, 12:58:13 PM
Quote from: eaglesoars on April 19, 2008, 12:36:00 PM
Do you know if anyone using this mod is also using SMFHacks Store or Classifieds mods? He said he didn't know if it would work with the multiforum mod. I'd like to add them to the sites too.

I don't know of any forum that uses both Shared Forum Mod and either SMFHacks Store or Classifieds. I guess it shouldn't be much of a problem having all of them co-exist in a forum. SFMod deals primarily with categories and it does so mostly by modifying the value of $user_info['query_see_board'] (an SMF global variable); if the mods you mentioned don't modify that, then you should be fine.

On the other hand, adding (sub)forum-specific support from SFMod for other mods, or vice-versa, would probably need a bit of extra work, but it shouldn't be much of an issue either. To aid with this, I plan to add some generic support for other mods in SFMod 0.3 (still in development).

Note that, to avoid confusion with other mods and packages that offer various multi-forum capabilities, I'd like my mod to be called Shared Forum Mod (like Goosemoose's mod) or SFMod. ;)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Hj Ahmad Rasyid Hj Ismail on April 19, 2008, 08:18:02 PM
Quote from: Sarge on April 19, 2008, 11:53:37 AM
Example: Your forum has 5 categories, with IDs 1, 2, 4, 7 and 10. You have created two subforums: the first with categories 1 and 2 and the second with categories 7 and 10. Because you haven't included category 4 in a subforum, it will not show up anywhere -- in effect, it remains hidden.

However, every member with proper permissions can access that category from its direct URL (/index.php#4). Just because it's hidden doesn't mean it can't be found ;)
I understand this one. But clicking Home will lead to TP frontpage, then...??? I also understand that you are trying to mod the menu so it will go to respective desired forum one just need to click the menu so the other forums are not available for them. So is this your suggested way (i.e. quite similar to goosemoose only he use mambo / joomla to make the menu)?

As I have said before this it could work even greater if it is combined with membergroups mod.
Quote from: ahrasis on July 07, 2007, 02:51:37 PM
Great mod! Really it is great! A great thank you to Sarge and Goosemoose.

Your mod could work even greater if it used with default membergroups mod during registration. User have to choose a group when they register and they can only view and access the registred group (allowed category) but no others.
Any further comment on this?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on April 20, 2008, 12:28:03 AM
ahrasis, that's why I have so far released my mod for SMF+TP and not for plain SMF. You can use a TinyPortal block to create the list of forums, so members can go to the forums from there. I'm not skilled enough in CSS and/or JavaScript to convert the FORUMS button into a dropdown menu, although I'm working on that.

On the other hand, creating a second menu just for forums seems a bit crude to me. If you have any idea or a working example about the forums menu (for the default theme, please), by all means let me know :)

As for the default membergroups mod, you can select in SMF which boards is each membergroup allowed to see. Then you can add some code to fetch the categories of those boards from the database and then filter out all subforums that don't contain those categories. Is this what you need?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Eliana Tamerin on April 20, 2008, 01:35:06 AM
Sarge, what about simply inserting forum names into the menu? Make a for each loop and insert a forum name where the normal "Home" link is.

Then the links would go "Forum1 Forum2 Help Search..."
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on April 20, 2008, 01:47:25 AM
Quote from: Eliana Tamerin on April 20, 2008, 01:35:06 AM
Sarge, what about simply inserting forum names into the menu? Make a for each loop and insert a forum name where the normal "Home" link is.

Then the links would go "Forum1 Forum2 Help Search..."

That would be easy, wouldn't it? :D But if I have 10 subforums with names like "Main Site," "The Chronicles of Narnia," "Star Wars Legacy," "Star Trek Enterprise,"... you can see that the menu can become quite long and it would break the site design.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Eliana Tamerin on April 20, 2008, 02:49:33 AM
Point taken.

Well, IMO, themes like Soft MC make drop down menus quite well. You might check on how that was coded and copy it.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on April 20, 2008, 03:14:47 AM
Quote from: Eliana Tamerin on April 20, 2008, 02:49:33 AM
Well, IMO, themes like Soft MC make drop down menus quite well. You might check on how that was coded and copy it.

Might as well (with permission, of course). Doing it for a theme with "flat" buttons should be easy; I almost made it work as a suckerfish dropdown in the default theme, except for the bottom menu border (the one with rounded corners). If you have noticed, the bottom border has been removed from dropdown menus in SMF 2.0.

My skills are improving, though. Anyway, I'm going to add some kind of menu in the next major version of SFMod for SMF and SMF+TP.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Eliana Tamerin on April 20, 2008, 03:24:02 AM
Since you brought up 2.0, you might check how they make the dropdown menus in the admin/moderator area. You could probably use that without having to ask special permission.

Anyways, good luck on it.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on April 20, 2008, 03:27:28 AM
As I mentioned, I think it's been done by removing the bottom border. The main menu still has that border, though.

I will try once more to crack that "little detail". Thanks for wishing me luck with it. :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: sgilleland on April 30, 2008, 04:04:28 PM


I love what I think this does!  Please help me understand if I am on the right track...

I would like to have a site that everyone can post to, I would like them to have the ability to post by state or region....I haven't decided which would be best.  For the sake of this discussion, lets say they would post by state.  I am thinking that each state would have its own forum, and in that forum they would have different boards to post in.  I think that I had read that you can search a specific board or the entire forum...is that correct?

Also, I would like each state to have thier own Frontpage or something that is unique to the state so that we would be able to advertise local business, and/or put when we will be having an event with in the area(state).  I also thought I had read about this but couldn't find how to do it. 

Would I create a forum for each state (region)  Also, I already have the boards created, can I use them or do I need to start over?  Here is my site www.sharemydreamz.com.

Lastly, I would like different subforums to be able to use the ad mod and one not to.  For example, on the Iowa forum, I would like to use the ad mod....then on the Florida subforum I would like to NOT have ad mod (google adsense)

Thanks in advance for your help!
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on May 01, 2008, 01:13:37 PM
Quote from: sgilleland on April 30, 2008, 04:04:28 PM
I would like to have a site that everyone can post to, I would like them to have the ability to post by state or region....I haven't decided which would be best.  For the sake of this discussion, lets say they would post by state.  I am thinking that each state would have its own forum, and in that forum they would have different boards to post in.  I think that I had read that you can search a specific board or the entire forum...is that correct?

Yes. The way to do it would be to create a category (or several categories) for each state. Then create a (sub)forum for each state and add those category IDs in the Category List field.

There are settings to get the search/recent posts/etc. results only from the current (last visited) subforum. Simply check/uncheck those to get the desired effect.


Quote from: sgilleland on April 30, 2008, 04:04:28 PM
Also, I would like each state to have thier own Frontpage or something that is unique to the state so that we would be able to advertise local business, and/or put when we will be having an event with in the area(state).  I also thought I had read about this but couldn't find how to do it. 

It depends on how is the frontpage set up. If it's just the articles that need to be different for each forum, the next major version of the mod (currently in development) will support forum-specific articles.


Quote from: sgilleland on April 30, 2008, 04:04:28 PM
Would I create a forum for each state (region)  Also, I already have the boards created, can I use them or do I need to start over?  Here is my site www.sharemydreamz.com.

SFMod works with categories. So you can use the boards you have already created, but you have to move and group them into the relevant categories.

Quote from: sgilleland on April 30, 2008, 04:04:28 PM
Lastly, I would like different subforums to be able to use the ad mod and one not to.  For example, on the Iowa forum, I would like to use the ad mod....then on the Florida subforum I would like to NOT have ad mod (google adsense)

Support for the Ad Management mod will be included in the next major version (0.3).
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on May 01, 2008, 01:37:59 PM
I *think* I managed to create a dropdown menu that works fine in all major browsers: Internet Explorer 6 and 7, Firefox 2.0, Opera 9 and Safari 3.1.1 for Windows. It should work fine in other browsers/versions as well. I will see how I can integrate it in the future versions of the mod.




On another note: The SMF 1.1.5 update patch reports an error on Recent.php during installation when SFMod is installed. That's because SFMod modifies a line in Recent.php that the patch searches for.

There are two ways to solve this:
a) Uninstall SFMod; install the SMF 1.1.5 patch; reinstall SFMod.

b)
1) Download and open Recent.php from the Sources directory. Search for this:

// Added by the Shared Forum Mod - SFMod.
$context['page_title'] = (!empty($context['sfmod']['current_forum']['page_title']) ? $context['sfmod']['current_forum']['page_title'] . ' - ' : '') . $txt[214];


2) Add this line before that:

$context['page_title'] = $txt[214];


so that it looks like this:


$context['page_title'] = $txt[214];
// Added by the Shared Forum Mod - SFMod.
$context['page_title'] = (!empty($context['sfmod']['current_forum']['page_title']) ? $context['sfmod']['current_forum']['page_title'] . ' - ' : '') . $txt[214];


3) Save and upload the modified Recent.php. Make sure it replaces the original Recent.php.
4) Run the SMF 1.1.5 update.
5) Then remove the line you added in Recent.php in step 2), save and upload again. Be sure to remove the line from Recent.php after installing the patch for SMF 1.1.5.

Note that the patch does not modify the line in question -- it modifies some code before that line and uses the line simply for verification -- so the mod should be installed without errors after the SMF update. Also, SFMod does not modify any other code needed by the SMF 1.1.5 patch, so if you get "Test failed!" errors in other files, they're not caused by my mod.

Let me know if you experience any SFMod-related issues after updating SMF to 1.1.5.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: sgilleland on May 02, 2008, 11:45:11 AM
This is the best mod out there, after playing with it, it really is easy!

You stated
QuoteIt depends on how is the frontpage set up. If it's just the articles that need to be different for each forum, the next major version of the mod (currently in development) will support forum-specific articles.

Can you explain what you mean by  Frontpage setup?  Also, do you have a rough timefame of when the next version is coming?

Thanks a ton for this mod and your help!
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on May 02, 2008, 01:41:33 PM
Quote from: sgilleland on May 02, 2008, 11:45:11 AM
This is the best mod out there, after playing with it, it really is easy!

Thank you, I'm glad you like it and I hope it serves your needs well. :)

Quote from: sgilleland on May 02, 2008, 11:45:11 AM
You stated
QuoteIt depends on how is the frontpage set up. If it's just the articles that need to be different for each forum, the next major version of the mod (currently in development) will support forum-specific articles.

Can you explain what you mean by  Frontpage setup?  Also, do you have a rough timefame of when the next version is coming?

Thanks a ton for this mod and your help!

In TinyPortal 0.9.8 (1.0.x is not yet supported by this mod), you can set up the frontpage in SMF Admin > TinyPortal group > Settings > Front Page tab. Basically, you can have a combination of:

1) forum posts
2) articles
3) featured article, and
4) front-page blocks
or go directly to the forum index, which is how I have tested my mod most of the time so far.

I haven't looked at having subforum-specific posts show there (I think they're already filtered, but I'm not sure) or subforum-specific front-page blocks, but you will be able to select subforum-specific articles in the next major version of the mod.

Which brings us to the release date. Simply said, I'm not sure when I will be able to release the 0.3 version. It is still under development.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: 05185736 on May 04, 2008, 04:10:15 PM
I like the idea of this mod but me thinks that it will be too complicated to install?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: eaglesoars on May 04, 2008, 05:51:19 PM
Quote from: 05185736 on May 04, 2008, 04:10:15 PM
I like the idea of this mod but me thinks that it will be too complicated to install?

Nope, not at all.

It is actually very easy and clean to use.

I'm certainly not a computer wiz and I had no problems at all, I am using it on 2 different forums.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: sparkster666 on May 07, 2008, 10:25:59 PM
Are you going to support tp 1.05 in the future??
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on May 08, 2008, 01:04:46 AM
Quote from: sparkster666 on May 07, 2008, 10:25:59 PM
Are you going to support tp 1.05 in the future??

Yes.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Carlos Gandra on June 05, 2008, 06:58:06 PM
Hi,

I'm going to use this great mod soon, but before, please tell me:

Quote from: Sarge on March 17, 2007, 02:58:49 AM
It is currently for SMF+TP only

What this exactly means? That I should have SMF + TP? Or I could use it on standalone SMF? The fact is that I really don't want TP on my site...

Regards from Portugal!
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: ormuz on June 05, 2008, 11:32:56 PM
Quote from: ac99 on June 05, 2008, 06:58:06 PM
Hi,

I'm going to use this great mod soon, but before, please tell me:

Quote from: Sarge on March 17, 2007, 02:58:49 AM
It is currently for SMF+TP only

What this exactly means? That I should have SMF + TP? Or I could use it on standalone SMF? The fact is that I really don't want TP on my site...

Regards from Portugal!

Hi there,

Ate the moment yes, you have to had tinyportal installed, but tinyportal don't have do had any direct effect in your forum! Just have to be installed...

Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Carlos Gandra on June 06, 2008, 02:12:38 PM
ormuz :D os tugas estão bem representados aqui:P

Thanks for your answer, I'll try it soon ;)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: eaglesoars on July 17, 2008, 07:02:44 AM
Will you be updating this for SMF 2.0?

I'm using it on 2 different sites and love it, but I would also like to upgrade the forums.

Thanks

Michael
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: fords8 on July 24, 2008, 11:02:52 AM
Sarge, any plans on working with Pedja on that multi domain trick he wrote up? This Trick (http://www.simplemachines.org/community/index.php?topic=171340.0)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: ormuz on September 07, 2008, 07:28:40 PM
Any errors with 1.1.6?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on September 08, 2008, 02:33:24 AM
Quote from: eaglesoars on July 17, 2008, 07:02:44 AM
Will you be updating this for SMF 2.0?

Yes, of course. However, I'll wait until SMF 2.0 reaches RC1 -- Release Candidate 1 -- which is the first pre-release version after the betas. Hopefully SMF 2.0 Beta 4 is the last beta and RC1 should be available soon.

Quote from: fords8 on July 24, 2008, 11:02:52 AM
Sarge, any plans on working with Pedja on that multi domain trick he wrote up? This Trick (http://www.simplemachines.org/community/index.php?topic=171340.0)

I have done some initial tests with the multidomain trick and there seem to be a few security issues with it. This is one of the main reasons why SFMod 0.3/1.0 isn't out yet. The next major version of the mod will be out as soon as I have worked out the problems. And yes, I would like to work with Pedja about this (and give him credit) when I have a clearer picture of the differences between his mod and mine.

Quote from: ormuz on September 07, 2008, 07:28:40 PM
Any errors with 1.1.6?

No, not at all. :) You don't need to uninstall SFMod (the latest version) in order to update SMF to 1.1.6, and the update should not have any effect on the mod operations at all.

Check out SFMod 0.2.5.3 and TinyPortal 0.9.8.3 on SMF 1.1.6 at my forum: http://www.albwebmaster.com/index.php
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: ormuz on September 08, 2008, 10:30:49 AM
Nice to see same news on this mod! Tell me, will the next version work on tinyportal 1.0.5?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Gwydion Frost on September 09, 2008, 12:27:30 PM
Quick question...

If I was to strip out the TP modifications, and customize my index page to contain the menu of the forums, would it install and function error free?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on September 09, 2008, 02:07:21 PM
Quote from: ormuz on September 08, 2008, 10:30:49 AM
Nice to see same news on this mod! Tell me, will the next version work on tinyportal 1.0.5?

I can't promise, but I'll try. Note, however, that TinyPortal 1.0.5 is still in beta.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on September 09, 2008, 02:08:56 PM
Quote from: Gwydion Frost on September 09, 2008, 12:27:30 PM
Quick question...

If I was to strip out the TP modifications, and customize my index page to contain the menu of the forums, would it install and function error free?

Yes, it should.

However, there's at least one linktree modification that still needs to be made in Load.php, but the TP version needs to be replaced with the SMF-only one. I will let you know what are the exact modifications to remove or change.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: bfeo on September 09, 2008, 03:27:25 PM
So lemme get this straight...  basically this is like having two separate forums in the same one? 

Like, say I have my forum, and I decide to create a gaming league for players to fight each other and get a rank, I can create a forum inside of mine that they can do to, which only discusses the league parts of the site?


And if so, they are both edited in the same control panel and share the same mods, etc?

And also, can I set to share statistics?  For example, include the post stats on the main, but not the main's stats on the second?


This sounds awesome.  What a cool mod.  Please clarify for me.  :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: ormuz on September 09, 2008, 04:41:41 PM
U can see it in action in my signature link...

I've to tabs on the top right, the first for mainstream content, and the second one for adult content... Is a good example to understand what this amazing mod can do! And I've two different themes...
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: bfeo on September 09, 2008, 10:16:22 PM
brilliant mod!  :D
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on September 10, 2008, 09:17:15 PM
Quote from: bfeo on September 09, 2008, 03:27:25 PM
And also, can I set to share statistics?  For example, include the post stats on the main, but not the main's stats on the second?

The answer to this is no. It's easy to do it, but I haven't added this into the mod in order to avoid confusion.

The answer to your other questions is yes. :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: bfeo on September 11, 2008, 08:30:22 AM
So they don't share?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: bfeo on September 11, 2008, 02:04:09 PM
Wait wait.  This mod control panel, for changing boards...

Can permissions be assigned to edit that without them being admin or having access to the main forums?

And can they edit say, their theme, but not have access to the rest of the site?

I was considering creating sections for different organizations on my site, and having staff that don't have administrator powers to the main forum, and things like the arcade, etc.  It would be great if they could edit the look and feel of their sections and be able to moderate them without my having to get involved.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: bfeo on September 14, 2008, 10:50:07 AM
How many forums can I put into one?  Is it unlimited?  Or just one?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: bfeo on September 26, 2008, 08:34:21 PM
..
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: [SiNaN] on September 27, 2008, 11:28:03 AM
Unlimited AFAIK.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: bfeo on October 16, 2008, 10:15:03 PM
Ok, how about this though...  would the admins of main section have power over everything, because I want to have like, head admins, and then admins of only separate forums.

Also, what would the administrator powers of shared forums give over the features?  For example, the unfinished rivals mod, is a gaming league setup that only admins can edit.  Would I be able to allow admins of the sub forum to administrate this league?  Or would the mod split into separate?  Because that'd be even better.

But if it splits into separate, what would happen with mods like smf shop, and felblog and the arcade?  Would they be able to exist between the shared forums?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: ChainLightning on October 18, 2008, 01:33:34 PM
bfeo, the mod really only acts like a second forum (or however many you create). As Admin, you will only see the boards of that second (or whatever) category/board/forum in the Admin CP, where you make up new boards.

You could set Global Moderators to have more permissions (on those additional "forums") simply by using Board Specific Permissions. You could also, potentially, create additional usergroups that can only use, access or have control over just those boards.

---

Hey Sarge? I'm not getting the "view unread" to show the unread posts from both my forums. It only shows them from the "main" forum. Did I miss something?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: ElectricSquid on October 26, 2008, 03:37:42 PM
With this mod, would I be able to use 2 totally different URLs, one for each category?

Like some-url.com for cat 1
and different-url.com for cat 2

Does this mod give that functionallity?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: ElectricSquid on October 26, 2008, 03:38:57 PM
Here's a link to a topic where I expain it better.
http://www.simplemachines.org/community/index.php?topic=269829.msg1764070#msg1764070 (http://www.simplemachines.org/community/index.php?topic=269829.msg1764070#msg1764070)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: bfeo on November 16, 2008, 10:26:38 PM
I ran into an error trying to install this mod onto a fairly clean 1.1.6 with TP 1.0.6.

I don't have

$context['linktree'][] = array('url' => $scripturl, 'name' => $context['forum_name']);

in my ./Sources/TPortal.php


Help with this would be great.  Under normal circumstances, I'd look in an entirely clean forum for it, but I haven't installed any mods that effect Tinyportal.


Here's my file:
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: ormuz on November 19, 2008, 12:04:58 PM
This mod is for tinyportal 0.9.x
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: swtdivalove on November 19, 2008, 03:37:30 PM
I need something almost identical to this that will work with subomains located on the same server as the domain.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: ormuz on November 19, 2008, 03:48:04 PM
Quote from: swtdivalove on November 19, 2008, 03:37:30 PM
I need something almost identical to this that will work with subomains located on the same server as the domain.

http://www.simplemachines.org/community/index.php?topic=171340.0
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: bfeo on November 19, 2008, 11:51:54 PM
What would be involved in updating it to the latest TP?  Seems like such a shame to lose a great mod.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on November 20, 2008, 01:11:24 AM
Quote from: bfeo on November 19, 2008, 11:51:54 PM
What would be involved in updating it to the latest TP?

Time... I need to familiarize myself with TinyPortal 1.0.x and test the necessary changes.

As for your other questions: you can't have "subforum admins" with this mod (the mod is about grouping of categories, not extra security settings and permissions) and multiple domains or subdomains are not supported (yet).
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Jakki on January 11, 2009, 12:00:33 PM
Good mod here, and my son has it working with Simpleportal www.northerndirttracks.com/forum (http://www.northerndirttracks.com/forum). 

I'm getting ready to install this on SMF 1.1.7 with TP 1.0.63 (lastest version).  Yes, I will be putting it on a test site before I do the live one as I have many mods going also. I'll post back here on my progress...no I'm not a coder but want this mod.


and wanted to let you know I signed up on your forum, but it seems as if it was abandoned..LOL
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: FireDitto on January 26, 2009, 05:38:30 AM
Wonderful; it's working nicely and can be seen here, in conjunction with Look But No Read:

http://landing.dreamscaperpgs.net

My only request would be, the ability to put restrictions on the forum listing; such as, non admin members not being able to see the link to the Admin forums, since they have no need to go there, and I don't really think they need to be able to see the link, certain level members not see the link to forum areas that don't apply to them, etc.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Hj Ahmad Rasyid Hj Ismail on January 27, 2009, 04:51:32 PM
It's a great mod if you use TP. Use it with membergroup mod if you prefer certain board to be kept hidden from others.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: FireDitto on January 28, 2009, 12:32:05 AM
Quote from: ahrasis on January 27, 2009, 04:51:32 PM
It's a great mod if you use TP. Use it with membergroup mod if you prefer certain board to be kept hidden from others.

Aye, and I do use TP.

Which membergroup mod are you talking about, or am I misunderstanding you?


Another thing I would like to see adjusted would be the Who's Online page; you can only see members on the same Forum as you; everyone else is listed as "Unknown Action"
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Hj Ahmad Rasyid Hj Ismail on January 28, 2009, 09:15:59 AM
Well... with or without membergroup mod you can always allow / disallow access from Admin -> Boards -> Modify Boards. Create separate membergroups for each forum you want to make.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: shaitanfr on February 14, 2009, 01:53:23 PM
Great mod. I use it with Dilbermc, Tp and a dropdown menu. http://passion-xbmc.org/forum/
The feature Hide main linktree dont work when a board is in the main forum and in a séparate forum but that's not a too big problem.




Sorry for my bad English.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Hj Ahmad Rasyid Hj Ismail on February 19, 2009, 06:58:45 PM
Hi, after some tweaks and testings, I also find that this mod which is based on the original goosemoose shared forum mod can be used when smf 1.1.8 is bridged with Joomla 1.5.9 using SJSB bridge. Please note that this bridge is unsupported bridge but works.

This mod (Sarge Shared Forum Mod) can work even without TP. All you have to do is to remove all TP code inside the downloaded package.

The Steps:
1. Follow the instructions on how to install SJSB. Note that the SJSB smf mod created for SMF 2.0 rc1 also works with SMF 1.1.8. The Joomla com, mods and plugins work with small warning. Please get this work first.

2. Find at around line 182 in administrator/components/com_smf/helper.php:
return 'index.php?option=com_smf&Itemid='.$Itemid;
Change to:
return 'index.php?option=com_smf&Itemid='.$Itemid.'&action='.$_REQUEST['forum'];

3. Install Sarge Shared Forum Mod. Create the forums with the categories that you wanted e.g. Admin & Moderator.

4. Create a url link in Joomla Menu to your respective forum. e.g. a)http://www.yourjoomlawebsite.com/index.php?option=com_smf&view=forum&Itemid=2&action=Admin
b)http://www.yourjoomlawebsite.com/index.php?option=com_smf&view=forum&Itemid=2&action=Moderator

Admin and Moderator is a sample of your selected categories combination.

You will find that when you enter into forum link one i.e. Admin, you cannot go to another forum link two i.e. Moderator unless you put a specific url link (like action=Moderator) as in the sample.

That is all from me. Feel free to ask questions. Good luck.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: ~Killer~ on February 20, 2009, 05:18:29 PM
Wow Ahrais, you're good ^_^

But I use SimplePortal, and don't want to use Joomla, or anything else, or go outside SMF, yet I want this mod. Any help?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Hj Ahmad Rasyid Hj Ismail on February 25, 2009, 03:49:04 PM
I guess you can use it in SimplePortal. The only reason the shared forum mod works is because of custom menu link. If you can create this in SimplePortal, you can use this mod. Just remove TP code in the downloaded files and install. Hide the main forum, if you do not want people to see it directly. Or utilize smf membergoup functions.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Garou on March 10, 2009, 08:26:54 PM
I got to say this mod rocks!!!

I wish I had found it a year ago when the WoW Guild I belonged to splintered and the splinters wanted to still communicate and share much of the existing info we had on the original site. I tried a setup using templates and user groups but in the end it just didn't work out and everyone went their separate ways. This mod would have solved everything. Ive got several ideas in my head on how to use it for other projects though. :)

Id love to see it upgraded to 2.x but at the moment it would have to stand alone from TP. If the only reason TP is needed is for the custom menu link couldn't something like it be integrated into the mod?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.3
Post by: Sarge on March 24, 2009, 09:29:08 PM
SMF 2.0 is now in RC stage, so I'll create an updated and standalone version of the mod for it.
Title: Shared Forum Mod 0.2.5.4 for SMF 1.1.x
Post by: Sarge on March 27, 2009, 04:49:14 AM
Meanwhile, I've created a standalone package for SMF 1.1.x. The package for SMF 1.1.x and TP 0.9.8.3 will be released later.

Shared Forum Mod 0.2.5.4 for SMF 1.1.x

(For SMF 1.1.x only; no SMF 2.0 or TinyPortal support in this package!)

The package is attached at: http://www.albwebmaster.com/index.php?topic=40.0 (register to download)

Changes from 0.2.5.3:
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: ormuz on March 30, 2009, 12:41:46 PM
Nice to know there are some news on this :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Sarge on March 30, 2009, 06:04:43 PM
Quote from: ormuz on March 30, 2009, 12:41:46 PM
Nice to know there are some news on this :)

Yes, the development of this mod has restarted. ;)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: shaitanfr on March 30, 2009, 06:19:37 PM
Yeah  :)

Thank you Sarge.

Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Garou on March 31, 2009, 02:45:42 AM
Thanks Sarge, glad to hear that.   :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: shaitanfr on April 01, 2009, 11:22:25 AM
Hi,

Perhaps a bug found:


In Admin/Forum/Smiley and Messages Icons/

Edit message Icon: I don't see the list icon.
And if I clic on "Add a new Icon" 

QuoteUnknown column 'b.ID_CAT' in 'where clause'
File: /home/users4/s/shaitan/www/Sources/ManageSmileys.php
Line: 1128

If I déactivate Shared Forum Mod, the bug disapear.

(http://passion-xbmc.org/fichiers_multimedia/upploadimages/images/1238587600-smfbug.jpg)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Goosemoose on April 01, 2009, 07:00:54 PM
Sarge and Ahrasis, thanks. I haven't had the time to dedicate to SMF like I used to since I now have my own software company and am working 20 hours a day. I still have SMF on many sites, one hitting a million posts this month that uses my old version of this mod and Joomla 1.15. I'll be updating to 1.5 soon and this will be extremely helpful!
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Sarge on April 01, 2009, 07:13:52 PM
Quote from: shaitanfr on April 01, 2009, 11:22:25 AM
QuoteUnknown column 'b.ID_CAT' in 'where clause'
File: /home/users4/s/shaitan/www/Sources/ManageSmileys.php
Line: 1128

I'll fix this in the next version.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Sarge on April 01, 2009, 07:33:18 PM
Quote from: Goosemoose on April 01, 2009, 07:00:54 PM
Sarge and Ahrasis, thanks. I haven't had the time to dedicate to SMF like I used to since I now have my own software company and am working 20 hours a day. I still have SMF on many sites, one hitting a million posts this month that uses my old version of this mod and Joomla 1.15. I'll be updating to 1.5 soon and this will be extremely helpful!

Hey Goosemoose, I'm glad to hear from you! :) I wish you the best of luck with your company!

Please feel free to use my mod and its code for your sites. Just keep in mind that I only borrowed the idea -- this mod has quite different code and you'll need to do some testing to see if it works correctly on Joomla-SMF sites. I'm glad ahrasis did some homework on that. ;)

I'm also going to create a standalone version for SMF 2.0 (no need for TP), so you might want to check it out when it's released.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: shaitanfr on April 01, 2009, 08:13:39 PM
Quote from: Sarge on April 01, 2009, 07:13:52 PM
Quote from: shaitanfr on April 01, 2009, 11:22:25 AM
QuoteUnknown column 'b.ID_CAT' in 'where clause'
File: /home/users4/s/shaitan/www/Sources/ManageSmileys.php
Line: 1128
I'll fix this in the next version.

Great,

I have another question: As you can see on my forum, http://passion-xbmc.org/forum/
I share some sections from the main Forum and Shared Forums. The hide linktree function don't work, I think it's normal, my utilisation of the mod is not standart.

I can hide the main forum and playing with Redirections, or using an another mod with SFM, Alias board for the main forum, is that a good solution ? Do you have a better idee ?

Sorry, my English is indigest.

Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Sarge on April 15, 2009, 11:14:43 AM
Quote from: shaitanfr on April 01, 2009, 08:13:39 PM
I can hide the main forum and playing with Redirections, or using an another mod with SFM, Alias board for the main forum, is that a good solution ? Do you have a better idee ?

I'm not sure I follow... Well:

1) Be sure to select the "Default Forum" in Admin > Features and Options > Shared Forum. I will make this setting automatic in future versions (the first created forum will be used if the Admin didn't select one). So, "Default Forum" is the subforum that will be shown when someone visits index.php (without ?action=forum_name) for the first time.

2) You can share categories between subforums.

Or are you asking about something else?

EDIT:
3) You don't have to list all categories. In fact, if you want, you can have categories that are not included in any subforum, thus they remain hidden; don't use this as a security measure, because every category and board can be accessed directly.

Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: shaitanfr on April 15, 2009, 11:51:48 AM
Thank you for responding Sarge, my english is so bad, I prefer not expect an answer when I post :)

Quote2) You can share categories between subforums.

That's ok.

The problem is that I share some sections from Default forum and subforums.

My members are now agreed to separate completely the forums, the problem will not arise over. Ouf, It was a real battle  :D

So the problem is solved.



Again thank you for this great Mod. Shared forum is simply fantastic
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Goosemoose on May 17, 2009, 04:26:24 AM
Hey Sarge,

Any update on this for 2.0?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: shaitanfr on May 31, 2009, 05:07:28 PM
French-utf8 translation for SFM 0.2.5.4 attached.

I have tried SFM with TP 1.0 beta 4  and no issues found. All seems to be ok. (only two buttons in Default Core Theme, not a real issue)
TP 1.0.x  is not so intrusive than TP 0.98 ( no specific Theme required).

I use two language on my forum, the experimental features for forcing a language was a problem, so I have removed those two lines in load.php:
if (!empty($context['sfmod']['current_forum']['language']) && $context['current_action'] !== 'convertutf8')
$lang = $context['sfmod']['current_forum']['language'];



On a fresh SMF install, SFM should be installed before TP.  I will Use tp 1.0.x ans SFM in production in a few week.

I m working on a personal custom Theme with a menu for SFM.

(http://passion-xbmc.org/fichiers_multimedia/upploadimages/miniatures/1243804758-shared-forum-0.2.5.4---opera.jpg) (http://passion-xbmc.org/fichiers_multimedia/upploadimages/images/1243804758-shared-forum-0.2.5.4---opera.jpg)

Démo (http://passion-xbmc.org/guest-users/bonjour-les-gens/)






Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Sarge on May 31, 2009, 07:34:07 PM
Wow, that's awesome!

I'll test with TP 1.0 beta 4. I'll definitely add the French translation in the next version :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: shaitanfr on June 07, 2009, 06:55:55 PM
Quote from: Sarge on May 31, 2009, 07:34:07 PM
Wow, that's awesome!

I'll test with TP 1.0 beta 4. I'll definitely add the French translation in the next version :)

Thank you Sarge, I hope you will find motivation to continue.
SFM is one of the most fantastic of all existing Mods.  :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on July 03, 2009, 09:38:47 AM
I don't want the drop down menu and want to remove them. The question is where?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: LanMc on July 04, 2009, 07:09:35 PM
Love the mod.  Using it on SMF 1.1.9, it installed beautifully and works like a charm!

Thanks!
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on July 05, 2009, 06:06:48 AM
Quote from: ahrasis on July 03, 2009, 09:38:47 AM
I don't want the drop down menu and want to remove them. The question is where?
I've got it.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: FireDitto on September 17, 2009, 05:39:26 AM
Quote from: Goosemoose on May 17, 2009, 04:26:24 AM
Hey Sarge,

Any update on this for 2.0?

Also seeking info on this. I'd love to be able to implement it on my 2.0 forum... Actually, I need to. Also, with ezPortal's ability to create Menus, it'll work wonderfully... if I can only get it to run on that version of forum! ;)

Thanks!
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Carlos Faria on September 19, 2009, 10:33:17 AM
Translation PT-pt (Shared Forum Mod 0.2.5.4) (http://www.simplemachines.org/community/index.php?topic=337519.0)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: FireDitto on November 05, 2009, 07:49:18 PM
Any news?

*poke*
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: FireDitto on November 28, 2009, 11:20:32 PM
Ah, hi =)

I'd really like to use this on my 2.0 site, alongside EzPortal and the Subaccount Mod.

Any news on where or what's happening to it in regards to 2.0??
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Arantor on November 28, 2009, 11:21:42 PM
There's always Multiple Forum Mod (http://custom.simplemachines.org/mods/index.php?mod=2137)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on November 30, 2009, 10:08:43 AM
It multiple forums mod really works?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Arantor on November 30, 2009, 05:40:50 PM
That mod does work, yes, subject to the caveats mentioned.

/me tested it.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on December 04, 2009, 07:21:57 AM
I cannot find any board / forum discussing how to use it. I have try it out but I ended up confused. Perhaps a support forum for the mod should be considered.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Garou on December 04, 2009, 08:15:41 AM
Since its  not an official SMF mod as of yet this would  be the place to discuss it on SMF. Also there has been some discussion on the demo site Sarge has set up.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on December 04, 2009, 08:54:06 AM
It isnt official yet? I thought it is. It is available in SMF mod area.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Arantor on December 04, 2009, 08:58:11 AM
Is it? Where?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Garou on December 04, 2009, 09:10:21 AM
That mod and this mod are not the same.

All the mods that Sarge has listed on SMF can be found at http://custom.simplemachines.org/mods/index.php?action=profile;u=48405. You'll see that this mod is not listed and you have to download it from the links in the first post of this thread.

If you are interested in the other mod then the support thread for the mod is listed on the downloads page for it.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on December 04, 2009, 09:12:50 AM
I mean multiple forum mod as suggested and tested by Arantor?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on December 04, 2009, 09:15:17 AM
By the way there is official "shared forums" mod already. Search the mod site using the quoted term.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on December 04, 2009, 09:17:07 AM
Here it is: http://custom.simplemachines.org/mods/index.php?mod=1936
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Arantor on December 04, 2009, 09:19:48 AM
Hasn't been updated for 2.0 RC2 yet. Probably won't be, either.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Garou on December 04, 2009, 10:54:32 AM
Looking at the older posts I think hes referring to the Multiple Forum Mod you mentioned earlier and the support board for that mod is at http://www.simplemachines.org/community/index.php?topic=349954.0
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on December 04, 2009, 08:11:10 PM
Quote from: Garou on December 04, 2009, 10:54:32 AM
Looking at the older posts I think hes referring to the Multiple Forum Mod you mentioned earlier and the support board for that mod is at http://www.simplemachines.org/community/index.php?topic=349954.0

Yes. That is the one. And thank you for the link. I have several searches but failed to find it.

May be all approved mods should be conditioned to have a link to their individual support forum. It helps a lot.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Arantor on December 04, 2009, 08:39:30 PM
Quote from: Abu Fahim Ismail on December 04, 2009, 08:11:10 PM
May be all approved mods should be conditioned to have a link to their individual support forum. It helps a lot.

Um, they do? That's what the "Support and comments for this mod" link on the mod's page is.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on December 04, 2009, 10:07:35 PM
There is no link at mod page  (http://custom.simplemachines.org/mods/index.php?mod=2137) to its forum board (http://www.simplemachines.org/community/index.php?topic=349954.0). That is what i meant and not vice versa. And some other mods as well. It helps a lot if the mods' page provide link to their respective forum and not the other way around only.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Arantor on December 05, 2009, 04:36:04 AM
Quote from: Abu Fahim Ismail on December 04, 2009, 10:07:35 PM
There is no link at mod page  (http://custom.simplemachines.org/mods/index.php?mod=2137) to its forum board (http://www.simplemachines.org/community/index.php?topic=349954.0).

Please see attached screenshot. I did specifically point to that link in my post.

Please note I deliberately did this from another browser as a guest to confirm that is the case.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Carlos Faria on December 24, 2009, 08:29:37 PM
(http://www.psychologytoday.com/files/u45/update.jpg)

Update MOD please!  :'( :'(
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Hj Ahmad Rasyid Hj Ismail on December 24, 2009, 11:25:55 PM
Quote from: The Grinch on December 05, 2009, 04:36:04 AM
Quote from: Abu Fahim Ismail on December 04, 2009, 10:07:35 PM
There is no link at mod page  (http://custom.simplemachines.org/mods/index.php?mod=2137) to its forum board (http://www.simplemachines.org/community/index.php?topic=349954.0).

Please see attached screenshot. I did specifically point to that link in my post.

Please note I deliberately did this from another browser as a guest to confirm that is the case.
You are right. I overlook. So very sorry.
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Carlos Faria on February 07, 2010, 09:06:23 AM
Quote from: [T]uGa [M]aSter on December 24, 2009, 08:29:37 PM
(http://www.psychologytoday.com/files/u45/update.jpg)

Update MOD please!  :'( :'(
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Arantor on February 07, 2010, 09:38:52 AM
Um, the author was last on this form over 2 months ago...
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: billis_2 on March 07, 2012, 03:55:16 PM
Any1 have {Shared Forum Mod -- latest version: 0.2.5.4}
And can upload it here please?
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Enemy1 on March 08, 2012, 02:02:54 AM
The latest I find is 0.2.5.3
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: billis_2 on March 09, 2012, 11:35:54 AM
Ok, thank you :)
Title: Re: Shared Forum Mod -- latest version: 0.2.5.4
Post by: Enemy1 on March 09, 2012, 03:59:47 PM
ill think this is the last version !