vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Threadmins (https://vborg.vbsupport.ru/showthread.php?t=117483)

Revan 06-02-2006 10:00 PM

Threadmins
 
[high]
Threadmins v1.1
[/high]
Why did you code something with such a silly name?
I got bored of doing purely RPG work, so I thought I would whip up something else for a change. And thus, I bring you, Threadmins v1.1!

And what exactly am I looking at?
For those that wonder what a "Threadmin" is, it's a "Thread Admin". Basically, a Forum Administrator with Can Administer Threads will be able to delegate thread management permissions to select users. By default, this kind of administrator will be able to quickly access the Threadmin Management through an item in the dropdown menu you get when clicking an username, however the page variable string can be altered to allow management of users not having posted in the thread as of yet (example is threadmin.php?t=6&u=6 even if userid 6 didn't post in the thread).

What's the skinny on this hack? What will it be doing to my forums?
  • File Changes: 0
  • Template Changes: 1
  • Tables Added: 0
  • Tables Altered: 1
  • SQL Queries Added: 0
As you can see, it won't add any load to your forums, so you are perfectly safe using this mod :)

Why should I use this mod?
Maybe you want someone to be able to manage his own RolePlaying thread without giving him full moderator permissions over the entire RP section. Maybe you want to give someone a trial run as a full-fledged Moderator by seeing how he handles himself in a live thread.
Or maybe you are feeling nice and want to increase my ego by giving me more install clicks ;)

So how do I get this up and running?
Simple :)
Extract the zip, upload the .php file to your forums directory, import the product through the AdminCP, edit the template as per the readme.
You are done :)

Will you add feature x?
Maybe :p
Post it and I will try to get back to you when I have the time.

Whoops, I need some help! Can you help?
I will try to, but I can't promise rapid replies because of time restrains. I don't see how this mod could require any support, but if your forums should self-destruct for no apparent reason, I will get back to you when I have the time :)

Thanks a lot for this mod Revan, do you want some PayPal money?
I don't require donations, but they are most appreciated :)
https://vborg.vbsupport.ru/
Please note that my Paypal account is Unverified, so I will not be able to accept Credit Card direct charges. Please "upload" some money to your Paypal account and send it to me from there if you wish to donate.
Thanks in advance :)

I don't have PayPal but I would like to show my support, what can I do?
Leave a nice message saying thanks and a click of the install button. Yep, that should do the trick :)

What's happened in the course of this mod?
  • 3rd June 2006 - v1.0
    Initital release
  • 4th June 2006 - v1.1
    • Fixed a security issue, thanks to Alan-CIT.
    • Fixed a bug where adding a Threadmin to multiple threads would cause permissions to be overwritten.

Dan 06-02-2006 10:50 PM

nice one

/me clicks install

Kihon Kata 06-02-2006 11:06 PM

w00t, me likey

.Tim 06-02-2006 11:09 PM

Very nice! There have been a few times recently when I need something like this and probably will be in the future. Thanks!

Krahl 06-02-2006 11:20 PM

Neat mod, thanks for coding it up.

Krahl

FLMom 06-02-2006 11:33 PM

Awesome! This is something I was recently looking for...THANK YOU :D

Clicking install :D

moley 06-02-2006 11:51 PM

Thanks a lot sounds great.

yinyang 06-02-2006 11:58 PM

great idea! clicks install.

Cap'n Steve 06-03-2006 04:52 AM

Boy, I bet this would be useful on a site where users release hacks. :cool:

Daniel 06-03-2006 06:31 AM

Great one Revan, thanks a lot! Installed :)

Revan 06-03-2006 09:41 AM

Thanks for the nice comments guys and gals :)

Antivirus 06-03-2006 01:27 PM

great idea Revan - this could be really useful on vborg. Perhaps with an option that the Superadmin could set which would automatically give Threadmin priveleges to thestarter of a thread in one or more specified forums. Nice work!

Lizard King 06-03-2006 01:29 PM

Great idea thanks for this Revan

Pathor 06-03-2006 03:00 PM

Great! Very useful. :)

Suggestion: An overview of all threadmins would be nice. :)

UltraVR 06-03-2006 03:57 PM

This is a truly genius idea.

Bad Bunny 06-03-2006 04:51 PM

Wow this sounds great, and it would be really useful to a story or rp forum. :)

antialiasis 06-03-2006 05:01 PM

Ooh, my old request has finally been fulfilled. (I don't know if you ever saw it... but I made a request for this sort of mod a while ago before I started messing with modding myself. :p) Thanks a lot for this.

EasyTarget 06-03-2006 05:27 PM

so this is sort of like the ban user from a thread, but a lot more powerful/customizeable, correct?

Is there any possibility you could release something similar to this but for forums? I've been looking for a hack which would allow a moderator of one forum to ban/manage users for that forum without giving them the ability to ban/manage users from the entire board.

TTG 06-03-2006 06:04 PM

Clicked install ..

When adding someone to the threadadmins list, if they abuse it or leave the forum, there is no way to remove them !?

Revan 06-03-2006 06:14 PM

Quote:

Originally Posted by Pathor
Great! Very useful. :)

Suggestion: An overview of all threadmins would be nice. :)

Im going to do that soon, just need to get the concept of it sorted out first :)
Quote:

Originally Posted by antialiasis
Ooh, my old request has finally been fulfilled. (I don't know if you ever saw it... but I made a request for this sort of mod a while ago before I started messing with modding myself. :p) Thanks a lot for this.

Nope didn't see it, I thought of it a few weeks ago and finally got around to doing it XD
Glad I could be of help tho :)
Quote:

Originally Posted by EasyTarget
so this is sort of like the ban user from a thread, but a lot more powerful/customizeable, correct?

Is there any possibility you could release something similar to this but for forums? I've been looking for a hack which would allow a moderator of one forum to ban/manage users for that forum without giving them the ability to ban/manage users from the entire board.

Uh no this is to ADD permissions, not REMOVE them.
Though I can always make another hack to remove permissions.
Since I will be using much of the same methods, I will put those hacks on hold until I finish this one, sound ok? :)
Quote:

Originally Posted by TTG
Clicked install ..

When adding someone to the threadadmins list, if they abuse it or leave the forum, there is no way to remove them !?

For now, you will have to Manage them and set all their permissions to No.
When I do the AdminCP interface for this, I will make an option to remove Threadmins as well.

Ill probably finish the update sometime tonight, if not then by tomorrow :)

RMS-Chef 06-03-2006 08:04 PM

This is great. Almost every board has a few perpetual threads and it would be nice to enlist help with them.

akanevsky 06-03-2006 08:38 PM

Hey,

Nice hack, I was going to write something like that but you were quicker.
Installed.

Suggestion:
Move the adder to the admin area, for greater security.

EasyTarget 06-03-2006 09:36 PM

Quote:

Originally Posted by Revan
Uh no this is to ADD permissions, not REMOVE them.
Though I can always make another hack to remove permissions.
Since I will be using much of the same methods, I will put those hacks on hold until I finish this one, sound ok? :)

haha, wow, after re-reading it all I bet you wonder what I was thinking, cuz I sure am. (for some reason when I read the part about adding a user that hasn't posted in the thread yet I assumed it meant adding them to the ban list for the thread, so you could stop a user from posting in the thread before they've ever done it)

but yes, sounds great to me.. I've clicked install.

Revan 06-03-2006 10:10 PM

Quote:

Originally Posted by Psionic Vision
Hey,

Nice hack, I was going to write something like that but you were quicker.
Installed.

Suggestion:
Move the adder to the admin area, for greater security.

Including adminfunctions and can_administer('canadminthreads'); for all permission checking.
So if the user can make himself administrator with that permission then he can do pretty much anything else ;)

imma get started on admincp bits now :)

akanevsky 06-04-2006 12:18 AM

The reason it is potentially insecure is that adminfunctions is not intended for inclusion in front-end. :) I noticed that admincp functions have less error checks that front-end functions do.

Revan 06-04-2006 09:47 AM

Well my point still stands; if they can somehow get past can_administer() in the frontend, they can do much worse things than ruining a single thread ;)
Maybe we should take this to the Coders Discussion forums instead of cluttering this thread, I'll go start the thread now :)

Revan 06-04-2006 12:54 PM

The update addresses two bugs, one of a fairly critical nature.
To update, reupload threadmin.php to your forum directory.

No new features have been released as of yet, I am working on them though.

projectego 06-04-2006 03:37 PM

Definatley a unique idea for a hack, thanks very much! ;)

whitetigergrowl 06-05-2006 05:47 AM

So I take it to add and take away abilities, you use the same 'Add Member to Threadmin' option? Add as you want, take away as you want?

Revan 06-05-2006 08:00 AM

Yeah. I am working on an AdminCP interface for managing permissions of all Threadmins in all threads, but for now you will have to add as you want and take away as you want.

Snake 06-05-2006 02:57 PM

Wow thanks!

antialiasis 06-05-2006 07:36 PM

Is there some special reason (other than "If people don't trust their admins with administering threads, they won't want them to assign threadmins") for using can_administer as the permission check? That is, would there be any special reason for me not to edit it to check for membership of certain user groups instead, assuming I trust the people in said user groups?

Revan 06-06-2006 08:26 AM

By all means, replace the check. I just defaulted it to can_administer() because well I wouldn't want to make any assumptions :p

As for the ACP interface, Im having a burst of motivation to work on my RPG atm so this hack is on hold, but I won't abandon it :)

antialiasis 06-07-2006 11:44 PM

Okay, great. Can I make a suggestion? It would be nice if something indicated that a user is a threadmin in their postbit or something (like giving their name the moderator pre- and suffixes in their posts in that particular thread).

kopfnick 06-13-2006 08:29 AM

Maybe someone here can help me: i desperately needed such a mod and installed it today. Unfortunately, the rest of my site doesn?t work anymore as soon as i activate it. Forum and Mod work fine ;)

Here is the error:

Code:

Fatal error: Cannot redeclare print_cp_login() (previously declared in /forums/includes/adminfunctions.php:23) in /forums/includes/adminfunctions.php on line 21
I am using a very simple Login-Form throughout my site. All it does is include

Code:

chdir(path/to/forum);
require('./global.php');
include('./includes/adminfunctions.php');
chdir($_SERVER['DOCUMENT_ROOT']);

Any ideas?
Thanks,
kopfnick

Revan 06-13-2006 12:01 PM

Quote:

Originally Posted by kopfnick
Maybe someone here can help me: i desperately needed such a mod and installed it today. Unfortunately, the rest of my site doesn?t work anymore as soon as i activate it. Forum and Mod work fine ;)

Here is the error:

Code:

Fatal error: Cannot redeclare print_cp_login() (previously declared in /forums/includes/adminfunctions.php:23) in /forums/includes/adminfunctions.php on line 21
I am using a very simple Login-Form throughout my site. All it does is include

Code:

chdir(path/to/forum);
require('./global.php');
include('./includes/adminfunctions.php');
chdir($_SERVER['DOCUMENT_ROOT']);

Any ideas?
Thanks,
kopfnick

delete
Code:

include('./includes/adminfunctions.php');
from my threadmin.php file.
Should work then.

kopfnick 06-13-2006 12:50 PM

Quote:

Originally Posted by Revan
delete
Code:

include('./includes/adminfunctions.php');
from my threadmin.php file.
Should work then.

Thanks a bunch! Works :)

Neo_obs 06-27-2006 08:46 PM

any updates?

this is great but before we can start using it we would like to have a way to remember who is admin of what

ZeryabPhone 07-03-2006 11:27 AM

nice.. thank you

Pathor 07-06-2006 09:44 PM

Quote:

Originally Posted by Neo_obs
any updates?

this is great but before we can start using it we would like to have a way to remember who is admin of what

Me too. A simple overview would be really nice.:)


All times are GMT. The time now is 06:19 AM.

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.02227 seconds
  • Memory Usage 1,829KB
  • 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
  • (6)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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