![]() |
Excellent hack, g-force2k2... it's exactly what I needed for my forum!
I have been experimenting with a number of 'fixes' for problems people have been having, but I think my particular issue is a bit different: I can only see the 'View User Warnings' and 'Warn This User' link for my own posts! Odd, no? Sound familiar? Make any sense? I have tweaked the settings in Options numerous times and been able to make the link beneath my own name appear and disappear, but can't seem to do so for the other users. Fortunately this is on a test board so my problems are not too urgent, but could you ponder this and throw any ideas my way? (I think this may be my first post on this board - LOL) |
dapence if you can't delete them from the installer (because it just doesn't work)
then delete them manually ie: go to this url in your browser... .../admin/setting.php?s=$session[sessionhash] thesteveco do you have any screenshots? definately sounds weird... regards... g-force2k2 |
No, I meant that the uninstall routine works find, except it will not remove the entries added to the settinggroup and setting tables.
code inserting ... PHP Code:
PHP Code:
PHP Code:
PHP Code:
So, if you reinstall it, there are duplicate entries in these tables. Like I said, I'm not a MySQL guru, but I think I'm correct. Just thought you'd like to know. :) |
g-force2k2,
I'm not sure what the problem was, but after taking things step by step, checking everything into CVS as I went, it worked on my secondary backup. I installed it on my production box and all is quite well! Props to you - I look forward to seeing how effective this tool can be. One other point... I intend to write a script (simple PHP page activated by a cron job) that will automatically decrement the warning level one point per day. When the points against a user drop below the banning threshold the user's account will be re-enabled. This won't modify any of your scripts or templates, but I thought I'd throw it past you for your blessing just in case it was appropriate. |
g-force2k2,
So I've written and tested that script - it works like a charm with one exception... I'd prefer to make the ban_limit variable dynamic but don't want to make too many assumptions when retrieving it from the setting table. For the time being it's a static value. If you want a copy of it and its associated cron job just let me know. As for the hack I am seeing three problems currently. The first is that some Registered users see only their own Warning Level and others see all. The second, and similar, is that for Moderators, Super Moderators, and Administrators we occassionally do not have the Warning links at the bottom of posts. For both of the above problems I have checked the HTML source to see if there was some sort of commenting problem but there is not... the link is not written into the page and so I'm assuming it has to do with the $post[warnlink] variable in the postbit template (set in member.php). I'll do some logic tests to see if I can help you further in diagnostics. The third problem is with one of the hacks of your hack. :D I added the "Comment: $comment" to the warn_pmemail_notify and warn_banemail_notify templates to be a bit more verbose in the message to the offending users. The inclusion of an apostrophe generates a MySQL error as it is not escaped. It's an easy enough problem to solve, just thought I'd let you know. Thanks again - I'm realy enjoying the hack - it's going to be an excellent addition to my board. |
Just an idea...
What about setting the Warning Levels printed in the post to different colors, f example green (<33%) orange (>33<66%) and red (>66%) ?? |
look forward to what you come up with thesteveco... the scripts not displaying right im not really sure about... as for the warning point decrementor thats fine... you can add that... thanks for the reply...
nbb i will see what i can do for you ;) regards... g-force2k2 |
there nbb... test that out ;) i haven't tested it yet sorry... but it should work...
g-force2k2 |
where is the warnconfig.php goes?
It is not in the zip file.. |
OMG - I'm totally going to regret this, but I have to be forthcoming and share my findings...
<--- laughing at self After spending hours working through your PHP and setting the indenting, commenting, and spacing in a manner in which I can read it more quickly an thoroughly (you KNOW every coder is unique in their style) I found the stupidest little error that immediately explained everything... I inserted the $post[warnlink] info in functions.php BEFORE the end of the $onlinestatus condition, not AFTER. Thus, all the people who were not online had the warnlink info, those who were did not. Super duh! At least you know what to tell the next guy!! LOL! |
All times are GMT. The time now is 08:06 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|