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)

Ocean 05-04-2004 09:04 PM

Hi, Xenon!

I am using your Editing Hierarchy Hack (quite happily, I might add) , and as such - I have no need or desire to install the Edit Permissions portion of this particular hack.


However, I do need the other features - specifically, the ability to edit the Author, Timestamp, IP, etc...


What portions would I need to keep/remove from your Instructions in order to do this?
Thanks! :)

Xenon 05-05-2004 03:19 PM

well, you have to remove the selection menue from the additional template, and then in editpost.php all you have to do is to change
PHP Code:

$bbuserinfo['editlevel'] > $editlevel['author'

into
PHP Code:

$bbuserinfo['editlevel'] == $editlevel['admin'

that should work i think :)

Ocean 05-05-2004 09:23 PM

Hmm... well, since this will only be used for Admins, I think I can trim out quite a bit more in order to keep things efficient.

For example, I think I can remove the entire Permission Checking routines (in addition to the Database Modification), by simply enclosing the Template additions like so:


Code:


 
<if condition="is_member_of($bbuserinfo,6)">
 
<!-- code goes here -->
 
</if>


Yes?

If so, than I should be able to remove a good section of this hack.


I have made an absolutely amateurish attempt at doing so. If you happen to have the time, and are in the mood to do so - I would be grateful if you could look over my revised version, and tell me just how badly I screwed up. <grin>

Xenon 05-06-2004 12:10 PM

erm, you shouldn't hardcode the usergroupids, that's why i used the editlevel things.

as for the rest, there is no need to struck out much, the better efficiency is not remarkable, especially not for the prize to work on that more time than really needed to achieve the goal ;)

Ocean 05-06-2004 12:54 PM

Quote:

Originally Posted by Xenon
erm, you shouldn't hardcode the usergroupids, that's why i used the editlevel things.

as for the rest, there is no need to struck out much, the better efficiency is not remarkable, especially not for the prize to work on that more time than really needed to achieve the goal ;)

Well, I have several Admin-only hacks that are access controlled in the same way, so adding this one really is not a problem. :)

So, keeping that in mind - did I actually alter the original code correctly? Or did you notice something that I missed?


(p.s. thanks for taking any time at all to look at it! ) :)

Xenon 05-06-2004 04:49 PM

well it seems you trimmed way too much, as there is an ending } but not an opening one....

as said, just do the changes i suggested and you will be fine.

Ocean 05-09-2004 02:29 PM

Quote:

Originally Posted by Xenon
well it seems you trimmed way too much, as there is an ending } but not an opening one....

as said, just do the changes i suggested and you will be fine.

Well, I guess I'm just uncomfortable adding what, for me, is an unnecessary subsystem. I took out the extra "}" (oops!), but I still ended up with problems. (If I went in to edit a message, but didn't change anything and didn't hit Submit, all the Advanced Info ended up getting blanked out anyway. No User, no IP, marked as being posted in 1965, etc...).

So, clearly, I must have missed something. I guess I'll just have to spend some more time on it when I get the chance. :)


Great hack, though! I can't wait until I get this ready for use. :) (Yeah, I know - I'm making this hard on myself - I can't help it. :nervous: )

Xenon 05-09-2004 06:19 PM

*gg*

well i wish you good luck then :)
Your way will be very hard, but then on the other hand you will know each line of the code afterwards, good for upgrades :p

Ocean 05-09-2004 08:39 PM

Quote:

Originally Posted by Xenon
*gg*

well i wish you good luck then :)
Your way will be very hard, but then on the other hand you will know each line of the code afterwards, good for upgrades :p

Very true. :)


However, if, 20 or 30 years from now, you should happen to choose to ruin my "fun" by telling me what I missed - I just want you to know that you shouldn't feel too bad about it - I won't hold it against you. :) :) :)

Xenon 05-09-2004 08:44 PM

yeah, in 20 or 30 years, with vb10 ;)


All times are GMT. The time now is 01:04 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.03711 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_php_printable
  • (3)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