News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Help to Display Message Index In the Forum Home Page

Started by lisa27, August 05, 2013, 09:03:20 PM

Previous topic - Next topic

lisa27

I am new to sm and I am very happy with it, I worked with phpbb in the past and I can tell you that smf makes things so much easier and stable.

I am trying to set a small forum, One Main Category, One Main board and all the topics will be created there, I need to find a way to display all the topics in the home page, not sure if I explain myself, english is my second language.

Right now in my home page i get

Category
  Board Link

Visitors need to click in Board Link to get a list of all the topics, I want the topics to show in the homepage without the additional click.

I have not been able to find anything about this, if there is a code change or some type of modification, I really appreciate your help.

Lisa

Kindred

there is no good way to do that without completely recoding the system.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

lisa27

thank you for your prompt reply, can the link to the Home page be changed? Like when someone arrives the forum instead of calling index.php, to call index.php/board,5.0.html

Can the portal mod help with this?

Biology Forums

Quote from: lisa27 on August 05, 2013, 10:00:57 PM
thank you for your prompt reply, can the link to the Home page be changed? Like when someone arrives the forum instead of calling index.php, to call index.php/board,5.0.html

Can the portal mod help with this?

Not totally getting it, you want to make your URLs pretty? (If so, http://custom.simplemachines.org/mods/index.php?mod=636) Or you'd like your homepage to be a particular board?


Kindred

Liam, she wants the homepage to start inside the board (the messageindex, as she says)

lisa27,

Sorry, but there really is no good way to do that - and no... that's not what the portal mods do. Actually, portal mods usually ad another layer before you get into the messageindex section.
BTW: get rid of the silly "SEF" URLS.... they don't do any good what-so-ever toward seo and they can actually make things more difficult later on.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

kat

For what it's worth, I suspect that you could change things, a bit, so that the "Home" button pointed to something like http://www.yourforum.com/index.php?board=147.0

Not exactly what you're after. But... ;)

margarett

Actually I think there is an easy trick. Nothing fancy, but it works :)

Index.template.php
find:

// The main sub template above the content.
function template_html_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

Add after:

if (empty($context['current_topic']) && empty($context['current_board']) && empty($context['current_action']))
header( 'Location: http://localhost/smf2/index.php?board=1.0' ) ;

Adjust your forum path and desired board and there you go ;)
As long as you have not requested a board, topic or action, this trick automatically redirects you to your board

Of course you will have no chance to return to BoardIndex, but from your description, that's not something you are not interested in...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: