FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Forum Styles » New forum style and functionality (Lots of tweaks)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
New forum style and functionality [message #157812] Wed, 13 August 2008 00:21 Go to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
http://www.ginnunga.org

Basically a lot of the forum functions are being used to make the forum mimic a CMS, where different areas of the forum look differently.

Other functionalities I added were:
* thumbnail generation of attached images
* quick reply
* preview in flashplayer of movie attachments
* Banner depending on which page one is at
* Random movie snapshot display
* online gaming application system integrated (could easily be used as an event handler, or todo list, etc as well)


There are still a few bugs here and there, but the site is my baby, so I don't mind keeping giving her attention =)


Re: New forum style and functionality [message #157839 is a reply to message #157812] Tue, 02 September 2008 20:20 Go to previous messageGo to next message
littleking is currently offline  littleking   United States
Messages: 187
Registered: January 2007
Karma: 2
Senior Member
how do we do quick reply? i would LOVE that
icon14.gif  Re: New forum style and functionality [message #157938 is a reply to message #157812] Sun, 28 December 2008 23:15 Go to previous messageGo to next message
WITCH is currently offline  WITCH   United States
Messages: 42
Registered: December 2006
Location: Illinois USA.
Karma: 0
Member
Now that is impressive!


I am new to this so explain things very, very carefully!
Re: New forum style and functionality [message #159443 is a reply to message #157938] Wed, 03 June 2009 13:14 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
The code for adding a quick reply box is available at http://fudforum.org/forum/index.php?t=msg&goto=34035
Re: New forum style and functionality [message #159473 is a reply to message #159443] Thu, 04 June 2009 23:20 Go to previous messageGo to next message
nozafc is currently offline  nozafc   United Kingdom
Messages: 75
Registered: April 2009
Karma: 0
Member
naudefj wrote on Wed, 03 June 2009 14:14
The code for adding a quick reply box is available at http://fudforum.org/forum/index.php?t=msg&goto=34035


Will that work on 2.8.1 do you know ?
Re: New forum style and functionality [message #159478 is a reply to message #159473] Fri, 05 June 2009 05:49 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Yes, I've got it working. I will post a new patch later in the above mentioned thread.
Re: New forum style and functionality [message #161015 is a reply to message #159478] Tue, 10 November 2009 10:55 Go to previous messageGo to next message
INVY is currently offline  INVY   Italy
Messages: 33
Registered: November 2009
Karma: 0
Member
http://www.ginnunga.org = Joomla + FUDforum?

Re: New forum style and functionality [message #161017 is a reply to message #157812] Tue, 10 November 2009 14:38 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
No not at all, it's all FUDforum - used to have a Joomla setup, but had a catasrophic HD crash a few years back and then we switched to only using FUD

[Updated on: Tue, 10 November 2009 14:39]

Report message to a moderator

Re: New forum style and functionality [message #161067 is a reply to message #161017] Thu, 12 November 2009 20:42 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Any chance of sharing your modifications with us. It would be great if we can add some basic blogging and CMS functionality to FUDforum.
Re: New forum style and functionality [message #161076 is a reply to message #161067] Thu, 12 November 2009 22:25 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
Sure, but it's rather ugly hehe.

What I did was that I created a special forum called "Site Content" - I hid this forum from the users, so they can read it, but its not visible.

I then checked what ID that forum had.

Then I just added IF statements in the template system, to draw the messages in that specific forum differently from all the others.

So in drawmsg.tmpl it would look like this under the message_entry field:

{SECTION: message_entry}
{IF: ($obj->forum_id == 118 || $obj->forum_id == 119)}
{TEMPLATE: dmsg_news_post}
{ELSE}
{IF: ($obj->forum_id == 124)}
{TEMPLATE: dmsg_downloads_post}
{ELSE}
{TEMPLATE: dmsg_regular_post}
{END}
{SECTION: END}

Then I just added sub templates which contains the layouts.


In the downloads section, I wanted the first post to look different than the rest of the posts in the topic - simple IF statement again and shabaam, Stylized first post, with simple styled comments to the main thing:

{SECTION: dmsg_downloads_post}
{IF: ($obj->root_msg_id == $obj->id && $obj->forum_id == 124)}
<tr><td></td><td>
<div style="padding: 3px; margin: 0px 2px; border: 0px solid #aaaaaa; background: none;">
<span style="float: right;">{TEMPLATE-DATA: edit_link} {IF: $perms & 32}[ <a href="{TEMPLATE: dmsg_delete_link_lnk}">Delete</a> ]{ENDIFI}</span>
{IF: $obj->icon}<div class="img_shadow"><img src="images/message_icons/{VAR: obj->icon}" alt="{VAR: r[3]}" align="left" style="padding: 0px;"/></div>{ENDIF}
{TEMPLATE-DATA: drawmsg_file_attachments}
<div style="clear: both;"></div>
<div style="position: relative; left: 71px;clear: right;" class="img_shadow">
<div class="img_shadow_div" style="width: 506px; padding: 10px 5px; background-color:#FCFCFC; background-image:url({THEME_IMAGE_ROOT}/content_bg.jpg); background-position:right top; background-repeat:no-repeat;">{TEMPLATE-DATA: msg_body}</div></div>
<div style="clear: both;"></div>
<div style="position: relative; width: 630px;">
<!-- <span style="color: #666666;font-size: 9pt;">Written by {VAR: user_login} {TEMPLATE: dmsg_post_date}</span>
<br> -->
</div>
</div></td><td>
</td></tr>
{ELSE}
{TEMPLATE: dmsg_news_comment}
{END}
{SECTION: END}


Something like that. When I started all that, FUD didn't have the plugin system it has now, maybe it would have been possible to do something similair but much better with that.

Oh yeah, forgot to mention - In the news post thing, it has to be sorted in a reversed order, so you have to also edit the thread.php.t file I think and add an IF statement about the forum ID there aswell, to sort it reversed, I did it like this, on row 21 in my version of the forum:
if ($frm->id == 118 || $frm->id == 124) {
$sort_order = 't.id';
} ELSE { 
$sort_order = 'tv.seq';
} 

	$result = q('SELECT
		m.attach_cnt, m.poll_id, m.subject, m.icon, m.post_stamp,
		u.alias, u.id,
		u2.id, u2.alias,
		m2.id, m2.post_stamp,
		f.id, f.name,
		t.id, t.moved_to, t.root_msg_id, t.replies, t.rating, t.thread_opt, t.views, 
		r.last_view, t.n_rating, t.tdescr
		FROM {SQL_TABLE_PREFIX}tv_'.$frm_id.' tv
			INNER JOIN {SQL_TABLE_PREFIX}thread	t	ON tv.thread_id=t.id
			INNER JOIN {SQL_TABLE_PREFIX}msg	m	ON t.root_msg_id=m.id
			INNER JOIN {SQL_TABLE_PREFIX}msg	m2	ON m2.id=t.last_post_id
			LEFT JOIN {SQL_TABLE_PREFIX}users	u	ON u.id=m.poster_id
			LEFT JOIN {SQL_TABLE_PREFIX}users	u2	ON u2.id=m2.poster_id
			LEFT JOIN {SQL_TABLE_PREFIX}forum	f	ON f.id=t.moved_to
			LEFT JOIN {SQL_TABLE_PREFIX}read 	r	ON t.id=r.thread_id AND r.user_id='._uid.'
			WHERE tv.seq BETWEEN '.($lwi - ($cur_frm_page * $THREADS_PER_PAGE) + 1).' AND '.($lwi - (($cur_frm_page - 1) * $THREADS_PER_PAGE)).'
			ORDER BY ' . $sort_order . ' DESC');


Re: New forum style and functionality [message #161077 is a reply to message #161076] Thu, 12 November 2009 22:27 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
I have done so many changes, so it's not possible to list all of it, but if there is something specific, i'll gladly present the code.

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Dark Orange
Next Topic: Wich is the best php editor
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 14:01:45 GMT 2024

Total time taken to generate the page: 0.02751 seconds