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)

arob42 04-28-2006 03:18 AM

Quote:

Originally Posted by Psionic Vision
What does edit time limit have to do with this hack?

Maybe nothing, but that's why I'm asking. I have my forums configured so that a user may go back and modify his post for the next hour after posting. Some users, those paying a subscription, I would like this edit time limit to be overriden so they can go back and edit their posts whenever they want. Seems like this hack would allow a user or usergroup to edit all posts, but I'd like to limit it to only that users' posts. Is that possible to do?

akanevsky 04-29-2006 01:13 AM

Quote:

Originally Posted by arob42
Maybe nothing, but that's why I'm asking. I have my forums configured so that a user may go back and modify his post for the next hour after posting. Some users, those paying a subscription, I would like this edit time limit to be overriden so they can go back and edit their posts whenever they want. Seems like this hack would allow a user or usergroup to edit all posts, but I'd like to limit it to only that users' posts. Is that possible to do?

Then have your users automatically join a secondary usergroup which has expanded time limit, this can be done without a hack.

arob42 04-30-2006 07:44 AM

I could be overlooking something but it seems like the "vBulletin Options" --> "Message Posting and Editing Options" --> "Time Limit on Editing of Posts" is a global option and applies to all user groups. I need a way to override this on a per-group basis.

akanevsky 04-30-2006 10:48 AM

Okay, I'll think about adding such per-group option to this hack.

Caiman 04-30-2006 02:43 PM

Just a quick question, if I use this hack to alter the time and date a post was made, is that a permanent adjustment, i.e. if I were to turn the product off for any reason, would the new date in the post edited remain?

Thanks

akanevsky 04-30-2006 02:51 PM

Yes, time and date adjustments permanent because they directly modify the post table.

MJM 05-03-2006 05:22 AM

FYI ...
When creating new post and changing username the email notification (I has set to receive all posts) shows as being sent by my username, not changed-to username.

Anyway, I usually add ... Posted for username ... then remove after posting when I post for another member.
I use this feature when info is sent to me to post in for a member, or to help members collate images/text from one of our galleries into an article at the forum.

...but I'm just curious if it can be made to show changed username in the email notification ...

- Username has just posted in the Blahblah Forum

- Username has just replied to a thread you have subscribed to entitled

akanevsky 05-04-2006 12:04 AM

Thx for pointing that out.

Boofo 05-06-2006 09:14 PM

Quote:

Originally Posted by Paul M
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'

:)

Paul, will we need to do this with any hack that conflicts with it then? And since I don't run GARS, is it ok to leave that part if it out or leave it in? ;)

Paul M 05-06-2006 10:11 PM

Quote:

Originally Posted by Boofo
Paul, will we need to do this with any hack that conflicts with it then? And since I don't run GARS, is it ok to leave that part if it out or leave it in? ;)

1. I would assume so.
2. Yes you can leave out GARS if you don't use it.

(BTW, you don't need to cache the template anymore, Psionic Vision added that in a recent update).


All times are GMT. The time now is 05:27 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.01462 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)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