Quick New Topic Button

Started by Sesquipedalian, April 10, 2019, 08:42:25 AM

Previous topic - Next topic

Sesquipedalian

#20
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.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Diego Andrés

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

SMF Tricks - Free & Premium Responsive Themes for SMF.

Sesquipedalian

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.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Seyit replikacep.com

fashion, can you add the language Turkish
I added it as a plugin.You cannot view this attachment.

Sesquipedalian

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 promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Seyit replikacep.com

I've completed the deficiencies.

You cannot view this attachment.

Sesquipedalian

Lovely. Thank you. I will add this to the next version.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Wellwisher

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).

serdo

Is the plugin working?
I downloaded it but it doesn't show on the forum

Steve

It works fine. Did you select the membergroups that would be able to see it (including Administrator)?

Admin -> Configuration -> Features and Options -> Layout Tab
DO NOT pm me for support!

serdo


serdo


Steve

DO NOT pm me for support!

davo88

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 ?

davo88

Forgot to mention... When logged in as Admin and topic started using Quick New Topic Button, the Drafts button does appear as normal.

Sesquipedalian

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.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

davo88

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.

Sesquipedalian

I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

davo88

SMF 2.1.4
Default theme
No code edits
No imported data
Mods - Quick New Topic Button

Need a bit of help to troubleshoot an attachment loading problem when using the Quick New Topic Button. This is a stock standard SMF with no mods apart from the QNT button.
Logged in as admin, attachments load, display as thumbnails and post as normal.

Logged in as a member:
- one attachment will load (green bar completes), but not display as a thumbnail or attach to the post when the message is posted.

You cannot view this attachment.

- can load one attachment to the point where the green bar is complete, but not displaying as a thumbnail, then repeat the process and load a second, then a third to the same point. Looks like this

You cannot view this attachment.

But if I try to save that post, the attachments aren't attaching.

However, if I first post a text only message without any attachments, then choose Modify and attach an image, the attachment loads, displays as a thumbnail and is attached after saving - all as normal.

You cannot view this attachment.

I have tried different attachments, all well under the current limits set in Attachments settings.
Not sure how to go about troubleshooting this problem. Any suggestions appreciated.

Advertisement: