vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Moderators Being Able to modify Styles (https://vborg.vbsupport.ru/showthread.php?t=27472)

merk 09-06-2001 03:29 AM

Ive almost finished a page for the moderators control panel, which will enable moderators who have access to modify a certain style.

Its extremly messy, with lots of my code everywhere(im using the same style.php from the admincp, so i cannot just post the entire file).

How many people ar einterested in such a hack? if there are enough people, ill tidy it up and release it.

So yer!

merk 09-06-2001 04:18 AM

I changed my mind.

The only thing the mods will be able to modify is the colours.

Since thats all my mods need to do, yadda, yadda, yadda.

Is anyone still interested?

FWC 09-06-2001 04:19 AM

I could really use a hack that would let a moderator modify the header in his forum. He keeps a scoreboard for a contest. On our old board it was in the header. Right now I have a link to an HTML page in his FTP folder. It was a lot better when the scoreboard was in the forum's header.

FWC 09-06-2001 04:20 AM

LOL! OK, how about letting him modify a replacement variable I could put in the header?

merk 09-06-2001 04:57 AM

No problems with replacment variables, or even adding the ability to modify the header template.

If i release it, you just need to add a makeinputcode line to add more editablility.

Ill hopefully release this in a few hours.

Martz 09-06-2001 11:38 AM

I would be interested in a hack which allows the moderator of a particular forum to be able to edit the respective style sheet, i.e. if UserX is a moderator of ForumX they can edit the associated style sheet - or parts of it :)

That would be really cool :)

DarkReaper 09-06-2001 06:18 PM

I would love it if you'd extend it to allow modification of the replacement variables as well as the template set if they have one. For example, if they moderate a forum that uses a custom replacement set but the default templates, then they could only modify the replacement set. But if they have both custom templates and a custom replacement set they could edit both.

merk 09-06-2001 11:07 PM

When i get home, i plan on trying to finish this script, but allow alot more configuration.

Im not sure on what people need, but i plan to add options to allow certain moderators to modify certain templates and replacment variables.

Most of the replacment variables appear on the style editing window thingo, so i dont really need to add anymore of those.

All i really need to know is, what templates do you fellas need your moderators to be able to edit?

I plan on only allowing replacment variables, but posibly header and headinclude for 1 or 2 exlusive moderators.

Super mods wont have access to it, since they dont have a single forum they look after.

Any requests for more features in this before i write it?

DarkReaper 09-06-2001 11:37 PM

Well, what if you check what forums a moderator moderates, and then check the style/template settings for that forum, and then the moderator can edit those styles(as long as they're not default). If they are default, the mod can create a new style set and edit that.

Are you relying on the moderator user group or the moderator setting for users? Because vB doesn't use the mod user group anymore...

merk 09-07-2001 01:07 AM

Thats basically what i am doing.

I have a query that pulls the moderator records(in the moderator table), forumid, userid, caneditstyles.

I then have another query that pulls styleid from forum, where forumid matches, blahblah...

Im not really sure i want my mods creating new template/styles.

I think ill just have 2 more options in each moderator thingo, that 'allow modify templates' and 'allow modify replacment vars'(this one is a bit useless for certain variables, cause most replacment variables actually appear in the style's main page.

DarkReaper 09-07-2001 01:26 AM

What I meant by having them create it is that if they're using the default template, they shouldn't be able to edit it, for obvious reasons, and when they click "Edit templates" it should transparently make a new template set and apply that to their forums, then they'd edit that one instead of the default. It would only have to be created once.

FWC 09-07-2001 03:07 AM

Quote:

All i really need to know is, what templates do you fellas need your moderators to be able to edit?
I just need to have my mod able to edit part of the header. I would actually like to make a replacement variable for him that I would put above the buttons in the header. I don't want him messing with that stuff.

MaSTaKiLLaH 09-08-2001 08:51 AM

Would'nt it be cool, to add a new usergroup, so that this usergroup can be edited and the admin can choose which options the moderator can use.
That would give the admin the ability to do a better co-brandig, so the co-branded sites could take care of the their forums for them self.

Any comments ?

Goddess Washu 09-08-2001 03:19 PM

This feature is planned for a future release of vBulletin, it is listed in the mod options. So you can just wait for it. It's not that hard to do anyway...

MaSTaKiLLaH 09-08-2001 04:52 PM

I dont think that this feature ist really planned for a future release. It is only on the "Already Suggested" list.

DarkReaper 09-08-2001 06:07 PM

Quote:

Originally posted by MaSTaKiLLaH
Would'nt it be cool, to add a new usergroup, so that this usergroup can be edited and the admin can choose which options the moderator can use.
That would give the admin the ability to do a better co-brandig, so the co-branded sites could take care of the their forums for them self.

Any comments ?

A new usergroup would be a bad thing. vBulletin already has the support built into it(when you make someone a moderator of a forum, there is the option to allow them to modify the styles, but it says not implemented yet) so all you would have to do is see how they're doing this, and set it up to use the system that's already in place. Of course you would need to code the missing file(s) :)

MaSTaKiLLaH 09-08-2001 06:33 PM

But I don't want all of my moderators to change the style of their forums.
I want to specify a usergroup, that can edit the style and everything else of the forum, but only for the forum(s) that I specify. That would be a nice addition for co-branding.

DarkReaper 09-08-2001 06:48 PM

Not all of them can. When you go to a forum in the Admin CP and click Add Moderator, you can specify whether THAT moderator can edit the styles. This way you can make it so some moderators can and can't modify the styles.

MaSTaKiLLaH 09-08-2001 07:09 PM

Ahhh, ok ! :)

But what about the other features, that would make this to a co-branding hack ?

Any comments ?

merk 09-08-2001 10:18 PM

Quote:

Originally posted by Goddess Washu
This feature is planned for a future release of vBulletin, it is listed in the mod options. So you can just wait for it. It's not that hard to do anyway...
Well, the next release isnt planned on being released for a while.

Just because its listed in the mod options means that they are coding it with priority.

I just made use of that option in the mod panel.

But im not sure if i want to release my hack, because of how much code ive changed, its too hard to document it all, and pasting the entire file is against my licence agreement.

So looks like you can either work out how to do it yourself or wait :|

MaSTaKiLLaH 09-08-2001 10:36 PM

Maybe this thread would be better in the request forum :)

merk 09-08-2001 10:39 PM

Its not really a request, i have created it, just looking for ideas on what to add.

However, it turns out, i have modified too much code, its too hard to explain what to do, and if i tried, im quite sure that someone(well at least someone) will not follow the instructions, which isnt that great- i dont want to spend my time troubleshooting others errors :(

MaSTaKiLLaH 09-08-2001 11:23 PM

You could release your hack, and anybody who is familiar with PHP and mySQL could continue with your good work.
Unfortunately I'm a PHP und mySQL noob

merk 09-08-2001 11:42 PM

At the moment, i dont plan to release it.

However i can provide some background into how i did it.

Basically, i made a copy of 'styles.php' in the /mod/ folder of vB.

I then hacked and hacked at most of the code, so there was no downloading features, or deleting features.

I then proceded to run a SQL query that got for each forum, the current user's 'caneditstyles' field for that forum, if it returned a no result, or a false, the row was disabled(it was still there, but they couldnt click it). I just kept hacking and hacking, and the result was a page, where they could only edit the colours(replacment variables).

I havent actually tested it much, and most of my hosted forums still havent asked about it.

Give it a few more days, and if it works okay, ill make some instructions.

DarkReaper 09-09-2001 01:08 AM

Could you please post it? If you've modified a file a lot, you could say "delete from here to here, replace with this. delete everything after this, replace with this"

It would be great if you could post instructions on this, and tell people not to email or PM you about it and to post in the thread. That way others could support it.

merk 09-09-2001 01:19 AM

If i get the rest of my work done, ill release it tonight(being in australia, thats probably about 8-9 hours away).

DarkReaper 09-09-2001 01:26 AM

Thank you so much! I'm running a hosted forums forum as are you, and this will really help(I'm sure you understand every bit of how much this will simplify things :)).

What other hacks do you have installed that would help with taking some of the load of hosted forums off of the admin?

Thanks.

merk 09-09-2001 01:31 AM

I just finished then(still testing) a hack that will allow the moderators of the PRIVATE forums only to add access to any user they please.

Ill also be releasing this tonight.

DarkReaper 09-09-2001 01:34 AM

Quote:

Originally posted by merk
I just finished then(still testing) a hack that will allow the moderators of the PRIVATE forums only to add access to any user they please.
:confused: You lost me there...

merk 09-09-2001 01:37 AM

Oh, i must have just assumed you run private forums ;)

I run clan hosting forums, one private and one public forum for each clan.

I need to give access to each of their members manually, but now the mods of a specific forum can do it.

Ill have a description when i release it ;)

DarkReaper 09-09-2001 01:43 AM

Funny, that's exactly what I do, but I allow them to have more than just a public and private forum. I can't wait! I'm glad we haven't gone public yet, this will make things easy from the start! :)

merk 09-09-2001 03:06 AM

FYI DarkReaper, i just released the Moderator Accessmasks hack.

http://www.vbulletin.com/forum/showt...&postid=169092

Martz 09-09-2001 11:51 AM

I look forward to this release - I'm half way there with a modified moderators panel, however I can't seem to get the queries right just to show styles which are associated with the forums they moderate :(

The mod access hack you made is soon to be installed as well :)

Martz 09-11-2001 07:13 AM

*bump* :)

merk 09-11-2001 08:08 AM

Its still being tested, sorry.

Plus, there are heavy modifications on my part to complete still.

Its only very basic at the moment, and if it is enabled for a mod, they can change the style regardless of which one is set, inc the default :|

So, soon.

Martz 09-14-2001 03:05 PM

I know with recent horrific events, time has sorta stood still, but I am wondering if any progress has been made on this? :)

merk 09-15-2001 12:32 AM

Not much at all actually.

I havent had the time to test it, nor devlop it more.

Just been really busy with work.

Ill try my best, but atm im working on XML templates :|

Doogie 09-15-2001 11:32 AM

Looking forward to this one.... make my life a HELL of a lot easier, having to deal with Clan leaders at forums I host :)


All times are GMT. The time now is 06:20 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.01419 seconds
  • Memory Usage 1,807KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (38)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