![]() |
The problem is that i have other hacks installed that modified editpost.php :(
have the same problem as KirbyDE, the post info gets screwed up if i stop editinf a post, yet still i cannot apply the update |
Just change what is between these two lines in the editpost and that will include the fix. ;)
PHP Code:
PHP Code:
|
It works great, Stefan, except for one small thing. If I put a phoney name in (or misspell a user's name), it will show guest like it is supposed to, but it will also show that phony or mispelled name above the word Guest. That shouldn't be in there, right? ;)
|
Yes, it should work that way.
Guest is the usertitle, so if your username doesn't exists, it will set the post's userid to 0 and the Guest's username to the one you entered |
Ah, ok, Then all is well once again in the Stefan code. ;)
I am curious, though, why did you split the code this time instead of doing it all together? ;) |
because of the preview.
If you click on submit changes but have an error in your new post (like too many images or such) you will get to the previewpage as well. but you cannot know this before the actual updatesection has been running. so it's not possible anymore to keep it in one block, if you want the preview to work |
Updated just the lines in editpost.php
I make a topic, then view it, press edit, change something, and then press preview. Then I press save, and there we go, everything gets screwed up again... :( Have i missed something out in updating? |
Quote:
|
@djohn: the editpost.php changes should be enough.
it is working fine for me. @Bob: you haven't tested the code good enough :) if you have an maximum images limit you will see what i meant :) |
Works like a dream in Gold!
|
This is one AWESOME hack. I sooooo need this for archiving my old news and stuff.
|
Quote:
And you are probably right on the code. We didn't test it for image limits, at least the messages we tested it on didn't give us the too many images error. But the rest of it worked fine. ;) |
yeah the rest was fine, but if i fix something, it should be fixed as well as possible ;)
as for image limit: hmm, it's 100 i think. no real limit, it was just set up to prevent an old vb2 bug :) |
Thank you, sir. ;)
I never know what to set those kinds of things at. I had it set at 10. ;) |
I don't see this in editpost.php
Code:
// ############################### start permissions checking ############################### Code:
// ############################### start edit post ############################### |
seems the comments were wrong in the old vb3 versions.
just refere to the request line, it's unique so, you can make the modifications on the place you found :) |
I installed the hack per the instructions and everything went fine. I did need to add my table prefix. When I try to use the advanced editing options, however, I get:
Code:
mysql error: Unknown table 'user' in field list |
oops, sorry that was my fault.
find that code: PHP Code:
|
Quote:
|
it's just because of his table_prefix
|
Thanks much for the super quick response - that seems to have fixed it! Sweet hack! :D
|
Sorry - one more question. How would you restrict the Advanced Editing Options to Admins only?
|
very easy as well :)
you just have to replace these appearances: PHP Code:
PHP Code:
|
Thanks Xenon - now it's perfect! :D
|
:)
you're welcome |
We've had some issues with this hack:
It seems for my SuperMods that when they are editing a post, prior to having used the ModCP (having logged in the second time) they cause the post edited to lose all timestamp and Poster info - timestamp is reset to the unix Epoch, and the poster is reset to Guest - this causes the thread to seem like it's been started by a Guest, with a post that's replying to posts below it ... Any thoughts why this might happen ? |
Quote:
|
hmm, very wierd...
i cannot reproduce it, and did not get such reports before. I'll check it out a bit more, maybe i can reproduce it somehow... |
Is it possible that it's linked to either or both of the "Doublepost check" hack and/or the "Editing Heirarchy" hack - or a combination of them ?
|
Hmm, maybe, i already got reports the the Message editing hierachy hack doesn't work together with this hack.
I will have to check this out, it's a bit wierd, as i don't see why they shouldn'T work together, but maybe i have overseen something.. |
Ok, i did a lot of test with these two hacks now, and everything was working perfectly.
I also did a look on the code itself, and it is imposible to change the dateline without admin permission, so this might be a different bug. I suggest you upgrade to vb3.0.1 and install the latest version of this hack. I've added a little bit of code to this hack, nothing important, just to update the threadinfos when the admin changed a post's dateline |
I reinstalled this hack to get the update, and then reinstalled the Message Editing Hierarchy hack. Everything works fine until I try to edit Moderator posts with my SuperModerator testuser - No Permission. :ermm:
|
I really have no idea, why you get a no permission error.
i did exactly the same steps and everything is working absolutely fine. you can send me your editpost.php file to xenon@vbulletin.org i will take a look at it. |
Also, when you install both hacks, you end up with added code from both in the same place in editpost.php... after
Code:
// get permissions info Code:
// ############################### start permissions checking ############################### |
erm, regarding that post, it seems your editor is corrupting files
%4$s REQUEST['do'] should be $_REQUEST |
Yeah, I see that. It happened when I made the post though - the files are not corrupt.
I *think* I may have figured this out. My Moderator group has the permission "Can Moderate All Forums (is Super Moderator)" set to yes - so in effect they are equal to SuperModerators (id:5) and so by design can't be edited by them. Sorry to take up your time with this oversight. :o Thanks for all of your help! |
:)
no prob :) you're welcome |
[high]* SaN-DeeP installed
[/high] thnx for nice hack XENON :) Sandy... |
Quote:
|
hmm, very wierd.
i cannot reproduce that. Maybe a bug somewhere else, which is affecting my hack as well. (aka permission changes where there shouldn'T be any) |
All times are GMT. The time now is 09:57 AM. |
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:
|