Table view and linear view as default (General)

by sachin, Thursday, March 05, 2009, 08:33 (5502 days ago)

Hello sir,
How to make table view as the default view of the forum for the visitors and linear view as default to view posts. Also how to remove the 'post reply' link from each replies to a topic and make it visible only on bottom.

Thanx!!

Avatar

Table view and linear view as default

by Alex ⌂, Saturday, March 07, 2009, 09:48 (5500 days ago) @ sachin

How to make table view as the default view of the forum for the visitors and linear view as default to view posts. Also how to remove the 'post reply' link from each replies to a topic and make it visible only on bottom.

You can change the default view in Forum settings → Advanced settings → default_view (set to 1). Everything else id "hard coded" and code modifications would be necessary. But I really recommend to use a common linear bulletin board if you prefer the linear view! This one is primarily a threaded/tree-structured forum.

Alex

Table view and linear view as default

by erikp., Friday, April 17, 2009, 16:47 (5459 days ago) @ Alex

I have two related questions:

1. Is there an easy way to make unthreaded view the default view?

2. Is there any easy way to make "order by last reply" the default?

Thanks in advance!

/Erik Persson

linear view rocks

by mark knoffer, Friday, July 03, 2009, 22:08 (5382 days ago) @ Alex

its a pity that the linear view can not be made by default,
i like this forum software much more than any other.

:-(

if somebody knows how to hardcode this modification,
please share!

linear view rocks

by knoffs, Saturday, July 04, 2009, 15:22 (5381 days ago) @ mark knoffer

just found it out how to get default linear view ...

in /includes/thread.inc.php find ..

if($thread_display==0) $smarty->assign('subtemplate','thread.tpl.inc');
else $smarty->assign('subtemplate','thread_linear.tpl.inc');


replace with ..

if($thread_display==0) $smarty->assign('subtemplate','thread.tpl.inc');
else $smarty->assign('subtemplate','thread_linear.tpl.inc');

_______________________________________________

in /templates/templatename/subtemplates/subnavigation_2 find ..


{if $usersettings.thread_display==0}<span class="small"><a href="index.php?mode=thread&amp;id={$id}&amp;toggle_thread_display=true" title="{#thread_linear_linktitle#}"><img src="templates/{$settings.template}/images/thread_linear.png" alt="" width="12" height="8" />{#thread_linear#}</a></span>{else}<span class="small"><a href="index.php?mode=thread&amp;id={$id}&amp;toggle_thread_display=true" title="{#thread_hierarchical_linktitle#}"><img src="templates/{$settings.template}/images/thread_hierarchical.png" alt="" width="12" height="8" />{#thread_hierarchical#}</a></span>{/if}

replace with ..

{if $usersettings.thread_display==0}<span class="small"><a href="index.php?mode=thread&amp;id={$id}&amp;toggle_thread_display=true" title="{#thread_hierarchical_linktitle#}"><img src="templates/{$settings.template}/images/thread_hierarchical.png" alt="" width="12" height="8" />{#thread_hierarchical#}</a></span>{else}<span class="small"><a href="index.php?mode=thread&amp;id={$id}&amp;toggle_thread_display=true" title="{#thread_linear_linktitle#}"><img src="templates/{$settings.template}/images/thread_linear.png" alt="" width="12" height="8" />{#thread_linear#}</a></span>{/if}

linear view rocks

by grognard, Thursday, October 03, 2013, 04:47 (3830 days ago) @ knoffs
edited by grognard, Thursday, October 03, 2013, 04:57

just found it out how to get default linear view ...

in /includes/thread.inc.php find ..

if($thread_display==0) $smarty->assign('subtemplate','thread.tpl.inc');
else $smarty->assign('subtemplate','thread_linear.tpl.inc');


replace with ..

if($thread_display==0) $smarty->assign('subtemplate','thread.tpl.inc');
else $smarty->assign('subtemplate','thread_linear.tpl.inc');

Typo? These are identical..

in /templates/templatename/subtemplates/subnavigation_2 find ..


{if $usersettings.thread_display==0}<span class="small"><a href="index.php?mode=thread&amp;id={$id}&amp;toggle_thread_display=true" title="{#thread_linear_linktitle#}"><img src="templates/{$settings.template}/images/thread_linear.png" alt="" width="12" height="8" />{#thread_linear#}</a></span>{else}<span class="small"><a href="index.php?mode=thread&amp;id={$id}&amp;toggle_thread_display=true" title="{#thread_hierarchical_linktitle#}"><img src="templates/{$settings.template}/images/thread_hierarchical.png" alt="" width="12" height="8" />{#thread_hierarchical#}</a></span>{/if}

replace with ..

{if $usersettings.thread_display==0}<span class="small"><a href="index.php?mode=thread&amp;id={$id}&amp;toggle_thread_display=true" title="{#thread_hierarchical_linktitle#}"><img src="templates/{$settings.template}/images/thread_hierarchical.png" alt="" width="12" height="8" />{#thread_hierarchical#}</a></span>{else}<span class="small"><a href="index.php?mode=thread&amp;id={$id}&amp;toggle_thread_display=true" title="{#thread_linear_linktitle#}"><img src="templates/{$settings.template}/images/thread_linear.png" alt="" width="12" height="8" />{#thread_linear#}</a></span>{/if}

Hmm. Is this still valid? I love the threaded index of my forum, but when people switch to 'Open in thread' I would like Linear by default.

RSS Feed of thread