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)
-   -   Adv. Editing Options for Mods and Admins (https://vborg.vbsupport.ru/showthread.php?t=98737)

Paul M 04-01-2006 12:00 PM

I like this hack, but it broke my 'reported post creates new thread' for staff members - and the same for GARS, so I've applied a small fix to my copy of the hack.

In the AEO 'init_startup' hook ;

Find ;

PHP Code:

    global $vbulletin

Add below it ;

PHP Code:

    // Bypass Options // 
    // By Paul M - Because some mods choke on AEO // 
    
$bypass_aeo false
    if (
THIS_SCRIPT == 'report'$bypass_aeo true
    if (
is_object($vbulletin->gars)) $bypass_aeo true

    if (
$bypass_aeo) { 
        
$vbulletin->userinfo['editlevel'] = EDITLEVEL_AUTHOR
        return 
EDITLEVEL_AUTHOR
    } 
    
// End of bypass options // 

I've also added a 'cache_templates' hook ;

PHP Code:

$globaltemplates[] = 'adv_editform'

:)

akanevsky 04-07-2006 10:44 PM

Quote:

Originally Posted by hotwheels
I had to uninstall this hack for now...........Not sure what happened, but when i would start a new thread, just named it test and wrote tester in the message section, it used 50 queries to show the thread..........normally on my site it is only 12 queries.

It is a kewl hack though.............thanks for sharing it with us.

I don't know what happened either, but I can guarantee that this hack is not the cause of 50 queries.

Paul M 04-07-2006 11:30 PM

For some reason, since installing this, the owner of some threads seems to get changed, it's only threads that a mod/admin has posted in, and they become the owner (also, only the thread record is changed, not the first post). There is no pattern I can see (yet), and it's only about 1 a day so it's not a major problem. I'm curious more than worried atm, not really had any time to investigate what might cause this yet. :confused:

akanevsky 04-07-2006 11:34 PM

Ok, please keep me updated.

Paul M 04-08-2006 12:00 AM

Okay - if an administrator edits a post (full edit, not ajax) then when the edit is saved, the thread record gets altered - changing the thread starter to the member whose post got edited.

e.g. ;

Member A creates a new thread - in the forum thread listing they are shown as the thread creator and last poster.

Member B now posts in that thread - Member A is still the creator, Member B is the last Poster.

An administrator now edits Member B's post (full edit, not ajax) and saves it.

Now, Member B is shown as the thread creator, and the last poster.

If you view the thread, the first post is still Member A

akanevsky 04-08-2006 12:06 AM

Okay, thanks. I'll look into it.

Deska 04-08-2006 02:01 PM

Cool hack, but I got:
Quote:

Uncached templates: adv_editform (1)
I saw Paul post above but how to add it?
Thank's...

akanevsky 04-08-2006 02:24 PM

Plugin System->Add Plugin

Deska 04-08-2006 02:33 PM

Other feature request:
- Enable/Disable on selected forum

Brown23 04-08-2006 11:01 PM

Fantastic hack. Will install.


All times are GMT. The time now is 11:12 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.01348 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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