vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Warning System, Automatic Ban, Make Posts Invisible, Edit Signature/ Avatar/ Picture (https://vborg.vbsupport.ru/showthread.php?t=59718)

Erwin 01-06-2004 07:57 PM

Good job. :) I will add that to the first post giving credit to you.

Zachery 01-06-2004 08:16 PM

only problem with that is its still hard coded via usergroups

magnus 01-06-2004 09:31 PM

Quote:

Originally Posted by Erwin
Good job. :) I will add that to the first post giving credit to you.

Thanks! :)

Quote:

Originally Posted by Faranth
only problem with that is its still hard coded via usergroups

Eh? I read your first post in this thread, but I'm afraid I don't know what "tatchy" is. You mean you want it as a definable option in the AdminCP? I plan to tinker with this hack quite a bit, so if that's what you mean I could do the code for that (if Erwin doesn't mind, of course).

Erwin 01-06-2004 09:44 PM

I don't mind. :) Just post it here, and I will include it in the first post.

Zachery 01-06-2004 09:46 PM

no i was refering to the fact that you were still using usergroup id's which arnt always a good idea anymore :) (or so i keep being told)

magnus 01-06-2004 11:04 PM

Erm.. if there's another way to do it, I'm all ears. Sure, I used can_moderate() for moderators.. but is there a can_admin(), too? Heh..

Zachery 01-06-2004 11:08 PM

can_moderate()

$permissions['adminpermissions'] & CANCONTROLPANEL

at least i think so? what i pulled outta beta 7 :)

magnus 01-07-2004 12:08 AM

Quote:

Originally Posted by Faranth
can_moderate()

$permissions['adminpermissions'] & CANCONTROLPANEL

at least i think so? what i pulled outta beta 7 :)

$perm['adminpermissions'] & CONTROLPANEL pull info from the currently logged in user, not the selected user -- so those won't work. I've been digging on vB.com and I can't seem to find anything relating to this. I was also digging through the default templates for a clue, but apparently they removed Administrator distinctive traits such as italics in Who's Online and Memberlist.

So.. until I can find how they want me to do it, usergroupid will have to do. :D

Zachery 01-07-2004 12:57 AM

if you use

<if condition="$permission['adminpermissions'] & CANCONTROLPANEL"> it will only show to admins

magnus 01-07-2004 02:07 AM

It's $perm['adminpermissions'] and yes, you're right.. that will work if I want to show to admins, but that's not what I'm trying to accomplish sadly.

I need to display warning options on a per user basis, if the selected user is an admin then the warning options will NOT be displayed for them when clicked -- which is why the usergroupid is being used.

$permisson[] gets the permissions of the logged in user, not the selected user.

shadowbreed 01-07-2004 02:45 AM

Great that moderator addon was exactly what i needed :) great hack and great addon, thnx guys

Erwin 01-07-2004 11:14 PM

Quote:

Originally Posted by Link14716
Think you have a long enough title?

And you should attach it to a .txt, remember? Bad Erwin. ;)

Looks like a nice hack, I'll give it a shot later. :)

Finally got off my butt and made a ZIP file. :)

Vile 01-08-2004 01:19 AM

Excellent hack Erwin :)

Thanks for sharing

Tenpit 01-08-2004 12:28 PM

Great Hack

Just a question.
When you give someone a warning, does it send them any form of notification, PM or Email? Is it possible to set a reason for the warning?

Thanks
Tenpit

magnus 01-08-2004 04:30 PM

Quote:

Originally Posted by Tenpit
Great Hack

Just a question.
When you give someone a warning, does it send them any form of notification, PM or Email? Is it possible to set a reason for the warning?

Thanks
Tenpit

At the moment, no, it does neither. I'm working on a mod at the moment that will add that functionality. :)

gmarik 01-08-2004 06:43 PM

A good one - could be more strucutrized.

Erwin 01-08-2004 07:14 PM

Quote:

Originally Posted by Tenpit
Great Hack

Just a question.
When you give someone a warning, does it send them any form of notification, PM or Email? Is it possible to set a reason for the warning?

Thanks
Tenpit

That would be quite easy to add to warn.php. :) I've never needed to as I get my moderators to manually PM the member.

corsacrazy 01-09-2004 01:17 PM

i really dont like the idea of having a new custom field and mr erwin isit possible to create an install script for all the lazy ones?

Erwin 01-09-2004 10:12 PM

Quote:

Originally Posted by corsacrazy
i really dont like the idea of having a new custom field and mr erwin isit possible to create an install script for all the lazy ones?

New custom profile field is the best way to add new fields, since you don't need to run extra queries to get the information. :) Running an install script won't work with custom profile fields since the custom profile fieldid would be different for each person depending on how many of these you have added.

corsacrazy 01-09-2004 10:19 PM

understood but i mean for editing the php files .. remember vb hacker and vb hback maker , i mean install file that sort of way and profile bit is manually done

Erwin 01-09-2004 10:42 PM

Quote:

Originally Posted by corsacrazy
understood but i mean for editing the php files .. remember vb hacker and vb hback maker , i mean install file that sort of way and profile bit is manually done

You want a file that manually edits your PHP files for you?

Firstly, you would have to have all your PHP files CHMOD 777 first of all. Secondly, it is much safer to do it manually, since you know where the code has gone, and can troubleshoot better. Thirdly, it means you learn about how PHP works if you do it manually. Fourthly, vBHacker doesn't work for vB3. :)

I can understand an install file to put in new tables and columns, templates and phrases, but not editing actual PHP files - that should be done by the installer manually.

corsacrazy 01-09-2004 10:48 PM

sory for being so lazy :)

webrats 01-10-2004 01:12 AM

im not seeing the ip or the warnign points in the post bit

Erwin 01-10-2004 03:36 AM

Quote:

Originally Posted by webrats
im not seeing the ip or the warnign points in the post bit

Try reinstalling the hack again. :) Something didn't go right. Make sure also you are allowing mods to see IPs in the first place. And that you have given out the warning point.

M1th 01-10-2004 07:51 PM

Hmm, I just installed this on my test board.. everything is working except the automatic Ban when warning level is above 7. It wont put the member in the banned usergroup for some reason. :/

Amiga-uk 01-10-2004 08:56 PM

Hi, i tried this and got:

Code:

Database error in vBulletin 3.0.0 Release Candidate 2:

Invalid SQL: UPDATE userfield SET 5=5-1 WHERE userid='98'
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '5=5-1 WHERE userid='98'' at line 1

mysql error number: 1064

Date: Saturday 10th of January 2004 10:56:15 PM
Script: http://forum.inspiregfx.co.uk/warn.p...t=Substract+-1
Referer: http://forum.inspiregfx.co.uk/warn.p...kupo&warnings=
Username: Amiga
IP Address: **.***.**.**

What've i done wrong? :(

EDIT: Whoops, i got this when trying to add/subtract/reset warnings. Everything else works perfectly.

Erwin 01-11-2004 02:49 AM

Quote:

Originally Posted by Amiga-uk
Hi, i tried this and got:

Code:

Database error in vBulletin 3.0.0 Release Candidate 2:

Invalid SQL: UPDATE userfield SET 5=5-1 WHERE userid='98'
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '5=5-1 WHERE userid='98'' at line 1

mysql error number: 1064

Date: Saturday 10th of January 2004 10:56:15 PM
Script: http://forum.inspiregfx.co.uk/warn.p...t=Substract+-1
Referer: http://forum.inspiregfx.co.uk/warn.p...kupo&warnings=
Username: Amiga
IP Address: **.***.**.**

What've i done wrong? :(

EDIT: Whoops, i got this when trying to add/subtract/reset warnings. Everything else works perfectly.

You haven't got the custom profile field id correct there. It should be field10 or something like that.

Erwin 01-11-2004 02:49 AM

Quote:

Originally Posted by M1th
Hmm, I just installed this on my test board.. everything is working except the automatic Ban when warning level is above 7. It wont put the member in the banned usergroup for some reason. :/

Mmm... did you specify the banned usergroup id in the warn.php file correctly?

M1th 01-11-2004 02:57 AM

Quote:

Originally Posted by Erwin
Mmm... did you specify the banned usergroup id in the warn.php file correctly?

Yep.

SnowBot 01-11-2004 08:14 AM

Got round to installing it and went without any problems, all seems to work well.

Nice, THANKS :)

Amiga-uk 01-11-2004 11:59 AM

Quote:

Originally Posted by Erwin
You haven't got the custom profile field id correct there. It should be field10 or something like that.

hah, yeah.. i didnt realise something =P

Thanks, its all sorted now. Works perfectly ^^;

Zelda-King 01-11-2004 02:18 PM

Installed!

Seems to be working fine so far. :)

Erwin 01-11-2004 09:31 PM

Glad to know it's working. :) Hope it's helping you run your forums.

Zelda-King 01-11-2004 10:10 PM

Yes thanks! Even the more hack-skeptic staff are impressed.

cirisme 01-11-2004 11:38 PM

Wow, that is quite an involved hack. Good work!

ranger2kxlt 01-13-2004 01:21 AM

quick question, if you add a warning point can you have a reason for the warn as well???

Thanks

Erwin 01-13-2004 01:36 AM

Quote:

Originally Posted by ranger2kxlt
quick question, if you add a warning point can you have a reason for the warn as well???

Thanks

No, I haven't done that for this hack. I may add this as a feature in the future.

FastAttack 01-13-2004 02:31 AM

I've installed it but sometimes it wierds out on me.. when I put my mouse over on the postbit it won't generate the menus.. but if I click the username go to their userinfo and come back it works again..

did I miss something here?

Erwin 01-13-2004 02:41 AM

Quote:

Originally Posted by FastAttack
I've installed it but sometimes it wierds out on me.. when I put my mouse over on the postbit it won't generate the menus.. but if I click the username go to their userinfo and come back it works again..

did I miss something here?

The dropdown menu thing has nothing to do with my hack - that's an intrinsic vB3 issue that is related to different browsers. :) My hack just makes use of the dropdown menus.

FastAttack 01-13-2004 02:42 AM

Quote:

Originally Posted by Erwin
The dropdown menu thing has nothing to do with my hack - that's an intrinsic vB3 issue that is related to different browsers. :) My hack just makes use of the dropdown menus.

ah k.. didn't they fix that "bug" or is it still around RC2 ?


All times are GMT. The time now is 12:51 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.01298 seconds
  • Memory Usage 1,823KB
  • 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
  • (2)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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