Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Advanced [YOU] BB Code (with options) by BOP5 Details »»
Advanced [YOU] BB Code (with options) by BOP5
Version: 0.977, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.x Rating:
Released: 11-27-2010 Last Update: 04-28-2012 Installs: 76
Uses Plugins
Re-useable Code Is in Beta Stage  
No support by the author.



Just in time for April Fools Day!

Update - 11/28/2010 - Updated to 0.91 - Added 1 plugin for Breadcrumbs
Update - 12/7/2010 - Updated to 0.92 - Added 2 plugins to work in Polls (Questions and Options)
Update - 3/25/2012 - Updated to 0.97 - Completely re-coded, Now works virtually everywhere in a VB4 forum and suite (blogs, CMS, groups, etc...) - No longer compatible with VB 3.x.
Update - 3/26/2012 - Fixed a couple of bugs relating to blogs and thread titles.
Update - 4/28/2012 - FIxed bug for user title's in profiles
Update - 4/29/2012 - FIxed usertitle's on member's list

[B]Live Demo: (Retired)

An all new version of my "Advanced [YOU] BBCode" mod, now completely compatible with the blogs, cms, and all other parts of the forum.

This mod creates the [YOU] BB-like-code. When someone types [YOU] in a post or thread or virtually anywhere else on the forum (if enabled) it gets changed to the username of the user currently viewing the page.


The mod allows you to specify a replacement to use for guests and users not logged in. The default is simply "you."

There are setting to allow the admin to enable and disable in the following areas:
  • Specific Forums (or all forums)
  • PMs
  • Visitor Messages
  • (Social) Groups
  • Picture Comments
  • Blogs
  • CMS
  • Widgets
  • Sidebar
  • Breadcrumbs
  • Signatures (when viewed in posts or PMs)
  • User Titles (when viewed in the postbit)

You can also specify "Immune" usergroups who will always see [you] so as not to get confused, if you wish..

If you need the older version for some reason it is still available as the VB 3.8 mod:
https://vborg.vbsupport.ru/showthread.php?t=254371

Please Mark as Installed if you use this.
Donations Always Appreciated. :up:

Download Now

File Type: zip Advanced YOU BB Code by BOP5 VB4 v977.zip (6.2 KB, 182 views)

Screenshots

File Type: jpg vb4_settings_advyou.jpg (73.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Sherrie, WendM

Comments
  #52  
Old 03-26-2012, 04:04 AM
RisingGlow RisingGlow is offline
 
Join Date: Feb 2012
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great code. but is it possible to enable this in profiles?
I'm running 4.1.10 and it shows [YOU], not the real username.
Reply With Quote
  #53  
Old 03-26-2012, 08:06 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where exactly in the profile is it showing [YOU]? Like what part? It should most certainly be working in Visitor Messages (if you have them enabled)...
Reply With Quote
  #54  
Old 03-26-2012, 11:21 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated to version 0.975- a couple of bugs were causing the [YOU] not to work in blogs.

Also I had accidentally deleted the code that made it work in thread titles (fixed this.)

If you downloaded 0.97 you should definitely update to this version.
Reply With Quote
  #55  
Old 03-28-2012, 04:55 AM
RisingGlow RisingGlow is offline
 
Join Date: Feb 2012
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Updated to version 0.975- a couple of bugs were causing the [YOU] not to work in blogs.

Also I had accidentally deleted the code that made it work in thread titles (fixed this.)

If you downloaded 0.97 you should definitely update to this version.
on the left where it has ur name and profile picture
Reply With Quote
  #56  
Old 03-28-2012, 04:16 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see where it would be...

are you talking like this page?

http://www.qapla.com/mods/member.php/196-Joe-Mod

Maybe you could give me a screenshot so I know where exactly you mean?
Reply With Quote
  #57  
Old 03-29-2012, 03:09 AM
RisingGlow RisingGlow is offline
 
Join Date: Feb 2012
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
I don't see where it would be...

are you talking like this page?

http://www.qapla.com/mods/member.php/196-Joe-Mod

Maybe you could give me a screenshot so I know where exactly you mean?
yah, that page.
Reply With Quote
  #58  
Old 03-29-2012, 10:21 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, but I don't see [YOU] on that page.
Reply With Quote
  #59  
Old 03-29-2012, 05:43 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I remember, your mod looks only for primary usergroup for checking if [you] BBcode could be used, or for immunity to [you] BBcode.

This is a bit of a problem for me and it also somehow clashes with this mod: https://vborg.vbsupport.ru/showthread.php?t=229146

This mod also looks only for primary usergroups (and has also some bugs).

For my reasons I want to have myself set to look outside as regular users. Could you maybe change your mod to look to all usergroups, not only primary? In that case I'll could start using this other mod (if I use your mod and this, I'll look to outside world as admin, or I couldn't use [you] BBcode, or be immune). For the moment I use only your mod.
Reply With Quote
  #60  
Old 03-30-2012, 11:42 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This version doesn't do a usergroup check on who can use it, it only does a usergroup check on immune users. But yes it does look for primary group only.

However it is a 1 line fix to make it work for secondary and primary groups:

Edit the Advaned [YOU] Function Plugin:

Find this line:
Code:
elseif (in_array($yougroup, explode(',', $vbulletin->options['adyoubop5_im']))) //If an immune user
and replace it with:
Code:
elseif (is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['adyoubop5_im']))) //If an immune user

As for the mod it clashes with I would think this new version shouldn't clash with any mods but I haven't checked it as I have my own version of the "HTML Markup Everywhere" mod.
Reply With Quote
Благодарность от:
Alan_SP
  #61  
Old 03-30-2012, 01:17 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been curious about this and wonder which way is actually better. Is one less intensive than the other?

Code:
if (is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['adyoubop5_im'])))

OR

Code:
$test = explode(',', $vbulletin->options['adyoubop5_im']);

if (is_member_of($vbulletin->userinfo, $test))
Reply With Quote
Reply

Thread Tools

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 03:44 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.09800 seconds
  • Memory Usage 2,338KB
  • 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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete