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!

troybtj 05-15-2009 10:39 PM

Quote:

Originally Posted by Ohiosweetheart (Post 1811008)
LOL this mod is great. It has caused so much trouble and so much fun at one forum I post on.

Good work!

Same here. I never realized how devious the members were. It appeared to turn all of them in to Nigerian Scammers for some reason.

I added permissions to it, though hard coded group numbers, using an if statement for group check before submitting a post with a [you] tag.

If they have pemission, [you] is inserted. If they do not have permission, [you] is changed to " " and inserted.

I know the above is a sloppy hack, but is the only thing I could come up on short notice while everybody was abusing everybody else. :D

OnTheSideDesign 05-27-2009 03:18 PM

Ok i am confused, it is showing in the thread title as the persons name but in vbadvanced it says [you] in the top stats it says [you] and all i know of another site that in the top stats mod it says the username....any help?

1320Nation 05-27-2009 05:59 PM

I hate to pop someones cherry but this hack has been around for a while.
https://vborg.vbsupport.ru/showthread.php?t=183526

However, thanks for taking the time to create another one! :up:

OnTheSideDesign 05-28-2009 01:38 PM

Understand, I went with this because of 3.8 support. But my biggest questions are why would vBadvanced and top forum stats still report [YOU] and not the username? Does anyone know of a spot that BB code might not be turned on or something? I know other forums that have the [you] working in those areas and you only see [you] in emails sent out. Thanks all.

exportforce 11-26-2009 09:37 PM

Quote:

Originally Posted by OnTheSideDesign (Post 1818776)
Understand, I went with this because of 3.8 support. But my biggest questions are why would vBadvanced and top forum stats still report [YOU] and not the username? Does anyone know of a spot that BB code might not be turned on or something? I know other forums that have the [you] working in those areas and you only see [you] in emails sent out. Thanks all.

Thats because the parsing he did is per file... but thats the same thing I wanted to ask.

Can someone maybe redo this addon so it does the edit global ?
Because in Addons like CMPS (aka VBA) and Shoutboxes these replacements will not be taken, because it's done per file only :(

ahmer 11-27-2009 01:29 AM

after installing this product im getting this error on top on every page

Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /forum/includes/class_postbit.php(294) : eval()'d code on line 24

plzz help me

kalisekj 11-28-2009 10:02 PM

Works Great Thank you!

headlight 12-10-2009 08:23 PM

Quote:

Originally Posted by psychobike (Post 1818259)
I hate to pop someones cherry but this hack has been around for a while.
https://vborg.vbsupport.ru/showthread.php?t=183526

However, thanks for taking the time to create another one! :up:

Thanks, that one works with VBa and New posts.

Alan_SP 12-19-2009 01:38 AM

Hey, I'd like to see this on vB4!

kofoid 02-13-2010 10:29 PM

hilarious! Thanks!

bananalive 02-14-2010 12:47 PM

Quote:

Originally Posted by Alan_SP (Post 1933243)
Hey, I'd like to see this on vB4!

This works fine without change with vB 4.x

I've added a new thread though:
https://vborg.vbsupport.ru/showthread.php?t=235832

azbryanw 03-02-2010 06:33 PM

Where would this get installed to? I.e. which folder etc. I am a total neophyte.

bananalive 03-03-2010 11:01 PM

Quote:

Originally Posted by azbryanw (Post 1995450)
Where would this get installed to? I.e. which folder etc. I am a total neophyte.

Product files you import through the AdminCP

AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]

Michael Biddle 03-31-2010 04:04 AM

Quote:

Originally Posted by gator777 (Post 1772695)
Works great! It's a small thing, but it shows as "[you]" when seen as a title in "Recent Threads" in VBAdvanced.

I know this is a long reply, but I needed the same thing and I did the following:

Add a new plugin at: vba_cmps_module_recethreadbits (vbacmps)

Plugin code:

PHP Code:

$thread['title'] = str_replace("[YOU]"$vbulletin->userinfo[username], $thread['title']);  
$thread['title'] = str_replace("[you]"$vbulletin->userinfo[username], $thread['title']); 


haytham 05-01-2010 02:46 PM

Works great. Just wish it worked inside chat boxes. Would have created a lot of chaos and fun. :)
Is there a permission thing on this mod or can any user group use it?

haytham 05-01-2010 03:21 PM

1 Attachment(s)
Sorry to say but the you code is showing up as code on the latest forum statistics. Look at the attached pic. Hope there is a solution.

haytham 05-01-2010 03:28 PM

Quote:

Originally Posted by TimberFloorAu (Post 1789353)
Doesnt work, but does in thread title. Doesnt work neither in cybs stats.

Quote:

Originally Posted by TimberFloorAu (Post 1789360)
Ok does work, but you must be the first word

If you see my previous post, you is the first word but still shows up as you. How did you get it to work?

Sorry for the extra posts..if some one can merge them. Thank you.

haytham 05-02-2010 12:47 AM

Just found out that in subscription notification emails it also shows up as you not the name. All my members figured it out because it is showing code all over the place. Now if I want to uninstall, will the you code just stick out? Do I have to delete the code from every post I made? Tough job.

BirdOPrey5 05-16-2010 10:16 PM

This is a great way to get lurkers to post... I posted a thread with the title, Hey [you] and text to make it seemed like I cared how they were doing (I did care, just not enough to start a unique thread for everyone) and it seemed like dozens of lurkers came out of the woodwork to post- of course once some members figured it out hilarity ensued...

Anyway, any chance of getting a [me] version of this mod? I know there is the /me mod but it doesn't work in nearly as many places as [you] does- I have it installed for now but would love a [me] that works exactly the same way as [you], except of course for my username is always posted. Other members suggested a [randomuser] code too- could be useful.

221 09-23-2010 11:54 AM

Quote:

Originally Posted by Wings69 (Post 1771570)
Would be great if it would work on the search page(otherwise if you use it as thread title and ppl go to new posts it just says [you] )

Quote:

Originally Posted by haytham (Post 2030118)
Sorry to say but the you code is showing up as code on the latest forum statistics. Look at the attached pic. Hope there is a solution.

Solution is use a [you] mod that works on vb3.8.6
https://vborg.vbsupport.ru/showthrea...=183526&page=2

I un-installed this, for those of us who wish the word to be unknown this is useless.

FAST50 02-12-2011 04:36 PM

How do you make this work in a private message?

Thanks for the mod! I like it! Please let me know how to make it work inside of a PM.


All times are GMT. The time now is 08:09 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.01386 seconds
  • Memory Usage 1,823KB
  • 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_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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