vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   moderator / style hack (https://vborg.vbsupport.ru/showthread.php?t=33923)

Bitmap 01-07-2002 10:00 PM

hmm ... ok. because i needed it desperately i asked a friend of mine to write me this hack. and he wrote it :)
for me it works ok, but i am not quite sure if it is secure or if it has some errors in it. that's why i am attaching it in this forum.

well. if you find some errors feel free to fix them ... :)

-.valkyre 01-08-2002 11:21 PM

Mind tellin the rest of us what this does? :D

Bitmap 01-08-2002 11:25 PM

ooops ... sorry, i thought it was obvious :)

you can give your mods the permission to edit the styles of the forums they are mods in. this is pretty useful if you host some clans :D

oh. and it is really easy to install ...

bokhalifa 01-09-2002 06:25 AM

great hack :)

Martz 01-10-2002 12:12 AM

This is an excellent hack, working so far! Thanks for sharing. :)

Bitmap 01-11-2002 03:39 AM

Quote:

Originally posted by Martz
This is an excellent hack, working so far! Thanks for sharing. :)
thanks :) good to hear.
has someone checked the securiy-stuff?

Martz 01-11-2002 07:12 AM

A couple of issues, or what looks like bugs. First one I have seen is when you edit a template the top line which allows you to edit the style name, add a template or collapse is bringing through the wrong ID. However all the template links further down are correct, so I just removed the line :)


I also removed the PHP Parsed Code makefield code as I don't want my mods executing php stuff.

I'll let you know, but all-in-all its great!.

Martz 01-11-2002 07:14 AM

Some security checks need to be put into place as well for editing the styles. At the moment it only takes place to list the styles available. If you can edit, say, style ID 41 - the URL can be changed to any other ID and that style edited. Which obviously isn't good. :/

Bitmap 01-12-2002 02:59 PM

Quote:

Originally posted by Martz
Some security checks need to be put into place as well for editing the styles. At the moment it only takes place to list the styles available. If you can edit, say, style ID 41 - the URL can be changed to any other ID and that style edited. Which obviously isn't good. :/
yep ... we are working on this right now ... hope we can fix it :D

Martz 01-12-2002 03:31 PM

Great stuff :)

I haven't noticed anything else yet so far.

Big Chief 01-17-2002 12:15 PM

Hello, i am the friend that Bitmap talked of. And I?m the creator of this little Hack. Nice to hear that you like it.

Here are some changes that should make cheating it impossible and make the hack more secure. Hope it works well ;)

ATTENTION:
You need both, the FIRST VERSION AND THIS ONE.

It?s just an expension ;).

Martz 01-17-2002 02:11 PM

Thanks Big Chief - I'll implement this tonight and see how it goes! Many thanks for your efforts. :)

Martz 01-21-2002 09:44 AM

OK, I've been playing around with this for a while. A few bugs to be found - I've tested the install of this 3 times now.

Code:

// ###################### Start styles #######################
if ($action=="styles") {

    $getforumid=$DB_site->query("SELECT forumid FROM moderator WHERE userid=$bbuserinfo[userid];");

Im quite sure $bbuserinfo[userid]; should not have the ";" at the end.

The security thing is a bit weird too. I'm not sure if the above made a difference. If the user cannot edit the style (i.e. no permission in the control panel) - the list of styles shows they can edit the default style. When you click the link its lets you edit the style associated with the forum you moderate (which is supposed to happen, but only if you have the permission)

I've really busy with RL stuff at the moment, but I'll try and track down where this might be going wrong. :)

Thanks again,

Martz

Big Chief 01-21-2002 02:01 PM

Hm ..... here it works perfectly. And Bitmap also used my Hack.txt to install the hack herself ..... also no probs.

But i know, that the expension is pretty complicated. I?ll try to make everything a bit easier to install by creating a new function.

If this works, i?ll create a new hack.txt with both parts above in it.

I?m sorry about it, but i don?t have much time ...... cause I have to code another script for my friend?s SWG-Homepage. I?m her "PHP-Slave" as she calls me :D

Martz 01-22-2002 07:18 AM

No problems mate. :)

I'll give it another shot and see if I can come up with the requried result. :)

Martz 01-24-2002 09:54 PM

OK I've got it installed great - I'll always be a newbie :frus:

Testing this now, live - so no bugs I hope!

Obviously if the user is a moderator of 2 forums with different styles, they can only edit one of them (the style associated with the first moderator id) - which may be a draw back, but it isn't the case at the moment. Maybe an improvment in the future if your Mistress of php lets you. ;)

Great job though. :pleased:

Bitmap 01-25-2002 11:32 AM

Quote:

Originally posted by Martz
[B]Obviously if the user is a moderator of 2 forums with different styles, they can only edit one of them (the style associated with the first moderator id) - which may be a draw back, but it isn't the case at the moment. B]
actually i have several mods who have two different forums with two different styles ... and they can modify both styles :confused: or wans't that what you meant?

Martz 01-26-2002 10:11 AM

Quote:

Originally posted by Bitmap
actually i have several mods who have two different forums with two different styles ... and they can modify both styles :confused: or wans't that what you meant?
Thats exactly what I meant. I have a Test Mod who can edit 2 different styles, Style A and Style B. They are both listed when I click "Modify Styles" but when I click to edit either style it only shows Style A.

Snake~eyes 01-26-2002 01:09 PM

Martz, let me know when you are using this hack officially on your boards. Because then i'm going to. lol..

Martz 01-27-2002 01:06 PM

I am live with it now :)

I have around 10 community moderators editing styles and their own templates. So far so good, however helping them out with vB templates is great fun :P

Snake~eyes 01-27-2002 01:15 PM

alright. that's cool. I think I'm going to install it then. Hopefully it works out.

Anything I should know? lol

Big Chief 01-27-2002 05:24 PM

@Martz (and all others ;) ), i already solved this little problem.

Let me some more time and i?ll post a complete new hackfile for you. Because it would be quite ununderstandable for you, if i tried to explain the newest changes in here :)

Plz be patient :D

locatha 01-27-2002 06:40 PM

Cool... Very cool hack, will wait till the new revision to install it, but VERY interested in letting my moderators customize their forums styles... thanks guy... ;)

Martz 01-27-2002 07:22 PM

Quote:

Originally posted by Big Chief
@Martz (and all others ;) ), i already solved this little problem.

Let me some more time and i?ll post a complete new hackfile for you. Because it would be quite ununderstandable for you, if i tried to explain the newest changes in here :)

Plz be patient :D

Great :)

At the moment it seems secure anyway.

locatha 01-27-2002 07:25 PM

I havn't seen it yet, Can someone that has the current version installed tell me how it works, where would a moderator go to modify their forums style, or how it works... thanks...

Snake~eyes 01-28-2002 01:34 AM

I installed the first version but not the "patch" It told me to serach for somthing and I wans't able to find it. The first part in the template area


This hack is great so far!

Moderators log in to forums/mod. And they can only edit the forums that you allow editing access and only the forum they have access to.

Hope that made sense :confused:

Bitmap 03-24-2002 04:42 PM

ok at last there is a new version of this hack available. i updated the attachment in the first post. it's very easy to install, pretty secure (i think) and the "bugs" are removed (well ... i hope so ;) ).
if everything works out fine i can release the hack soon. but for now it would be better to just test it.

JGM007 02-22-2004 12:12 AM

Ok, I feel like I am going blind :p
I see the file from Bitmap's friend with the modified file, but I do not see the orignal or updated file?


All times are GMT. The time now is 04:46 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.01173 seconds
  • Memory Usage 1,774KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (28)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete