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 10:00 PM

[you] - Use the person who is viewings username in a post.
 
[ [you] - replace bbcode with a username]

Information
  • [high]vBulletin Version:[/high] 3.5.x
  • [high]Author:[/high] Dean Clatworthy
  • [high]Copyright:[/high] You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.
  • [high]Donations:[/high] I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.
What does this modification do?
If you place [you] inside of a post. It'll replace it with the username of the person who is viewing the thread.

Installation

1/

Upload the you-hack.xml file via the plugin uploader in the AdminCP

Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

amykhar 07-29-2005 10:38 PM

Dean, did you know Kirby just released this as a one-line plugin today? He uses a different replacement code, but, it's this mod from what I can see.

Dean C 07-29-2005 10:41 PM

Had no idea, did a quick search in the plugins forum and didn't see it. Also can't see it in Kirby's profile :)
https://vborg.vbsupport.ru/member.php?u=47102

Don't wanna step on anyones toes, corrie was requesting it on IRC :)

amykhar 07-29-2005 10:42 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=93145" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=93145</a>

Dean C 07-29-2005 10:46 PM

Quote:

Originally Posted by amykhar

Ah yep. I only searched the releases forums and couldn't find it.

Corriewf 07-29-2005 10:49 PM

Quote:

Originally Posted by Dean C
Don't wanna step on anyones toes, corrie was requesting it on IRC :)

I have no idea what you are talking about........... :rolleyes:

Well it is different code.

Boofo 07-29-2005 10:57 PM

Quote:

Originally Posted by amykhar
Dean, did you know Kirby just released this as a one-line plugin today? He uses a different replacement code, but, it's this mod from what I can see.

He didn't really release it as a plug-in. He just posted the line needed. ;)

Boofo 07-29-2005 10:58 PM

Quote:

Originally Posted by Dean C
Ah yep. I only searched the releases forums and couldn't find it.

Did you ask the author of the vb 3.0 version (*ahem*) if you could release this? ;)

Dean C 07-29-2005 10:59 PM

Quote:

Originally Posted by Boofo
Did you ask the author of the vb 3.0 version (*ahem*) if you could release this? ;)

[high]* Dean C sobs
[/high]

We have to ask for permission when rewriting code differently from scratch? I'm so behind the times :ermm:

Boofo 07-29-2005 11:02 PM

Well, to tell you the truth, I don't know the official policy on it, but it doesn't give the original author any time to update his hacks for the new version if everyone can just do them with new code, right? ;)

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

Gizmo5h1t3 08-09-2005 09:50 PM

big bug in this, with RC2....parse errors start to appear....

wolfyman 08-17-2005 03:27 AM

added hack and got this when trying to reply or add thread:

Parse error: parse error, unexpected T_STRING in /home/user/public_html/vbulletin_3-5-0/includes/class_postbit.php(279) : eval()'d code on line 1

wolfyman 08-17-2005 03:28 AM

now my forum is wrecked.

oh well, it had to happen sooner or later :P

wolfyman 08-18-2005 02:00 AM

since I installed this I have

Parse error: parse error, unexpected T_STRING in /home/user/public_html/vbulletin_3-5-0/includes/class_postbit.php(279) : eval()'d code on line 1

but it's only when viewing a thread - the main page seems fine. ANy ideas?

red_baron2000 08-21-2005 01:37 AM

same problem here ,,i ended by uninstalling it..

wolfyman 08-21-2005 02:05 AM

i wasn't so lucky... still trying to get rid of that error.

Casparian 08-21-2005 11:23 AM

Yeah same error on our forums in RC2 so have uninstalled for now! It'd be great for personalising our news announcements, same as we do by putting $username in the outgoing emails.

wolfyman 08-21-2005 04:07 PM

does this thing make any database changes or anythign? I uninstalled it but I still have the eror.

Dean C 08-21-2005 04:46 PM

Should be fixed. I swear I uploaded this fix the day I released this. Sorry about it guys :)

jugo 09-13-2005 03:18 PM

Quote:

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


I started many fights in a forum because of this one.

Brandon Sheley 09-14-2005 08:07 AM

Quote:

Originally Posted by Dean C
Should be fixed. I swear I uploaded this fix the day I released this. Sorry about it guys :)

works like a champ now :) tested it, then put it on the live board, no probs :)

Boofo 09-14-2005 08:12 AM

Quote:

Originally Posted by Loco Macheen
works like a champ now :) tested it, then put it on the live board, no probs :)

I'll bet it don't work in the archive or thread titles. ;)

I got mine working in my sig even. I just need to update it here. ;)

jugo 09-14-2005 12:15 PM

is there a way to prevent it from working in PMs. I don't want it to parse in PMs.

HellBoy 10-04-2005 06:07 PM

Can this script be written so it also works for signatures?

amandad 10-20-2005 03:46 AM

Got it installed, but having issues with the variable to use to get the username to come up!

I've tried using [you] and it doesn't work for me?

What am I doing wrong? :P

Calisse 12-05-2005 11:42 PM

works well, i like it. Thanks <3

(if it helps i was utterly confused by both threads lol)

zagman76 02-24-2006 06:17 PM

-bump-

just wondering if this can be restricted to specific forums/sub-forums?

Smiry Kin's 02-27-2006 04:39 AM

dont work 3.5.4

after 1 hr of looking for it.. lol

hambil 03-10-2006 01:06 AM

I hope you don't mind, but I took your idea and ran with it a little.

[you] Now works in:
thread titles
signatures
search results
forum and thread displays
and of course - posts

Also, I've made it a product, so the multiple plugins can be installed and uninstalled easily.

It's all yours if you want it, I don't care about credit. I'm just learning my way around vBulletin by tweaking other's hacks :)

It's been tested on 3.5.4

Boofo 03-10-2006 01:18 AM

Quote:

Originally Posted by hambil
I hope you don't mind, but I took your idea and ran with it a little.

[you] Now works in:
thread titles
signatures
search results
forum and thread displays
and of course - posts

Also, I've made it a product, so the multiple plugins can be installed and uninstalled easily.

It's all yours if you want it, I don't care about credit. I'm just learning my way around vBulletin by tweaking other's hacks :)

It's been tested on 3.5.4

Don't forget the Archive. ;)


All times are GMT. The time now is 04:46 PM.

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.01549 seconds
  • Memory Usage 1,818KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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