![]() |
Not working correctly
I have just installed the Warning system from scratch and so far I am impressed.
There are a few things though that you say it can do, but I do not have available in my options. Screenshot In the above screenshot there are a lot more options, including a Manage Warning Options. I do not have this option. I purely have Control Warnings, Warning Logs and Unban Banned Users. I do not have any of the options to user hierarchical schema, banned usergroup etc. Also the feature is decribed where the warning level is shown under the users profile and next to his posts. I don't have this facility either. Please adivise. Thankyou Further to this my moderators also don't have the ability to give out warnings. Even though they are still the default usergroup number as suggested. |
Which version did you install? Did you downloaded the latest zip? From the description, either you haven't downloaded the latest zip file, or you have not run the proper install script.
Use the uninstaller to uninstall the changes, then use the install_warn.php from the latest zip.The warning options screen shot is quite old, but you should see a lot more options than those shown. Let me know if this works. Rgds |
Quote:
|
Do me a favor. Uninstall the hack, using the uninstaller and install it again running the install_warn.php file from the admincp directory. Download the latest zip first.
Rgds |
1 Attachment(s)
Okay done exactly as you said and ran the uninstaller, then re-ran the installer and I still only have Control warnings, Warning Logs and Unban Banned Users. No Manage Warning Options.
Please advise.... Screenshot Attached. |
I thought I answered this, this morning, but my answer is not here!!!
In any case, have you done the edits properly? It looks as if the file admincp/index.php is not edited, as it is suggested. The missing menu options, are in that file. Rgds |
yeah you didn't edited the file $admncpdir/index.php open this file and find
PHP Code:
PHP Code:
|
Quote:
I have two remaining little problems and I think you may be able to sort them quickly. I have obviously typed something incorrectly somewhere. Firstly. On the posts I have two lots of Warn and View commands at the top of each thread. Obviously I have duplicated somewhere but I would appreciate knowing which file to look at. The second one is when I issue someone a warning I get the following message... Database error in vBulletin 3.0.7: Invalid SQL: update vb3_user set warning_level='2', warnings='1' where userid='4' mysql error: Unknown column 'warnings' in 'field list' mysql error number: 1054 Not sure what the problem is here. If you think you could fix it quickly for me John I would appreciate it. Whether that be you telling me where I should go, or whether i give you access I am willing to do that. Many thanks. |
Quote:
ALTER TABLE `".TABLE_PREFIX."user` add `warnings` int(5) default '0' Remeber to change the ".TABLE_PREFIX." to your prefix, which I think is vb3_ For the first problem, check the mods in your postbit or postbit_legacy template. You have probably missed an <if> or some condition is not right. Rgds |
I'm getting there mate. I really appreciated your assistance.
The database error is now clear, for some reason the database was missing both the warnings and warning_bans options. I manually added them and it seems to be working now. I can't see anything in my postbit or postbit_legacy files so I have attached them to see if anyone on here can see a problem. Another problem which has appeared since is when I click on remove warning I get the following..... "Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 1946" (This is at the top of the screen) Then it says Error An Error Has Occured! An error has occured, the following message has been left below: Invalid User ID Input Hope you can help. Thanks |
First of all, please delete those files from here, if you do not want to hear from the forums moderators. You are not supposed to post complete vB files or templates here, it is a breech of your license agreement.
Second, before anything else, and because this thing reminds me of something I've fixed before, please download the latest zip file. Make sure you upload Warn.php and includes/function_warning.php files to your server. Let me know if this helped. Rgds |
Quote:
Database error in vBulletin 3.0.7: Invalid SQL: UPDATE vb3_user SET usergroupid = , displaygroupid = , warnings=1, warning_bans = 1, usertitle = 'Temporarily Banned' WHERE userid = 39 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 ' displaygroupid = , warnings=1, warning_bans = 1, mysql error number: 1064 Date: Saturday 19th of March 2005 04:09:37 PM Script: http://www.webcadets.com/forum/Warn.php Referer: http://www.webcadets.com/forum/Warn....id=39&post=245 Username: Dave IP Address: 217.44.114.125 I haven't done the full install using version 3.3.0 but have using 3.2.0 before now, just had a two little problems above. Seems I have a big problem now though mate. cheers |
Quote:
What is it? I can't help if you are giving me contradictory information. Have you set your Warning Options properly, in the admincp? |
Quote:
I still for some reason have two lots of Warn user and View User warnings on each post. Everything else seems to be working okay apart from when I issue a warning I am getting a parse error at the top of the confirmation of issue page. Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/dbeel/public_html/forum/includes/functions_warning.php(475) : eval()'d code on line 19 The warning is still issued however. |
For the two sets of Warn/View Warnings links, check your changes in your postbit/postbit_legacy templates.
For your second issue, check your warn_pm template. Make sure there is no warn_opts in there. Also, how many styles are you using in your forums? |
Quote:
In regards to checking my warn_pm template where do you mean mate? Through the CP cos I can't find it?? :disappointed: |
1 Attachment(s)
Quote:
[b]EDIT: ALSO: the Warn PM doesn't contain anything. See screenshot for more information. |
Replace the contents of your warn_pm template with the code below:
HTML Code:
Dear $user[username], Quote:
PHP Code:
PHP Code:
|
Quote:
Thank you everything seems to be in order except for the "\" problem but I think that'll be fixed soon. No sweat. Thanks! |
Most welcome!
|
Quote:
Not sure if your aware though, when someone replies to a warning PM the PM gets sent but is blank. Is there a problem somewhere else or is this me again? |
I just tested the reply, and it works OK. Have you added that line I told you, in your private.php file?
|
Quote:
|
Oh, and the ' problem is solved in 3.3.1.
Sorry guys, but the upgrade to the latest release was quite a nightmare. It involved files from Revan and my files, which had to be merged into one. I am sure I had corrected this problem in the past, because I have comments in my site that contain ' and have no backslashes. Probably Revan missed that change, and I didn't catch it was missing either. AS for your problem, if I remember correctly, the procedure which inserts a PM in the database, is the same if you create a new PM or if you reply to a PM, so that means that if a new PM is send OK, a reply should be also send OK. |
Quote:
|
You are welcome.
|
All times are GMT. The time now is 04:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|