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)
-   -   Forum Display Enhancements - Auto assign / Default thread prefix when posting a new thread (https://vborg.vbsupport.ru/showthread.php?t=233364)

JamesGunner 01-16-2010 10:00 PM

Auto assign / Default thread prefix when posting a new thread
 
1 Attachment(s)
What does this do?
--------------------------------------------------------------------
Automatically assign a Thread Prefix to a certain forum, so if a user posts a new thread this prefix will be displayed automatically.

For Example:
You have a forum where Software bugs can be posted. You want each new thread to have the prefix "Unconfirmed" when being posted. You can specify the prefix_id in your forum settings and this mod will automatically set the prefix you entered to each new thread that is being posted

This mod does not obey prefix user group permissions. Please make sure that you assigned the prefix set properly to that forum and check if you entered the correct name.

INSTALL
--------------------------------------------------------------------
1. Import the attached product
2. Click install in this thread!

USAGE
--------------------------------------------------------------------
1. Check the prefix_id by going to admincp -> Thread Prefix Manager
2. Click on your Prefix you want to use, copy the "Prefix ID"
3. Goto admincp -> Forums & Moderators -> Forum Manager
4. Find the Forum where you want to assign the Prefix on each new thread
5. Choose "Edit Forum" -> Go
6. Scroll to the bottom of the Page and locate "Default Forum Thread Prefix"
5. Insert your "Prefix ID" and hit SAVE
6. Done

DieselMinded 01-19-2010 06:24 AM

Need this for 3.8

JamesGunner 01-19-2010 03:56 PM

Quote:

Originally Posted by DieselMinded (Post 1959949)
Need this for 3.8

Did you try this on vb 3.8? I haven't tested it there...

Jman423 01-20-2010 10:42 PM

I just installed it on my 3.8.4 PL2 installation and it seems to work fine. I had to change the minimum version in the XML file so it would import it, but it seems to be working without any problems...

Alien 01-21-2010 02:58 AM

Nice.

Hmm. Can this modification automatically choose a default thread prefix if someone hasn't chosen one and ONLY if they haven't chosen one? I understand your example, but I want to allow people to choose one and if they don't then have it chosen for them.

JamesGunner 01-22-2010 09:26 AM

Quote:

Originally Posted by Alien (Post 1961946)
Nice.

Hmm. Can this modification automatically choose a default thread prefix if someone hasn't chosen one and ONLY if they haven't chosen one? I understand your example, but I want to allow people to choose one and if they don't then have it chosen for them.

hmm, I guess not. I will try to correct this behavior in the next few days. Thank you for getting my attention on this.


//EDIT: After further investigation I found out that this is not possible. There are only 2 hooks in the newthread.php for posting. newthread_post_start and newthread_post_complete. There is no way to check if the user input or chose any prefix. Im sorry that I cant add this but if you are still interested in another solution you would have to edit the core files.

Skyrider 01-27-2010 07:04 AM

Is there anyway possible this can be combined with reported posts? I'd like to have them automatic prefixed. Tried to do so with a selected report section and added the PrefixID, but it doesn't seem to work with reported posts/threads.

Alien 01-28-2010 10:09 PM

Quote:

Originally Posted by JamesGunner (Post 1963223)
After further investigation I found out that this is not possible. There are only 2 hooks in the newthread.php for posting. newthread_post_start and newthread_post_complete. There is no way to check if the user input or chose any prefix. Im sorry that I cant add this but if you are still interested in another solution you would have to edit the core files.

Hey,

I really appreciate you looking into that for me, Oh well, I was hoping!

JamesGunner 01-29-2010 04:52 PM

Quote:

Originally Posted by FF|Skyrider (Post 1967732)
Is there anyway possible this can be combined with reported posts? I'd like to have them automatic prefixed. Tried to do so with a selected report section and added the PrefixID, but it doesn't seem to work with reported posts/threads.

It probably could. Im really busy right now so I really don't have any free time to create a product for this right now. Just check back as long as their is no plugin for this I will try to create one.

vijayninel 02-10-2010 05:15 PM

Quote:

Originally Posted by Alien (Post 1961946)
Nice.

Hmm. Can this modification automatically choose a default thread prefix if someone hasn't chosen one and ONLY if they haven't chosen one? I understand your example, but I want to allow people to choose one and if they don't then have it chosen for them.

Ditto request.

Working fine on 3.8.4. Thanks so much for this. :)


All times are GMT. The time now is 02:15 PM.

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.01215 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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