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
  #62  
Old 03-30-2012, 03:47 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There will be no noticeable differences between those two codes in a production environment.

Over a thousand iterations you would still see no difference.

Over a million iterations you will notice the first one (all on one line) would be slightly better since there is one less variable assignment made.

But the difference in performance on a forum is in no way justification for code you can read and maintain easier.
Reply With Quote
  #63  
Old 03-30-2012, 04:20 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 always done it the seperate explode way but I am seeing it done like you did it more now. I was just curious as to your thoughts on it is all.
Reply With Quote
  #64  
Old 03-30-2012, 04:33 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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.
Sorry, didn't mean in sense it caused something to malfunction, but in sense that I needed to be in protected usergroup as primary usergroup, not in secondary.

And mod that I mentioned looks also only for primary usergroups to show them to outside world (mod is basically cosmetic).

As I want to appear as regular user to all others and still have all admin privileges (i.e. be protected from [you] BBcode), I needed to set myself as admin in primary usergroup. But, in this case that other mod showed me as admin. So, I decided not to use that mod and use yours. Till now. Now I can use both mods.
Reply With Quote
2 благодарности(ей) от:
BirdOPrey5, Sunka
  #65  
Old 04-02-2012, 12:37 AM
dawges dawges is offline
 
Join Date: May 2007
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, nice mod. Can it be made where it will display the users avatar, ip address and email as well as username?

I saw this once on a forum using you code and it was great for pranks.
Reply With Quote
  #66  
Old 04-02-2012, 11:27 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, none of those things would be possible with this mod- nor do I see reason to add them. Sorry.
Reply With Quote
  #67  
Old 04-19-2012, 12:35 AM
DAMINK DAMINK is offline
 
Join Date: Jun 2010
Location: Melbourne Australia
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use a shoutbox and was wondering if this mod can work inside that as well or is that entirely the shoutbox creators department?
Either way i like it thanks BOP5
Reply With Quote
Благодарность от:
BirdOPrey5
  #68  
Old 04-19-2012, 05:05 AM
drchinh's Avatar
drchinh drchinh is offline
 
Join Date: Feb 2012
Location: Hanoi
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is great, thank you so much!
Reply With Quote
Благодарность от:
BirdOPrey5
  #69  
Old 04-19-2012, 10:03 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DAMINK View Post
I use a shoutbox and was wondering if this mod can work inside that as well or is that entirely the shoutbox creators department?
Either way i like it thanks BOP5
I've played with a couple of shout boxes before and never got it to work right. It would be a fairly easy feature to implement (I would think) for Shoutbox developers. They could include an on/off option to enable [YOU] and they would just have to scan the content being output to the screen for "[YOU]" using str_ireplace() function and replace it wilth $vbulletin->userinfo['username']. The idea of the [YOU] hack has been around long before me so if you get any shoutbox developer to add it let them know no credit is needed or anything like that- but I think the first one to implement this easy option will have an edge on the others since a number of people have been asking for it.
Reply With Quote
  #70  
Old 04-28-2012, 08:43 PM
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 0.976 - Fixes [YOU] in user title's in profiles.

Edit - 0.977 now- fixed in member's list too.
Reply With Quote
Благодарность от:
Sunka
  #71  
Old 06-01-2012, 11:39 PM
hugh_ hugh_ is offline
 
Join Date: Mar 2005
Location: Netherlands
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't work in the activity stream...
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 05:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05487 seconds
  • Memory Usage 2,341KB
  • 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
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (7)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)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