Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Depreciated on October 10, 2010, 09:29:17 PM

Title: [Depreciated]
Post by: Depreciated on October 10, 2010, 09:29:17 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=2698)


New Topic Button on Board Index v1.51
~{By PaulpBaker}~ (http://custom.simplemachines.org/mods/index.php?action=profile;u=259685)

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2698) | My Mods (http://custom.simplemachines.org/mods/index.php?action=profile;u=259685) | Support Topic (http://www.simplemachines.org/community/index.php?topic=404363.0)

Compatibility
SMF 2.0

Description
Adds a 'new topic' button on the boards index including boards with child boards so you can quickly and easily make new topics.

Notes
Choice of two images (See screenshots) (http://img801.imageshack.us/img801/2990/post.gif) and (http://img413.imageshack.us/img413/7286/newdqi.gif) (Selectable in the admin section)

This mod was made by 'Joker' so all credit goes to him as i only packaged it and tweaked it (SMF v1.x compatibility and admin settings)

Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Install the package on the SMF Default 'Curve' Theme ONLY. Other themes will need manual edits.

Useful Links
SMF Package Parser (http://sleepycode.com/PackageParser/)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
v1.51 - 18th March 2011: Fixed a small bug that showed the 'new post' button for boards you can't post in (Thanks Kolya)
v1.5 - 30th October 2010: Added another placement option and dropped support for smf v1.1.x (use v1.3 of the mod for smf v1.1.x)
v1.3 - 20th August 2010: Made the admin options much more user friendly/sexy :)
v1.2 - 20th August 2010: Fixed language error and added support for admin setting on SMF v1.1.x
v1.1 - 8th August 2010: Added admin options to enable/disable (SMF 2.x only)
v1.0 - 27th July 2010: Initial Version
Title: Re: New Topic Button on Board Index
Post by: Dream of Omnimaga on October 11, 2010, 12:20:48 AM
Oh wow, nice to see this for SMF finally. I had a similar mod on another forum system I used before and it was pretty nice.

The only downside though is for help-oriented sub-forums: people will not bother searching if their question was already answered before because they'll just be tempted to create a new topic from the front page first. If you did not add the following already, it may be nice to allow the admin to enable this button only for specific boards.
Title: Re: New Topic Button on Board Index
Post by: Depreciated on October 11, 2010, 10:51:17 AM
Quote from: DJ Omnimaga on October 11, 2010, 12:20:48 AM
Oh wow, nice to see this for SMF finally. I had a similar mod on another forum system I used before and it was pretty nice.

yeah i'm hoping to add a few more things to it yet like button placement etc

Quote from: DJ Omnimaga on October 11, 2010, 12:20:48 AM
The only downside though is for help-oriented sub-forums: people will not bother searching if their question was already answered before because they'll just be tempted to create a new topic from the front page first.

good point but i don't think it's that big of a problem as if a member thinks about searching first then they'll do so regardless of this button imo

Quote from: DJ Omnimaga on October 11, 2010, 12:20:48 AM
If you did not add the following already, it may be nice to allow the admin to enable this button only for specific boards.

wow amazing idea but i wouldn't have a clue how to implement that i'm afraid but i'd love to know how if anyone knows


thank you for the feedback :)
Title: Re: New Topic Button on Board Index
Post by: trekkie2444 on October 28, 2010, 05:26:20 AM
I would love to be able to have this possibly as or after the board description. The idea behind this is perfect, but I don't quite like the placement of it.
Title: Re: New Topic Button on Board Index
Post by: Depreciated on October 28, 2010, 11:28:51 AM
Quote from: trekkie2444 on October 28, 2010, 05:26:20 AM
I would love to be able to have this possibly as or after the board description. The idea behind this is perfect, but I don't quite like the placement of it.

more options of the button placement are going to be in v2.0 so if you can give me some kind of visual image of where you'd like it i'll add it for you ;)
Title: Re: New Topic Button on Board Index
Post by: trekkie2444 on October 29, 2010, 08:16:05 AM
Here's an example of what I would like (also added in my own button, let me know if you want to use it):

(http://img192.imageshack.us/img192/112/99497921.png)
Title: Re: New Topic Button on Board Index
Post by: Depreciated on October 29, 2010, 08:30:52 PM
Quote from: trekkie2444 on October 29, 2010, 08:16:05 AM
Here's an example of what I would like (also added in my own button, let me know if you want to use it):

(http://img192.imageshack.us/img192/112/99497921.png)

done v1.5 released ;)
Title: Re: New Topic Button on Board Index
Post by: Jokerâ„¢ on December 07, 2010, 04:18:36 AM
Just saw the mod, nice work paul ;).
Title: Re: New Topic Button on Board Index
Post by: sharks on December 29, 2010, 02:53:54 PM
First, thanks PaulpBaker for your effort. These days, active SMF developers are rare indeed.
Anyway, i would like to suggest that you please add some screenshots to explain what this mod does exactly, as i had trouble understanding at first, until i saw the screenshots above. It is a new idea after all. :)
Title: Re: New Topic Button on Board Index
Post by: Kolya on March 18, 2011, 08:53:56 AM
This mod merely seems to check if there are any boards the user is allowed to post in. If there are any it displays the new topic button for every board, regardless whether the user can post in that specific board.

Instead of checking for boardsAllowedTo('post_new') it should check:
in_array($board['id'], boardsAllowedTo('post_new'))
Title: Re: New Topic Button on Board Index
Post by: Depreciated on March 18, 2011, 09:16:57 AM
Quote from: Kolya on March 18, 2011, 08:53:56 AM
This mod merely seems to check if there are any boards the user is allowed to post in. If there are any it displays the new topic button for every board, regardless whether the user can post in that specific board.

Instead of checking for boardsAllowedTo('post_new') it should check:
in_array($board['id'], boardsAllowedTo('post_new'))

ouch will fix that asap thank you for the contribution!!!

edit: after making the changes you suggested the mod (the button that is..) simply isn't showing any more?
Title: Re: New Topic Button on Board Index
Post by: Kolya on March 18, 2011, 05:54:34 PM
It works for your members. Not for admins. Of course you could do something like this:
if (in_array($board['id'], boardsAllowedTo('post_new')) || $context['user']['is_admin']) { do nice things}

Title: Re: New Topic Button on Board Index
Post by: Kolya on March 19, 2011, 02:09:35 PM
You should also get rid of the $context['user']['is_logged'] check. Either the administrator allows guests to post in a forum, then you want them to see the button just like members. Or the admin does not allow it, then they won't see the button because they have no boardsAllowedTo('post_new').
Title: Re: New Topic Button on Board Index
Post by: Depreciated on June 13, 2011, 08:46:41 PM
mod updated for smf 2.0 final
Title: Re: New Topic Button on Board Index
Post by: Jessica. on June 18, 2011, 08:05:17 PM
I installed it with no problems and adjusted the settings and the buttons are not showing up
Title: Re: New Topic Button on Board Index
Post by: C4G-TK on June 18, 2011, 08:18:45 PM
Are you using a custom theme?
Title: Re: New Topic Button on Board Index
Post by: Jessica. on June 19, 2011, 06:42:39 PM
nope :P
Title: Re: New Topic Button on Board Index
Post by: TheListener on June 19, 2011, 06:50:57 PM
Quote from: Jessica. on June 19, 2011, 06:42:39 PM
nope :P

Just had a peep at your forum.

I would suggest the ads are removed from the current location otherwise nobody can see the menutabs.
Title: Re: New Topic Button on Board Index
Post by: Jessica. on June 19, 2011, 06:54:39 PM
I have adblock, so I don't see the ads. and I don't know how to remove them. I'll have to ask my host...
Title: Re: New Topic Button on Board Index
Post by: TheListener on June 19, 2011, 07:06:59 PM
Who is your host?

Title: Re: New Topic Button on Board Index
Post by: Jessica. on June 19, 2011, 07:10:34 PM
I use a free host, freezoka.net. I originally thought there were no forced ads. that's what I read when registering...
Title: Re: New Topic Button on Board Index
Post by: Biology Forums on August 15, 2011, 03:05:14 PM
Can you upload the 1.x version.
Title: Re: New Topic Button on Board Index
Post by: walbrzych2014.pl on September 19, 2011, 10:44:08 AM
Hi, this mod looks amazing. Please let me know whether this mod could help me - On the main website I have recent topics from all categories. Is it possible to paste there button NEW TOPIC, and than choose a category and write a new topic?
Title: Re: New Topic Button on Board Index
Post by: Biology Forums on September 19, 2011, 05:19:43 PM
Great mod... I changed it up a bit on my forum. Rather than using the button, I used text.
Title: Re: New Topic Button on Board Index
Post by: Cezar.mr on October 19, 2011, 08:41:34 AM
Can U say something about, how to enable this mod on others thames?
I use SilentWave, after install, I can see a inscription "New", but not a gif.

Grat mod btw. :)
Title: Re: New Topic Button on Board Index
Post by: Kirck on December 23, 2011, 07:03:07 PM
I've installed without errors but I can't see the "new post" image. I'm using the default curve theme with spanish language.
Title: Re: New Topic Button on Board Index
Post by: Kirck on January 02, 2012, 04:20:19 PM
Any new?
Title: Re: New Topic Button on Board Index
Post by: rodelio.lagahit on December 24, 2012, 07:29:27 AM
any updates on this? or can someone share a new version for this? this is really a must mod for every forum - i think :)

merry christmas everyone!
Title: Re: New Topic Button on Board Index
Post by: aksal on March 06, 2019, 05:03:31 PM
Somebody have this mod installed? I need to see this in action.
I installed it myself, but don't see anything from this mod.