vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   New Posting Features - Prefix Management - Forum prefix limited by usergroup (https://vborg.vbsupport.ru/showthread.php?t=181644)

woostar 06-05-2008 10:00 PM

Prefix Management - Forum prefix limited by usergroup
 
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.

uberjon 06-06-2008 12:49 AM

installing now! i suggested this as a default feature along with several others. well needed!

TCattitude 06-06-2008 01:23 AM

Nice!... installed

Hornstar 06-06-2008 05:25 AM

yes something which is important, wish it was default.

Max Paint 06-06-2008 12:10 PM

Quote:

Originally Posted by hornstar1337 (Post 1542072)
yes something which is important, wish it was default.

/sign

edongski 06-07-2008 04:12 AM

Installed and uninstalled. It did not fit my needs.
Is there any way to make it allow a certain usergroup access some of the thread prefix in that forum but no access to others?

[Video]
[Audio]
[Specials]

Regular members are required to use either [Video] or [Audio]
Paid members are allowed to use [Audio] [Video] and [Specials]

I hope it is understandable

djilou 06-22-2008 10:24 PM

You need to edit template "Editpost" too!

lazserus 06-24-2008 08:21 PM

Pretty nifty, but I also think it needs the ability to pick and choose specific phrases per forum. I have an FAQ/Support forum and I'd like to be able to prevent members from using certain prefixes I have setup, for they are really reserved for mods.

RedGTiVR6 06-27-2008 02:49 PM

will this allow other users to SEE these results but not pick them?

Dennis Olson 06-29-2008 11:58 PM

I need to be able to allow/disallow certain prefixes in the drop-down based on usergroup.

RedGTiVR6 06-30-2008 12:28 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1560456)
will this allow other users to SEE these results but not pick them?

Yes.

Dutchytje 07-20-2008 06:08 PM

Quote:

Originally Posted by Dennis Olson (Post 1562524)
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.

studentsforum 08-06-2008 11:02 PM

nice work :)

RobbieZ 08-12-2008 06:23 PM

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

*edit* found it

DWZ_Webmaster 08-18-2008 02:57 PM

Where is this in my AdminCp?

edermix 10-05-2008 08:06 PM

Great man!

technom8t 10-18-2008 06:01 PM

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

Dimoks 03-18-2009 03:14 PM

User really cannot creation of topic with prefix. However, user can edit first post and add this prefix :)

Dimoks 03-18-2009 03:27 PM

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

Dimoks 05-06-2009 05:47 PM

And other templates :

threadadmin_movethread
threadadmin_editthread

Because moderators have access to edit and add prefix...

Charlie98902 05-28-2009 11:20 PM

Quote:

Originally Posted by djilou (Post 1556372)
You need to edit template "Editpost" too!

Quote:

Originally Posted by Dimoks (Post 1771200)
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)))">

Thanks for this info as I had a regular user edit his/her post then added a prefix. I hold a support forum so there is only 3 prefixes I have and a user can't state resolved or inactive when they just posted :) Came here then to see the editpost part needed.

Charlie98902 11-15-2009 11:29 PM

Can this get ported over on VB4 please?

Thanks

Charlie98902 12-25-2009 01:29 AM

Hello can some one please update this?

M.C. 01-14-2013 08:42 AM

need same for 4.2!!! It seems that plugin works with 4.2 but template edit give error:
Code:

Parse error: syntax error, unexpected ')' in /home/.../adminfunctions_template.php(5423) : eval()'d code on line 62


All times are GMT. The time now is 02:32 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.01094 seconds
  • Memory Usage 1,763KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete