Advertisement:

Author Topic: Is it possible to make this front page with SimplePortal?  (Read 512 times)

Offline Dwev

  • Semi-Newbie
  • *
  • Posts: 23
Is it possible to make this front page with SimplePortal?
« on: November 10, 2017, 10:42:44 AM »
I'm the editor of a popular homepage and forum everything to do with Apple in Holland, the homepage can be seen at macfreak.nl or in the attached screenshot

When searching for a good replacement forum I found SMF, and so far it looks like a good replacement for the current forum.

So I'm curious if I can make my homepage in SMF as well, with the help of SimplePortal.

I'd like to keep the news on the left, and a list of clickable titles of the currently active forum threads on the right.
I've managed to get something working on may test site (robert-benschop.nl/smf/index.php), but still quite a few questions remain:

• Is it possible to cut off articles after a set number of lines, instead of a set number of characters?
• If people click on Read More they are immediately referred to the forum, how can I keep them in the articles/news itself?
• Can I set a maximum width for blocks?
• Is it possible to chose what I want visible for the display the titles of the Recent Posts (preferably just the time and/or dat, title en number of reactions).

Any help is appreciated.

Offline Gluz

  • Native Language Support Specialist
  • Sr. Member
  • *
  • Posts: 944
  • Gender: Male
Re: Is it possible to make this front page with SimplePortal?
« Reply #1 on: November 12, 2017, 06:38:38 PM »
If the theme in the forum is not similar to the one in the front page, you can install another Theme and use that for the front page, SimplePortal have that option to have different style in the front page than in the forum itself.


- There is no way to set it up to certain amount of lines, but there is a BBCode-style tag that can be used for that to tell the portal just load till there. Just put [cutoff] where you want to be cut off from the front page and it will show just before the tag.

- There is no separate view for articles, they are posts from the forum and SMF have no separate view for posts, you are redirected to the forum post to read the full post.

- You can set the width of the Blocks in the SimplePortal Configuration page in the Admin panel, it's fixed, if you want it to be a Max-width instead, you need to edit the Portal.template.php to be the max-width instead.

- When configuring the Block of Recent Posts, set it up to Type: Compact, that way it only shows the title, the autor of the post, and the date. If you want to display other info besides that, you have to look at the SSI.php and the info it generates, but most likely you need to edit PortalBlocks.php and SSI.php to fetch that info (number of reactions, I don't know if that is something lost in translation, but the only thing I can think of is the number of views).
Need help with PHP, HTML, CSS, Themes or MODs?

Quote
Think in spanish, habla en inglés.

Online Dzonny

  • Lead Localizer
  • SMF Super Hero
  • *
  • Posts: 11,576
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: Is it possible to make this front page with SimplePortal?
« Reply #2 on: November 13, 2017, 06:24:44 AM »
You already got an answer here:
https://www.simplemachines.org/community/index.php?topic=557012.msg3947476#msg3947476

It's possible that the best way to go here would be TinyPortal, although SP can most likely do similar thing.