![]() |
This hack conflicts with the Inferno Quiz Hack.. I get the following msg when trying to get to quiz.php
Code:
Fatal error: Cannot redeclare sendpm() (previously declared in path/quiz.php:139) in path/includes/functions_warning.php on line 53 Thanks! |
You have to rename the sendpm function, in one of the two hacks to something different. Then, find the string "sendpm" in the files or every routine of that hack and change the call to whatever you have renamed the function to.
You will have the same problem with other Inferno hacks. |
OK guys and gals, thanks to hornstar1337, I have again access to a test environment.
I'll try to check your issues about this hack, but as it has been suggested, it would be really helpful if someone could come up with a list of open items that I need to address, or if you can start posting again the problems you have. Please be specific. "I can't remove a warning" says nothing. Where from? The postbit? The Profile? The AdminCP/View Log? Please be as specific as possible. One thing that you should keep in mind, is that I have no ... idea how the installation works, so if you have an installation problem, I can't guarantee I can fix it, but I'll try to fix all your operational problems (like for example : "I can't completely remove a warning"). Finally, please keep in mind that I can only work on this hack a very few hours every day, so do not expect miracles from me. Given also that I am not as familiar with the new vB structures as I was with the previous version, do not expect to see quick turn-around times, OK? So start shooting. |
Quote:
Sorry to be an idiot, but can you get me started :( Thanks for the reply |
In functions_warning.php, there is a function called sendpm, you will recognize it, it says
function sendpm(......) and it has some parameters in the parenthesis. You should rename that to whatever you like, sendpmaws is a good candidate. The tough part is then to find where the sendpm function was called from (Warn.php? functions_warning.php? I do not remember) and replace that string (sendpm) with "sendpmaws" or whatever you decide to call that function. Or you can write to Inferno, and ask them for better instructions. |
Quote:
|
Yes, I got access to vbulletin.com. My license is valid all right, that's not the issue. The issue is that this old guy here, has learned programming much before classes were invented. I hadn't written one word of code for the last 10 years or so, before I got involved with vBulletin. I moved up the scale so I didn't have to write code. The fact that I learned php at my 48 and I managed to post this hack was a major achievement for me, with countless hours spend trying things out and learning.
I got so fascinated with php and vB that I started changing things to make vB suit my preferences. So my board, is heavily hacked, and the changes brought by vB 3.5 were enough to discourage any further work on this (and any other hack). Why? For the simple reason that I can't rewrite every single hack I've installed in my board, nor go through it and change every little piece of code I've changed, just because vB does not respect its users. There were definitely things that needed to be changed in vB, but others didn't have to change, at least not in the way they were changed. So I made up my mind that my board will remain at the previous version, for as long as I can maintain it. So I completely lost interest on vB and I focused on maintaining my own board. The published API is very interesting for someone who can understand it. I can't. I don't even know what a class is. And I do not plan to invest more time in learning more things, for the simple reason that there are other things in my life that take precedence. Like my hobbies, my kids, my family (obviously not in that order). So I left AWS over to KirbyDE's hands, when vB 3.5 came out. Unfortunatelly, KirbyDE, or Andreas as we know him now, got hired by vB, right after he took over this hack and the man does not have enough time to work on it any more. I do not plan to develop AWS any further, so this must be clear in everyone's mind. No more new functionality will ever be added in AWS. What I want to do now, is to deliver to the people who trusted me and installed this hack in their boards, a bug-less version, which will work with vB 3.5. This is the last I plan to do with AWS because I am just not interested in developing it any further. I keep adding functionality in my own version, the one I use on my forums, because it helps me and my moderators do our job. But that's in vB 3.0.xx, and I feel confident coding in that environment, as opposed to vB 3.5. Sorry folks, I had to say those things once again, just to let you know where you are standing. I do not want anyone to have false expectation from this hack. Time to go to bed, I have to take the kids to school tomorrow morning. |
Quote:
|
Quote:
Thanks for the response though.. That makes sense and I kinda learned something while looking through with that in mind. I appreciate it |
Quote:
Worked great.. Appreciate it.. Now I gotta scan any other files that came with that hack for sendpm or runerror Thanks again |
I installed Inferno (sorry to bring it up again) RPG hack..
I renamed all the instances of sendpm to sendpmaws, all the runerror to runerroraws and all the parseinput to parseinputaws Everything works fine now with both AWS and the RPG hack.. At least from what I have seen so far.. There has been one issue however.. When I click view my warnings or view another users warnings, ALL I get is a blank screen... Any ideas??? *EDIT* Actually I fixed it by removing the 3 function settings of sendpm, runerror, and parseinput from the aws' functions_warnings.php.. But I guess AWS is dependant on the RPG hack for now then :) |
Are you sure that the AWS functions and the RPG functions are identical? I mean they should be called with the same parameters list and should return the exact same thing. Are you sure they are?
|
Quote:
No I am not.. Everything is working as far as I can see... Should I do something that might return an error to test it? |
Is ever going to be a non-beta?
|
Hopefully!
|
anyone having problems with this on the latest release 3.5.4 ?
|
sv1cec,
I know your not diong too much with this anymore. But since the upgrade to the newest version its broken my Inferno Quiz :( Apparently other people are having the same problems ... We get the error: Fatal error: Cannot redeclare sendpm() (previously declared in /home/exitilus/public_html/forums/quiz.php:139) in /home/exitilus/public_html/forums/includes/functions_warning.php on line 23 Any plans on a fix? Just curious :) -Exitilus |
Quote:
I have to uninstall, but I am leaving it checked as installed so I may hear of an update to fix this conflict |
Quote:
@ John: also, if you need anything else, let me know and ill do it as soon as i can. Thanks |
@hornstar1337: Thanks for the test site, I am working on it as I find the time.
@MorrisMcD, @Exitilus: If you do the renaming properly, there is no reason why this would happen. I may rename those routines in the new version, but this is the last of my priorities. Did you ask Inferno for a solution too? What did they say? And this is not a new problem, it's been known since the previous version of AWS. @all, I am currently trying to figure out, why on earth trying to delete a warning from AdminCP comes up with a blank screen. And please remember to let me know what other issues you have. If not, I'll never be able to deal with them. |
Just rename them in that one file? or all the AWS Files?
|
Quote:
|
As Delphi said, if you rename a function, you have to change every call to that function too.
|
Quote:
This is a far superior warning hack imo.. You should really consider rereleasing it with prefixes on your functions. I think Inferno should be doing the same thing.. Great hack.. Dont take me as complaining.. I am really bummed I couldnt get it workin |
hi people,
try this.Open "/includes/functions_warning.php" and change this code PHP Code:
PHP Code:
still in functions_warning.php PHP Code:
PHP Code:
files who needs an update
that should do it Now don't shoot me if i forgot a place where those functions are called :speechless: |
Somehow, I do not believe that these are the only locations that need to be changed. Did you check the plugins too?
|
Quote:
PHP Code:
PHP Code:
|
Darn man, that's why I hate 3.5. You have to learn mostly everything from scratch.
Thanks for the heads-up Delphi, maybe this is my problem with the removal in admincp. I'll work on it maybe today. I think I'll define $admincp as a global variable somewhere in the start, and leave the code alone. There is no reason to change every occurence of it. Is there any place, where all the obsolete variables and structures are collected, so that one can reference it and take it from there? The only thing I had found in the past, was a thread, where you had to scroll through all the posts to get that information. Hasn't Jellsoft released any official document with these changes? Again, thanks. |
hi John ,
Found another problem.If you completely remove a warn and you send email about this Quote:
update problem found it's the $thread2 variable causing the failing url's in admin_warn.php |
I think I've spotted that too, and corrected it. Thanks for the heads-up though.
|
Just have a simple question: what did you say the maturity is for?
In my case i have the maturity on 180, and 4 warnings before ban, but when getting the 5th warning, my users get banned too. And what happens if i choose a low maturity, let's say 1 day? Do I have to warn my users 4 times each day to get them banned? -_- |
Read the AWS Manage Options page, everything is explained there in details.
The maturity is the period during which the warning points from a particular warning, will remain in a member's account. In your case, if the maturity of a warning is 180 days, then the points associated with that warning, will remain in the user's account for 6 months. Then there is the Warning Points Limit. If a member ever accumulates enough points to reach it, he is banned for whatever your ban duration is. Then there is the Warnings Number Limit. If a member collects as many warnings (warnings, not warning points) as the Warnings Number Limit is, then he gets banned again, for whatever your ban duration is. If you choose a low maturity, it's like "not punishing" your users, for their infractions. They get x points today, and tomorrow they are gone. If they get warned 4 times in a day, yeah, they will be banned, but if you have such members, you better start issueing "permanent ban warnings", where the member is permanently banned. |
Quote:
Well, it's a forum with the average age of about 13-14 yrs olds ;p |
I won't like to be in your shoes!!!
|
im having this weird thing
I can't find this in the postbit_legacy; some of the codes are there but they're not under each other! Code:
<if condition="$show['moderated']"> |
and another question, is there a way to display under the "post count" in the postbit_legaby, the number of warnings?
|
Whether it is possible to expect the next version of AWS for vB 3.5 up to the end of March?
|
Quote:
|
Right, I can't give any warranties. When it is ready, and when I am satisfied that everything works as it should, I'll release it.
|
It would be desirable then to ask something:
1. Whether in new release phrases will be used only? (it is necessary for an opportunity of localization) 2. Whether will be replaced ' yes' and ' no ' to 1 and 0? |
All times are GMT. The time now is 08:12 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:
|