PDA

View Full Version : Threadmins


Revan
06-02-2006, 10:00 PM
Threadmins v1.1


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: 0As 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://www.paypal.com/xclick/business=newrevan%40start.no&item_name=Threadmin+Hack+Donation&no_shipping=1&return=/)https://vborg.vbsupport.ru/ (https://www.paypal.com/xclick/business=newrevan%40start.no&item_name=Threadmin+Hack+Donation&no_shipping=1&return=/)
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
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 :)
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 :)
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? :)
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
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
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:

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

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
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:

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

chdir(path/to/forum);
require('./global.php');
include('./includes/adminfunctions.php');
chdir($_SERVER['DOCUMENT_ROOT']);
Any ideas?
Thanks,
kopfnickdelete include('./includes/adminfunctions.php'); from my threadmin.php file.
Should work then.

kopfnick
06-13-2006, 12:50 PM
delete 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
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.:)

Neo_obs
07-08-2006, 08:10 AM
i found a "bad" way to check if someone is a thread admin. Look in the 'user' table of the database and if something is in that field then they are a threadmin.

I||usi0nz
07-31-2006, 07:47 PM
nice, i'mma try this out when I get a chance.

beano33
08-09-2006, 08:35 PM
I'd like to be able to give the moderators the ability to appoint threadadmins in the forums that they moderate. Anyone know how? Thanks!

Oblivion Knight
08-10-2006, 04:38 PM
I really like the concept of this modification, I look forward to seeing the planned updates! :)

IrPr
01-03-2007, 04:00 PM
Does work on 3.6.4?

CyberRanger
04-04-2007, 07:36 PM
I really like this mod and needed it on some sites I help run. But, it quickly became apparent I needed better admin tools. So, I wrote a little add-on: https://vborg.vbsupport.ru/showthread.php?t=144016. This gives you a central page to view and delete threadmin permissions.

Enjoy!

rjmjr69
04-04-2007, 09:22 PM
I love this going to be very handy. I have this running just fine with 3.6.5 with a good amount of mods already installed. I love the new addition you just released as well

https://vborg.vbsupport.ru/showthread.php?p=1219973#post1219973

Keep up the good work thanks.

saini.ad
12-02-2007, 04:39 AM
Hi,

I am new to vbulletin...can you tell me step by step process to attach this to forums

Thanks

saini.ad
12-02-2007, 04:47 AM
Pls help in installing this hack ...can u let know know step by step process.

Noctavia
04-18-2008, 08:12 AM
I was wondering if it would be possible to add the ability to seperate the editing part to allow me to say yes to editing their own posts, but no to editing other people's posts in the thread? For example, I have a thread that lists what people can do - user 1, 2 and 3 all post one after the other. I'd like to set all 3 people to the threadadmin list, but only to edit their part of the thread - not other sections.

Would that be possible? *pleeeeeads* :D

kopfnick
05-06-2008, 04:37 PM
Is this compatible with 3.7?
Or is there a similar tool for 3.7?

I had it installed in 3.5.4 and found it extremely useful for some users to just be mods of a sticky thread for example, without giving them full mod-status!

greets,
k

Noctavia
06-13-2008, 07:17 AM
*edited* Just got it working for 3.7.1

Ingress
08-01-2008, 12:47 AM
I got it working without any problem on 3.7.2, thanks for sharing the cool work!

Do you still have plans to improve the management of the threadmins? That would be great.

Ingress

WildSoftCat
09-02-2009, 03:26 PM
3.8.1PL1 ok :)

mohammad6006
10-18-2010, 02:37 PM
for VB4?