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)

bashy 01-22-2006 03:00 PM

Not a problem m8, least we got there in the end..
If another bod has the same issue at least ya can
narow it down if they use the prefixes lol

Thanks again

Have fun

Alex_ 01-22-2006 03:46 PM

I don't have prefixes but the same problem... several edits (not just re-save) but all versions show the same text. Looking at the database I see the old version but it won't show up in the thread... :(

bashy 01-22-2006 03:49 PM

Try editing the same post and saving it about 6 times, just want to see
if its the same as mine...

Lieva 01-22-2006 04:03 PM

Quote:

Originally Posted by Alex_
I don't have prefixes but the same problem... several edits (not just re-save) but all versions show the same text. Looking at the database I see the old version but it won't show up in the thread... :(

Which version of vbulletin are you using and also which version of the plugin are you using?

The original version should be a little more reliable as it doesn't do any checks before reverting to an older version.

Alex_ 01-22-2006 04:05 PM

I edited it now 8 times without success...
I tested the can_moderate condition (filled in some debug output in the showtread plugin) - this is working - I also printed out the history post as plain text on the page - this is also working.
So I guess it's a problem with this line
$post['pagetext'] = $post_temp['message'];
It seems that $post[pagetext] is not the place where my vB reads the post? Or it does overwrite it or something like that...

---
Edit:

Ok in post[pagetext] is the text of the post - I can read it out, it matches... but when I change it within the plugin the post itself doesn't change - so it seems to me that the forum takes the post text not from this var - but from where?

bashy 01-22-2006 04:10 PM

Hi m8y...

I just had to do an official edit on my own post, i forgot to
add an attachment and also had to edit again to include
more text, but again it only shows the latest edit even though
theres 4 links 0 to 3

I am going to try a single edit on another post...

bashy 01-22-2006 04:12 PM

OK just mad a single edit with a 4 word text edit
and the links only show the latest edit!!

Lieva 01-22-2006 04:15 PM

Quote:

Originally Posted by Alex_
I edited it now 8 times without success...
I tested the can_moderate condition (filled in some debug output in the showtread plugin) - this is working - I also printed out the history post as plain text on the page - this is also working.
So I guess it's a problem with this line
$post['pagetext'] = $post_temp['message'];
It seems that $post[pagetext] is not the place where my vB reads the post? Or it does overwrite it or something like that...

---
Edit:

Ok in post[pagetext] is the text of the post - I can read it out, it matches... but when I change it within the plugin the post itself doesn't change - so it seems to me that the forum takes the post text not from this var - but from where?

Maybe showthread.php was modified in 3.5.3.

If you set $post['pagetext'] to some string, then that would indicate if $post['pagetext'] is being used. It would only modify the post that you are viewing page history for.

Alex_ 01-22-2006 04:19 PM

Because your plugin does a
$post['pagetext'] = 'matched change post';
I can answer your question already - no it is not used by showthread... I'm trying to find the correct var it reads out

Lieva 01-22-2006 04:27 PM

Quote:

Originally Posted by Alex_
Because your plugin does a
$post['pagetext'] = 'matched change post';
I can answer your question already - no it is not used by showthread... I'm trying to find the correct var it reads out

Ahh ok. In 3.5.1 (and it seems 3.5.2), that variable is used for the message.

Is this section of code the same in 3.5.3 ? (are we allowed post code snippets as long as they are in [ code ] tags ? )
Code:

                $post['islastshown'] = ($post['postid'] == $lastpostid);
                $post['attachments'] =& $postattach["$post[postid]"];

                $parsed_postcache = array('text' => '', 'images' => 1, 'skip' => false);
               
                $postbits .= $postbit_obj->construct_postbit($post);

It passes $post to the postbit generator function/class. The plugin mods the $post variable just before this section.

The above is from showthread.php


All times are GMT. The time now is 11:07 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.01055 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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