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 09-22-2006 05:47 PM

As I said, the template update occurs in the "POST-HIST: modify postbits" plugin.

You could post the 2 templates, postbit and postbit_legacy templates and It should be possible to create new search strings. I haven't 3.6.0 on my server.

The real problem is that vbulletin has not put in markers or hooks in the templates.

SnickersTK, I am not sure what is causing your error.

The code is:

PHP Code:

if( ( $_REQUEST['prev_postid'] == $post['postid'] ) && ( $_REQUEST['prev_editnum'] < $post['numedits'] ) )
        {
            
$post['pagetext'] = 'matched change post';
            
$query =  "SELECT message FROM " TABLE_PREFIX "post_edits WHERE
                        (postid = " 
$post['postid'] . "
                        AND editnum = " 
$_REQUEST['prev_editnum'] . ")";
        
            
$post_temp $db->query_first$query );
            
$post['pagetext'] = $post_temp['message'];
            
$post['pagetext_html'] = "";
            
$post_cachable 0;
        } 

From your screen shot, the only $_REQUEST value set is the thread value t=2069. This means that the if at the top should not return true.

You could maybe use isset outside the if statement above, e.g.

if( isset( $_REQUEST['prev_postid'] ) && isset( $_REQUEST['prev_editnum'] ) )
{
<the above code>
}

Lieva 09-23-2006 06:25 PM

Ok, I decided to just update the modification rather than people trying to figure out how to mod it themselves.

It now supports:

- Enable/Disable by forum
-- On/Off by forum

- Enable/Disable by usergroup
-- Can see own history: Yes/No
-- Can see everyone's history: Yes/No

- Indicates who made the edit (if it wasn't the original author)

- Workaround for unknown templates
-- Insert <<Insert Post History>> into postbit and postbit_legacy templates
-- (This is only for templates where the auto-match doesn't work)

Lieva 09-24-2006 11:27 AM

Btw, is the customary to create a new thread for an upgrade ?

Lieva 09-28-2006 08:06 PM

Hmm, 12 downloads and no comments. Must mean my reliability has increased since the last version :).

Has anyone tried it on 3.6 ?

kafi 09-29-2006 09:20 AM

Thank you Lieva for upgrade.
I can not find where to admin this add-on in admincp? Can you post it in your first post?

Lieva 09-29-2006 08:50 PM

Done.

There is no specific post history menu. I added new options that can be set using the usergroup manager and also the forum manager.

For usergroup settings, it's usergroups -> usergroup manager -> edit usergroup

and similar for forums

kafi 09-29-2006 09:29 PM

Sorry lieva, I do not see any options there...can you be more specific?

I do not see anythink like related to post-history in usergroup settings. I only see can edit own thread. I do not see "Can edit others thread" or "Can see others post history"...
Maybe I am missing something....

also you are saying this:
"By default, nobody can see any of the histories. At minimum, you should set the admin usergroup to see all histories."
But I didnt changed any option and users can see history...

Thank you .-)

Lieva 09-29-2006 09:35 PM

Did you upload the XML file from the zip file to
/includes/xml
?

Also, did you try opening

yourserver.com/admincp/index.php?do=buildbitfields
?

It looks like the options aren't being added.

COBRAws 09-29-2006 10:06 PM

Thanks for the update Lieva! Im really thankfull

kafi 09-29-2006 10:07 PM

uff, you are right ... somehow I downloaded just post-hist.xml not the zip file... and thought that you are saying to installed it from includex/xml location ... didnt understand why... etc etc... my fault .. I was too quick to install it :-)
.......
Now I see the options :-)
............
QUESTION: how would I set up for certain forum so that any user can edit post?...AKA WIKI ?


All times are GMT. The time now is 11:09 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.01281 seconds
  • Memory Usage 1,740KB
  • 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_php_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