vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   When posting a new thread (https://vborg.vbsupport.ru/showthread.php?t=298458)

SwalyAaron 05-25-2013 11:04 AM

When posting a new thread
 
I've added this BBCODE https://vborg.vbsupport.ru/showthread.php?t=190900


I'd like it to be automatic with each usergroup, so usergroup 6 has it when ever a member of the group posts, the bbcode is automatically in use "[blizz,] [,/blizz]".


I've seen 2 forums use this automatically so what do you think I should do?

--------------- Added [DATE]1369491044[/DATE] at [TIME]1369491044[/TIME] ---------------

Also I have this plugin that would make this work
Code:

if(is_member_of($vbulletin->userinfo,5,6,7))
{
$message= "'[blizz]'.$message.'[/blizz]'";
}

But under which hook?

Simon Lloyd 05-25-2013 05:11 PM

probably in newpost_process

SwalyAaron 05-25-2013 06:21 PM

Nope didn't work =[

Simon Lloyd 05-25-2013 07:37 PM

Did you bother experimenting with the others, like newpost_complete or newthread_complete?

SwalyAaron 05-26-2013 01:37 AM

I did actually, I believe the plugin itself is the issue.

Simon Lloyd 05-26-2013 01:46 AM

Maybe try newpost_process hook and this line instead
HTML Code:

$post['message']= "'[blizz]'.$post[message].'[/blizz]'";

SwalyAaron 05-26-2013 07:06 AM

Dang thanks that worked, one issue though how do I make it for a specific usergroup only? like Admin

--------------- Added [DATE]1369555888[/DATE] at [TIME]1369555888[/TIME] ---------------

[SOLVED]

Code:

if(is_member_of($vbulletin->userinfo,6,9,10))
{
$post['message']= "[blizz]$post[message][/blizz]";
}


Thank you man really


All times are GMT. The time now is 02:42 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.01024 seconds
  • Memory Usage 1,721KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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