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 (https://vborg.vbsupport.ru/showthread.php?t=169166)

Boofo 01-29-2008 10:00 PM

[you] Replacement
 
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!

NOTE: If you do not click install, you do not need support.

SwollenCranium 01-30-2008 03:30 PM

Say what ?

Where does the [you] variable usual appear and in what context ? I don't think I've encountered it before.

Or if I have , I did not know what I was seeing.

Boofo 01-30-2008 03:44 PM

If you use it in a post is will replace the code with the viewing user's name.

Example:

Boofo says hi to [you].

This would translate to:

Boofo says hi to SwollenCranium. (if you were reading it)
Boofo says hi to Boofo. (if I was reading it)

and so on...

hilfe-forum 01-30-2008 04:01 PM

Try install get this Error:

Importiere Produkt, Bitte warten...

[:]





vBulletin-Systemmitteilung

Folgende Abhängigkeiten wurden nicht erfüllt:

1. Dieses Produkt ist mit Version 3.7.0 Beta 4 von vBulletin nicht kompatibel. (Kompatibel ab 3.7)

(means Dont work with 3.7.0 Beta 4 only with 3.7)

SwollenCranium 01-30-2008 04:01 PM

Quote:

Originally Posted by Boofo (Post 1432517)
If you use it in a post is will replace the code with the viewing user's name.

Example:

Boofo says hi to [you].

This would translate to:

Boofo says hi to SwollenCranium. (if you were reading it)
Boofo says hi to Boofo. (if I was reading it)

and so on...


Ahhhh .... yes. Thanks.

I have seen it before .

Boofo 01-30-2008 04:13 PM

Quote:

Originally Posted by hilfe-forum (Post 1432528)
Try install get this Error:

Importiere Produkt, Bitte warten...

[:]





vBulletin-Systemmitteilung


Folgende Abh?ngigkeiten wurden nicht erf?llt:

1. Dieses Produkt ist mit Version 3.7.0 Beta 4 von vBulletin nicht kompatibel. (Kompatibel ab 3.7)



(means Dont work with 3.7.0 Beta 4 only with 3.7)

Try downloading it again. I changed the minimum version required to 3.7.0. I'm still new to this version required stuff. ;)

hilfe-forum 01-30-2008 04:30 PM

Quote:

Originally Posted by Boofo (Post 1432544)
Try downloading it again. I changed the minimum version required to 3.7.0. I'm still new to this version required stuff. ;)

Same Problem.
I cange minversion="3.7.0" to minversion="3.6.0" now it works ;)

(Works on 3.6.4 and 3.7 Beta 4 )
THX nice Hack
Simple and Cool nominate for MOTM ;)

Boofo 01-30-2008 04:54 PM

Thanks for the report. I just uploaded a version without the version dependencies. ;)

hilfe-forum 01-30-2008 04:58 PM

Quote:

Originally Posted by Boofo (Post 1432589)
Thanks for the report. I just uploaded a version without the version dependencies. ;)

Don?t work in E-Mail notifikation?

Quote:

Hallo xxx,

prince-meier hat auf das Thema '[you] meld dich mal!' im Forum 'Unsere Plauderecke' bei Hilfe Forum geantwortet.

Dieses Thema ist hier zu finden:
http://www.hilfe-forum.eu/unsere-pla...-new-post.html

Dies ist der Beitrag, der gerade geschrieben wurde:
***************
So, gemeldet !!!
***************

punchbowl 01-30-2008 05:03 PM

Quote:

Originally Posted by hilfe-forum (Post 1432562)
Same Problem.
I cange minversion="3.7.0" to minversion="3.6.0" now it works ;)

(Works on 3.6.4 and 3.7 Beta 4 )
THX nice Hack
Simple and Cool nominate for MOTM ;)

top man and thanks to Bofo big time too.

running on 3.6.8 perfect with that change

Boofo 01-30-2008 05:36 PM

Quote:

Originally Posted by hilfe-forum (Post 1432593)
Don?t work in E-Mail notifikation?

I will look into that.

bazzup 01-30-2008 05:58 PM

Thanks for this, could have a right laugh with this lol

cheat-master30 01-30-2008 06:30 PM

I'm probably going to try this.

bazzup 01-30-2008 07:21 PM

I just linked someone to a thread using it and he says it shows my username not his?

Zelda-King 01-30-2008 07:32 PM

Works for me. Does not affect Quick Reply though so if someone who knows the code quick-edits the code shows.

projectego 01-30-2008 07:46 PM

[high]* projectego clicks install :)[/high]

Boofo 01-30-2008 08:13 PM

Quote:

Originally Posted by Zelda-King (Post 1432671)
Works for me. Does not affect Quick Reply though so if someone who knows the code quick-edits the code shows.

I purposely left the code show on edit mode so that if you edit a post for another reason, the code doesn't pick up the name of the person who edits if different from the orginal poster. I hope that made sense. ;)

Zelda-King 01-30-2008 08:33 PM

Ah yes. Hadn't thought of that one. :cool:

cheat-master30 01-30-2008 09:11 PM

Well, I tried and it works great. Needs to work in quick reply.

Oh, and at least one person thought it was aimed specifically at them. Which means this could mean a lot of chaotic humour when posting...

Boofo 01-30-2008 09:30 PM

It does work in quick-reply, but with ajax enabled you need to refresh the page to see the translation.

Boofo 01-31-2008 09:02 AM

Quote:

Originally Posted by bazzup (Post 1432663)
I just linked someone to a thread using it and he says it shows my username not his?

You must have edited the post and saved it with your username in it. Redo it with the tag and that should fix your problem. ;)

Audentio 01-31-2008 09:17 AM

Thattts nice :D. What about just userid? If you have it so whoevers userid is viewable, this can be used to show peoples avatars, information, anything wherever asked for.

pxd 01-31-2008 11:55 PM

Boofo,

How does [you] translate to guests?

Brandon Sheley 02-01-2008 12:20 AM

Quote:

Originally Posted by pxd (Post 1433532)
Boofo,

How does [you] translate to guests?

Unregistered

valdet 02-01-2008 01:55 AM

great mod, thanks, installed and working as expected.

The only little bug is that if you edit your post via quick edit, you will see [you] again after saving instead of username. If you refresh the page your username will come back

Tested on vB 3.6.8
Val.

Boofo 02-01-2008 02:10 AM

This is normal as that is how ajax works. But anyone viewing the post will never see the [you]. Trust me, I got that all worked out. ;)

That would only be a bug if ajax was a bug. ;)

BatMNet 02-01-2008 02:58 AM

Thanks for this. It's great and adds a very personalised feel.

Boofo 02-01-2008 03:18 AM

Plus, its a blast to use on April 1st. ;)

And you're very welcome. ;)

valdet 02-02-2008 03:03 AM

in one of my forums i made a thread like
[you], where are you?
and members are posting/reporting like crazy.. :D

In which hook should we add the code so it parses correctly on Chatbox too

Hillarious

bazzup 02-02-2008 10:29 AM

Quote:

Originally Posted by Boofo (Post 1433022)
You must have edited the post and saved it with your username in it. Redo it with the tag and that should fix your problem. ;)

Ahh cheers, this is fun my april fool will go something like this


Quote:

We have been having a lot of complaints lately about a certain member causing trouble for a lot of others I am affraid that this member will have to be removed from our boards and the member in question is [you]
lol prob get myself shot but it will be funny

valdet 02-02-2008 10:35 PM

Hi there,

I would like to know if it is possible to insert some type of conditional in a plugin, so I restrict the [you] plugins only to one thread
Like this
Quote:

<if condition="$thread[threadid] == xx">
Use my trick
<else />
dont use it
</if>
maybe this needs a PHP conditional in the shape of
Quote:

if (!$vbulletin->thread['threadid'] AND $vbulletin->thread['xx']) {
plugin code
;
}

Any quick help is appreciated.

Boofo 02-03-2008 02:01 AM

Well, yes you can but it really would be better to exclude it from a forum or forums. I was thinking of adding a setting to exclude it for certain forums. Would that work?

Derek Chai 02-03-2008 03:12 AM

Works nice! Works good with atkin marquee.

futureye 02-03-2008 03:42 AM

can we just give it to one group
like admin or mod

Boofo 02-03-2008 03:46 AM

I suppose I could add a setting for usergroups. But what I did is replace the word you with my own special word that only I know. I might do a setting for that, now that you mention it, so you can chose which word you want it to be. That would make this a lot more configurable. Watch for an update soon. ;)

valdet 02-03-2008 06:48 AM

Quote:

Originally Posted by Boofo (Post 1435032)
Well, yes you can but it really would be better to exclude it from a forum or forums. I was thinking of adding a setting to exclude it for certain forums. Would that work?

Any of those setting would be good, but personally I prefer an include rather than exclude option if possible. Better have an option to include the forumids where it can be used. Some may have well over 100 forums and its a pain to type each forumid where they dont want it, whiel they could just add their "Off Topic" or "Jokes" forumid and its all good.

Its still your call though

Val.

Boofo 02-03-2008 07:43 AM

I'm not sure how to handle that as most people would use it forum-wide. I have the usergroups and you replacement word settings done for it. I had the exclude forums almost done but now I see I'm going to need to find out which way everyone prefers it. I will wait and see what everyone else wants as far as the forum ids and then we'll go with the majority. How does that sound?

valdet 02-03-2008 09:06 AM

Quote:

Originally Posted by Boofo (Post 1435168)
How does that sound?

Cool friend, as much as you bring it here i dont mind.

My personal preference was to have an option to limit it within a single thread, but since that seems not possible at the moment, then i guess forumids will work.

Also do you know in which vB hooks connected to this Chatbox product i can insert your plugins so the you hack works here

https://vborg.vbsupport.ru/showthread.php?t=131002

hilfe-forum 02-03-2008 11:17 AM

Amazing :D
My first [you] Thread:
http://www.hilfe-forum.eu/admins-cor...in-mutant.html
2000 Confusing Users
600 Replies
in 2 Days :D

It rocks! :up:

(I replace guest with ***)

Boofo 02-03-2008 11:39 AM

Thank you and I'm glad you like it. Now, if I could only read what was posted and understand it, I would be all set. LOL


All times are GMT. The time now is 06:02 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.01431 seconds
  • Memory Usage 1,826KB
  • 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
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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