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)

Lieva 01-22-2006 08:01 PM

Quote:

Originally Posted by Alex_
Sure?
I don't see the according code... it's just a simple str_replace, isn't it?
When I restricted it to one user only this one could view the history but the link showed up for others as wellg giving them always the same version on every number...

My code looks now like
Code:

if ( $vbulletin->userinfo['usergroupid'] == 6 ) {

$vbulletin->templatecache['postbit'] =  str_replace( $insert_point,  $insert_point . $new_text , $vbulletin->templatecache['postbit'] );

$vbulletin->templatecache['postbit_legacy'] =  str_replace( $insert_point,  $insert_point . $new_text , $vbulletin->templatecache['postbit_legacy'] );

$vbulletin->templatecache['postbit'] =  str_replace( $insert_point2,  $insert_point2 . $new_text , $vbulletin->templatecache['postbit'] );

$vbulletin->templatecache['postbit_legacy'] =  str_replace( $insert_point2,  $insert_point2 . $new_text , $vbulletin->templatecache['postbit_legacy'] );
}


I meant that if you left it as default, it would have worked :p

The check is that those who can edit the post can also see the option.

Alex_ 01-22-2006 08:02 PM

Ah ok... cause I want it for admins only I had to add it ;)

SIINSI 01-22-2006 10:51 PM

Quote:

Originally Posted by Alex_
Ah ok... cause I want it for admins only I had to add it ;)

There's definitely, some kind of problem with this hack. I just had a zillion users PM me that they could not see any posts in a thread at all!!! I disabled the plugin and everything is back to normal.

Miguel

SnickersTK 01-23-2006 05:24 AM

see, now I am scared :-S

ndamico 01-23-2006 01:50 PM

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.

Lieva 01-23-2006 04:44 PM

Quote:

Originally Posted by ndamico
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.

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.

Lieva 01-23-2006 04:50 PM

Quote:

Originally Posted by SIINSI
There's definitely, some kind of problem with this hack. I just had a zillion users PM me that they could not see any posts in a thread at all!!! I disabled the plugin and everything is back to normal.

Miguel

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.

Lieva 01-23-2006 04:51 PM

Quote:

Originally Posted by SnickersTK
see, now I am scared :-S

:), but you will notice that removing the plugin fixed everything.

Totti 01-23-2006 05:11 PM

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?

Lieva 01-23-2006 05:41 PM

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?

It only records edited posts. Posts that aren't edited are still only stored once.


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.01141 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (6)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