![]() |
Quote:
The check is that those who can edit the post can also see the option. |
Ah ok... cause I want it for admins only I had to add it ;)
|
Quote:
Miguel |
see, now I am scared :-S
|
Installed and working fine for me. One minor bug: When viewing pm's it shows a linked "1" now where the "View History" is on edited posts. It does this on all pm's even before the hack was installed. It links to:
http://www.123.com/forum/showthread....editnum=1#post Minor but could be fixed. I haven't been able to look at and fix it yet myself. |
Quote:
|
Quote:
It sounds like the postbit for showthread is broken somehow (and is crashing the postbit generator). What version of vbulletin are you using and also have you changed the postbit template much ? Another check that would be worth doing is to see if disabling just the plugin relating to showthread allows you to see normal threads. If not, then check if disabling just the plugin relating to the postbit allows the you to see threads normally. If you disable the postbit change, then it is still possible to view older versions of posts by typing in the link directly, you can use: showthread.php?p=69841&prev_postid=69841&prev_edit num=0#post69841 to view the original version of a post that you have edited. You need to change 69841 to the postid of the post you have just edited. |
Quote:
|
hmm,
doesn't rewuire this hack a lot of diskspace due to the double and higher saves of one post?!? any way of deleting the saved edits after half a year or similar? |
Quote:
|
Quote:
Miguel |
Quote:
|
Quote:
Just a suggestion: How about recording the username that makes the edit and displaying it with each edit version somewhere. I'll probably modify my board with something of this nature. |
I love you for this hack :)
|
Quote:
Another question, as admin do you use a different version of the postbit template ? Maybe you use postbit_legacy ? Also, if you use a different style that might be it as well. Also, there might be a problem caused by other edits to the postbit template. Are you using the default version of the postbit template ? There are two places where showthread could be being broken: -- the plugin where the postbit is modified. This is the plugin using the "parse_templates" hook. It is called "POST-HIST: modify postbits". If you disable that, then the original postbit will be used, but you should still be able to view older versions of a post using the URL directly. for example: <forumname>/showthread.php?p=69841&prev_postid=69841&prev_edit num=0#post69841 allows you see the original version of a post before any edits. (change 69841 to the postid of the post you want to examine) -- in showthread.php, this is where posts are replaced by older versions The plugin is uses the "showthread_postbit_create" hook and is called "POST-HIST: update showthread" If you can see the threads with this plugin disabled then this shows that this is where the problem is. If not, then check if disabling just the plugin relating to the postbit allows the you to see threads normally. Also, using guest login would probably allow you to replicate the problem |
This is working 100% atm, well done :)
|
Thank you Lieva
This is really cool :cool: Just one thing I never understood in the other posts how would I be able to restrict it to admins only? Thanks Install |
Is there a way to restrict this only to certain forums?
|
Quote:
Hope someone can help with a mod to the mod ;) Btw. Great hack! |
oooOOooo.... does this work with 3.5.4?
also, how deep does the history go? this is would the necessary hack to make something like this: https://vborg.vbsupport.ru/showthrea...ight=viki+wiki |
Nice Plugin, thx a lot.
Log out, clear your cookies. The page numbers are visible if you enter http://www.yourdomain.xx/showthread....ditnum=3#post1 for example. Not realy usable but the page numbers are visible. Can you fix it, please? EDIT: I've the mod only version installed (vbtest). Regards, Stoebi |
Does anybody have an idea how to make old versions available to moderators only and not to the poster ?
Djamil |
download the mods only version! from the download section in this thread.
|
Thanks for your reply, but the suggested download does still allow the post owner to see the post history. I want mods only and nobody else to view the history.
Quote:
|
GREAT Lieva!
I want encourage you to continue in development of this hack because this is what I was looking for SO LONG :-) and finally YOU made it happen :-))) As my preposters already said, would be great to elaborate on features such as: - who made changes (as wiki does) - per forum permission settings - per usegroup permission settings - delete history per post/forum/time This might become a hack of the month if not YEAR .-) |
Is there anybody who will hepl Lieva with this perfect hack??? If I was coder I would definitally pick up this .-)
|
Quote:
I think it's a simple conditional as "if (is_member_of($usergroupid, 5, 6, 7))" but I can't figure out where exactly to put it into the XML. Djamil |
This is a great hack. Thanks Lieva.
I also agree that it would be good for it to be just for admins... or even admins and moderators. This should be standard in vBulletin IMO. Thanks again! Clancy |
Is there anybody interested to contribute to the development of this hack?
If there is more of us willing to pay, maybe Lieva or other coders will be interested to develop this hack... |
Quote:
For the meantime I maybe will post in one of the help forums here since it should be no big deal to make this available to mods only. Should be a simple template conditional which I don't know how to place into the XML-file - somebody should be able to help if I find the time to post a proper request. Djamil |
I checked the thread but from it seems that this feature will not be available in 3.6 so I guess it will take long time to wait for it frm vb.com.
Furthermore I guess that there might be more usefull option for this than vb.com will include in official release. To me it can be used for common knowleadge base - aka wiki. |
Quote:
Anyway, for those who are looking at the XML, there is mainly 2 parts: The hookpoint: parse_templates This is basically: $insert_point = "blah"; $insert_point2 = "blah2"; $new_text = "new text"; Then a few commands do a search and replace on the templates. This is why there is no need to manually update the templates. The problem is that the required insert_point is different from version to version, that's why there is 2 insert_points. Also, the text required here is the text of the template after some processing, rather than just copy/paste the template from admincp ... so hard to get it to match for different versions. It is also hard to read :). The check code is ( \$post['numedits'] != 0 ) && ( \$post['editlink'] ) This means that it displays the edit history options as long as there is more than 0 edits and the user is permitted to edit the post. Any variables that are available to the postbit can be used. I am not sure if usergroup settings are available. I think that replacing ( \$post['editlink'] ) with ( \$show['inlinemod'] ) in the XML before uploading should make it so only mods can see the controls for viewing older versions. (This assumes that you are using inline mods) The 2nd hookpoint is showthread_postbit_create This is less complex. It is where the post is actually modified so that it looks at the old post. Also, it checks permissions. This is the only part that needs to be updated if you don't mind users seeing the edit history options as long as they can't use the options. The check is: ( can_moderate($thread['forumid']) || ($post['userid'] == $vbulletin->userinfo['userid'] ) ) The 1st term is the one that allows moderators to view the post history and the second term is for the user themselves. Changing it to: ( can_moderate($thread['forumid']) ) would mean that only moderators can use the feature. So, making those 2 chances to the XML (just requires a text editor) should make it so that only mods can see/use the edit history system. I don't have a "scratch" version of 3.5.1 atm, so I can't confirm that. Btw, have people tried this out on other 3.5.x versions? It would probably be worth a yes/no question for each version. Also, posting the default postbit (and postbit_legacy) for those versions would help if they aren't working. Getting it to work for the other versions (if they don't work), should just be a matter of adding more $insert_pointx strings. Also, I haven't actually looked, but is the 3.6.x plugin system compatible with 3.5.x or have they redone everything again ? |
Thank you very much for clarifying this, I will check if this will do it.
BTW, I have "post hist mods only.xml" installed on a 3.5.4 forum and it works as you have designed it. If I manage to change it to work only for mods with your info I will owe you one ... :-) Djamil |
Great job, but I was wondering if there was any way to extend the information? (basically, i want to know who did the edit as well as view the history!)
Is this possible? |
Lieva please let us know wheter you are interested to continue development of this hack or do you agree to pick this up by somebody else.
I willing to pay for this hack! Thank you |
Can anyone help fix this error :(
I have no idea what it means or how to fix it. It only appears when you go to thread's you've posted in or your pressing edit, it seems :confused: please please please help |
*waited 24 hours as the rules says*
anyone, please? I would really like this hack to work. |
anyone *bumps again*
|
Can you please post the templates edits it would need since the plugin version doesnt work for me as the line it looks for isnt there anymore.....it has all ben changed.
Cheers. |
Ack it seems this broke in 3.6. Just went to use it on my board and the buttons don't show in the template anymore ugh. Anyone got an idea how to fix this in 3.6? I'm assuming this is what Cybertims was enquiring about.
This really ought to be a standard feature in vB... I can't see why you wouldn't want this and if anything you could turn it off... Anyone have a link to the thread that was aforementioned for support of this as a feature in vB? |
All times are GMT. The time now is 11:10 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:
|