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)

Xplorer4x4 11-02-2005 10:04 AM

PHP Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
 
<product productid="aws" title="Advanced Warning System" description="Advanced Warning System" version="1.0.4" active="1">

Thats what the XML File says. Dunno ok well I guess I will grab the zip and update just to be sure.

Either way I don;t recall exactly which setting I use as for public/staff, but either way the count doesnt show up on warned posts.

Would it have anything to do with using postbit_legacy VS Postbit?

Your on the ball today, thanks and if you could do me one more favor and link me to that away message mod? :o

sv1cec 11-02-2005 10:57 AM

I think that KirbyDE hasn't included any modifications for the postbit_legacy template, because I haven't given him any. I'll have to look at this and come up with some instructions. Give me some time.

Ah, OK, it shows version 1.0.4 which should be equivalent to 3.5.4. No need to re-download the file again, I do not think that KirbyDE has updated it.

As for the User Away hack, this is the vB 3.0.xx release:

https://vborg.vbsupport.ru/showthread.php?t=67250

Rgds

Lea Verou 11-02-2005 11:17 AM

Quote:

Originally Posted by sv1cec
I think you have an overly complicated warning structure! LoL, maybe you should change some rules. ;)

Yes, I am Greek, and glad to meet another Greek coder here.

Since my involvement with AWS is now limited to the pre-vB3.5 versions, I sincerely don't think I can do any more development on this. I do not know if KirbyDE wants to take over, but there are two reasons I do not see me doing it : a) I do not plan to upgrade to vB 3.5 any time soon, since my site is heavily hacked and I do not want to loose any functionality and b) I do not have the time to work on this any more.

So, as far as I am concerned, I can't help you much with your warning schema.

Rgds

Lol, yes it is quite complicated but most of my members comprehend it easily :) It's the most fair one I could think of :)

Anyway, it doesn't matter, so far we can handle to do it manually :)

Xplorer4x4 11-02-2005 11:33 AM

Quote:

Originally Posted by sv1cec
I think that KirbyDE hasn't included any modifications for the postbit_legacy template, because I haven't given him any. I'll have to look at this and come up with some instructions. Give me some time.

Ah, OK, it shows version 1.0.4 which should be equivalent to 3.5.4. No need to re-download the file again, I do not think that KirbyDE has updated it.

As for the User Away hack, this is the vB 3.0.xx release:

https://vborg.vbsupport.ru/showthread.php?t=67250

Rgds

Thank Sv1. No rush, the sooner the better of course but thank you.

Milchi 11-05-2005 04:13 PM

Downloaded Latest Version in This Thread and Updated from Version 3.0.12 to this Version, no i can't Add Warnings to Users, i always get:

Invalid User ID Input

URGENT! Pls correct this horrible Problem fast

jluerken 11-06-2005 10:36 AM

I get the same:

An error has occured, the following message has been left below:
Invalid User ID Input

sv1cec 11-06-2005 10:43 AM

I am not sure what this is folks, so far, I haven't seen this reported and if there was an error in the Warn.php file, it would affect everyone (unless KirbyDE has changed something). So, all I can suggest is that you check your postbit template edits.

When you move your cursor over the Warn XYZ button (or link) at the bottom of your browser window, it should show you the command it will execute, something like:

Code:

http://www.myserver.com/Warn.php?do=WarnUser&id=5420&post=61700
Do you see a number next to the id= part?

jluerken 11-06-2005 11:31 AM

Yes, I see the ID part.

I found out that the current version brings up two problems.

1. I cannot warn a user. See above post

2. No posts can be done to the system cause its always saying that there are not enough characters or the subject is not filled out even if it is

sv1cec 11-06-2005 12:54 PM

What does AWS has to do with the not enough characters error?

HAve you enabled automatic warnings from Posts? Try disabling that and tell me if it affects the not enough characters error.

jluerken 11-06-2005 01:02 PM

Quote:

Originally Posted by sv1cec
What does AWS has to do with the not enough characters error?

HAve you enabled automatic warnings from Posts? Try disabling that and tell me if it affects the not enough characters error.

Automatic warning is disabled.

I deactivated the product for the moment cause as soon as I activate it my members cannot post anymore :-(

Do you want to take a look at my installation?

sv1cec 11-06-2005 01:40 PM

Sorry, I do not feel very comfortable with 3.5 so I won't like to mess up your site. And that particular part of the program has been ported to 3.5 by KirbyDE, not me, so I can't be of much help.

Have you reported it as a bug?

Xplorer4x4 11-06-2005 01:46 PM

Quote:

Originally Posted by jluerken
I get the same:

An error has occured, the following message has been left below:
Invalid User ID Input

Are you trying to do the non-post warning form the Admin CP or the member profile? I can do non-post related warnings from the member profile but NOT the Admin CP.

sv1cec 11-06-2005 01:59 PM

He didn't specify if that is a post- or non-post-related warning he was trying to issue.

Xplorer4x4 11-06-2005 02:09 PM

Ohh ok well still I was getting that error when I did non post related warnings, so I assumed.

sv1cec 11-06-2005 03:38 PM

What error do you get when you do non-post-related warnings? Invalid User ID? Do you see the user ID, as I asked the other member above, when you move your cursor over the Warn XYZ (Non-post related) button?

Milchi 11-06-2005 06:38 PM

Quote:

Originally Posted by sv1cec
What error do you get when you do non-post-related warnings? Invalid User ID? Do you see the user ID, as I asked the other member above, when you move your cursor over the Warn XYZ (Non-post related) button?

I get the "id" in the Browser line, but i get also the error an can't post and can't login or even logout ....

sv1cec 11-06-2005 06:55 PM

Milchi, please provide full details if you want any help.

When do you receive your error? In post-related or non-post-related warnings? Login in or out has nothing to do with AWS, I am afraid. So there should be something else that is causing this. Xplorer4x4 does not seem to have this issue, only you seem to have it.

jluerken seems to have another issue, his users cannot post, if AWS is activated. I have to assume that all these issues are not the same, so please provide as many details as possible for me and KirbyDE to help you.

Milchi 11-06-2005 08:48 PM

Problems are solved. First of all, to all 3.5 Customers, use the attached functions_warnings.php, this should solve all problems

What my Effects where:

- If i activate the Load Functions File Plugin, noone Could login or logout.
- I was unable to issue post OR non-post-related warnings (if i am already logged in)
- there where some errors in displaying old warnings correctly

What where the problems?

KirbyDE didn't get it managed to convert all Scripts to 3.5. I assume that i did it, but don't know it really (it's going to be testet on tuesday, we update our 12 000 customers board ;-)).

There where some errors, 1 function "warn_notify" was completly wrong, that is why i can't even login, there was a }'ering mistake in a if clause

jluerken 11-06-2005 09:47 PM

Quote:

Originally Posted by Milchi
Problems are solved. First of all, to all 3.5 Customers, use the attached functions_warnings.php, this should solve all problems

What my Effects where:

- If i activate the Load Functions File Plugin, noone Could login or logout.
- I was unable to issue post OR non-post-related warnings (if i am already logged in)
- there where some errors in displaying old warnings correctly

What where the problems?

KirbyDE didn't get it managed to convert all Scripts to 3.5. I assume that i did it, but don't know it really (it's going to be testet on tuesday, we update our 12 000 customers board ;-)).

There where some errors, 1 function "warn_notify" was completly wrong, that is why i can't even login, there was a }'ering mistake in a if clause


Seems to work for me also now but the file must be called functions_warning.php not functions_warnings.php

djlotus 11-06-2005 10:15 PM

When I try to run the installer, I get this error message at the first step. "Invalid or empty style file specified"

I am running version 3.5.0
I have installed a new theme that is set to my default style, and the style that was the default style, is set as display #2.

Any ideas?

Andreas 11-06-2005 10:35 PM

Quote:

Originally Posted by Milchi
Problems are solved. First of all, to all 3.5 Customers, use the attached functions_warnings.php, this should solve all problems

What my Effects where:

- If i activate the Load Functions File Plugin, noone Could login or logout.
- I was unable to issue post OR non-post-related warnings (if i am already logged in)
- there where some errors in displaying old warnings correctly

What where the problems?

KirbyDE didn't get it managed to convert all Scripts to 3.5. I assume that i did it, but don't know it really (it's going to be testet on tuesday, we update our 12 000 customers board ;-)).

I don't know on which file you based your modification, but definitly not on the file from the ZIP (which works fine except that global $vbulletin; has to be removed) as you got some some code in totally different locations, as well as completely wrong code like

PHP Code:

    $to=$db->query_read("select * from ".TABLE_PREFIX."user where userid='{$to}'");  // Grab Member Its Going TO
    
$from=$db->query_read("select * from ".TABLE_PREFIX."user where userid='{$from}'"); // Grab Member Its Coming FROM 


sv1cec 11-07-2005 03:39 AM

Don't blame it to KirbyDE, it might be me who have made that mistake. Although it works on my board, but my board has the first vB 3.5 version of AWS I send to KirbyDE, when he jumped in on this.

In any case, good you have it solved.

jluerken 11-07-2005 06:46 AM

Complete Removal of Warnings is not working.
Wrong Link.

Please KirbyDE (Andreas) take a look at this hack again.
Its a quite useful hack which should be vB standard but actually it is not working correctly for 3.5.1

Milchi 11-07-2005 11:51 AM

I took the version which is for download here, downloaded at 13:00 Saturday morning 5. of november, GMT+1 German Time, based on this code, it is NOT functional and i made it to function ..

Complete Removal is working, you must click on the "inline mod" function of complete removal. don't know why the normal link is not working, didn't figured it out after 6 hours rewriting of code ...

@KerbyDE:
The Locations are different cause i restructered the file ;-)

This is the code from the ORIGINAL ZIP File, look (just downloaded it again this seconds)
PHP Code:

    $to=$db->query_first("select * from ".TABLE_PREFIX."user where userid='{$to}'");  // Grab Member Its Going TO
    
$from=$db->query_first("select * from ".TABLE_PREFIX."user where userid='{$from}'"); // Grab Member Its Coming FROM 


sv1cec 11-07-2005 12:21 PM

Andreas is KirbyDE????

Hey partner, why don't you tell me so?

jluerken 11-07-2005 12:52 PM

Quote:

Originally Posted by sv1cec
Andreas is KirbyDE????

Hey partner, why don't you tell me so?

Didn't you read the announcement that KirbyDE became an official supporter here and that he changed his loginname to Andreas? :D
Hopefully I find a time slot to phone with Andreas today.

It would be good to have a list with all open points so that I can check with him if he has time and is willed to :D

Milchi 11-07-2005 12:57 PM

Quote:

Originally Posted by jluerken
Didn't you read the announcement that KirbyDE became an official supporter here and that he changed his loginname to Andreas? :D
Hopefully I find a time slot to phone with Andreas today.

It would be good to have a list with all open points so that I can check with him if he has time and is willed to :D

If so, pls give report (it's always funny if german people are talking english against each other *g*).

jluerken 11-07-2005 01:10 PM

Quote:

Originally Posted by Milchi
If so, pls give report (it's always funny if german people are talking english against each other *g*).

Its a question of respect I think.
All others want also to know what we're talking about :D

Aaeeh ok, I am sure sometimes Andreas don't want to know cause in most cases this means work for him :)

Andreas 11-07-2005 01:51 PM

For the "Invalid User Input"-error:

admin_warn.php, replace all instances of

PHP Code:

do_finduserwarnings&userid=$vbulletin->GPC[temp_uid]"; 

with

PHP Code:

do_finduserwarnings&amp;{$userid=$vbulletin->GPC[temp_uid]}"; 

This is an utterely ugly Hack, but should work until the backend is fully revised.
(Currently working on the frontend, which is 85% phrased by now)

I am sorry that I can't fully work on this, but time is a major problem.

Andreas 11-07-2005 01:53 PM

Quote:

Originally Posted by Milchi
This is the code from the ORIGINAL ZIP File, look (just downloaded it again this seconds)
PHP Code:

    $to=$db->query_first("select * from ".TABLE_PREFIX."user where userid='{$to}'");  // Grab Member Its Going TO
    
$from=$db->query_first("select * from ".TABLE_PREFIX."user where userid='{$from}'"); // Grab Member Its Coming FROM 


This code is correct, yours isn't (it's generating a mySQL result resource, while the needed data in $to and $from are arrays with the values :)).

Milchi 11-07-2005 04:27 PM

Quote:

Originally Posted by Andreas
This code is correct, yours isn't (it's generating a mySQL result resource, while the needed data in $to and $from are arrays with the values :)).

I Know that there a still some query_first and query_read errors, i didn't fixed all until know, but this code is working for me , yours isn't, pls don't ask me why ;-)

I didn't convert the mod, i just tried to get it working, nothing more *g*

CaitSith4343 11-07-2005 11:02 PM

First of all, this is great, thanks for porting it over.

Now to my minor problem:

Everything went fine up until one of the last edits on the navbar template. I was supposed to find:
PHP Code:

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr

but when I search I cant find it anywhere.

So, I dont know where to put:

PHP Code:

tr><td class="thead">Warnings</td></tr>
   <
tr><td class="vbmenu_option"><a href="Warn.php?$session[sessionurl]do=ViewMyWarnings">View Your Warnings</a></td></tr

I dont really know anything about coding, but I tried to put it in the right places and I dont think it worked. Its not supposed to be under the main navbar in a little row of its own is it?

Anyways, everything except this has gone fine and Im not getting any errors, but I'm pretty sure without this part members cant view their warnings, or at least not easily, correct?

Anyway, I know its probably hard to tell from the info given but any help would be appreciated.

sv1cec 11-08-2005 03:56 AM

The place where that piece of code goes, is inside a drop-down menu called "Quick Links", on the Navbar. The code I provide adds a new line to that menu.

Try finding the word Miscellaneous in the Navbar template.

Rgds

MThornback 11-08-2005 12:39 PM

Something for all you people having issues with errors between functions_warning and other hacks....

Follow the adivce mentioned above about checking to make sure they are the same...and if you can delete them, do so, but if you CAN'T try adding a "2" to the end of the function name and all instances and you may atleast be able to use it till a work around till the problem is fixed :)

*Only if your confident you understand the code....don't dabble where you shouldn't*

CaitSith4343 11-08-2005 06:30 PM

Quote:

Originally Posted by sv1cec
The place where that piece of code goes, is inside a drop-down menu called "Quick Links", on the Navbar. The code I provide adds a new line to that menu.

Try finding the word Miscellaneous in the Navbar template.

Rgds

Yeah, thats what the problem is. The skin I have right now doesnt have quick links section in the navbar. I should probably have one added anyway because it is quite convenient, but for now, are there any other locations where memebers can view their warnings?

jluerken 11-09-2005 07:01 AM

Current version is now running fine but its not fully phrased.
When will this version be updated so that everywhere phrases are used and we can start translating?

sv1cec 11-09-2005 01:17 PM

Quote:

Originally Posted by CaitSith4343
Yeah, thats what the problem is. The skin I have right now doesnt have quick links section in the navbar. I should probably have one added anyway because it is quite convenient, but for now, are there any other locations where memebers can view their warnings?

Sure and they can, in each and every post they have posted, there is a button saying "View Your Warnings". Also in the User CP, there is a similar button.

PrinzII 11-11-2005 01:45 AM

Will this work with 3.51?

Xplorer4x4 11-11-2005 01:53 AM

^yes.

And Sv1, it seems that when I issued an alert the <!-- BEGIN TEMPLATE: warn_pm_alert --> tags weere PMed as well.

King Kovifor 11-12-2005 02:24 PM

I get this error:

Code:

Database error in vBulletin 3.5.1:

Invalid SQL:

                                INSERT INTO setting
                                (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'warn_version',
                                        'version',
                                        '3.4.14',
                                        '3.5.0',
                                        'free',
                                        '',
                                        1,
                                        0,
                                        1,
                                        'aws'
        );

MySQL Error  : Duplicate entry 'warn_version' for key 1
Error Number : 1062
Date        : Saturday, November 12th 2005 @ 11:20:37 AM
Script      : http://www.vbrenegades.com/admincp/plugin.php
Referrer    : http://www.vbrenegades.com/admincp/plugin.php?do=productadd
IP Address  : 24.3.102.42
Username    : King Kovifor
Classname    : vb_database

I had it installed on vB 3.0.7. Is that the problem? And if so does it keep warnings, bans, and settings?


All times are GMT. The time now is 03:11 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.01971 seconds
  • Memory Usage 1,874KB
  • 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
  • (8)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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