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 03-30-2012 03:47 PM

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.

Boofo 03-30-2012 04:20 PM

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.

Alan_SP 03-30-2012 04:33 PM

Quote:

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

dawges 04-02-2012 12:37 AM

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.

BirdOPrey5 04-02-2012 11:27 AM

No, none of those things would be possible with this mod- nor do I see reason to add them. Sorry.

DAMINK 04-19-2012 12:35 AM

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

drchinh 04-19-2012 05:05 AM

It is great, thank you so much!

BirdOPrey5 04-19-2012 10:03 AM

Quote:

Originally Posted by DAMINK (Post 2321427)
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.

BirdOPrey5 04-28-2012 08:43 PM

Updated to 0.976 - Fixes [YOU] in user title's in profiles.

Edit - 0.977 now- fixed in member's list too.

hugh_ 06-01-2012 11:39 PM

This doesn't work in the activity stream...


All times are GMT. The time now is 09:33 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.01081 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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