vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - [you] Replacement Mod (https://vborg.vbsupport.ru/showthread.php?t=93500)

Boofo 08-02-2005 10:00 PM

[you] Replacement Mod
 
Here it is! The [you] hack ported over to vB 3.7 beta 4. ;)

I have ported this over to vBulletin 3.7 beta 4, but it should work on all 3.7 versions. It now works board-wide (posts and thread titles), in the archive, and also in the quick post in the profile. If there are any areas you find that this doesn't work in, let me know and I will add the code for that area.

Thanks goes out to KirbyDE for making the first version for 3.5 possible. Without him, I'd STILL be trying to figure out the best way to do this for vB 3.5. Thanks, buddy! ;)

Description:

This will replace the [you] variable (board-wide) with the viewing user's username.

Installation:

1 product xml
(No file edits)

Upload the product xml and you're all set!

Enjoy!

Neal-UK 08-03-2005 02:11 AM

Will it work on the shoutbox?

Neal-UK 08-03-2005 02:16 AM

doesnt seem to be working

Boofo 08-03-2005 02:23 AM

Quote:

Originally Posted by nealparry
Will it work on the shoutbox?

No, Zero would have to incorporate that like he did the /me code. I will talk to him about it. ;)

Boofo 08-03-2005 02:24 AM

Quote:

Originally Posted by nealparry
doesnt seem to be working

That's a little vague. What do you mean by "not working"?

Neal-UK 08-03-2005 02:25 AM

Quote:

Originally Posted by Boofo
No, Zero would have to incorporate that like he did the /me code. I will talk to him about it. ;)

for some reason I can't get the /me command to work in the shoutbox, nor can i get the [you] to work anywhere. Mind you, just messed up my language and waiting for vb to help me!

Boofo 08-03-2005 02:31 AM

Quote:

Originally Posted by nealparry
for some reason I can't get the /me command to work in the shoutbox, nor can i get the [you] to work anywhere. Mind you, just messed up my language and waiting for vb to help me!

Then you are having problems with something else somewhere. This works 100% for me and has been tested.

Did you upload the xml as a plug-in? And are you using [you] or you?

Neal-UK 08-03-2005 02:35 AM

Quote:

Originally Posted by Boofo
Then you are having problems with something else somewhere. This works 100% for me and has been tested.

Did you upload the xml as a plug-in? And are you using [you] or you?

no [you]

I just rebuilt my english language and it worked, but it's not working again now. Sometimes shows, othertimes it doesn't

Neal-UK 08-03-2005 02:36 AM

It doesn't show when submitted with click reply, press refresh and it's working. Sorry about that.

Boofo 08-03-2005 02:37 AM

Quote:

Originally Posted by nealparry
no [you]

I just rebuilt my english language and it worked, but it's not working again now. Sometimes shows, othertimes it doesn't

Then you have some problem somewhere else. With the hook where it's at, there's no reason it shouldn't work for you.

Boofo 08-03-2005 02:38 AM

Quote:

Originally Posted by nealparry
It doesn't show when submitted with click reply, press refresh and it's working. Sorry about that.

So, it's working then? Great! ;)

Neal-UK 08-03-2005 02:42 AM

Quote:

Originally Posted by Boofo
So, it's working then? Great! ;)

yeah, i've done it again, sorry! (which smilie should I use now......)

http://www.burnleyweb.com/forum/imag...mated/stop.gif http://www.burnleyweb.com/forum/imag...mated/bolt.gif

Boofo 08-03-2005 02:43 AM

WE don't have a "skulking away in shame" smilie yet, but I'll see what I can do. ;)

No problem. glad it's working. ;)

ForYou 08-03-2005 07:14 AM

Hello Boofo ,

You told edit the archive/index.php , that mean what ??

is the [you] plugin need edit the archive/index.php !!

regards

Boofo 08-03-2005 07:15 AM

Quote:

Originally Posted by ForYou
Hello Boofo ,

You told edit the archive/index.php , that mean what ??

is the [you] plugin need edit the archive/index.php !!


regards

If you want [you] to be parsed in the archive and not show the variable itself, you need to edit that file.

Boofo 08-03-2005 07:55 AM

Quote:

Originally Posted by ForYou
Hello Boofo ,

You told edit the archive/index.php , that mean what ??

is the [you] plugin need edit the archive/index.php !!


regards

ForYou,

Please click install if you use this. ;)

Biker_GA 08-03-2005 07:57 AM

Quote:

Originally Posted by Boofo
Installation:

1 (very small) file edit for the archive
1 mxl

What's a mxl? :laugh:

Boofo 08-03-2005 08:34 AM

Oops! That's how my keebord spels it. ;)

Fixed! ;)

Brinnie 08-08-2005 09:59 AM

and if it is a guest?

Boofo 08-08-2005 10:11 AM

Quote:

Originally Posted by Brinnie
and if it is a guest?

Unregistered is what it would say. ;)

Do I win something? ;)

Boofo 08-08-2005 10:54 AM

Quote:

Originally Posted by nealparry
It doesn't show when submitted with click reply, press refresh and it's working. Sorry about that.

Then please click the install button. ;)

TwinsForMe 10-26-2005 03:44 AM

How would I be able to change the colour of the username that would appear?

innersanctum 10-26-2005 02:10 PM

Is there a way to only enable this for a specific forum instead of the whole site? I want to use it but I don't want it to be available in every forum.

Thanks.

jugo 10-26-2005 02:21 PM

use a confitional in the plugin....

OR..

Set up a Option where you can insert forum ID's and have the conditional check the array of those IDs for permission.

SpanishHarlem 10-28-2005 01:33 PM

ok what would cause this. Some of my member's are seeing their own name's other's are still seeing my name..

Boofo 10-28-2005 08:46 PM

Quote:

Originally Posted by SpanishHarlem
ok what would cause this. Some of my member's are seeing their own name's other's are still seeing my name..

If you edit a post it will cause that.

TwinsForMe 11-24-2005 08:48 PM

Quote:

Originally Posted by TwinsForMe
How would I be able to change the colour of the username that would appear?

Anyone?

ThePimp 12-03-2005 08:59 PM

Strangeness occurs with this. I followed the instructions, and tested it. I used [you] in the thread title and it seemed to work at first, then I noticed everyone was posting as my Admin account and had my permissions. I logged out and it showed me as logged in still but as Unregistered, and I couldn't log back in. So I quickly removed it.

????

Any idea on this?

Boofo 12-04-2005 12:20 AM

Quote:

Originally Posted by ThePimp
Strangeness occurs with this. I followed the instructions, and tested it. I used [you] in the thread title and it seemed to work at first, then I noticed everyone was posting as my Admin account and had my permissions. I logged out and it showed me as logged in still but as Unregistered, and I couldn't log back in. So I quickly removed it.

????

Any idea on this?

This hack would have nothing to do with permissions for your account. It will only show your name when you view it. As it will show another user their name when they view it. As far as you not being able to log in, this hack could not possible have anything to do with that, sorry. ;)

EasyTarget 12-04-2005 02:54 AM

is there a way I can limit this hack to show up in posts only and not in thread titles on the thread view page or in users names?

HBC 12-07-2005 08:26 PM

can this be changed to show a userid#?

fyjpm 12-14-2005 10:47 AM

when you use [you] within a link or a selflink it escapes the brackets and breaks...can this behaviour be altered?

Thanks,

John

fyjpm 12-14-2005 10:50 AM

Quote:

Originally Posted by fyjpm
when you use [you] within a link or a selflink it escapes the brackets and breaks...can this behaviour be altered?

Thanks,

John

I just changed the code to -you- for my purposes to avoid the escaping and it works now....not sure if you want to amend this or make a note somewhere....

fyjpm 12-14-2005 10:53 AM

I noticed when you edit it makes the changes for you in the edit box, and if you don't remember to put it back to [you] (or -you- in my case) it hard codes the editors username in the post...can you think of a way around this?

Thanks,

John

Hellcat 12-14-2005 11:58 AM

*lol*
Nice one! Installed and tried -> working fine.

I guess I can confuse my members a bit with this :D

ChErAbOo 01-17-2006 01:28 AM

Thanks for this I just converted from BB to VB and was missing this feature

*clicks Install

innersanctum 01-18-2006 12:52 PM

I was wondering if there is are any by-products to this code.

For example:
HTML Code:

Code                      Result
[you]                      username
[insert code here]        ip address
[insert code here]        sex
[insert code here]        avatar
[insert code here]        title
[insert code here]        userid
[insert code here]        email address


DannyMilner 01-21-2006 06:21 PM

Nice work, shame you have to do a file edit but away.

*installed*

Boofo 01-21-2006 06:27 PM

Quote:

Originally Posted by DannyMilner
Nice work, shame you have to do a file edit but away.

*installed*

I will upload the fix for that as soon as I can find it. No more file edits. ;)

Luggruff 02-11-2006 02:02 PM

how would I change [you] to Luggruff, and $vbulletin->userinfo['username'] to <span style="text-decoration: none; font-weight: bolder; color: #D10404;">Luggruff</span> ?

(just want the word Luggruff to turn up RED everywhere without any code showing, since if I would do this in the replacement variable thingie it would look like <span style="text-decoration: none; font-weight: bolder; color: #D10404;">Luggruff</span> in every title and other places that don't suppport HTML or CSS)


All times are GMT. The time now is 04:49 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.01349 seconds
  • Memory Usage 1,817KB
  • 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_html_printable
  • (18)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