vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [you] - Use the person who is viewings username in a post. (https://vborg.vbsupport.ru/showthread.php?t=93173)

Dean C 07-29-2005 11:09 PM

For you, anything ;) Want me to delete Bob :)?

Boofo 07-29-2005 11:13 PM

No, I was just giving you a hard time, Dean. ;)

But leave my forumhome cache stats hack alone! LOL

I would like to be able to see the download in here. Where did it go?

Corriewf 07-29-2005 11:14 PM

Quote:

Originally Posted by Dean C
For you, anything ;) Want me to delete Bob :)?

Oh no you cant get out of it that easly......... :devious:

Boofo 07-29-2005 11:14 PM

Be careful, corrie, I have the power on this one. LOL

Dean C 07-29-2005 11:17 PM

Back up again. I was originally using a preg_match and preg_replace but then realised I wasn't actually matching anything special so back to str_replace. lol this is too much controversy for one night :p I blame corrie for everything ;)!

Corriewf 07-29-2005 11:18 PM

Quote:

Originally Posted by Boofo
Be careful, corrie, I have the power on this one. LOL

Was that "LOL"' a ha ha funny "LOL" or a he he funny "LOL" ?

Corriewf 07-29-2005 11:19 PM

Quote:

Originally Posted by Dean C
Back up again. I was originally using a preg_match and preg_replace but then realised I wasn't actually matching anything special so back to str_replace. lol this is too much controversy for one night :p I blame corrie for everything ;)!

HEY! It is rated 5 stars and has an install.....cant argue with the people......

Chris M 07-30-2005 12:17 AM

Bug in your str_replace :p

Replace:
PHP Code:

$this->post['message'] = str_replace('[you'], $this->registry->userinfo['username'], $this->post['message']); 

with:
PHP Code:

$this->post['message'] = str_replace('[you]'$this->registry->userinfo['username'], $this->post['message']); 

Satan

Dean C 07-30-2005 07:15 AM

Fixed. Thanks Chris :)

aranthorn 08-09-2005 07:01 PM

I've done something like this in the past, gotta be one of the most fun hacks for new users...


All times are GMT. The time now is 08:44 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.01023 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (3)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