ElkArte Community

Extending Elk => Addons => Topic started by: Adrek on November 20, 2014, 02:04:52 pm

Title: [ADDON] Topic Author
Post by: Adrek on November 20, 2014, 02:04:52 pm
Topic Author


This mod is simple - it adds small icon next to name of user who started topic. Useful in topics with several pages - you always know who started viewed topic.
Currently there are two icons available, star and 'comment cloud', both are taken from Font Awesome which is included in ElkArte by default.

I hope that it does not cause any styling issues ::)

Big thanks for @emanuele for helping with resolving some problems with this mod :)

Download: Addon installation file can be downloaded from attachment.
Compatibility: ElkArte 1.0.1 and newer.
License: MPL 1.1, http://www.mozilla.org/MPL/1.1/
Title: Re: [ADDON] Topic Author
Post by: emanuele on November 20, 2014, 05:42:12 pm
Cool! :D
Title: Re: [ADDON] Topic Author
Post by: Jorin on November 20, 2014, 11:34:29 pm
Yep! I use this one with my SMF at the moment. I will use it with Elk also.  :)
Title: Re: [ADDON] Topic Author
Post by: meetdilip on November 21, 2014, 11:26:48 pm
Good one.
Title: Re: [ADDON] Topic Author
Post by: Jorin on December 14, 2014, 09:09:27 am
Installed it, made a german language file, but can't find the settings in admin panel to activate it.  :-[

Edit: Oh-oh! It seems my installation has some problems. TopicAuthor.subs.php isn't on my server after installation. The package manager said the addon was installed sucessfully. The english language file was copied. Strange!  :o
Title: Re: [ADDON] Topic Author
Post by: emanuele on December 14, 2014, 11:56:08 am
O_o

/me finds this kind of results irritating. lol
In certain kind of configurations it seems the package manager is not able to detect that the file is not "really" writable...
Title: Re: [ADDON] Topic Author
Post by: CrimeS on December 14, 2014, 04:19:21 pm
Wow, it's a really nice and "good looking" idea to mark the topic author! Great job.
Title: Re: [ADDON] Topic Author
Post by: Mrs. Chaos on May 27, 2018, 08:44:05 am
It would be nice if this addon would be adjusted to the version 1.1.x.  :)
Title: Re: [ADDON] Topic Author
Post by: Jorin on May 27, 2018, 09:02:52 am
Yep, the icon is not there anymore.  :(
Title: Re: [ADDON] Topic Author
Post by: Spuds on May 27, 2018, 09:36:43 am
Attached is a version that should work on 1.1 ... 1.1 uses SVG for the icons and no star was included in the release, so instead I used the bell icon, maybe the pencil would be better?

If you want the star the easiest thing to do is install the original addon (not the one attached to this post) and in your index.template, change 'require_font-awesome' => false, to be 'require_font-awesome' => true, and it should then "just work"
Title: Re: [ADDON] Topic Author
Post by: Mrs. Chaos on May 27, 2018, 10:47:27 am
I've now installed your 1.1 version. The bell looks pretty good, but is a bit too pale for me. Which icons are there except a pencil? Is there a page where I can see all the icons?
Title: Re: [ADDON] Topic Author
Post by: Spuds on May 27, 2018, 11:05:29 am
Open the file sources/subs/TopicAuthor.subs

find the line
Code: (find) [Select]
			$icon = $icon === 'comment' ? 'comment-blank' : 'bell-blank';
change it to be
Code: (replace) [Select]
			$icon = $icon === 'comment' ? 'comment-blank' : 'bell';
thats a solid vs outline bell ... if you want to try the pencil replace bell with pencil.

There is no listing of the svg icons TBD,
Title: Re: [ADDON] Topic Author
Post by: Mrs. Chaos on May 27, 2018, 11:37:43 am
I tried out the solid bell and the pencil - and decided to stay at the blank bell. :)