Forumlar / Cotonti / Core Labs / Better forums

DemptD
#1 2009-03-18 01:06
I would like to see a better forum system.

    When a user has no signature set it doesnt show up at all in the forum (like phpBB).
    A good attach feature.

More will come just have to remember all the things i found.
TwistedGA
#2 2009-03-18 01:38
After a look around and a few minutes in ConTEXT, I came up with a solution to your first request.

Required two files being edited. core/forums/forums.posts.inc.php and skins/forums.posts.tpl.

I added:
	$signature = "<hr />\n<div class='signature'>".$row['user_text']."</div>";

	if ($row['user_text'] == '')
        {
          $signature = "";
        }
Above the array assignment for the FORUMS_POSTS_ROW items...

Then I changed:
		"FORUMS_POSTS_ROW_USERTEXT" => $row['user_text'],
to:
		"FORUMS_POSTS_ROW_USERTEXT" => $signature,

And finally, inside the forums.posts.tpl, I removed the <div> tags around:
{FORUMS_POSTS_ROW_USERTEXT}

Works awsome.. Really does help remove the unsghtlyness of not having a signature stored.
[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]
DemptD
#3 2009-03-18 02:49
# TwistedGA : After a look around and a few minutes in ConTEXT, I came up with a solution to your first request.

Required two files being edited. core/forums/forums.posts.inc.php and skins/forums.posts.tpl.

I added:
	$signature = "<hr />\n<div class='signature'>".$row['user_text']."</div>";

	if ($row['user_text'] == '')
        {
          $signature = "";
        }
Above the array assignment for the FORUMS_POSTS_ROW items...

Then I changed:
		"FORUMS_POSTS_ROW_USERTEXT" => $row['user_text'],
to:
		"FORUMS_POSTS_ROW_USERTEXT" => $signature,

And finally, inside the forums.posts.tpl, I removed the <div> tags around:
{FORUMS_POSTS_ROW_USERTEXT}

Works awsome.. Really does help remove the unsghtlyness of not having a signature stored.

Wohhoo! Thats great, thanks! :-D
TwistedGA
#4 2009-03-18 03:07
Maybe it'll make it into the core, if not, it can be had here atleast.. LOL
[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]