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)

RisingGlow 03-26-2012 04:04 AM

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.

BirdOPrey5 03-26-2012 08:06 AM

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)...

BirdOPrey5 03-26-2012 11:21 AM

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.

RisingGlow 03-28-2012 04:55 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2313430)
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

BirdOPrey5 03-28-2012 04:16 PM

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?

RisingGlow 03-29-2012 03:09 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2314308)
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.

BirdOPrey5 03-29-2012 10:21 AM

OK, but I don't see [YOU] on that page. :confused:

Alan_SP 03-29-2012 05:43 PM

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.

BirdOPrey5 03-30-2012 11:42 AM

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.

Boofo 03-30-2012 01:17 PM

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))



All times are GMT. The time now is 06:02 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.01220 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)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