The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Show threads on home page

View previous topic View next topic Go down

Show threads on home page

Post by Synapse11 on August 22nd 2014, 11:07 am

I posted this in appearance forum but I guess it's more down to coding so maybe a programmer can I help me. I am using Invision.

In Index_box template, the categories of the forum are shown in the heirarchy followed by forums and subforums.

Code:

<table cellpadding="0" cellspacing="0" id="{catrow.tablehead.ID}" class="ipbtable index-box">
<thead>
<tr>
<th class="forum">{L_FORUM}</th>
<th class="topics">{L_TOPICS}</th>
<th class="replies">{L_POSTS}</th>
<th class="last post-info">{L_LASTPOST}</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4">
Code:
</td>
</tr>
</tfoot>
<tbody>
<!-- END tablehead -->
Code:
<!-- BEGIN forumrow -->
<tr>
<td class="row2 icon" style="padding-right: {catrow.forumrow.INC_LEVEL_RIGHT}; padding-left: {catrow.forumrow.INC_LEVEL_LEFT};">
<span class="status clearfix" style="margin-right: -{catrow.forumrow.INC_WIDTH_ICON}; margin-left: -{catrow.forumrow.INC_WIDTH_ICON};">
<img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" class="icon" />
</span>
<div class="par forum-name">
<h{catrow.forumrow.LEVEL} class="hierarchy"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumtitle">{catrow.forumrow.FORUM_NAME}</a></h{catrow.forumrow.LEVEL}>
<p class="forum-desc">{catrow.forumrow.FORUM_DESC}</p>



In topics_List template, there is a list of topics for that forum:

Code:

<!-- BEGIN header_row -->
<strong>{topics_list_box.row.L_TITLE}</strong>
<!-- END header_row -->
Code:
<!-- BEGIN topic -->
<!-- BEGIN table_sticky -->
</tbody>
</table>
Code:

<div class="maintitle">
<h2>{topics_list_box.row.topic.table_sticky.L_TITLE}</h2>
</div>
<table cellspacing="0" cellpadding="0" class="ipbtable">
<thead>
<tr>
<th class="icon"></th>
<th class="icon"></th>
<th class="forum2">{topics_list_box.row.topic.table_sticky.L_TITLE}</th>
<th class="topics">{topics_list_box.row.topic.table_sticky.L_REPLIES}</th>
<th class="starter">{topics_list_box.row.topic.table_sticky.L_AUTHOR}</th>
<th class="views">{topics_list_box.row.topic.table_sticky.L_VIEWS}</th>
<th class="last last-post2">{topics_list_box.row.topic.table_sticky.L_LASTPOST}</th>



How can I amend Index_Box so that the index shows a list of topics instead of a list of forums? I only one forum, and I wish for the list of topics to be the homepage rather than an index.

I'm sure there's a way...

Synapse11
New Member

Posts : 13
Reputation : 2
Language : English

Back to top Go down

Re: Show threads on home page

Post by Synapse11 on August 22nd 2014, 2:19 pm

Nvm this was really easy. In the index template:

<meta http-equiv="refresh" content="0; url=http://www.diprepublic.net/f6-anything-goes" />

Synapse11
New Member

Posts : 13
Reputation : 2
Language : English

Back to top Go down

Re: Show threads on home page

Post by esimbets on August 22nd 2014, 3:44 pm

@Synapse11 wrote:Nvm this was really easy. In the index template:

<meta http-equiv="refresh" content="0; url=http://www.diprepublic.net/f6-anything-goes" />
did you had that in index tamplate or did you add it? cuz in index_body tamplate I can't find it

esimbets
New Member

Posts : 5
Reputation : 1
Language : English

http://esimbets.forums.net.bz

Back to top Go down

Re: Show threads on home page

Post by Synapse11 on August 22nd 2014, 3:51 pm

I added it. It redirects the index page to the forum every time.
However meta redirecting is frowned upon by google and the like as it smells like a virus.

Synapse11
New Member

Posts : 13
Reputation : 2
Language : English

Back to top Go down

Re: Show threads on home page

Post by SLGray on August 22nd 2014, 6:26 pm

Please do not post mutli-threads about the same issue/question. Since your other topic has been archived, this will be garbaged.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36659
Reputation : 2444
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum