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)

Alex_ 01-22-2006 06:28 PM

I added the cachable just to be sure... without there seem to come up some side effects when using the cache.

Lieva 01-22-2006 06:36 PM

Quote:

Originally Posted by Alex_
I added the cachable just to be sure... without there seem to come up some side effects when using the cache.

Yeah, seems that it sometimes caches one of the older versions of the post.

Anyway, have updated both versions of the XML.

Alex_ 01-22-2006 06:38 PM

Just another question ;)

I guess can_administer is not a function like can_moderate?
Is it possible to restrict it to administrator only? I don't want my moderators to be able to view the history

SnickersTK 01-22-2006 06:45 PM

Wait, if your running 3.5.2 and you install the mod one, it should work now right?

I am scared of all the replies in this mod to install it :-(

Lieva 01-22-2006 06:54 PM

Quote:

Originally Posted by SnickersTK
Wait, if your running 3.5.2 and you install the mod one, it should work now right?

I am scared of all the replies in this mod to install it :-(

Well, the worst that will happen is that it won't do anything. Also, the uninstall function will undo any database edit. The problems in this thread were pretty minor and don't represent a risk of damaging the database or anything.

The changes necessary for 3.5.2 operation are already included.

Lieva 01-22-2006 06:56 PM

Quote:

Originally Posted by Alex_
Just another question ;)

I guess can_administer is not a function like can_moderate?
Is it possible to restrict it to administrator only? I don't want my moderators to be able to view the history

You would have to check the person's main usergroup.

Something like ( $vbulletin->userinfo['usergroupid'] == 6 )

6 is the default admin usergroup, so you may need to change that.

Alex_ 01-22-2006 06:57 PM

Quote:

Originally Posted by SnickersTK
Wait, if your running 3.5.2 and you install the mod one, it should work now right?

I am scared of all the replies in this mod to install it :-(

You shouldn't be scared... IMO there are some problems with caching - after going around the vB post cache and testing it for a while my browser does cache some sites not showing then up right. But that's a browser thing...

I restricted now to a userid and I'm happy with it :)

Alex_ 01-22-2006 07:01 PM

One last thing for me today... you should add the if condition to the postbit modifier as well so users who cannot view the history don't get the 'View History' link.

Lieva 01-22-2006 07:49 PM

Quote:

Originally Posted by Alex_
One last thing for me today... you should add the if condition to the postbit modifier as well so users who cannot view the history don't get the 'View History' link.

The mod to the postbit should already mean that only those with rights to see the text can see it.

Alex_ 01-22-2006 07:55 PM

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'] );
}



All times are GMT. The time now is 02:30 PM.

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.01262 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_code_printable
  • (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