Version: 1.00, by Bitmap
Developer Last Online: Oct 2008
Version: 2.2.x
Rating:
Released: 01-07-2002
Last Update: Never
Installs: 10
Is in Beta Stage
No support by the author.
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 ...
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
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
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.
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 or wans't that what you meant?
Originally posted by Bitmap actually i have several mods who have two different forums with two different styles ... and they can modify both styles 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.
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