vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Advanced [YOU] BB Code (with options) by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=254373)

BirdOPrey5 04-02-2011 02:09 AM

Quote:

Originally Posted by Alan_SP (Post 2179937)
One other limitation I just found out:

If you have user who has more than one usergroup, and one usergroup is immune, but other isn't, this doesn't make user immune to you tag. Is it possible to enable immunity if user has at least one immune usergroup?

That's not how it's programmed. It only recognizes the primary usergroup. Are you sure the account you are testing it with isn't in the "immune" usergroups? They'll always see the "[you]" code, not their username.

I just tested this on my test forum, an admin (usegroup 6) had a secondary usergroup (9) made active... In the mod options usergroup 9 was blocked from using the code. Posts made by the admin still showed the username as I expected they would.

Alan_SP 04-02-2011 03:35 AM

You are right. I set myself on my forum as (primary usergroup) registered user, and secondary as admin. I wanted to look to outsiders as regular user. Now I reversed that and when my primary usergroup is admin, I can see and write you code with no problem. Thank you, just my messed up setup of myself. :)

Everything's fine. Sorry.

BirdOPrey5 04-02-2011 01:15 PM

Not a problem. Enjoy. :up:

Boofo 04-05-2011 06:59 AM

Quote:

Also when previewing your signature in your User CP you will see the [YOU] code in the signature, however it WILL work correctly in posts with the signature attached.
This can be fixed by adding another plugin in the profile_editsignature_start hook with the following:

Code:

$previewmessage = str_ireplace("[you]", $vbulletin->userinfo[username], $previewmessage);

BirdOPrey5 04-06-2011 02:31 PM

Thanks Boofo. :up:

hugh_ 04-16-2011 05:55 AM

Is there a way of making this work with the widgets in the CMS?

BirdOPrey5 04-16-2011 10:01 PM

Probably with custom programming but since I don't have the 4.0 suite I can't help you.

hugh_ 04-16-2011 10:19 PM

Thanks for replying BoP. Anyone else want to have a go at making this work in the CMS?

BirdOPrey5 04-16-2011 11:28 PM

No problem- just a reminder I marked this as "re-usable" so I would welcome anyone who wants to pick up where I left off and keep developing this mod. :)

angeljs 05-14-2011 03:06 PM

I love little personal touches like this for my members...thank you! :)


All times are GMT. The time now is 06:34 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.01110 seconds
  • Memory Usage 1,734KB
  • 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_code_printable
  • (2)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