![]() |
It was doing weird things when a user edits a post... so I've created this work around for the bit of text that goes into functions_bbcode.php
Code:
// HACK : START : ME I've added a switch that tests for this, and if $post doesn't exist, it uses the name of the current poster... fine for my forum as I only allow post owners to edit their messages... but this is a crude hack and it will break when an admin or mod edits their post... so not good. Does anyone know a better context that I can use? How to find out the equivalent of an $editpost array or the post id so that I can get the proper name. Cheers David K |
Quote:
|
Quote:
Whats that fix for? |
Quote:
So... when posts with /me in are being edited... the edited version no longer contains the username... so /me might have been "* buro9" in the original, but after edit it was "* " and no username... the fix above presumes the person editing is the person who performs the action and inserts their username. It's a minor thing, but one that was noticed immediately on my board... so I put this hack to this hack in there. Though a better solution is desirable. |
and whats the use for it ? retrieving forgiven nickname? :p
|
Quote:
But if you've seen it, and it nags you... then a workaround is above. You don't have to use it. |
Quote:
Could you update your hack? Code:
// HACK : START : ME But it's the nested if's that is important... solves /me for PM's and reputation bits :) |
Quote:
|
Looking at your code, I still need the newreply.php bit... I'll try this out tonight...
|
Quote:
It's just the lack of username in reputation comments and private messages. I'll look at the edit one now though :) |
OK, This version takes care of edits too:
Code:
// HACK : START : ME I think new replies are already dealt with by the $post one are they not? I can't find a scenario in which it no longer works on mine. |
Oh yeah... I see what you meant about the newreply bit... and yes, I think you do need it still.
In fact... I just tried to work around it... and you really need that bit still. |
Is this still ready to update? Or does the newreply bit need to be worked out first?
|
/me clicks install worked great
|
Sometimes this doesn't work.
If I do three /me in a row only the first "me" is parsed, the others no. But I did a test here, and work. Did I do something wrong editing the files? |
Hi Erwin! Your hack is working great, except in PMs. I am using your quick PM hack also. When replying it shows "/me" instead of the person's name who sent the first PM. Could you help me with this? Thanks bunches!
|
Quote:
|
Thank you so much for all of your hard work. :)
|
Quote:
I've been using this modification to make this hack work in PM's, message preview, etc. But it doesn't seem to work now with the latest version of this hack. Any idea how to incorporate these fixes? (For example right now if you use "/me" in a PM, when the person replies with quote it shows up as "/me" instead of with the name.) |
]
Quote:
[/high] Lets see here...on my forum, I have a double space after every /me enteree. Any ideas? |
Is it full 3.0.7 compatible?
|
Quote:
yeah it works fine with me |
I dont have the time right now to read through this... But this is thehack where like.. you want to greet the user looking so you put "Hello/me," and /me will be their username? If it is... THANKS SO MUCH!
|
I have a problem with the /me code being used within the vB Journal, created by Antonbomb22.
When someone types /me in that, it displays the name of the user VIEWING the journal, not the person who originally posted in their own journal. Any suggestions on how to change that? |
You should ask AN-net himself, as he coded the journal.
|
/me installs the /me hack :P
|
Quote:
I know it's basically a thread hijack but there have been so many twists and turns on this thread it's really confusing. I'd love to know if Erwin or buro9 see anything wrong with doing it Edgewize's way, since it seems to work better... |
I'm having a conflict with the Multiquote hack (not the quick-reply multi-quote).
If I quote someone with multi-quote who has used /me, my username will be inserted. If I quote myself when I had used /me, my username will be replaced with /me. Here is a screenshot: |
No one can help?
|
The /me code hack upgraded to version 3.00 thanks to Edgewize's suggestions - this fixes the parsing problems in quotes and PMs. :)
Just remove the old hack and follow the instructions in the first post. |
hey hey new version, might install this on my forum, even though my site is sitting there, useless music forum ;)
is / me install here? [high]* Getox tests[/high] |
Excellent. Thanks for the update, Erwin. :)
|
Thanks. :)
|
Erwin. For this to work in vB 3.0.7. You should change your instructions for private.php.
Should Be Find: PHP Code:
Just wanted to let you know. :) [high]* Logikos rocks[/high] |
/me loves this hack
|
I cant find
Code:
$pagetext = trim($pagetext); :\ |
Look 2 post up dude for an update.
|
oh thanks.
|
Fixed the first post. :)
|
Thank you Erwin! :)
|
All times are GMT. The time now is 11: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|