Eine einfache Theme-Komponente, um die + Neues Thema-Schaltfläche in die Kopfzeile aufzunehmen. Die Schaltfläche wird auf jeder Seite angezeigt – auch innerhalb von Themen.
FYI, we pushed the button yesterday and it was our 2nd biggest day in registrations for the past 30 days. Not sure if it was coincidence or not, but I have a feeling it’s a good way to onboard new users. Will keep an eye on the metrics
(Realizing now it must have been a coincidence, because the button only appears for users who have already logged in. Nonetheless, activity does seem to be higher)
Hm, how about showing the new topic button for everyone and make it act like the default Reply-to-topic button, i.e. as the user to login/sign up if they’re not logged in?
In fact, this might be something to consider for the default new topic button too, but I guess this feature would be most effective in this theme component…
Well, they can’t create that topic unless they sign up. And encouraging people to sign up is obviously a good thing (and is being done by default via the sign-up button and the reply-to-topic button). So I don’t really see why the new topic button should cause any problems.
This is good, but it has two drawbacks from my point of view.
First is the location of the button in the top bar. We already have other stuff added to the top bar and this makes it a bit crowded.
Second is the fact it appears on every page, even where it is a bit illogical (eg on my profile page, or the groups list).
The primary use case from my point of view is to make it slightly easier for users not to make off-topic replies when viewing a thread. The place I find it is really needed and useful is when viewing a topic/thread and ideally I would like it to appear both at the top (in line with the topic title) and at the bottom next to the main blue Reply button.
A halfway house would be to show it in the current position but only on /t/xxx pages.
Is this possible?
Oh. Bummer. I don’t know what “wrong position” means (it seems OK on my test site), but did assume that the button would work, which I see now that it doesn’t. It looks like it’s not as simple as I thought.
Can someone help me know what CSS to target to get this + New Topic button to look/function exactly as the colorful “Reply” button on my site? (i.e. the standard state, as well as the hover and clicked-on state - active?)
Here’s a visual explanation of what I’d like to do…
change its class to btn-primary ?
(not sure if you can have two btn-primary items on a page)
If you want to have a pure css solution then inspect the styling of the blue primary button (in all its states) and replicate that.
Thanks for this component@Joe.
It works perfectly with a small exception
On mobile I still have two buttons: new one + and default one+ New Topic buttons.
Now it works fine on desktops and on mobiles, but it would be nice if your component would take care about this. Especially that if from some reason some admin will turn off your component, any + New Topic button won’t be visible.
Vielen Dank für die Komponente! Ich denke, es gibt gute Anwendungsfälle, bei denen die Option, ein neues Thema zu erstellen, immer in der Kopfzeile vorhanden sein sollte. Allerdings habe ich Schwierigkeiten mit einem Detail der Umsetzung und frage mich, wie andere damit umgehen:
Derzeit spiegelt die Komponente die Kategorie wider, in der sich der Benutzer befindet, und öffnet den Editor mit dieser Kategorie vorausgefüllt. Sie berücksichtigt jedoch nicht, ob der Benutzer Schreibzugriff auf diese bestimmte Kategorie hat. Dadurch wird der Editor mit dieser Kategorie vorausgefüllt (obwohl der Benutzer diese Kategorie sonst nicht manuell auswählen könnte), was beim Speichern des Themas zu einem Fehler führt.
Der Standard-Button für neue Themen löst dieses Problem, indem er bei solchen Kategorien deaktiviert ist. Ich finde jedoch, dass es auch nicht sehr intuitiv wäre, dieses Verhalten zu kopieren, da die Idee des Buttons in der Kopfzeile darin besteht, einen globalen Zugriff zum Erstellen neuer Themen zu bieten. Es wäre dann seltsam, wenn er manchmal nicht funktioniert.
Was könnte ein guter allgemeiner Ansatz dafür sein? Oder wie gehen andere, die die Komponente verwenden, damit um? Einfach die Vorausfüllung komplett streichen?