Link to the mod (https://custom.simplemachines.org/index.php?mod=4228)
Quick New Topic ButtonA modification for Simple Machines Forum 2.1 that adds a button to the main forum menu to start a new topic.
Clicking the button takes the user straight to the post authoring form. The form will include a select menu where the user must choose a board in which to post the new topic.
There are benefits and drawbacks to installing this button. On the one hand, not forcing users to navigate to a board before they can post makes it easier for inexperienced users to get involved in your community. On the other hand, this also increases the likelihood that users will post a new topic before reading the existing topics in a board. So whether this button is helpful or unhelpful will depend on the nature of your community.
The button is not shown to anyone when you first install the mod. It must be toggled on for specific members or membergroups (see below) before it will appear.
SettingsThere is one administrator setting,
Membergroups that see New Topic button in main menu by default, available in
Administration Center ► Features and Options ► Layout. Groups selected in this setting will see the button by default, while unselected groups will not. So if you want to show the button to new members but not to more experienced ones (or vice versa), you can do that here.
Note that the administrator setting merely sets defaults. Individual members can always override these defaults using the
Show New Topic button in main menu setting, available in
Profile ► Look and Layout.
Also note that the button will never be shown to members who are not allowed to post anywhere in the forum (e.g. banned members).
LicenseQuick New Topic Button is released under the MIT License. A full copy of this license is included in the package file.
ChangelogVersion 1.3:
- Added Turkish translation
Version 1.2:
- Fixes undefined index error when viewing new member theme options
Version 1.1:
- Added Latin Spanish translation
Version 1.0:
good job havent test it, this was on my project, still weird this isnt default/core on smf2.1
I love the idea but I can see hw this really shouldn't be core because it can really encourage people to post things in the wrong place without even trying, especially on bigger forums like this one with hundreds of boards.
they did not accept as I did before
I already did the same. i did it before you
https://custom.simplemachines.org/mods/index.php?mod=4201
http://www.smf.gen.tr/smf/index.php?topic=2623.0
they did not approve without reason.
no one does not help because of tiny things did not approve
they didn't help me
because they're already removed from the checklist
Odds are you were advised and that the advice given was too difficult to implement, based on previous history where I've given up trying to help you.
Quote from: Arantor on April 10, 2019, 01:36:15 PM
Odds are you were advised and that the advice given was too difficult to implement, based on previous history where I've given up trying to help you.
If you add this type, unfortunately you did not say I would accept.
Anyway, I'm not sharing it anymore, and I'm just doing it for myself.
Quote from: Arantor on April 10, 2019, 09:01:55 AM
I love the idea but I can see hw this really shouldn't be core because it can really encourage people to post things in the wrong place without even trying, especially on bigger forums like this one with hundreds of boards.
Mhm, fair point.
Though, as you said, like the concept ;).
@Replikacep: That image you attached, that's part of a private conversation between you and the SMF staff and that is not meant for the public. Don't actually know what the team policy is on this, but personally, I'm against this. Private messages are called
private for a reason!
https://www.simplemachines.org/community/index.php?topic=564509.0
Anyway, there's nothing to prolong.
I'm going to share what I do now only smf.gen.tr in this direction. Smf.gen.tr
I will only share on this site
Good job and thank you very much for taking the time @Sesquipedalian. I leave the translation to Latin Spanish as usual :P.
Regards!
Like it!
Quote from: Rock Lee on April 10, 2019, 02:19:54 PM
Good job and thank you very much for taking the time @Sesquipedalian. I leave the translation to Latin Spanish as usual :P.
Thanks! I've added your translation to version 1.1. :)
Quote from: Arantor on April 10, 2019, 09:01:55 AM
I can see hw this really shouldn't be core because it can really encourage people to post things in the wrong place without even trying, especially on bigger forums like this one with hundreds of boards.
Exactly.
Quote from: Replikacep on April 10, 2019, 01:19:02 PM
* complaints about failing the mod approval process, etc. *
I'm not sure what to tell you, man.
Quote from: Arantor on April 10, 2019, 09:01:55 AM
I love the idea
Quote from: Pipke on April 10, 2019, 09:01:06 AM
good job havent test it, this was on my project
Quote from: GigaWatt on April 10, 2019, 01:53:15 PM
like the concept
Quote from: Study Force on April 10, 2019, 03:46:08 PM
Like it!
Glad to hear it, folks. :)
Just tested this on 2.1RC4 and get this error when clicking on "New Topic":
QuoteType of error
Undefined_vars
Error message
8: Undefined index: current_board
File
/home2/*****/public_html/*****/Sources/Class-SimTopics.php
Line
85
URL of page causing the error
https://*****/index.php?action=post
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/Class-SimTopics.php on line 85
#1: menuButtons()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 5149
#2: call_integration_hook()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 4890
#3: setupMenuContext()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 3703
#4: setupThemeContext()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 3860
#5: template_header()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 3483
#6: obExit()
Called from /home2/*****/public_html/*****/index.php on line 190
That's a bug in whatever mod supplied the Class-SimTopics.php file. It is assuming that there is always already a board selected when the user goes to the post editor. That was true in 2.0, but it is not in 2.1. That mod's author needs to update it to account for this difference in 2.1.
Note that the Quick New Topic Button mod didn't create this change in functionality. It just adds some UI to make the changed functionality more accessible. You can accomplish the same thing simply by typing "http://url.of.forum/index.php?action=post" directly into the browser address bar.
I'll have to look at this later but wonder if that would be the similar topics mod? So maybe these two mods are not compatible?
It's not an incompatibility, it's a straight-up bug in the similar topics mod. Other mods will likely trip it up too.
Hi,
@Sesquipedalian There is incompatibility with SMF Post Prefix (https://custom.simplemachines.org/index.php?mod=4038)
Prefix selection section not showing.
Is there a solution.
Thanks
That would actually be on the post prefix author, IMO - since this mod kicks off the new-post dialogue and it sound slike the post-prefix dialogue is being triggered by something else.
More of a fundamental question: if prefixes are per board, and this takes you to the posting page without being in a board, what prefixes should it offer you?
Kindred and Arantor are completely correct. The SMF Post Prefix mod needs to be updated in order to work properly with SMF 2.1 itself.
It does work, it's just what arantor says, mod works per board prefix
Quote from: Diego Andrés on February 10, 2022, 12:16:29 PMIt does work, it's just what arantor says, mod works per board prefix
The SMF Post Prefix mod needs some logic to handle the case where $board is empty. A simple way to do that would be to simply test that it isn't empty before proceeding; this would result in the prefix logic not operating when a post is created from the boardless posting page. A more thorough way to handle the situation might involve using JavaScript and AJAX calls to dynamically change the list of available prefixes based on which board the user selects in the "Post in" select menu.
... But none of this is relevant to the Quick New Topic mod.
Quote from: Sesquipedalian on February 10, 2022, 12:29:31 PMusing JavaScript and AJAX calls to dynamically change the list of available prefixes based on which board the user selects
That's the plan, and then do the checking when saving.
Will not check this soon though, it's not really a feature for either mod
Well, you might want to do it sooner rather than later. Your mod's issue is with SMF 2.1 itself. You'll see the same issue crop up simply by going to ?action=post (as opposed to ?action=post;board=1) on any SMF 2.1 forum that has SMF Post Prefix installed, regardless whether Quick New Topic Button is installed. I'd recommend putting out a quick update now that just checks that $board isn't empty, and then later putting out another update with the more thorough fix.
fashion, can you add the language Turkish
I added it as a plugin.You cannot view this attachment.
Thank you for this, Replikacep.
I noticed two mistakes in your translation file:
- There is a comment in the file that explains who created the Spanish translation. If you want to replace that with a comment about who created the Turkish translation, please feel free to do so. Otherwise, I will just remove the comment, since it doesn't apply to this file.
- You forgot to translate part of the $helptxt string. Specifically, the phrase "(e.g. banned members)" is still in English.
I've completed the deficiencies.
You cannot view this attachment.
Lovely. Thank you. I will add this to the next version.
Nice mod. funnily enough, I will be commissioning a similar work for my custom 2.1 theme. Convenience & speed are important tools for growing a community. If something isn't easy to use, members will drop like flies. My idea is to have a post box on the index page. User choses the boards to post in and bam! Post is published. I got the idea from reddit (see attached).
Is the plugin working?
I downloaded it but it doesn't show on the forum
It works fine. Did you select the membergroups that would be able to see it (including Administrator)?
Admin -> Configuration -> Features and Options -> Layout Tab
plugin not showing
thanks i solved the problem
Which was what?
Drafts button not appearing when topic started with Quick New Topic Button
v2.1.4 fresh install
Mods - Quick New Topic button
I have been testing drafts and noticed the Drafts button did not always appear.
So did a fresh install of 2.1.4 with only the Quick New Topic Button mod installed.
When logged in as a Regular Member, if I start a new topic from within the General Discussion forum using the standard New Topic button
You cannot view this attachment.
I see the Drafts button as normal.
You cannot view this attachment.
If I then return to the main page and choose to start a new topic using the New topic mod button.
You cannot view this attachment.
The posting window opens but there is no Drafts button.
You cannot view this attachment.
Anyone else experiencing this ?
Forgot to mention... When logged in as Admin and topic started using Quick New Topic Button, the Drafts button does appear as normal.
This isn't due to anything in the mod. It's just part of SMF's inherent behaviour.
Permission to save drafts depends on the board. But when a user goes to the boardless posting page (i.e. ?action=post as opposed to ?action=post;board=1), no board-based permissions apply. The one exception to this rule is administrators, who always have all permissions, which means that they always have board-based permissions even when outside a board.
You will see the same behaviour if you uninstall the mod and then manually type those URLs into your browser's address bar.
Thanks for clearing that up Sesquipedalian. I had been going around and around all the permission settings for drafts and couldn't figure out what I had missed.
No problem.
@davo88, I have split off your latest bug report and moved it to the correct location, because it is a bug in SMF, not a bug in this mod.
https://www.simplemachines.org/community/index.php?topic=588846.0
Thanks.
As per your suggestion in Attachments not uploading on beardless posting page (https://www.simplemachines.org/community/index.php?topic=588846.0), the problem still happens when QNTB is uninstalled.
So if I am using the Ultimate Menu (https://custom.simplemachines.org/index.php?mod=3674) mod to create other menu options using 'index.php?action=xxxx', then the QNTB is not really needed because the same can be done with Ultimate Menu? Is that correct?
Correct, but that will not fix the bug you encountered.
@Diego Andrés - thanks for the confirmation.
I have encountered another issue using the QNT button. In previous tests, I had been making all posts to board #1.
However yesterday, while logged in as a regular member, I made a post using the QNT button in a different board - board #44. Since making that post in board #44, the 'Post in' window always defaults to board #44.
I assumed it had just remembered where the last post was made and so while logged in as the same member, made subsequent posts to different boards. However, it now continues to default to board #44 every time I use the QNT button.
The odd thing is, that now it does this for other members too. I tried four other regular members and they all defaulted to board #44. Yet when logged in as admin, it defaults to board #1 as it did originally.
The same thing happens when I make a post not using the QNT button but just the URL .../index.php?action=post
Is this related to the permissions issue we saw with attachments (https://www.simplemachines.org/community/index.php?topic=588846.0)?
ps ... this button is addictive. I just want to keep using it!
Your BROWSER remembers entries and prefills them
If you are using the same BROWSER to do all your testing, then it doesn't matter what USER you log in as...
Seriously,
@davo88, this mod puts a link in the menu bar. That's it. It doesn't create the posting page that the link takes you to. It doesn't have any influence over that posting page or anything that happens on it. If you are having issues with the posting page, the place to ask about that is in the SMF 2.1 support board, not in this mod's support topic.
@Sesquipedalian... OK, but these issues may be of interest to other users of the QNT button. How are they going to know about them otherwise? I didn't know that the QNT button did the same thing as '.../index.php?action=post' until I posted the attachment problem here.
The average admin doesn't know this stuff. They just install a mod which advertises it does this or that, and when they encounter problems, they go to the mod's support topic. How do they know it's a general SMF issue? You may know it's an SMF issue, but the average admin doesn't know that. 'Seriously' indeed...
Quote from: Kindred on May 15, 2024, 04:10:52 PMYour BROWSER remembers entries and prefills them
If you are using the same BROWSER to do all your testing, then it doesn't matter what USER you log in as...
Just did a test with a different browser, same thing happens. All the members default to board #44, admin defaults to board #1.