vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced Warning System (Beta Version) (https://vborg.vbsupport.ru/showthread.php?t=95921)

MorrisMcD 02-19-2006 12:17 PM

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
When I disable AWS, I can use the quiz fine.. I will not be disabling this hack for the quiz hack, but I would like both.. Any suggestions based off my error msg???

Thanks!

sv1cec 02-19-2006 01:08 PM

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.

sv1cec 02-19-2006 04:47 PM

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.

MorrisMcD 02-19-2006 05:24 PM

Quote:

Originally Posted by sv1cec
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.

Well.. I am happy you know what the issue is.. But I am not sure what you just said to do exactly.. lol

Sorry to be an idiot, but can you get me started :(

Thanks for the reply

sv1cec 02-19-2006 07:09 PM

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.

Delphiprogrammi 02-19-2006 07:28 PM

Quote:

Originally Posted by sv1cec
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.

you still got access to members.vbulletin.com ? the complete api and stuff that changed since 3.5.x came out is in there http://members.vbulletin.com/api

sv1cec 02-19-2006 08:04 PM

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.

Delphiprogrammi 02-19-2006 09:18 PM

Quote:

Originally Posted by sv1cec
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.

I will help you in any way i can this hack is to good for "recycle bin" (you know what i mean)

MorrisMcD 02-20-2006 12:11 AM

Quote:

Originally Posted by sv1cec
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.

Seems like more trouble that its worth.. My users didnt use the quiz hack much at all before I upgraded to 3.5... Plus if I ever upgrade the customized hack, I would have to do it again!! lol

Thanks for the response though.. That makes sense and I kinda learned something while looking through with that in mind. I appreciate it

MorrisMcD 02-20-2006 12:18 AM

Quote:

Originally Posted by MorrisMcD
Seems like more trouble that its worth.. My users didnt use the quiz hack much at all before I upgraded to 3.5... Plus if I ever upgrade the customized hack, I would have to do it again!! lol

Thanks for the response though.. That makes sense and I kinda learned something while looking through with that in mind. I appreciate it

Actually.. After saying what I did.. I figured I would never upgrade this quiz one anyway.. I just changed them all to sendpmquiz.. Then of course I got the exact error with RunError.. lol I changed them all to RunErrorquiz..

Worked great.. Appreciate it.. Now I gotta scan any other files that came with that hack for sendpm or runerror

Thanks again


All times are GMT. The time now is 10:26 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
  • Page Generation 0.02043 seconds
  • Memory Usage 1,781KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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