ElkArte Community

Extending Elk => Addons => Topic started by: inter on September 17, 2016, 02:47:30 am

Title: [addon] Flarum Style
Post by: inter on September 17, 2016, 02:47:30 am
For testing.

Description: this addon is your home page will look similar as https://discuss.flarum.org/

Download (https://github.com/interlab/elk-flarum-style/archive/master.zip) | Github (https://github.com/interlab/elk-flarum-style) | MIT License

@ahrasis  go here ;D

How to Use in ElkArte 1.1:
Home -> Administration Center -> Features and Options -> Layout
Select the action to show on the front page: Flarumstyle addon
Title: Re: [addon] Flarum Style
Post by: ahrasis on September 17, 2016, 03:46:15 am
I'm here already.  :D
Title: Re: [addon] Flarum Style
Post by: meetdilip on September 17, 2016, 07:00:55 am
@inter , awesome share. :thumbsup:

Any chance that someone can use a Font Awesome icon instead of plain square on listing ?
Title: Re: [addon] Flarum Style
Post by: inter on September 17, 2016, 10:57:08 am
Take a screenshot, I do not understand.

"Load More" button is still not done, but I had already done in other modules, so the difficulty will not be.
Title: Re: [addon] Flarum Style
Post by: ahrasis on October 11, 2016, 03:27:44 am
I can see that this is now version v0.2.1 at your github. Great!

I haven't tried it yet and will do soon.

Anyway, have you fixed its look in mobile view yet?
Title: Re: [addon] Flarum Style
Post by: inter on October 11, 2016, 03:35:24 am
No, mobile version does not work as the original.
Title: Re: [addon] Flarum Style
Post by: ahrasis on October 11, 2016, 03:47:43 am
From what I can see, they (flarum) simply hide the list of boards into a button [All Discussions] in mobile view and that when it is clicked, it listed all of them. I think that can be achieved using css or jquery + css.

For the menu, as far as I knew, they are using bootstrap to create that hamburger menu which if clicked, will slide the main menu. I am not so sure if we can do that using what we have now (from our ElkArte default).

Anyway, none of these are necessary to me. What you have done so far is already great. Thank you for the addon.
Title: Re: [addon] Flarum Style
Post by: Trekkie101 on January 06, 2017, 01:35:23 pm
Hadn't seen this before, great stuff.
Title: Re: [addon] Flarum Style
Post by: Faithauro on January 17, 2017, 11:44:40 pm
Please i need help my boards list are not functioning, instead to take me to board's topics (Link-4414)
Title: Re: [addon] Flarum Style
Post by: ahrasis on January 18, 2017, 03:03:01 am
Which version are you using for the addon?
Title: Re: [addon] Flarum Style
Post by: inter on January 18, 2017, 03:03:43 am
Quote from: Faithauro – Please i need help my boards list are not functioning, instead to take me to board's topics [attach]4414[/attach]
F12
in the console there are errors? I need to see them


You need to use the latest version of this add-on.
Title: Re: [addon] Flarum Style
Post by: Faithauro on January 19, 2017, 04:41:34 pm
Quote from: ahrasis – Which version are you using for the addon?

Sorry for the late reply, I am using version 0.2.3
Title: Re: [addon] Flarum Style
Post by: inter on January 20, 2017, 03:31:28 am
Search engine friendly URLs must be Off. I will try to fix it.

Fixed in v0.3.0
Title: Re: [addon] Flarum Style
Post by: bsi on March 02, 2017, 01:56:11 am
@inter
May I have your board theme.
It's awesome and really great with full width and simple, clear and easy reading layout.
Title: Re: [addon] Flarum Style
Post by: inter on March 02, 2017, 06:31:44 am
[theme] Mostly Blue (http://www.elkarte.net/community/index.php?topic=3682.0)
Title: Re: [addon] Flarum Style
Post by: ahrasis on August 29, 2017, 10:11:07 pm
It's version 0.4.2 now. This is growing very fast behind my radar. Congratulations!
Title: Re: [addon] Flarum Style
Post by: ahrasis on November 27, 2017, 09:07:01 pm
Now is version 5.0 and supporting 1.1? Great job.
Title: Re: [addon] Flarum Style
Post by: forumovod on August 23, 2020, 11:25:26 pm
Hi !
How do I show posts only from selected topics? Now the main page of the forum shows posts from all topics. There is no option to display topics in the settings.
Title: Re: [addon] Flarum Style
Post by: inter on August 24, 2020, 06:01:38 am
Quote from: forumovod – Hi !
How do I show posts only from selected topics? Now the main page of the forum shows posts from all topics. There is no option to display topics in the settings.

do you want to show topics by topic IDs or by forum / forums ID?
You can do this yourself by tweaking the sql code a little

do you need to show a list of names or titles with the message text? look towards the simple portal - https://www.elkarte.net/community/index.php?topic=1399.0
Title: Re: [addon] Flarum Style
Post by: forumovod on August 24, 2020, 11:57:55 am
@inter ,

The problem is that on my forum, the list of recent responses shows posts from the "forum Administration" section. But this does not need to be shown on the main page of the forum.

(Link-6564)

The SMF engine has a mod Hiding posts from recent posts. There you can specify which topics to display the latest messages on the main page of the forum. Can you add the same selection of themes to the addon Flarum Style?

(Link-6562)
Title: Re: [addon] Flarum Style
Post by: forumovod on September 26, 2020, 11:12:41 pm
The addon is interesting. But to make it look like a modern Flarum Style and meet the requirements of Google for mobile devices, the addon needs a small update.
Title: Re: [addon] Flarum Style
Post by: augras on January 19, 2021, 02:11:30 pm
Hi,
I just try it and i like : thank you.
Is there a simple way to translate the addon ?
Philippe
Title: Re: [addon] Flarum Style
Post by: augras on January 19, 2021, 02:37:03 pm
I got it !
The files for the french translation
Title: Re: [addon] Flarum Style
Post by: augras on January 20, 2021, 04:25:17 am
Hi,
i have a lot of errors, 184 pages, always the same errors :

    Mercredi 20 Janvier 2021, 10:14:39
    Type d'erreur: Non défini
    Notice: Undefined index: assist
    https://xxxxxxxforum/index.php?
    Fichier: ........./sources/subs/FlarumStyle.subs.php
    Ligne: 198


    Mercredi 20 Janvier 2021, 10:14:39
    Type d'erreur: Générale
    Notice: Trying to access array offset on value of type null

    https://xxxxxxxxxxxxforum/index.php?

    Fichier: ........../sources/subs/BBC/BBCParser.php
    Ligne: 285

Philippe
Title: Re: [addon] Flarum Style
Post by: inter on January 20, 2021, 08:30:25 am
fixed for ElkArte 1.1
Title: Re: [addon] Flarum Style
Post by: augras on January 20, 2021, 12:27:51 pm
Thank you : you have made it very fast !
And it works fine.
Title: Re: [addon] Flarum Style
Post by: augras on January 21, 2021, 02:27:22 am
Hi,
i have a different  problem now, with icons and the links Categories and All discussions doesn't work.
I need to connect with an account, not neccessary an admin, and everything works, a time, even when i'm disonnected.
Title: Re: [addon] Flarum Style
Post by: inter on January 21, 2021, 04:53:22 am
Press F12 -> Console, and take a screenshot. And show it here.
Title: Re: [addon] Flarum Style
Post by: augras on January 22, 2021, 02:59:25 am
Hi,
it seems that it's only on http  : https seems always ok.
On http fontawesome icons can't be access.
Title: Re: [addon] Flarum Style
Post by: augras on April 03, 2021, 05:16:55 am
Hi @inter,
I don't know if it is normal or not, i think no :).
I'm wilth elkarte's last patch 1.1.7.
When you make a post you can choose an icon : in Categories this icon is this one from the first post by the topic author, but Flarum displays this one from the last post, and in fact it's always the same, the icon by default.
I tried to download a screenshot but it doesn't work (png 42.42 kb).It works now :
(Link-6988)
Do you think it is possible to display the icon choosen by the author of the topic like in Categories ?
Philippe
Title: Re: [addon] Flarum Style
Post by: inter on April 05, 2021, 06:18:42 am
Quote from: augras – Hi,
it seems that it's only on http  : https seems always ok.
On http fontawesome icons can't be access.

you need to redirect from http to https



Quote from: augras – Hi @inter,
I don't know if it is normal or not, i think no :).
I'm wilth elkarte's last patch 1.1.7.
When you make a post you can choose an icon : in Categories this icon is this one from the first post by the topic author, but Flarum displays this one from the last post, and in fact it's always the same, the icon by default.
I tried to download a screenshot but it doesn't work (png 42.42 kb).It works now :
(Link-6988)
Do you think it is possible to display the icon choosen by the author of the topic like in Categories ?
Philippe


do you want to always display the icon of the first post of the topic?

FILE:
/(...)/sources/subs/FlarumStyle.subs.php

FIND:
Code: [Select]
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . ', SUBSTRING(ml.body, 1, 384) AS body, ml.smileys_enabled, ml.icon

REPLACE:
Code: [Select]
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . ', SUBSTRING(ml.body, 1, 384) AS body, ml.smileys_enabled, mf.icon
Title: Re: [addon] Flarum Style
Post by: augras on April 05, 2021, 07:14:23 am
Yes, i want it always.
I made the change, just one letter, and it works as i want.
Thank you.
Do you think it can be an option to choose in FlarumStyle parameters ?
Title: Re: [addon] Flarum Style
Post by: inter on April 05, 2021, 08:06:12 am
coming soon to Github
Title: Re: [addon] Flarum Style
Post by: augras on April 05, 2021, 09:52:39 am
Great.
I will update the french translation.
Title: Re: [addon] Flarum Style
Post by: augras on April 05, 2021, 10:15:54 am
I made the translation on github : i don't know how it works after that.
Title: Re: [addon] Flarum Style
Post by: inter on April 05, 2021, 10:50:23 am
Quote from: augras – I made the translation on github : i don't know how it works after that.
I merged your branch. Thanks for the help!
Title: Re: [addon] Flarum Style
Post by: augras on April 05, 2021, 10:51:55 am
:)
Title: Re: [addon] Flarum Style
Post by: inter on May 12, 2022, 09:34:05 am
Update the addon. An important security fix.
Title: Re: [addon] Flarum Style
Post by: tabbycph on December 06, 2023, 09:34:28 am
Thanks for the addon.
How can I show topics like flarum like the frontpage, in other places on the forum, like as in the board index, so all listing is like flarum.