vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Editing Options For Mods & Admins (https://vborg.vbsupport.ru/showthread.php?t=61412)

Xenon 04-24-2004 11:31 AM

Ok, i did a lot of test with these two hacks now, and everything was working perfectly.
I also did a look on the code itself, and it is imposible to change the dateline without admin permission, so this might be a different bug.

I suggest you upgrade to vb3.0.1 and install the latest version of this hack.

I've added a little bit of code to this hack, nothing important, just to update the threadinfos when the admin changed a post's dateline

the Sandman 04-24-2004 12:04 PM

I reinstalled this hack to get the update, and then reinstalled the Message Editing Hierarchy hack. Everything works fine until I try to edit Moderator posts with my SuperModerator testuser - No Permission. :ermm:

Xenon 04-24-2004 12:16 PM

I really have no idea, why you get a no permission error.
i did exactly the same steps and everything is working absolutely fine.

you can send me your editpost.php file to xenon@vbulletin.org
i will take a look at it.

the Sandman 04-24-2004 12:17 PM

Also, when you install both hacks, you end up with added code from both in the same place in editpost.php... after
Code:

// get permissions info
%4$s permsgetter_ = 'edit post';
$forumperms = fetch_permissions($threadinfo['forumid']);

$foruminfo = fetch_foruminfo($threadinfo['forumid'], false);

// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);

and before
Code:

// ############################### start permissions checking ###############################
if ( %4$s REQUEST['do'] == 'deletepost')
{

Does it matter which hack code goes first in this spot?

Xenon 04-24-2004 12:20 PM

erm, regarding that post, it seems your editor is corrupting files
%4$s REQUEST['do']
should be $_REQUEST

the Sandman 04-24-2004 01:25 PM

Yeah, I see that. It happened when I made the post though - the files are not corrupt.

I *think* I may have figured this out. My Moderator group has the permission "Can Moderate All Forums (is Super Moderator)" set to yes - so in effect they are equal to SuperModerators (id:5) and so by design can't be edited by them.

Sorry to take up your time with this oversight. :o Thanks for all of your help!

Xenon 04-24-2004 03:30 PM

:)

no prob :)
you're welcome

SaN-DeeP 04-24-2004 10:11 PM

[high]* SaN-DeeP installed
[/high]

thnx for nice hack XENON :)

Sandy...

Majik? 05-02-2004 09:50 PM

Quote:

Originally Posted by Natch
We've had some issues with this hack:

It seems for my SuperMods that when they are editing a post, prior to having used the ModCP (having logged in the second time) they cause the post edited to lose all timestamp and Poster info - timestamp is reset to the unix Epoch, and the poster is reset to Guest - this causes the thread to seem like it's been started by a Guest, with a post that's replying to posts below it ...

Any thoughts why this might happen ?

I noticed this as well, but never really noticed how it hadn't started happening unti lafter installing this hack. We would end up with posts that appeared to be started by guests (even though guests can't read a thread, let alone post one). That and it would have the poster's one minute, but then after editing it.. Have it being as mad eby a guest.

Xenon 05-03-2004 04:59 PM

hmm, very wierd.

i cannot reproduce that.

Maybe a bug somewhere else, which is affecting my hack as well. (aka permission changes where there shouldn'T be any)


All times are GMT. The time now is 01:48 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.01300 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
  • (2)bbcode_code_printable
  • (1)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