vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - New Thread Button Anywhere (https://vborg.vbsupport.ru/showthread.php?t=322444)

MarkFL 04-22-2016 09:00 PM

New Thread Button Anywhere
 
1 Attachment(s)
Overview:

With mobile devices becoming more and more prevalent, the average IQ of people finding your site is declining...at a shocking pace. There was a time, not too long ago, before the pestilence of mobile devices and social media, that internet users were tech savvy people using desktop computers and forming complete sentences. Those were good times.

Increasingly, this new generation of internet users lacks the brain power to successfully navigate vBulletin's insuperable labyrinth consisting of "choose forum -> click forum -> click post new thread." To be honest, I don't particularly value such users or want them polluting the site with their pinhead musings, but hey, we've got to remain competitive and this requires dumbing things down a bit for the facebook junkies and iPhone users.

This product allows you do display a large, nearly impossible to miss button, directly below the breadcrumbs (on selected pages) that will make it easier for your users to post new threads. The added element consists of three parts: a message to the user welcoming them and instructing them on how to use the element to start a new thread, a dropdown menu from which they can choose a forum in which they have permission to post new threads (with forum categories in bold red and non-selectable), and a large button they can click once they have selected a forum which loads the newthread form to post a new thread in the forum they selected. You have 8 pre-defined linear gradient schemes (cross-browser compatible) from which to choose for the background color of the button, or you can use your own, with a choice to define separate schemes for each style using your StyleVars.

https://vborg.vbsupport.ru/attachmen...1&d=1461434407

If a user has not selected a forum, then the tooltip for the button tells them they must choose a forum first. If they click the button anyway, then a popup alert repeats the fact that a forum must be chosen first. Once they select a forum, the tooltip for the button changes to tell them they may click the button to post a new thread in the selected form, and the name and description of the forum they selected is shown to help make certain they have made the correct choice.

They are essentially doing the same thing as if they had gone to a forum and clicked "+ Post New Thread," but now the button isn't carefully hidden behind the curtain of the link to the forum they want.

Everything is fully phrased and stylevars are used wherever applicable.

Updates:

Version 1.01:
  • Added custom hook location to "navbar" template in case ads are turned off (previously used a global ad location as a template hook).

Version 1.1:
  • Added support for Restrict Posting By Forum
  • Added setting to allow for excluding forums from drop-down menu.
  • Added setting to allow for left/right orientation of product element.

Version 1.1.5:
  • Improved method for adding hook to "navbar" template to be more general.

Version 1.2:
  • Forum exclusion now includes child forums.

Version 1.2.1:
  • Added support for smaller screens.

Version 1.3:
  • Added settings to allow for custom linear gradient on button.

Version 1.4:
  • Changed custom color selection to HTML color pickers.
  • Added "StyleVars" option to button color to allow for customization per style.

Version 1.5:
  • Added support for when DBTech has replaced your "navbar" template.
  • Combine plugins for adding custom hook and rending output.

Version 1.6:
  • Added 5 more default button color gradients from which to choose.
  • Removed need for explicit CSS for default button colors, greatly reducing the size of the template.

Version 1.7:
  • Added support for manually placing the new thread button element within your "navbar" template using "{vb:raw markfl_newthreadbutton}".

Version 1.8:
  • Fixed bug where forums with no parent and posting allowed were treated as categories.

Version 1.9:
  • Adding setting to exclude usergroups from button access.
  • Phrased "None Selected" drop-down menu selection.

Version 1.9.1:
  • Phrased word "Category" in drop-down menu.

Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  1. Download and extract the attached .zip file.
  2. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  3. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  4. Click "Import."
  5. You MUST enable the product in the settings before it will function.
  6. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

https://vborg.vbsupport.ru/attachmen...1&d=1465009738

Support for this product can be found here:

Alan_SP 04-23-2016 05:30 PM

This last option, maximum posts, should that be minimum posts user have? It seems more logical to me this way.

MarkFL 04-23-2016 05:52 PM

Update - Version 1.01:
  • Added custom hook location to "navbar" template in case ads are turned off (previously used a global ad location as a template hook).

Quote:

Originally Posted by Alan_SP (Post 2569440)
This last option, maximum posts, should that be minimum posts user have? It seems more logical to me this way.

Something like this would be more useful to new users than to more experienced users...and so that's why I gave an option to stop displaying it to users once they reach a certain number of posts. :)

thenicehorizon 04-23-2016 06:37 PM

amazing Mr MarkFL

Stratis 04-23-2016 07:04 PM

1 Attachment(s)
Nice work and good idea, thank you very much. Tested in v4.2.0.

How about an option to position button Left or Right :p

Attachment 154753

Manoel J?nior 04-23-2016 10:36 PM

Please, add group permissions

MarkFL 04-24-2016 12:58 AM

Quote:

Originally Posted by Stratis (Post 2569446)
Nice work and good idea, thank you very much. Tested in v4.2.0.

How about an option to position button Left or Right :p

I could see that making sense if you are using a language which reads from right to left. :)

Quote:

Originally Posted by Manoel J?nior (Post 2569457)
Please, add group permissions

I thought about that, but it just didn't seem worth the added complexity. ;)

Stratis 04-24-2016 06:17 AM

Quote:

Originally Posted by MarkFL (Post 2569464)
I could see that making sense if you are using a language which reads from right to left. :)

No I don't use language right to left, its psycho :D

Default buttons to make a new thread are in left position, so when big button stops to show up to new members, it will continue with the small default in the same place. it depends where we have big button to show up in the first place.

And something else, in "Choose A Subforum First" if there is an option to which forums we want, because when we have some forums restricted for members with less say than 5 post its better not show those forums.
What you say about it ? :)

Morrus 04-24-2016 09:05 PM

Quote:

Originally Posted by Stratis (Post 2569470)

And something else, in "Choose A Subforum First" if there is an option to which forums we want, because when we have some forums restricted for members with less say than 5 post its better not show those forums.
What you say about it ? :)

I agree that would be great. I have hundreds of older subforums, but I'd only want a list of a half dozen or so for a new user to choose from.

MarkFL 04-25-2016 01:07 PM

Update - Version 1.1:
  • Added support for Restrict Posting By Forum
  • Added setting to allow for excluding forums from drop-down menu.
  • Added setting to allow for left/right orientation of product element.

Stratis 04-25-2016 01:33 PM

1 Attachment(s)
Excellent Attachment 154781


Thank you very much Attachment 154780

MarkFL 04-25-2016 01:36 PM

Quote:

Originally Posted by Stratis (Post 2569520)
Excellent Attachment 154781


Thank you very much Attachment 154780

Thank you for the good suggestions, especially for reminding me I needed to support the restrict posting by forums product...no need to show a user a forum if they will only get the no permission page. :up:

Stratis 04-25-2016 01:52 PM

I am fun of your modifications, and a MarkFL mod tester. :p
Some times situations is how we see it that moment.

Any way, your mods helps very much my community.

:)

Morrus 04-25-2016 01:53 PM

Installed, but I get an error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/virtual/enworld/forum/includes/class_core.php(4715) : eval()'d code on line 231

MarkFL 04-25-2016 01:54 PM

Quote:

Originally Posted by Stratis (Post 2569523)
I am fun of your modifications, and a MarkFL mod tester. :p
Some times situations is how we see it that moment.

Any way, your mods helps very much my community.

:)

I am very happy to hear that my mods are useful for you and your users. :cool:

vze2yqtm 04-25-2016 05:24 PM

After enabling it never shows - great plugin by the way, this will be a great improvement to the sidebar type that I tried before :)

MarkFL 04-25-2016 06:45 PM

Those of you seeking support should mark the product as installed. ;)

Quote:

Originally Posted by Morrus (Post 2569524)
Installed, but I get an error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/virtual/enworld/forum/includes/class_core.php(4715) : eval()'d code on line 231

What version of vB/PHP are you using?

Quote:

Originally Posted by vze2yqtm (Post 2569537)
After enabling it never shows - great plugin by the way, this will be a great improvement to the sidebar type that I tried before :)

Please see the post below this. :)

MarkFL 04-25-2016 09:31 PM

Version 1.1.5:
  • Improved method for adding hook to "navbar" template to be more general.

Morrus 04-25-2016 09:40 PM

Quote:

Originally Posted by MarkFL (Post 2569545)
What version of vB/PHP are you using?

4.2.2 and 5.3.21, respectively. :)

MarkFL 04-25-2016 09:51 PM

Quote:

Originally Posted by Morrus (Post 2569594)
4.2.2 and 5.3.21, respectively. :)

Okay, those aren't the issue, because I have it running without any issues on sites with vB/PHP versions both earlier and later than what you state.

First, try updating to version 1.1.5 of this product and see if the issue was with the custom template hook. If not, we'll go from there. :)

vze2yqtm 04-26-2016 06:53 AM

It still isn't showing :(

Stratis 04-26-2016 07:20 AM

Quote:

Originally Posted by vze2yqtm (Post 2569603)
It still isn't showing :(

Some times we forget,
If you put in "Maximum Posts" field less than you have (posts), you will not see it.
To try put "0" and than put depending

And if not...
In the "Active Scripts" option take off the "index" leave it blank, to see if it shows it to other places than forum index.

Morrus 04-26-2016 09:12 AM

Quote:

Originally Posted by MarkFL (Post 2569595)
Okay, those aren't the issue, because I have it running without any issues on sites with vB/PHP versions both earlier and later than what you state.

First, try updating to version 1.1.5 of this product and see if the issue was with the custom template hook. If not, we'll go from there. :)

We appear to have lift-off! All working so far, as best I can tell! :)

Morrus 04-26-2016 09:56 AM

Ah, the forum exclusion feature isn't working.

(Hard to test because not takes me about 20 minutes each time to individually click all but a half dozen forums to exclude out of a few hundred - any chance of the reverse method, and just selecting which forums to include?)

[Edit - on further study, I seem to have got it to remember them; there may be some conditions in which it forgets the selected excluded forums, but I'm not 100% sure. I'll keep an eye on it and let you know if it happens again!)

MarkFL 04-26-2016 10:49 AM

Quote:

Originally Posted by vze2yqtm (Post 2569603)
It still isn't showing :(

At this point, all I can figure is that another mod must be interfering (given that your settings aren't configured in such a way as to prevent you from seeing it).

If you want, set up a temporary admin account for me, and PM the login credentials to me, and I can come to your site to troubleshoot. :)

MarkFL 04-26-2016 11:42 AM

Update - Version 1.2:
  • Forum exclusion now includes child forums.

Morrus 04-26-2016 12:32 PM

1 Attachment(s)
Not a major issue, but the layout messes up a little on smaller screens (such as a tablet). Screenshot attached. I'm not overly worried, but thought you might find the info helpful.

MarkFL 04-26-2016 12:49 PM

Quote:

Originally Posted by Morrus (Post 2569623)
Not a major issue, but the layout messes up a little on smaller screens (such as a tablet). Screenshot attached. I'm not overly worried, but thought you might find the info helpful.

Thanks for the heads up! :up:

Update - Version 1.2.1:
  • Added support for smaller screens.

Morrus 04-26-2016 01:14 PM

I've identified the forum exclusion forgetting: it happens every time the product is updated.

Morrus 04-26-2016 01:17 PM

1 Attachment(s)
Actually, I'm not sure what's going on. In the attached screenshots you can see that I have a whole load of forums excluded, but some left included. But on the other screenshot, no forums are appearing in the dropdown menu - just "None Selected".

MarkFL 04-26-2016 02:48 PM

Quote:

Originally Posted by Morrus (Post 2569633)
I've identified the forum exclusion forgetting: it happens every time the product is updated.

Are you actually updating, or uninstalling the old, then installing the new?

Quote:

Originally Posted by Morrus (Post 2569635)
Actually, I'm not sure what's going on. In the attached screenshots you can see that I have a whole load of forums excluded, but some left included. But on the other screenshot, no forums are appearing in the dropdown menu - just "None Selected".

Child forums are included, so if you are selecting all of your categories, then no forums will show up.

Morrus 04-26-2016 02:56 PM

Quote:

Originally Posted by MarkFL (Post 2569646)
Are you actually updating, or uninstalling the old, then installing the new?

Updating with overwrite.

Quote:

Child forums are included, so if you are selecting all of your categories, then no forums will show up.
Sorry; in that case I'm not clear on what I need to be doing to use this correctly.

So I need to individually select all the individual forums I want excluded, but be careful not to select any of the categories?

(Oh, please, please make it work the opposite way around! Select forums to be included. :) )

MarkFL 04-26-2016 03:03 PM

Quote:

Originally Posted by Morrus (Post 2569648)
Updating with overwrite.

Your settings shouldn't change then...they don't change for me if I do an upgrade.

Quote:

Originally Posted by Morrus (Post 2569648)
Sorry; in that case I'm not clear on what I need to be doing to use this correctly.

So I need to individually select all the individual forums I want excluded, but be careful not to select any of the categories?

(Oh, please, please make it work the opposite way around! Select forums to be included. :) )

If you want to exclude an entire category, just select the category. If you only want to exclude certain forums, then select then individually.

I would think most people who wish to exclude forums will only exclude a few...I have to think of the majority here.

Morrus 04-26-2016 03:13 PM

Quote:

Originally Posted by MarkFL (Post 2569649)
Your settings shouldn't change then...they don't change for me if I do an upgrade.

I don't know what to tell you. :)

Quote:

If you want to exclude an entire category, just select the category. If you only want to exclude certain forums, then select then individually.

I would think most people who wish to exclude forums will only exclude a few...I have to think of the majority here.
Fair enough. I'll check back in a week or two and see where things are at; I can't go through that process with every incremental update. :)

Stratis 04-26-2016 03:21 PM

Quote:

Originally Posted by Morrus (Post 2569651)
I don't know what to tell you. :)



Fair enough. I'll check back in a week or two and see where things are at; I can't go through that process with every incremental update. :)

When I make an update, all previous selected forums don't change.
You don't need to set them again.

* You can you use Shift to check all forums and Control to deselect :)

MarkFL 04-26-2016 03:24 PM

Quote:

Originally Posted by Morrus (Post 2569651)
I don't know what to tell you. :)

Fair enough. I'll check back in a week or two and see where things are at; I can't go through that process with every incremental update. :)

That has to be some issue on your end...no one else has reported this with any of the 60+ products I have uploaded here so far. :)

Morrus 04-26-2016 03:54 PM

Quote:

Originally Posted by MarkFL (Post 2569654)
That has to be some issue on your end...no one else has reported this with any of the 60+ products I have uploaded here so far. :)

Like I said, I don't know what to tell you. It doesn't change any of the other settings, just the excluded forums.

MarkFL 04-26-2016 09:54 PM

Update - Version 1.3:
  • Added settings to allow for custom linear gradient on button.

vze2yqtm 04-27-2016 06:12 AM

It still won't show :(

MarkFL 04-27-2016 10:42 AM

Quote:

Originally Posted by vze2yqtm (Post 2569697)
It still won't show :(

Well, as I stated a few posts back, I would have to come to your site with admin access to try to figure out what specific issue there is preventing it from being displayed. :)


All times are GMT. The time now is 06:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01586 seconds
  • Memory Usage 1,860KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (27)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete