The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Seems like an easy bbCode mod?
Back in my earlier installs, I had this mod which basically replaces the code "you" (in square brackets, not quotes) with the name of the logged in user. I wasn't able to figure out how to do this with vb3.x and I've just upgraded to 4.x and still cannot figure it out. Can anyone point me in the right direction, or better yet, show me how it's done?
Much thanks =) |
#2
|
|||
|
|||
I don't know if it exists or not, but the reason it's not so easy to do with bbcodes is that posts are cached after the bbcodes are processed, so you'd need some way to prevent a post from being cached if it contained a "you" bbcode.
I haven't tried it, but you might be able to cheat by creating a plugin using hook postbit_display_start and code like: Code:
$post['message'] = str_ireplace('[you]', htmlspecialchars_uni($this->registry->userinfo['username']), $post['message']); |
#3
|
|||
|
|||
When you describe it that way, I can see why it might not be so easy. Originally I dont think it was a BB code mod and so your suggestion may have been the way it was done. I just don't have the expertise to delve where the new spots to add the magic code in the files has run off to. Thanks for the help =)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|