vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Post Edit History Viewer (https://vborg.vbsupport.ru/showthread.php?t=105989)

SIINSI 01-24-2006 12:50 AM

Quote:

Originally Posted by Lieva
Were you able to see the threads, or was it just other users ... it would be surprising if there was a usergroup dependant bug ?

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.

Yes, I was able to see the threads, that's what made it so wierd. Supermods were able to see it also. Moderators and another usergroup I made with supermod permissions were not able to see it. I got alot of IM's about it so, I just de-installed. Any ideas? It is a great idea nad could surely be useful.

Miguel

SIINSI 01-24-2006 12:52 AM

Quote:

Originally Posted by Totti
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?

I would think you could just clean out the table it makes anytime you wanted to.

ndamico 01-24-2006 02:12 AM

Quote:

Originally Posted by Lieva
I have fixed it. The problem is that PMs use the same postbit as posts. I just had to add a check so that it doesn't display unless $post[editnums] exists.

Yep, that did it. Thanks for a great hack.

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.

SnickersTK 01-24-2006 02:57 PM

I love you for this hack :)

Lieva 01-24-2006 05:02 PM

Quote:

Originally Posted by SIINSI
Yes, I was able to see the threads, that's what made it so wierd. Supermods were able to see it also. Moderators and another usergroup I made with supermod permissions were not able to see it. I got alot of IM's about it so, I just de-installed. Any ideas? It is a great idea nad could surely be useful.

Miguel

It sounds like the postbit for showthread is broken somehow. The only thing in there that is usergroup related is the "can_moderate" function. It might be worth trying the version that allows everyone to see old posts.

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

bashy 03-19-2006 01:35 PM

This is working 100% atm, well done :)

Nathan2006 04-11-2006 12:33 AM

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

Southpaw 04-11-2006 05:45 PM

Is there a way to restrict this only to certain forums?

johngdk 04-24-2006 07:11 PM

Quote:

Originally Posted by Southpaw
Is there a way to restrict this only to certain forums?

I was wondering excatly the same.
Hope someone can help with a mod to the mod ;)

Btw. Great hack!

GrendelKhan{TSU 04-25-2006 10:13 AM

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


All times are GMT. The time now is 11:08 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
  • Page Generation 0.01172 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete