vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - [BB Code] You (https://vborg.vbsupport.ru/showthread.php?t=208538)

supLaditOz 04-03-2009 02:57 AM

Thanks to this MOD really great.

/Installed

ph03nIX 04-03-2009 11:07 PM

Is it possible to restrict this bbcode to only certain usergroups?

bananalive 04-04-2009 11:16 AM

1 Attachment(s)
Quote:

Originally Posted by duditas (Post 1782047)
[you] works for me, but I can't see /you effect. Where must I see it? (Any screenshot, please?)

Attached screenshot

bananalive 04-04-2009 11:20 AM

Quote:

Originally Posted by ph03nIX (Post 1783384)
Is it possible to restrict this bbcode to only certain usergroups?

It would involve a lot of template edits.

Here's example for you to follow:
Edit plugin: /you replacement for postbit
PHP Code:

if ($post['usergroupid'] == 6)
{
global 
$vbulletin;
$post['message'] = explode ("\n"$post['message']);
$yourusername '* ' $vbulletin->userinfo['username'] . ' ';
foreach (
$post['message'] as &$postmessageline)
{
if (
substr($postmessageline05) == '/you ')
{
if (
substr($postmessageline, -4) == '<br>')
{
$postmessageline substr($postmessageline0, -4);
$addbr true;
}
else
{
$addbr false;
}
$postmessageline '<font color="red">' $postmessageline '</font>';
$postmessageline str_replace('/you '$yourusername$postmessageline);
if (
$addbr)
{
$postmessageline $postmessageline "<br>";
}
}
}
unset(
$postmessageline);
$post['message'] = implode ("\n"$post['message']);



TimberFloorAu 04-12-2009 01:34 AM

Doesnt work, but does in thread title. Doesnt work neither in cybs stats.

TimberFloorAu 04-12-2009 01:50 AM

Ok does work, but you must be the first word

ph03nIX 04-12-2009 10:18 PM

Quote:

Originally Posted by bananalive (Post 1783614)
It would involve a lot of template edits.

Here's example for you to follow:

Thank you, bananalive. I appreciate it. :up:

Andrew johnson 04-26-2009 08:03 PM

i saw over at vbulletinsetup - its was so nice hack - its useful for it

troybtj 05-06-2009 10:54 PM

It works everywhere but "New Posts"

How do I add it to that template?

Ohiosweetheart 05-15-2009 02:39 AM

LOL this mod is great. It has caused so much trouble and so much fun at one forum I post on.

Good work!


All times are GMT. The time now is 09:30 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.01230 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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