Page 1 of 3

Forum Made Simple 0.9.X

Posted: Fri May 16, 2008 1:05 pm
by alby
After very loooong time .....
ATTENTION: there are some problems upgrade with PostgreSQL


0.9.1:
- PostgreSQL support
- Check if FEU is installed (or could not get instance of FrontEndUsers module)
- Move all templates in DB (display and editing)
- Move many parameters from global to "per forum". Warning: If you use property-feu: you MUST setting again in your forums
- Update permission of guests: can read forums only or read/create posts & topics
- CustomContent is not necessary for private forum
- Add forum param for display this forums only (ex: some forums on a page and others on another page)
- Optional different folder icon
- Add banned members & IP
- Show last post date, topic and user in forums list (Georg Busch)
- Avatars by the FEU module & Ranks (Mattias Ulbrich)


Alby

Forum Made Simple 0.9.2

Posted: Tue May 27, 2008 8:33 am
by alby
In this week come out 0.9.2 I am busy with new version of CMSMS ....
Please test, for bug, prev version and translate.


0.9.2:
- Bugs
- REQUIRED CMSMailer module (core module)
- Edit of topic subject with edit of first post
- Report to moderators
- Full moderation: published post on approve moderator only


TODO:
0.9.3:
- Bugs?
- Plain view

0.9.4:
- Bugs?
- RSS output for last posts

0.9.5:
- BETA release


Alby

Re: Forum Made Simple 0.9.1

Posted: Fri Jul 25, 2008 9:43 pm
by qido
How about adding support for showing newest post on any selected page.

I created this user defined tag so I can show the newest post on my front page. (Work with FMS 0.91) It will not work with smarty tags.

It is not pretty but it works. It could be nice is somehow this could be standard in FMS. (Not with my code :) but something that will do the same)

Code: Select all

global $gCms;
$hm =& $gCms->GetHierarchyManager();
$db = &$gCms->db;

/*--- Input parameters --*/
$dateformat = isset($params['dateformat']) ? $params['dateformat'] : "j F Y, G:i" ; 
$show = $params['show'] ? $params['show'] : 4;
$feu1 = $params['feu1'] ? $params['feu1'] : user_id;
$feu2 = $params['feu2'] ? $params['feu2'] : user_id;


/*--- Collect date, user_id and topic_id of last post --*/
/*--------------------------------------------------*/
$query = "SELECT poster_time, poster_id, topic_id FROM ".cms_db_prefix()."module_forum_posts ORDER BY poster_time DESC";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
	$last_post_dates[] = $row['poster_time'];
	$last_post_user_id[] = $row['poster_id'];
	$last_post_topic_id[] = $row['topic_id'];
}
/*---------------------------------------*/


/*--- This create a table where last written posts are beeing showed--*/
/*------------------------------------------------------------------*/
echo "<table border=\"0\" align=\"left\">";

/*--- Run loop over a given number of inputs to be showed--*/
for($i=0; $i<$show; $i=$i+1)
	{

/*--- Collect subject of last post --*/
$query = "SELECT subject FROM ".cms_db_prefix()."module_forum_topics WHERE id  = $last_post_topic_id[$i]";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$last_post_subject = $row[0];
/*---------------------------------------*/



/*--- Collect user data for last post --*/
$query = "SELECT data FROM ".cms_db_prefix()."module_feusers_properties WHERE userid  = $last_post_user_id[$i] AND title = '$feu1'";
$result = mysql_query($query);
$last_post_feu1 = mysql_fetch_array($result);

$query = "SELECT data FROM ".cms_db_prefix()."module_feusers_properties WHERE userid  = $last_post_user_id[$i] AND title = '$feu2'";
$result = mysql_query($query);
$last_post_feu2 = mysql_fetch_array($result);

if (empty($last_post_feu1)) { 
$query = "SELECT username FROM ".cms_db_prefix()."module_feusers_users  WHERE id  = $last_post_user_id[$i]";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$last_user_data = $row[0];
$no_user_data = 1;
}
/*---------------------------------------*/

	echo "<tr><td>";
             echo "<font size=\"1\">";
             echo "<font size=\"1\" color=\"#808080\">i emne: </font>";
             echo "<b>";
	echo "<a href=\"index.php?mact=Forum,cntnt01,topic,0&cntnt01fid=3&cntnt01lang=da_DK&cntnt01property_feu=fornavn&cntnt01prev_link=forum&cntnt01tid=";
             echo $last_post_topic_id[$i];
             echo "&cntnt01returnid=285\">";
	echo $last_post_subject;
	echo "</a>";
	echo "</b>";
             echo "</font>";
             echo "<br>";
             echo "<font size=\"1\" color=\"#808080\">af: </font>";


if ($no_user_data == 1) { 
             echo "<em><font size=\"1\" color=\"#808080\">". $last_user_data ."</font></em>";
}
else {
             echo "<font size=\"1\" color=\"#808080\">".$last_post_feu1[0]." ". $last_post_feu2[0] ."</font>";
}

             echo "<br>";
             echo "<font size=\"1\" color=\"#808080\">". date($dateformat,($last_post_dates[$i])) ."</font>";
	echo "</td></tr>";


$last_user_data = array();
$no_user_data = 0;
	}
echo "</table>";

Re: Forum Made Simple 0.9.1

Posted: Thu Aug 14, 2008 7:14 pm
by tolprogrammer
What are you guys' thoughts on categorizing forums? 

Re: Forum Made Simple 0.9.1

Posted: Sun Oct 19, 2008 10:20 am
by Gust
qido wrote: How about adding support for showing newest post on any selected page.

I created this user defined tag so I can show the newest post on my front page. (Work with FMS 0.91) It will not work with smarty tags.

It is not pretty but it works. It could be nice is somehow this could be standard in FMS. (Not with my code :) but something that will do the same)

Code: Select all

global $gCms;
$hm =& $gCms->GetHierarchyManager();
$db = &$gCms->db;

/*--- Input parameters --*/
$dateformat = isset($params['dateformat']) ? $params['dateformat'] : "j F Y, G:i" ; 
$show = $params['show'] ? $params['show'] : 4;
$feu1 = $params['feu1'] ? $params['feu1'] : user_id;
$feu2 = $params['feu2'] ? $params['feu2'] : user_id;


/*--- Collect date, user_id and topic_id of last post --*/
/*--------------------------------------------------*/
$query = "SELECT poster_time, poster_id, topic_id FROM ".cms_db_prefix()."module_forum_posts ORDER BY poster_time DESC";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
	$last_post_dates[] = $row['poster_time'];
	$last_post_user_id[] = $row['poster_id'];
	$last_post_topic_id[] = $row['topic_id'];
}
/*---------------------------------------*/


/*--- This create a table where last written posts are beeing showed--*/
/*------------------------------------------------------------------*/
echo "<table border="0" align="left">";

/*--- Run loop over a given number of inputs to be showed--*/
for($i=0; $i<$show; $i=$i+1)
	{

/*--- Collect subject of last post --*/
$query = "SELECT subject FROM ".cms_db_prefix()."module_forum_topics WHERE id  = $last_post_topic_id[$i]";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$last_post_subject = $row[0];
/*---------------------------------------*/



/*--- Collect user data for last post --*/
$query = "SELECT data FROM ".cms_db_prefix()."module_feusers_properties WHERE userid  = $last_post_user_id[$i] AND title = '$feu1'";
$result = mysql_query($query);
$last_post_feu1 = mysql_fetch_array($result);

$query = "SELECT data FROM ".cms_db_prefix()."module_feusers_properties WHERE userid  = $last_post_user_id[$i] AND title = '$feu2'";
$result = mysql_query($query);
$last_post_feu2 = mysql_fetch_array($result);

if (empty($last_post_feu1)) { 
$query = "SELECT username FROM ".cms_db_prefix()."module_feusers_users  WHERE id  = $last_post_user_id[$i]";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$last_user_data = $row[0];
$no_user_data = 1;
}
/*---------------------------------------*/

	echo "<tr><td>";
             echo "<font size="1">";
             echo "<font size="1" color="#808080">i emne: </font>";
             echo "<b>";
	echo "<a href="index.php?mact=Forum,cntnt01,topic,0&cntnt01fid=3&cntnt01lang=da_DK&cntnt01property_feu=fornavn&cntnt01prev_link=forum&cntnt01tid=";
             echo $last_post_topic_id[$i];
             echo "&cntnt01returnid=285">";
	echo $last_post_subject;
	echo "</a>";
	echo "</b>";
             echo "</font>";
             echo "<br>";
             echo "<font size="1" color="#808080">af: </font>";


if ($no_user_data == 1) { 
             echo "<em><font size="1" color="#808080">". $last_user_data ."</font></em>";
}
else {
             echo "<font size="1" color="#808080">".$last_post_feu1[0]." ". $last_post_feu2[0] ."</font>";
}

             echo "<br>";
             echo "<font size="1" color="#808080">". date($dateformat,($last_post_dates[$i])) ."</font>";
	echo "</td></tr>";


$last_user_data = array();
$no_user_data = 0;
	}
echo "</table>";
How can I implement this on my website? Can you give a step-by-step installation, qido?

Thanks!

Forum Made Simple 0.9.2

Posted: Thu Oct 23, 2008 7:56 pm
by alby
Tomorrow I release final 0.9.2:

- REWRITE CODE!
- Bugfix: PostgreSQL support, Links inline;
- Added: Support for showing newest post on any selected page with smarty support, Edit topic title if user edit first post, Enable avatar per forum if set;
- Improved: Report to moderators (required CMSMailer), Made BBCode editor optional (Silmarillion)


Very soon I prepare a small howto for use this version (drop requirement of CustomContent).


I drop the Full moderation (published post on approve moderator only) for lack of time testing, will be in 0.9.3.
Silmarillion is preparing the Captcha and Akismet support


Alby

Re: Forum Made Simple 0.9.2

Posted: Sun Oct 26, 2008 4:34 pm
by alby
alby wrote: Tomorrow I release final 0.9.2:
0.9.2 go out

IMPORTANT: There are many name changes in templates from 0.9.X Restore to defaults your templates or check the differences from file orig_template.tpl in Forum/templates/ folder

Alby

Re: Forum Made Simple 0.9.2

Posted: Mon Feb 09, 2009 10:14 pm
by okkebasin
Hi Guys,

First of all I'd like to thank you for the nice Forum! To help my (FE) users to use it, I would like to skip the Forum index page (the default page showing all the Forums) as I have only one. I would like to show my users the topics view, which is defined in the Forum template. It seems however not so easy as to copy the default forum template into the index template?
I hope I didn't overlook something obvious in the documentation/this forum....

Thanks!

By the way; the last posts tag works like a charm!

Re: Forum Made Simple 0.9.X

Posted: Mon Mar 09, 2009 3:41 pm
by the.star
Hi all

I just installed forum made simple v. 0.92. On the frontend it shows the index, but when I click on the forum I created, it simply shows the index again. I have CMSMS 1.52 and pretty url's on. What might be the problem?

Thx and cheers

Sam

Re: Forum Made Simple 0.9.X

Posted: Mon Mar 09, 2009 5:03 pm
by alby
the.star wrote: I just installed forum made simple v. 0.92. On the frontend it shows the index, but when I click on the forum I created, it simply shows the index again. I have CMSMS 1.52 and pretty url's on. What might be the problem?
Check the sintax of your URL if correct:
index.php/alias_forum_page/forum/forum/1/...

Alby

Re: Forum Made Simple 0.9.X

Posted: Thu Mar 12, 2009 9:42 pm
by the.star
hi alby

thanks for the quick response. I created one forum. When I click on this forum on the overview, the page reloads and the url is the following:

http://www.domain.tld/some-item/sub-ite ... rum/1/1/58

but I still get the overview instead of the forum page.

What could be the problem?

Thanks and cheers

Re: Forum Made Simple 0.9.X

Posted: Thu Mar 12, 2009 10:08 pm
by alby
the.star wrote: What could be the problem?
Have you follow the howto?

Alby

Re: Forum Made Simple 0.9.X

Posted: Thu Mar 12, 2009 11:33 pm
by the.star
alby

thanks for your prompt answer. I appreciate your help.

Yes, I read the howto.

The site and its member area (three FE user group [customers,partners,employees]) already existed. I just added the forum.

"Cachable" is unchecked. I even increased the number of forums to three as mentioned in the howto ("Add three forums") although I didn't believe it would have an impact ;-)

I already created more than 5 websites with cmsms, but never used the forum module before.

Re: Forum Made Simple 0.9.X

Posted: Fri Mar 13, 2009 1:14 pm
by alby
the.star wrote: "Cachable" is unchecked. I even increased the number of forums to three as mentioned in the howto ("Add three forums") although I didn't believe it would have an impact ;-)
Not important.
You have other modules in this page and relative template?

Alby

Re: Forum Made Simple 0.9.X

Posted: Mon Mar 16, 2009 2:47 pm
by the.star
Alby,

I have some global content blocks in the template and in the body the following code (of course here in a simplified version):


{cms_module module=CustomContent}

{if $ccuser->loggedin() && $ccuser->memberof('Customers')}
{cms_module module=FrontEndUsers form='logout'}

Information for customers (content blocks and individual tags)

{* Partners *}
{elseif $ccuser->loggedin() && $ccuser->memberof('Partners')}
{cms_module module=FrontEndUsers form=logout}

Information for partners (content blocks and individual tags)

{* Employees *}
{elseif $ccuser->loggedin() && $ccuser->memberof('Employees')}

{cms_module module="Forum"}

{else}

{cms_module module=FrontEndUsers form=login}

{/if}


Could the CustomContent Module be a problem?

Thx.