Forum module development

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
tamlyn

Re: Forum module development

Post by tamlyn »

Mark is now on the FMS dev team. Welcome mark :D
markr wrote: I commited the Dutch translations.

Also, I'm almost finished with pretty URL's. Only did not yet figured out how to deal with Redirects(), but I posted this as a question on the forum.

Furthermore, I want to integrate the Search function to search the forum. Seems not to difficult.

By the way, I'm not sure I should commit my date-format patch. It is really a hack: hard time for ordinary users to figure out the dependency with the News module for the date format. And the time is hard-coded 24-hour format. Some people may not like that...
I thought about setting the date/time format in the lang/en_US.php as it is actual a locale.
Also, I could add the date/time format as a Forum setting, but then a lot of modules may have it's own setting. I expect that it will be in the core sometime.
It's probably not worth doing any translations yet as the language strings are likely to change quite a lot during development. But of course it's up to you! Pretty URLs will be cool. Search integration too.

For the dates yeah maybe make the format configurable in the locale file. Using the news module is a bit messy and also people will not necessarily want to use the same format in both modules (I often don't display the time of news entries, only the date).

Anyone have any ideas for a solution to Eliz's question about icelandic characters above? I remember having a similar issue with the singapore project a while back but I can't remember what the solution was. What character encoding are your pages Eliz? If it is ISO-8859-1 maybe try UTF-8 or vice versa.
tamlyn

Re: Forum module development

Post by tamlyn »

I've changed the structure of the topics table to include last_post_id and poster_id. My original plan had been to not provide any upgrade mechanism during the alpha phase (uninstall+reinstall when changing versions) but it seems people are actually starting to use this module already. Would it be worth providing automated upgrades or just let power users alter their tables themselves? Obviously once we get into beta then we will provide automated upgrades.

Also Eliz I think I remembered what the problem with extended chars was. try the latest svn version - it should work better.
markr
New Member
New Member
Posts: 5
Joined: Mon Nov 27, 2006 2:18 pm

Re: Forum module development

Post by markr »

tamlyn wrote: Mark is now on the FMS dev team. Welcome mark :D
Thanks, glad to contribute a little bit!

Mark

------------------------------------------------------------------------
r9 | markr | 2006-11-28 21:28:53 +0100 (Tue, 28 Nov 2006) | 5 lines

- Added support for the Search module (posts and topics are searchable now)
- Date-time format defined by lang/* locale

------------------------------------------------------------------------
r8 | markr | 2006-11-28 15:51:02 +0100 (Tue, 28 Nov 2006) | 7 lines

Various fixes:
- forum name and posts properly escaped (prevent code-injection)
- delete last post in form as moderator was broken
- empty forums were not listed anymore

------------------------------------------------------------------------
r7 | markr | 2006-11-28 15:13:23 +0100 (Tue, 28 Nov 2006) | 1 line

Added clean URL's (pretty URL's)
tamlyn

Re: Forum module development

Post by tamlyn »

v0.4 alpha is now out.

I decided to implement automated upgrades in the end just to avoid a whole load of ppl going "hey you made me lose all my posts, I'm going to harass you until one of us dies". Initially the last post date will be wrong but that will be corrected next time someone posts.

I found a better bbcode parser but although it uses pcre and is much more secure and flexible, it still seems to need some work before being useful so I stuck with the old one which is ultra basic and, tbh, not very secure (easily allows page structure to be messed up and probably allows javascript to be posted too). Remember everyone - ALPHA!
Last edited by tamlyn on Thu Jan 18, 2007 2:19 am, edited 1 time in total.
cyberman

Re: Forum module development

Post by cyberman »

Found a little bug on method.install.php

Code: Select all

$this->CreatePermission('Modify Forum');
should be

Code: Select all

$this->CreatePermission('Modify Forum', 'Modify Forum');
If not Permission has no name  :).
User avatar
Neo
Forum Members
Forum Members
Posts: 62
Joined: Thu Jan 18, 2007 1:09 am

Re: Forum module development

Post by Neo »

Hi,
    I am a new user to CMS made simple. I tried to install the Forum module by using the XML version 0.4 alpha in the link below.

http://dev.cmsmadesimple.org/frs/?group_id=230.

The file was installed successfully and I am able to create new forums as well. But I could not figure out how to post a new topic under this forum or even post a new message for that matter. I have given the detailed steps which I did below.

Actually, I logged in as admin and installed the forum module from the link above. Then I navigated to the Forum Made Simple page and created a new forum. But after that, how do I add this forum to the website UI so that users can start using the forum to post messages?

Any pointers to this would be of great help.  :)

Thanks,
Neo
tamlyn

Re: Forum module development

Post by tamlyn »

Welcome neo :)

Most modules (including this one) have some basic help built in. To access it either click on the 'help' link in the admin section for that module (i.e. the page where you created a new forum) or click the 'help' link next to the module name in the admin module list page (i.e. the page where you uploaded the XML file).

Remember that this module is alpha and very much not finished. but it does work on a basic level.
User avatar
Neo
Forum Members
Forum Members
Posts: 62
Joined: Thu Jan 18, 2007 1:09 am

Re: Forum module development

Post by Neo »

Thanks for the quick response Tamlyn.

I found the help for the forum module but could not understand the process to put the forum in the UI. The help says "Insert the forum in the front end with {cms_module module="Forum"}". So where should I put this code so that the forum appears in the front end?. Also how can I see if I have the "Modify Forum" permission or not.

Not sure if I am missing something here  :(

Neo
tamlyn

Re: Forum module development

Post by tamlyn »

Yeah it could be worded better.

Basically you insert that tag where you want the forum stuff to appear. usually that will be in a page that you call 'forum' or something. But in theory it could be in a template or whatever.

If you're the admin then I think you have all permissions anyway. For anyone else the permissions are under 'users & groups' > 'group permissions' but due to the bug reported above by cyberman the permission actually has no name. so it's the blank permission in the list!
User avatar
Neo
Forum Members
Forum Members
Posts: 62
Joined: Thu Jan 18, 2007 1:09 am

Re: Forum module development

Post by Neo »

Thanks a lot Tamlyn and cyberman. I got the Forum in the UI now.  :) by adding the code in the template.

Tried to create a new forum, post messages and replies. These things are working fine now. I was currently looking on how to modify the code so that on clicking the forum name, it redirects to another page with separate title. Currently, it displays the forum in the same page and the old page's header still remains which is misleading.

Experimenting on how to do this currently :).


Thanks,
Neo
Last edited by Neo on Mon Jan 22, 2007 8:54 pm, edited 1 time in total.
User avatar
Neo
Forum Members
Forum Members
Posts: 62
Joined: Thu Jan 18, 2007 1:09 am

Re: Forum module development

Post by Neo »

Hi Tamlyn
         The forum module is working fine now. But the webpage I want to design requires separators between each forum, each topic, each post etc. So I tried to modify the file Index.tpl for adding a separator. But it does not allow me to change it as there is a file permission problem. So is the modify permission not given to the forum files which have been provided? Please let me know if I can modify the forum files to customize it according to requirements.


Thanks for your help  :)

Regards,
Neo
tamlyn

Re: Forum module development

Post by tamlyn »

That's a different kind of permission I think. The problem is that because the files were created by the server when you uploaded the xml file, you as an ftp user are not allowed to modify them. You need to go to the modules page and click 'change permissions' or 'fix permissions' or something next to the forum module.
User avatar
Neo
Forum Members
Forum Members
Posts: 62
Joined: Thu Jan 18, 2007 1:09 am

Re: Forum module development

Post by Neo »

Thanks a lot. Its working fine now  :)
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Forum module development

Post by Torpedine »

On my server (LINUX) with CMSMS 1.0.5 Forum does not install and generates errors (see http://forum.cmsmadesimple.org/index.ph ... 871.0.html )

How can I use it? Changing permissions via ftp on Forum folder does not solve the problem
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Forum module development

Post by Torpedine »

Neo wrote: Thanks a lot. Its working fine now  :)
Which permission did you set and where?
Locked

Return to “Modules/Add-Ons”