Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Prefix Management - Forum prefix limited by usergroup Details »»
Prefix Management - Forum prefix limited by usergroup
Version: 1.00, by woostar woostar is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.x Rating:
Released: 06-05-2008 Last Update: Never Installs: 37
Template Edits
 
No support by the author.

Another personal product, but thought I would share (I have no idea if anyone else has done this already).

What this mod does...
I wanted to limit forum prefixes to just admin and moderators in some forums while allowing members in other usergroups to use them in other forums.
This product lets you restrict who can use prefixes on a forum by forum basis.


After installing the product you need to edit template 'newthread'.

PLEASE NOTE: There are TWO (2) identical conditions that need replacing.
Find the first one and replace... look about 10 lines down and you will see another. This needs replacing too!


FIND:
PHP Code:
<if condition="$prefix_options"
REPLACE WITH:
PHP Code:
<if condition="$prefix_options AND ($prefix_allowed == "unrestricted" OR (is_member_of($vbulletin->userinfo$prefix_allowed)))"

To restrict forum prefix by usergroup, goto 'Forum Manager'.


Hope this is of use to someone else.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-30-2008, 12:28 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
will this allow other users to SEE these results but not pick them?
Yes.
Reply With Quote
  #13  
Old 07-20-2008, 06:08 PM
Dutchytje Dutchytje is offline
 
Join Date: Jul 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dennis Olson View Post
I need to be able to allow/disallow certain prefixes in the drop-down based on usergroup.
I would like to able to use this option aswell.
Reply With Quote
  #14  
Old 08-06-2008, 11:02 PM
studentsforum studentsforum is offline
 
Join Date: Apr 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work
Reply With Quote
  #15  
Old 08-12-2008, 06:23 PM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed but ... Where is this in my AdminCp ?

*edit* found it
Reply With Quote
  #16  
Old 08-18-2008, 02:57 PM
DWZ_Webmaster DWZ_Webmaster is offline
 
Join Date: Jan 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is this in my AdminCp?
Reply With Quote
  #17  
Old 10-05-2008, 08:06 PM
edermix edermix is offline
 
Join Date: Aug 2008
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great man!
Reply With Quote
  #18  
Old 10-18-2008, 06:01 PM
technom8t technom8t is offline
 
Join Date: Oct 2007
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod doesn't extend to edit post, and when i change the required text on the edit post template the thread prefix doesn't show up for any user group on edit post at all, not even the user group i selected it to show up for? think maybe it is a different code change needed on edit post?

can you help?

great mod if we can get this sorted :-)
Reply With Quote
  #19  
Old 03-18-2009, 03:14 PM
Dimoks's Avatar
Dimoks Dimoks is offline
 
Join Date: Mar 2006
Location: Kharkiv, Ukraine
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

User really cannot creation of topic with prefix. However, user can edit first post and add this prefix
Reply With Quote
  #20  
Old 03-18-2009, 03:27 PM
Dimoks's Avatar
Dimoks Dimoks is offline
 
Join Date: Mar 2006
Location: Kharkiv, Ukraine
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit template "editpost"

Find
Code:
<if condition="$prefix_options">
REPLACE WITH:
Code:
<if condition="$prefix_options AND ($prefix_allowed == "unrestricted" OR (is_member_of($vbulletin->userinfo, $prefix_allowed)))">
Reply With Quote
  #21  
Old 05-06-2009, 05:47 PM
Dimoks's Avatar
Dimoks Dimoks is offline
 
Join Date: Mar 2006
Location: Kharkiv, Ukraine
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And other templates :

threadadmin_movethread
threadadmin_editthread

Because moderators have access to edit and add prefix...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04532 seconds
  • Memory Usage 2,309KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete