Page 2 of 5

Re: Forum module development

Posted: Mon Nov 27, 2006 11:42 pm
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.

Re: Forum module development

Posted: Tue Nov 28, 2006 1:38 am
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.

Re: Forum module development

Posted: Wed Nov 29, 2006 11:13 am
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)

Re: Forum module development

Posted: Wed Nov 29, 2006 1:41 pm
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!

Re: Forum module development

Posted: Fri Dec 01, 2006 8:05 am
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  :).

Re: Forum module development

Posted: Thu Jan 18, 2007 2:11 am
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

Re: Forum module development

Posted: Thu Jan 18, 2007 2:17 am
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.

Re: Forum module development

Posted: Thu Jan 18, 2007 7:39 pm
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

Re: Forum module development

Posted: Thu Jan 18, 2007 7:59 pm
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!

Re: Forum module development

Posted: Thu Jan 18, 2007 10:34 pm
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

Re: Forum module development

Posted: Mon Jan 22, 2007 8:53 pm
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

Re: Forum module development

Posted: Tue Jan 23, 2007 12:13 am
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.

Re: Forum module development

Posted: Fri Feb 02, 2007 5:07 pm
by Neo
Thanks a lot. Its working fine now  :)

Re: Forum module development

Posted: Wed Mar 28, 2007 2:09 pm
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

Re: Forum module development

Posted: Thu Mar 29, 2007 2:14 pm
by Torpedine
Neo wrote: Thanks a lot. Its working fine now  :)
Which permission did you set and where?