Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
[you] Replacement Mod Details »»
[you] Replacement Mod
Version: 1.0.1, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.5.8 Rating:
Released: 08-02-2005 Last Update: 01-29-2008 Installs: 34
Uses Plugins
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 12-07-2005, 08:26 PM
HBC HBC is offline
 
Join Date: May 2005
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can this be changed to show a userid#?
Reply With Quote
  #33  
Old 12-14-2005, 10:47 AM
fyjpm's Avatar
fyjpm fyjpm is offline
 
Join Date: Oct 2005
Location: Buffalo, NY
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks,

John
Reply With Quote
  #34  
Old 12-14-2005, 10:50 AM
fyjpm's Avatar
fyjpm fyjpm is offline
 
Join Date: Oct 2005
Location: Buffalo, NY
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Reply With Quote
  #35  
Old 12-14-2005, 10:53 AM
fyjpm's Avatar
fyjpm fyjpm is offline
 
Join Date: Oct 2005
Location: Buffalo, NY
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #36  
Old 12-14-2005, 11:58 AM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

I guess I can confuse my members a bit with this
Reply With Quote
  #37  
Old 01-17-2006, 01:28 AM
ChErAbOo ChErAbOo is offline
 
Join Date: Jan 2006
Location: Eastern United States
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

*clicks Install
Reply With Quote
  #38  
Old 01-18-2006, 12:52 PM
innersanctum innersanctum is offline
 
Join Date: Jul 2004
Location: Tiskilwa, IL
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #39  
Old 01-21-2006, 06:21 PM
DannyMilner DannyMilner is offline
 
Join Date: Aug 2005
Location: Leeds, UK
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

*installed*
Reply With Quote
  #40  
Old 01-21-2006, 06:27 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #41  
Old 02-11-2006, 02:02 PM
Luggruff's Avatar
Luggruff Luggruff is offline
 
Join Date: Apr 2005
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:53 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04975 seconds
  • Memory Usage 2,296KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete