PDA

View Full Version : Advanced Warning System (Beta Version)


Pages : 1 2 3 [4] 5

Delphiprogrammi
03-07-2006, 04:43 PM
That's the worst possible solution, it will require people to alter their existing tables. Neah, I'll give it some more thought when I get some more time. In the mean time, nobody is telling me if the Automatic Warnings are working OK now.

told you it was a dirty solution....Well i'm playing with your debug code.Didn't tested he automatic warnings yet (with the new files) will do that later on now i'm just annoyed that bloody variable isn't passed

sv1cec
03-07-2006, 05:15 PM
Welcome to the club, that makes two of us (being frustrated with the bloody ban parameter).

Delphiprogrammi
03-07-2006, 06:49 PM
hi,

interesting


echo "BAN: ";
if($vbulletin->GPC_exists['ban'])
{
echo($_GET['ban']);
}


so the ban variable if for some odd reason not passed going to leave it alone for a while or i throw my computer through the window

sv1cec
03-07-2006, 07:41 PM
I tried every trick I knew, and then some I invented at that time, nothing. No way I can pass the ban variable! It's insane.

Delphiprogrammi
03-08-2006, 08:29 AM
I tried every trick I knew, and then some I invented at that time, nothing. No way I can pass the ban variable! It's insane.

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

i've asked for help here :speechless:

Delphiprogrammi
03-08-2006, 04:19 PM
John,

i've solved that problem with the ban parameter.All parameters are now being returned as it should

other people do not use this file it will mess up your AWS installation

all i did was change the 'p' to 'g' (two times) in the $vbulletin->clean_array_gpc() calls and that did it don't ask me why through :ermm:

Also John automatic warnings do not work for me.I've enabled that options defined the hidden warner and the warning_type ObsceneWords set to Auth

they work fine in pm's but not in threads / posts

Delphiprogrammi
03-10-2006, 02:34 PM
John,

Don't ask me how i did that but i've managed to write an admin_warn.php file with ALL parameters passed and they have the correct value.Just tested it and working fine(offcource you can ask me how i did that just kidding about that part) :D

amen

vb 3.5.x rocks :d:)

sv1cec
03-10-2006, 02:41 PM
Let us all know my friend and do post that file here, so I can have a look. I am almost sure I've screwed somewhere in the code, but don't say that to anyone. :p

Delphiprogrammi
03-10-2006, 03:08 PM
Let us all know my friend and do post that file here, so I can have a look. I am almost sure I've screwed somewhere in the code, but don't say that to anyone. :p

Well John I hate half work.When something doesn't work as it should (or as exspected)i want to know why.So i've look at the html source vb produces and you will see that for the normal warn remove method the form will be submitted with "do_delete".So what i've did is seperating the code that's responsible for displaying the form and add a method like this


if($_POST['do'] == "do_delete")
{
//here we go
}


i used the same procedure for the complete warn remove


if($_POST['do'] == "do_completedelete")
{
//here we go
}


i think the reason why it didn't work as we exspected because you would need multiple clean_array_gpc() calls by seperating both procedures (form display and the PHP to parse it) we tell vb what todo and when todo it.About screwing up well so did i in the first place.But here's a little tip.On your development board turn on vb's debug code.why ? well if you hover your mouse over the submit button row on forms vb will show you the parameters which are hidden along with there value this way you do not need special coding to track it.Enabling debug mode is easy in "/includes/config.php" add


$config['Misc']['debug'] = true;


this has to bet set in the config.php but i believe there's a plugin here somewhere that allows you to switch it.here's (https://vborg.vbsupport.ru/showthread.php?s=&threadid=104933) that plugin

that's how i did it now John don't shoot me if something i did is wrong :p the file is attached

sinaluna
03-10-2006, 04:10 PM
Is there anyway to allow admin/mods to input the points and maturity numbers on the fly? Instead of having it hard coded?

Not all "conduct" infractions are created equal for instance. I'm having a hard time coming up with a system that is flexible.

Thanks.

Delphiprogrammi
03-12-2006, 09:46 AM
I can not duplicate the problem with the Automatic Warnings from Posts. It works fine in my test environment, even before uploading the edited files for the quoted $vbulletin parameters.

There is an issue with the warning being entered as non-post related. To correct that, open the following plugin.

AWS: Check Post-Title/Message for censored Words

Find:


warn_calculations($warn_type['tid'], $wcomment, $this->fetch_field['postid'], $userinfo, $this->registry->options['warn_automatic_warner'], $alert);


Replace that with:


$wpost=$this->fetch_field('postid');
warn_calculations($warn_type['tid'], $wcomment, $wpost, $userinfo, $this->registry->options['warn_automatic_warner'], $alert);


Try this out.

Also, in several of the templates shown in the XML file, there are still references to $vboptions parameters. However, I do not know if it is worth it to correct these references, since I do not know if a corrected XML file can be used to alter the existing templates or not. If someone knows, please advise.

nope can't get this to work.But if it does in your testenvirement it must be something i do wrong.I will chck your old posts regarding this :)

Xplorer4x4
03-12-2006, 11:39 PM
I noticed today that a mod warned a members twice, and was banned even though the third warning would be a ban.

Last time i tested I was not able to produce this problem warning a member as an admin, so i think maybe it deals only with mods issuing warnings.

senkin
03-13-2006, 07:33 PM
Very nice hack but when I want to warn somone I cannot see any options about warning somone in a post at all. I don't know what I could have done wrong so if I need to I an give a temporary admin user acc and pass to see what I did wrong. I followed everything word by word and everywhere works but I do not see anything warning wis on my style even though it has the code in the Postbit_legacy (Which I use legacy). I don't know what elce to say to help so yeah. Thanks ahead of time.

http://forums.santacruzpcsupport.com = my fourms.

Xplorer4x4
03-13-2006, 07:36 PM
Did you turn on the usergroup settings? ;)

Ziki
03-13-2006, 07:38 PM
Will this be BEAT forever ir what???

Delphiprogrammi
03-13-2006, 08:19 PM
Very nice hack but when I want to warn somone I cannot see any options about warning somone in a post at all. I don't know what I could have done wrong so if I need to I an give a temporary admin user acc and pass to see what I did wrong. I followed everything word by word and everywhere works but I do not see anything warning wis on my style even though it has the code in the Postbit_legacy (Which I use legacy). I don't know what elce to say to help so yeah. Thanks ahead of time.

http://forums.santacruzpcsupport.com = my fourms.

did you defined warning types ? at least one NPR(non post related) did you made your settings on the manage warnings options page ? an example of warningtypes can be seen here (https://vborg.vbsupport.ru/attachment.php?attachmentid=21907&d=1101243281)

Did you turn on the usergroup settings? ;)

what usergroup setings ?

senkin
03-13-2006, 08:45 PM
did you defined warning types ? at least one NPR(non post related) did you made your settings on the manage warnings options page ? an example of warningtypes can be seen here (https://vborg.vbsupport.ru/attachment.php?attachmentid=21907&d=1101243281)

Lol I didn't make a non-post related one. Thanks.

'walks away in shame'
*Damn I feal dumb now.*

Xplorer4x4
03-13-2006, 08:49 PM
what usergroup setings ?
Actually I think the usergroup settings are in the main warning page options. You need to define which groups are mods, supermods and so forth.;)

Delphiprogrammi
03-16-2006, 10:04 AM
John,

I've solved another problem i found where the system would redirect to invalid user id input.It involves the "view user warnings" option

i think admin_warn.php is ready for a testrun BUT BACKUP YOUR DATABASE FIRST can't say this loud enough

MorrisMcD
03-16-2006, 04:38 PM
John,

I've solved another problem i found where the system would redirect to invalid user id input.It involves the "view user warnings" option

i think admin_warn.php is ready for a testrun BUT BACKUP YOUR DATABASE FIRST can't say this loud enough

Could this be why I got 60000 invalid PMs generated when I changed the functions? If so I can use this again maybe

Delphiprogrammi
03-16-2006, 05:21 PM
Could this be why I got 60000 invalid PMs generated when I changed the functions? If so I can use this again maybe

i don't think so no 60000 ???? woow that can count.You changed the functions because you use inferno hacks right ?

MorrisMcD
03-16-2006, 05:33 PM
i don't think so no 60000 ???? woow that can count.You changed the functions because you use inferno hacks right ?
Yep.. I went through and changed all the functions... I was so proud I got it working.. lol

But then 1 day later, I was investigating a PM issue where sometimes when you reply it tries to reply to the wrong pmid (therefore giving a permissions error pissing my users off... lol) or giving them a new pm submit form.. Very wierd.. I am probably going to have to deleted the entire pm system...

Anyway.. While in there I noticed about 60000 pms from user 0 to user 0.. They kept generating until I disabled your hack

dai-kun
03-16-2006, 10:12 PM
When I try to run the kill_warn.php script, it gives me error


Fatal error: Call to a member function on a non-object in /home/domain/domain.com/forum/global.php on line 243


What that means?

Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

Delphiprogrammi
03-17-2006, 08:34 AM
When I try to run the kill_warn.php script, it gives me error


Fatal error: Call to a member function on a non-object in /home/domain/domain.com/forum/global.php on line 243


What that means?

Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

that means there is a function call in that script which isn't declarerd anywhere most likely there are references to $DB_site while it should be $db in 3.5.x you need to download the kill_warns attached

Delphiprogrammi
03-17-2006, 02:21 PM
hi,

I've changed the settings page a bit (not admin_warn.php?act=manageoptions) but the vbulletin->options->warning hack

changed the way of setting the usergroups.Now you can choose from a dropdown list

you can do this like this while being in debug mode click edit setting and in the option code field


<select name=\"setting[$setting[varname]]\" tabindex=\"1\" class=\"bginput\">
<option value=\"8\" " . iif($setting['value']=='8','selected="selected"') . ">(COPPA) Users Awaiting Moderation(id4)</option>
<option value=\"6\" " . iif($setting['value']=='6','selected="selected"') . ">Administrators(id6)</option>
<option value=\"7\" " . iif($setting['value']=='7','selected="selected"') . ">Moderators(id7)</option>
<option value=\"2\" " . iif($setting['value']=='2','selected="selected"') . ">Registered Users(id2)</option>
<option value=\"5\" " . iif($setting['value']=='5','selected="selected"') . ">Super Moderators(id5)</option>
<option value=\"1\" " . iif($setting['value']=='1','selected="selected"') . ">Unregistered / Not Logged In(id1)</option>
<option value=\"4\" " . iif($setting['value']=='4','selected="selected"') . ">Users Awaiting Email Confirmation(id3)</option>
<option value=\"8\" " . iif($setting['value']=='8','selected="selected"') . ">Banned Users(id8)</option>
<option value=\"9\" " . iif($setting['value']=='9','selected="selected"') . ">Permanent_Ban(id9)</option>
</select>


all done

Delphiprogrammi
03-17-2006, 09:32 PM
Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

yeah i could reproduce the problem but so far can't get it to work as it should (i'm honest) :D however for people with a big board that use this hack that could become verry annoying

Delphiprogrammi
03-18-2006, 02:04 PM
When I try to run the kill_warn.php script, it gives me error


Fatal error: Call to a member function on a non-object in /home/domain/domain.com/forum/global.php on line 243


What that means?

Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

i fixed that problem in the admincp where it's staying on page 1 even through you click the next button that was annoying me :cross-eyed: if you want it give a yell :)

I also fixed the mod_warn.php file there whas an issue with missing navigation buttons when viewing the complete warning log

another fix i did is with the product XML if you install this system there is an issue with the colspan of tables used i fixed that it auto installs everythings needed for the system to work

dai-kun
03-19-2006, 02:40 AM
can u send me all the fixed files please? thanks

i've also reuploaded the kill_warn.php... and it gives me this error now:

Fatal error: Call to a member function on a non-object in /home/user/domain.com/forum/includes/functions_warning.php on line 31

and line 31+32 is..
$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

Delphiprogrammi
03-19-2006, 10:10 AM
hi,

Well i just did a testrun with kill_warns.php and it returned no error messages ....... your php is acting weird i guess.... on line 14 off the file functions_warning.php there is


global $vbulletin;


you have that ?

all fixed files are attached

people if you use any of the attached files specially the product xml or admin_warn.php please ensure you have a recent complete backup off your database so IN CASE anything goes wrong you still have your complete database which can be restored if needed

files which start with "kill_" need to be uploaded to /forum/includes/cron
mod_warn.php to /forum/modcp
admin_warn.php to /forum/admincp
product-aws.xml needs to be imported using the product manager (carefull with this as you may not need this it just corrects some template issues and a bug where you would get "inavlid user id input" when trying to warn from the admincp)

Roadster2004
03-19-2006, 11:23 PM
Thanks for this hack.. But I don't seem to get it working :( (I must say that I'm a n00b @ vbulletin, but eager to learn)

I've first installed the hack, after that installed Delpih's new files to all the correct places ! But when I want to warn a member from the admincp. I get the error message:

Invalid User ID Input

Also I can only warn people in the admincp and not in the modcp.. When I log in to the modcp I only see:
View Issued Warnings
And nothing else..

Then my last (and probaly stupid question) but in the readme.txt It says to change some code in:
In Template postbit
and
Template postbit_legacy

But where can I find this Templates ?? :$ :$

Thanks in advance !

Delphiprogrammi
03-20-2006, 08:29 AM
Thanks for this hack.. But I don't seem to get it working :( (I must say that I'm a n00b @ vbulletin, but eager to learn)

I've first installed the hack, after that installed Delpih's new files to all the correct places ! But when I want to warn a member from the admincp. I get the error message:

Invalid User ID Input

Also I can only warn people in the admincp and not in the modcp.. When I log in to the modcp I only see:
View Issued Warnings
And nothing else..

Then my last (and probaly stupid question) but in the readme.txt It says to change some code in:
In Template postbit
and
Template postbit_legacy

But where can I find this Templates ?? :$ :$

Thanks in advance !

to solve the 'invalid user id input' you can download the attached updated XML (it's a problem i solved agers ago just forgot to put it in lol )

you can find templates in your admincp under the heading "style& templates" => style manager => choose the style you want to use and hit <<>> next to it (you will find the postbit templates under "postbit templates" in the list

you must make all needed changes for EVERY style you want to use


in the modcp there is 1 link "view issued warnings" which will show you either the complete warning log or just the warnings you issued yourself this depends on your AWS settings

Roadster2004
03-21-2006, 10:56 PM
Thank you !

This really helped me much !

ka81
03-22-2006, 07:10 AM
Would you please tell - when at least abou you're going to place final version?

Thank you any way for a GREAT job!!!!

sv1cec
03-22-2006, 08:25 AM
Hey Delphi, you are doing a great work here. For some reason, I do not get email notifications from this thread, so I haven't followed up to all this.

OK, packaging-wise, do you think the code is stable enough to try coming up with a package?

Krose
03-22-2006, 11:42 AM
just installed but not yet tested... *clicked install*

great job! sv1cec & delphiprogrammi ;)

MThornback
03-22-2006, 12:27 PM
Hey Delphi, you are doing a great work here. For some reason, I do not get email notifications from this thread, so I haven't followed up to all this.

OK, packaging-wise, do you think the code is stable enough to try coming up with a package?

I think its been stable for awhile....the few tweaks that have been made along the way could have been fixed and it still could have been called a stable release.

The only suggestion I have....maybe to put this over the top....is to be able to ban users from x page....which would be useful more for hacked boards than anything I think....say for example someone has googlemap and ibproarcade installed....the arcade comes with the ability to ban users or groups of users from the arcade, the googlemap doesn't....its not permission based at all really....not on the front end. Maybe a script where you can put in a username, and ban x user from x page? I dunno if anyone else might find that useful....but I would :bunny:


aside from my little thought...i'd say go for it :)

Roadster2004
03-22-2006, 02:47 PM
I've yet another question :) Where Can I change the message that will be send to the warned users ?!

Delphiprogrammi
03-22-2006, 04:32 PM
Hey Delphi, you are doing a great work here. For some reason, I do not get email notifications from this thread, so I haven't followed up to all this.

OK, packaging-wise, do you think the code is stable enough to try coming up with a package?

yes with a big note to people that they should backup there database

specially i'm curious how you did the automatic warnings i can't get the bloody thing to work :D

Delphiprogrammi
03-22-2006, 04:39 PM
I've yet another question :) Where Can I change the message that will be send to the warned users ?!

that would depend on what message you want to change.The notification messages about warnings being removed are (mostly) hardcoded take a look at the "advanced warning system" templates group in your admincp it should explain itself ...

sv1cec
03-24-2006, 05:31 AM
Delphi, I have to go back a couple of pages to see what I've posted about the Automatic Warnings. What seems to be your problem with that?

sv1cec
03-24-2006, 05:34 AM
Delphi, check this out https://vborg.vbsupport.ru/showpost.php?p=917979&postcount=740

Delphiprogrammi
03-24-2006, 06:55 AM
Delphi, check this out https://vborg.vbsupport.ru/showpost.php?p=917979&postcount=740

yeah i did that automatic warning work fine from private messages but they refuse to work from post / threads i already did that step described there.I even disabled all other products i have installed to sensure it isn't conflicting nope it's insane

Borisch
03-24-2006, 07:16 AM
Hey,

I've been trying to get this one working all night but to no avail. All the files have been uploaded correctly and the templates have been changed accordingly. The problem is when installing the xml file. It seems as though none of the tables are created. At first I figured that it might be so that it stops on some SQL (ie a table already exists) and doesn't resume. However, this happens even if I make sure that there are no offending tables and columns in the database.

So I tried creating the tables and columns manually by simply executing the sql that the installation is supposed to take care of. However, this doesn't help since I still can't warn anyone. I get errors that the column doesn't exist.

Here is an excerpt of errors I get:

This is what I get when trying to warn someone:
Database error in vBulletin 3.5.3:

Invalid SQL:
update user set warning_level='4', warnings='1' where userid='111';

MySQL Error : Unknown column 'warnings' in 'field list'

This is what I get when trying to view some statistics in the control panel:
Database error in vBulletin 3.5.3:

Invalid SQL:
SELECT COUNT(*) AS users FROM user AS user where warnings>0 OR alerts>0;

MySQL Error : Unknown column 'warnings' in 'where clause'

And so on and so forth. Now, some things works. I can add different warning types and change options and such. But I have no idea where this values are saved. If I create a warning type, it's not saved in the warning_types table as it is completely empty at all times. Even searching for the warning type in the database turns up empty. It's very strange and I have no idea what might be causing this. Has anyone else experienced these kinds of issues and been able to solve them somehow?

As can be seen from the error messages, I'm running vB 3.5.3. I'm also using the latest files posted in this thread.

sv1cec
03-24-2006, 08:53 AM
Delphi,

Try using this plugin instead of the standard "AWS: Check Post-Title/Message for censored Words" one. Also, try using this functions_warning.php file, I do not remember if I've done any changes to it.

sv1cec
03-24-2006, 08:53 AM
Are you using a table prefix, by any chance?

Borisch
03-24-2006, 10:06 AM
Where do I check that?

EDIT: Nevermind, in config.php obviously. It's empty, so no, I', not using a table prefix.

What's really baking my noodle is why isn't the installer creating the proper tables? Is there some log which I can check for errors?

Delphiprogrammi
03-24-2006, 10:50 AM
Where do I check that?

EDIT: Nevermind, in config.php obviously. It's empty, so no, I', not using a table prefix.

What's really baking my noodle is why isn't the installer creating the proper tables? Is there some log which I can check for errors?

you could try and open product-aws.xml and just before the SQL queries put this code


$db->reporterror=1


that should show you all errors occuerd when tryting to import the product.Do the same in the unistall code.When you get an error message from MySQL post it here .....

Delphiprogrammi
03-24-2006, 10:53 AM
Delphi,

Try using this plugin instead of the standard "AWS: Check Post-Title/Message for censored Words" one. Also, try using this functions_warning.php file, I do not remember if I've done any changes to it.

thank you John but it still refuses to work it's insane not your fault and not that big problem either.I think it has something todo with vbportal just guessing here but it worked fine before i purchased and installed vbportal

Borisch
03-24-2006, 12:06 PM
When you get an error message from MySQL post it here .....

Thanks for putting effort into helping me. However, I'm sad to admit that I don't get any error messages. At least not immediat errors. Are these errors supposed to show while your installing or in some log? The installation just looks as previously, ie. as it's supposed to look I presume.

GoTTi
03-25-2006, 12:05 AM
question: this is upgradeable from 3.0.x correct?

if yes, whats the details on that for upgrading.

if no, what should i do about the current version of aws on my 308?

Xplorer4x4
03-25-2006, 12:24 AM
I think upgrade isntructions are in the zip file.

As far as the drop down list for usergroups, it's nice and all but surley there is soem way to have it read what groups you have set up on your board. What you did only covers the basics.

Also is it possible for sv1 to upload all the up to date scripts into on proper zip file. There are so many scripts in this thread it's ahrd to know what been changed and what hasn;t. Would an update email be possible to? :)

Great work you guys.

Delphiprogrammi
03-25-2006, 07:39 AM
question: this is upgradeable from 3.0.x correct?

if yes, whats the details on that for upgrading.

if no, what should i do about the current version of aws on my 308?

1)yes
2)follow instructions in UpgradeToLatestVersion.txt
3)you need to download this file (https://vborg.vbsupport.ru/showthread.php?p=574374#post574374) instructions are within the zip

Delphiprogrammi
03-25-2006, 11:07 AM
Thanks for putting effort into helping me. However, I'm sad to admit that I don't get any error messages. At least not immediat errors. Are these errors supposed to show while your installing or in some log? The installation just looks as previously, ie. as it's supposed to look I presume.

MySQL errors are sepose to be showen in your browser window when you import the product althrough vbulletin can be configuerd to log all errors this is not enabled by default

i'm taking a wild guess here that you are using an out of date MySQL version ?

Delphiprogrammi
03-25-2006, 11:25 AM
people,

I think i found a bug.... in admin_warn.php.Set "Maintain Historical Records?" to no submit the form you'll see a confirmation form choose no there and in here i get a white blank page when i submit the confirmation form that's unexspected behavior

already fixed however i'm getting an annoying empty vbulletin messagebox telling me nothing

Borisch
03-25-2006, 03:20 PM
i'm taking a wild guess here that you are using an out of date MySQL version ?

We're running MySQL 4.1.15. Any database errors should be sent to my email, but I don't get anything on the import page nor in my email. I just don't know what might be wrong. Executing all the SQL statements manually works fine and creates all the necessary tables and what not, but the hack doesn't seem to use them anyway. Even if I add warning types, the table is empty when looking at it with phpMyAdmin.

It's all very strange.

Delphiprogrammi
03-25-2006, 07:39 PM
people,

I think i found a bug.... in admin_warn.php.Set "Maintain Historical Records?" to no submit the form you'll see a confirmation form choose no there and in here i get a white blank page when i submit the confirmation form that's unexspected behavior

already fixed however i'm getting an annoying empty vbulletin messagebox telling me nothing

fixed working as it should now one more problem sorted out :D

Delphiprogrammi
03-25-2006, 07:44 PM
We're running MySQL 4.1.15. Any database errors should be sent to my email, but I don't get anything on the import page nor in my email. I just don't know what might be wrong. Executing all the SQL statements manually works fine and creates all the necessary tables and what not, but the hack doesn't seem to use them anyway. Even if I add warning types, the table is empty when looking at it with phpMyAdmin.

It's all very strange.

you only get emails about database problems if


$config['Database']['technicalemail'] = "tech@mysite.com";(config.php)
the setting in vbulletin options (error handeling & logging section) is not set to yes
you do not use thirdy party hacks that might interfere with this


the problem you are having is verry odd.Your MySQL is not a problem i was wrong there

Borisch
03-25-2006, 09:03 PM
Yeah I know, I've set up vBulletin to send an email when db errors occur. It's very odd indeed. By the looks of it, everything is fine, until I actually try to warn anybody or access the "warnings by user" statistics page. At least I think it was that page. In those cases, I DO get an email saying things made a booboo. Those errors are the ones I posted before. However, that is all, the rest looks just fine.

Well, if you disregard the fact that warning_types is empty when it quite clearly shouldn't be empty.

GoTTi
03-26-2006, 06:33 AM
1)yes
2)follow instructions in UpgradeToLatestVersion.txt
3)you need to download this file (https://vborg.vbsupport.ru/showthread.php?p=574374#post574374) instructions are within the zip

wait, those instructons is for vb 3.0.x AWS upgrading. im on 3.5.x now and i want to upgrade from the older version.

those instructions dont explain that to me.

sv1cec
03-29-2006, 03:34 PM
Now, you all understand why I am reluctant to do any work on this?

Gotti is asking a question, and I have no answer. Because I didn't do the initial packaging and because I have no idea how vb 3.5 handles these issues.

Gotti, my answer would be, just follow the installation instructions. It shouldn't harm your tables, so you won't loose any information and the installation script will install the plugins etc. Then all you may have to do manually, is upload the php files.

Delphi, can you post here all the files you have changed so that I can upload them in the hack's area instead of being in every post in here?

Sorry guys, I explained to you in the past, this is NOT easy for me, and I understand your frustration, but there is nothing much I can do.

Delphiprogrammi
03-29-2006, 04:02 PM
wait, those instructons is for vb 3.0.x AWS upgrading. im on 3.5.x now and i want to upgrade from the older version.

those instructions dont explain that to me.

then you would simply import the product XML and upload the files to there appriciate locations that will install the needed plugins and such .......

Delphiprogrammi
03-29-2006, 04:05 PM
Now, you all understand why I am reluctant to do any work on this?

Gotti is asking a question, and I have no answer. Because I didn't do the initial packaging and because I have no idea how vb 3.5 handles these issues.

Gotti, my answer would be, just follow the installation instructions. It shouldn't harm your tables, so you won't loose any information and the installation script will install the plugins etc. Then all you may have to do manually, is upload the php files.

Delphi, can you post here all the files you have changed so that I can upload them in the hack's area instead of being in every post in here?

Sorry guys, I explained to you in the past, this is NOT easy for me, and I understand your frustration, but there is nothing much I can do.

i didn't change anything to /includes/functions_warning.php and showcomment.php

maharajah
03-29-2006, 08:28 PM
Too complicated
too many issues with installation and upgrading from 3.0.x to 3.5.x

No Instructions to upgrade.
I think i will try out Infernos.

Its a pity coz the AWS has much more features.

.

Hornstar
03-29-2006, 11:30 PM
Hey John are you still using the test board I let you use?

also just wondering on one thing I get this error when trying to install the RPG inferno because of a problem with AWS i've been told, what do I need to do to make the aws work with the RPG



Fatal error: Cannot redeclare sendpm() (previously declared in /*/*/*forums/inferno.php:572) in /*/*/*/forums/includes/functions_warning.php on line 23



I have noticed there has been an update, what things have been fixed in the update, and what are the upgrade instructions?

THanks

GoTTi
03-30-2006, 11:21 AM
ok so i uploaded everything, did the import, and get this error:


Database error in vBulletin 3.5.4:

Invalid SQL:

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

MySQL Error : Duplicate entry 'warn_version' for key 1
Error Number : 1062
Date : Thursday, March 30th 2006 @ 05:20:04 AM
Script : http://www.site.com/forums/admincp/plugin.php
Referrer : http://www.site.com/forums/admincp/plugin.php?do=productadd
IP Address : 70.35.43.105
Username : GoTTi
Classname : vb_database

Delphiprogrammi
03-30-2006, 11:37 AM
Hey John are you still using the test board I let you use?

also just wondering on one thing I get this error when trying to install the RPG inferno because of a problem with AWS i've been told, what do I need to do to make the aws work with the RPG



Fatal error: Cannot redeclare sendpm() (previously declared in /*/*/*forums/inferno.php:572) in /*/*/*/forums/includes/functions_warning.php on line 23



I have noticed there has been an update, what things have been fixed in the update, and what are the upgrade instructions?

THanks

are you by any chance using inferno hacks ? if yes that's the reason why you get this error you could open /includes/functions_warning.php and change the function to SendPmAws or something but then you must change all calls to the changed function

Delphiprogrammi
03-30-2006, 11:39 AM
ok so i uploaded everything, did the import, and get this error:

that's normal .... you need to backup your aws tables then if you have a backup delete them (DROP) when that's done you could do the import and no errors should appaer when all is working allright you can restore your warnings table and warning_types etc etc

GoTTi
03-30-2006, 11:56 AM
i goto import now, and i get settings table errors.

i look in settings and search for warn, and get the tables in the pic attached

when i drop them and rerun the install i get the same error.

Delphiprogrammi
03-30-2006, 04:22 PM
i goto import now, and i get settings table errors.

i look in settings and search for warn, and get the tables in the pic attached

when i drop them and rerun the install i get the same error.

okay .. be carefull with this


SELECT * FROM . TABLE_PREFIX . setting WHERE varname LIKE 'warn_%';


that should show you all settings from the systems (just to give you an overview) finally


DELETE FROM . TABLE_PREFIX . setting WHERE varname LIKE 'warn_%';

that should delete all the settings from used by the system after that uninstall the product XML and reinstall it

Hornstar
03-30-2006, 06:55 PM
are you by any chance using inferno hacks ? if yes that's the reason why you get this error you could open /includes/functions_warning.php and change the function to SendPmAws or something but then you must change all calls to the changed function


Okay I understand the part about going to /includes/functions_warning.php
but which function needs to be changed to SendPmAws is it semdpm() or just the sendpm part?

And what are all the calls? and where are they? which files?


Thanks


And is this the only function that needs to be changed?

Thanks

Delphiprogrammi
03-30-2006, 07:17 PM
Okay I understand the part about going to /includes/functions_warning.php
but which function needs to be changed to SendPmAws is it semdpm() or just the sendpm part?

And what are all the calls? and where are they? which files?


Thanks


files that need to be modified


Warn.php
/includes/cron/kill_warns.php
includes/functions_warning.php
/admincp/admin_warn.php(this has also the function declaration you need to change it there)


also check the used plugins ...

Hornstar
03-31-2006, 06:06 AM
What is the function declaration?

you also said something about the calls? I'm not sure what that is.

and in those files you stated what needs to be changed, can you give me a little example, so i dont stuff anything up lol

is it this.

semdpm() needs to be changed to SendPmAws()

i think that looks correct, but im really not sure what the calls are, and what would i need to search in the pugins, and what would need to be changed there.

Thanks for your help.

Nathan2006
03-31-2006, 07:56 AM
Hello,

IS there anyway to move this warnign sign cos it looks wrong where it is now :(

I have added a screen shot so you know what I mean

Thanks for any help :)

Delphiprogrammi
03-31-2006, 09:44 AM
What is the function declaration?

you also said something about the calls? I'm not sure what that is.

and in those files you stated what needs to be changed, can you give me a little example, so i dont stuff anything up lol

is it this.

semdpm() needs to be changed to SendPmAws()

i think that looks correct, but im really not sure what the calls are, and what would i need to search in the pugins, and what would need to be changed there.

Thanks for your help.


function SendPM($message,$title,$to,$from)
{
global $db;
//#################################################
// Permssions Crap XD your getting a damn PM!! XD
// Parse It Out
//#################################################
$title = addslashes(htmlspecialchars_uni(fetch_censored_tex t($title)));
$message = addslashes(fetch_censored_text($message));
$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

// Insert The Message
$to_string["$to[userid]"] = $to['username'];
$now=time();
$db->query_write("INSERT INTO ".TABLE_PREFIX."pmtext (fromuserid,fromusername,title,message,touserarray ,iconid,dateline,showsignature ,allowsmilie) VALUES ('{$from['userid']}','".addslashes($from['username'])."','{$title}','{$message}','".addslashes(serialize($to_string))."','4','{$now}','1','1')");
// id thingy
$db->query_write("INSERT INTO ".TABLE_PREFIX."pm (pmtextid, userid) VALUES (".$db->insert_id().", '{$to['userid']}')");

if ($to['pmpopup'])
{
$db->shutdown_query("UPDATE " . TABLE_PREFIX . "user SET pmtotal=pmtotal+1, pmunread=pmunread+1, pmpopup=2 WHERE userid='{$to['userid']}'");
}
else
{
$db->shutdown_query("UPDATE ".TABLE_PREFIX."user SET pmtotal=pmtotal+'1',pmunread=pmunread+'1' WHERE userid='{$to['userid']}'");
}


// Update pm count

}

change that to


function SendPMAws($message,$title,$to,$from)
{
global $db;
//#################################################
// Permssions Crap XD your getting a damn PM!! XD
// Parse It Out
//#################################################
$title = addslashes(htmlspecialchars_uni(fetch_censored_tex t($title)));
$message = addslashes(fetch_censored_text($message));
$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

// Insert The Message
$to_string["$to[userid]"] = $to['username'];
$now=time();
$db->query_write("INSERT INTO ".TABLE_PREFIX."pmtext (fromuserid,fromusername,title,message,touserarray ,iconid,dateline,showsignature ,allowsmilie) VALUES ('{$from['userid']}','".addslashes($from['username'])."','{$title}','{$message}','".addslashes(serialize($to_string))."','4','{$now}','1','1')");
// id thingy
$db->query_write("INSERT INTO ".TABLE_PREFIX."pm (pmtextid, userid) VALUES (".$db->insert_id().", '{$to['userid']}')");

if ($to['pmpopup'])
{
$db->shutdown_query("UPDATE " . TABLE_PREFIX . "user SET pmtotal=pmtotal+1, pmunread=pmunread+1, pmpopup=2 WHERE userid='{$to['userid']}'");
}
else
{
$db->shutdown_query("UPDATE ".TABLE_PREFIX."user SET pmtotal=pmtotal+'1',pmunread=pmunread+'1' WHERE userid='{$to['userid']}'");
}


// Update pm count

}


carefull with upper / lowercase in functionames ...

in the files i posted before you would call your new function like this


SendPMAws($message,$title,$to,$from);


every occourance used will need to be replaced or you'll get errors

Delphiprogrammi
03-31-2006, 10:18 AM
Hello,

IS there anyway to move this warnign sign cos it looks wrong where it is now :(

I have added a screen shot so you know what I mean

Thanks for any help :)

offcource open your template postbit_legacy and find


$post[iplogged]
&nbsp;


below add

<if condition="THIS_SCRIPT=='showthread'">
<if condition="$showwarnsignmgm==1">
<!-- Mgm can click on the stop sign to see the warnings -->
<A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
</if>

<if condition="$showwarnsign==1">
<!-- Simple Users can only see the warn sign but not the warnings -->
<img src="images/misc/warn.gif" border=0>
</if>
</if>
<!-- End of show warned sign -->


and offcource remove the same code from the original spot otherwise it would show the warned sign two times

Nathan2006
03-31-2006, 10:26 AM
Hi Erik thank you for replying.

I have added the code and removed the other code from postbit_lagacy.

The only problem its not showing up in the postbit :(

Here is all the code that I have in there.

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>


<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $post[scrolltothis]>
<div class="normal" style="float:$stylevar[right]">
&nbsp;
<!-- checks for warning system -->
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
<if condition="$showwarnlink==1">
<if condition="$vboptions['warn_allownotes']==1">
<a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'>Add Note for $post[username]</a>&nbsp;</if>
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a>&nbsp;
</if>
<if condition="$showviewwarnlink==1">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a>&nbsp;
</if>
<if condition="$showviewyourslink==1">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> &nbsp;
</if>
</if>
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
<if condition="$showwarnlink==1">
<if condition="$vboptions['warn_allownotes']==1">
<a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Add Note for $post[username]" accesskey="n" onClick="window.location='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
</if>
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
</if>
<if condition="$showviewwarnlink==1">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></a>&nbsp;
</if>
<if condition="$showviewyourslink==1">
<a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a>&nbsp;
</if>
</if>
<!-- end of warning system -->
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if>
$post[iplogged]
<if condition="THIS_SCRIPT=='showthread'">
<if condition="$showwarnsignmgm==1">
<!-- Mgm can click on the stop sign to see the warnings -->
<A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
</if>

<if condition="$showwarnsign==1">
<!-- Simple Users can only see the warn sign but not the warnings -->
<img src="images/misc/warn.gif" border=0>
</if>
</if>
<!-- End of show warned sign -->
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</div>

<div class="normal">
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<if condition="!$show['announcement']">
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<else />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</div>
</td>
</tr>
<tr>
<td class="alt2" style="padding:0px">
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['avatar'] AND (($avatarthress>0 AND $post[warning_level]<=$avatarthress) OR $avatarthress==0)"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">

<!-- vbPlaza start -->
<div id="postmenu_$post[postid]" <if condition="$post['namestyle']">style="$post[namestyle]"</if>>
<!-- vbPlaza end -->
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><!-- v3 Arcade --> <if condition="$post['arcadeawards']"><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><img src="$vboptions[arcadeimages]/trophy.gif" align="absmiddle" alt="$vbphrase[arcade_champion]" border="0" /></a></if>
<!-- /v3 Arcade -->
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<!-- vbPlaza start -->
<if condition="$post['usertitle']"><div class="smallfont" <if condition="$post['titlestyle']">style="$post[titlestyle]"</if>>$post[usertitle]</div></if>
<!-- vbPlaza end -->
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$post['isstaffrank']">
<div class="smallfont">
<if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if>
<if condition="$post['staffrank']">$post[staffrank]</if>
<if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
</div>
</if>
</td>
<td width="100%">&nbsp;</td>
<!-- Show warned sign -->
<if condition="THIS_SCRIPT=='showthread'">

<if condition="$showwarnsignmgm==1">
<!-- Mgm can click on the stop sign to see the warnings -->
<td><A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a></td>
</if>

<if condition="$showwarnsign==1">
<!-- Simple Users can only see the warn sign but not the warnings -->
<td><img src="images/misc/warn.gif" border=0></td>
</if>
</if>

<!-- End of show warned sign -->
<td valign="top" nowrap="nowrap">

<div class="smallfont">
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

<div>
$vbphrase[posts]: $post[posts]
<!-- vbPlaza start -->
<if condition="$vboptions['vbbux_enabled']"><br />
$vbphrase[vbbux_points]: $post[points]<br />

<a href="vbplaza.php?do=donate&amp;userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br />
</if>
<!-- vbPlaza end -->
</div>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
<!-- Show warning points -->
<if condition="$showpoints==1">
<if condition="$post[alerts]>0">
<font color="#ff0000">
<BR>Alerts: $post[alerts]
<font color="#000000">
</if>
<if condition="$post[warnings]>0">
<font color="#ff0000">
<BR>Warnings: $post[warnings]
<font color="#000000">
</if>
<if condition="$post[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $post[warning_level]
<font color="#000000">
</if>
<if condition="$post[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $post[warning_bans]
<font color="#000000">
</if>
</if>
<!-- End of show warning points -->
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
<if condition="$show['sports_icons']"><div>$post[sportsicons]</div><br /></if>
<!-- vbPlaza start -->
<if condition="$post['giftsdisplay']"><div class="smallfont">$post[giftsdisplay]</div></if>
<if condition="$post['ribbonsdisplay']"><div class="smallfont">$post[ribbonsdisplay]</div></if>
<!-- vbPlaza end -->
</div>

</td>
</tr>
<if condition="$pnotes!='' AND $vboptions['warn_allownotes']==1">
<tr>
<td colspan="5">
<table border="1" width="100%" align="center">
<tr>
<td align="center" class="thead" colspan="4">
<div class="smallfont">The following notes have been entered for this user</div>
</td>
</tr>
<tr>
<td align="center" class="smallfont" width="10%">
Moderator
</td>
<td align="center" class="smallfont" width="15%">
Time
</td>
<td align="center" class="smallfont">
Moderator Note
</td>
<td width="5%" class='smallfont' align='center'>
Remove
</td>
</tr>
$pnotes
</table>
</td>
</tr>
</if>
</table>
<!-- / user info -->
</td>
<tr>
<td class="alt1" id="td_post_$post[postid]">
<!-- message, attachments, sig -->

<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
<if condition="$show['messageicon'] OR $post['title'] OR (THIS_SCRIPT=='showthread' AND $showwarnsignmgm==1) OR (THIS_SCRIPT=='showthread' AND $showwarnsign==1)">
<TABLE width=100%><TR>
<TD width=90%>
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<!-- / icon and title -->
</td>
<TD width=10% align="$stylevar[right]">
<!-- Show warned sign -->
<if condition="THIS_SCRIPT=='showthread'">
<if condition="$showwarnsignmgm==1">
<!-- Mgm can click on the stop sign to see the warnings -->
<A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
</if>

<if condition="$showwarnsign==1">
<!-- Simple Users can only see the warn sign but not the warnings -->
<img src="images/misc/warn.gif" border=0>
</if>
</if>
<!-- End of show warned sign -->
</td>
</tr></table>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
</if>

<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
<if condition="$show['unhiddenattachment']">

<div style="padding:$stylevar[formspacer]px">

$post[unhiddenattachments]
</div>

</if>

<if condition="$show['hiddenattachment']">

<div style="padding:$stylevar[formspacer]px">
$post[hiddenattachments]
</div>

</if>
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

<if condition="$post['signature'] AND (($sigthress>0 AND $post[warning_level]<=$sigthress) OR $sigthress==0)">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

<div align="$stylevar[right]">
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<!-- / controls -->
</div>

<!-- message, attachments, sig -->

</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if> <if condition="$show['btu_canban']">
<if condition="!isset($btu[$post[threadid]][$post[userid]])">
<tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
<else />
<tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
</if>
</if>
<!-- v3 Arcade -->
<if condition="$post['arcadeawards']">
<tr><td class="thead"><phrase 1="$post[username]">$vbphrase[xs_arcade_awards]</phrase></a></td></tr>
$post[arcadeawards]
</if>
<if condition="($post['arcadeoptions'] & 1) AND $post['userid']!=$bbuserinfo['userid']">
<tr><td class="thead">$vbphrase[arcade]</a></td></tr>
<tr><td class="vbmenu_option"><a href="arcade.php?do=newchallenge&userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[challenge_x_in_the_arcade]</phrase></td></tr></if>
<!-- /v3 Arcade -->
</table>
</div>
<!-- / post $post[postid] popup menu -->




<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->

Borisch
03-31-2006, 10:38 AM
This works for me now. The problem is quite embarrasing. I was simply looking for errors in the wrong database. There were missing column, specifically the modifications to the user table, but everything else was there in the correct database. As I found this out, I simply manually added the columns to the user table and now it's working fine.

A feature request for future revisions however: Please implement the usage of phrases. I've translated most of this hack to my needs, but using phrases had been a lot easier =)

Anyway, seems to work great now, thanks for the help!

Delphiprogrammi
03-31-2006, 10:48 AM
Hi Erik thank you for replying.

I have added the code and removed the other code from postbit_lagacy.

The only problem its not showing up in the postbit :(

Here is all the code that I have in there.

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>


<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $post[scrolltothis]>
<div class="normal" style="float:$stylevar[right]">
&nbsp;
<!-- checks for warning system -->
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
<if condition="$showwarnlink==1">
<if condition="$vboptions['warn_allownotes']==1">
<a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'>Add Note for $post[username]</a>&nbsp;</if>
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a>&nbsp;
</if>
<if condition="$showviewwarnlink==1">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a>&nbsp;
</if>
<if condition="$showviewyourslink==1">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> &nbsp;
</if>
</if>
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
<if condition="$showwarnlink==1">
<if condition="$vboptions['warn_allownotes']==1">
<a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Add Note for $post[username]" accesskey="n" onClick="window.location='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
</if>
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
</if>
<if condition="$showviewwarnlink==1">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></a>&nbsp;
</if>
<if condition="$showviewyourslink==1">
<a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a>&nbsp;
</if>
</if>
<!-- end of warning system -->
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if>
$post[iplogged]
<if condition="THIS_SCRIPT=='showthread'">
<if condition="$showwarnsignmgm==1">
<!-- Mgm can click on the stop sign to see the warnings -->
<A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
</if>

<if condition="$showwarnsign==1">
<!-- Simple Users can only see the warn sign but not the warnings -->
<img src="images/misc/warn.gif" border=0>
</if>
</if>
<!-- End of show warned sign -->
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</div>

<div class="normal">
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<if condition="!$show['announcement']">
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<else />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</div>
</td>
</tr>
<tr>
<td class="alt2" style="padding:0px">
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['avatar'] AND (($avatarthress>0 AND $post[warning_level]<=$avatarthress) OR $avatarthress==0)"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">

<!-- vbPlaza start -->
<div id="postmenu_$post[postid]" <if condition="$post['namestyle']">style="$post[namestyle]"</if>>
<!-- vbPlaza end -->
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><!-- v3 Arcade --> <if condition="$post['arcadeawards']"><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><img src="$vboptions[arcadeimages]/trophy.gif" align="absmiddle" alt="$vbphrase[arcade_champion]" border="0" /></a></if>
<!-- /v3 Arcade -->
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<!-- vbPlaza start -->
<if condition="$post['usertitle']"><div class="smallfont" <if condition="$post['titlestyle']">style="$post[titlestyle]"</if>>$post[usertitle]</div></if>
<!-- vbPlaza end -->
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$post['isstaffrank']">
<div class="smallfont">
<if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if>
<if condition="$post['staffrank']">$post[staffrank]</if>
<if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
</div>
</if>
</td>
<td width="100%">&nbsp;</td>
<!-- Show warned sign -->
<if condition="THIS_SCRIPT=='showthread'">

<if condition="$showwarnsignmgm==1">
<!-- Mgm can click on the stop sign to see the warnings -->
<td><A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a></td>
</if>

<if condition="$showwarnsign==1">
<!-- Simple Users can only see the warn sign but not the warnings -->
<td><img src="images/misc/warn.gif" border=0></td>
</if>
</if>

<!-- End of show warned sign -->
<td valign="top" nowrap="nowrap">

<div class="smallfont">
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

<div>
$vbphrase[posts]: $post[posts]
<!-- vbPlaza start -->
<if condition="$vboptions['vbbux_enabled']"><br />
$vbphrase[vbbux_points]: $post[points]<br />

<a href="vbplaza.php?do=donate&amp;userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br />
</if>
<!-- vbPlaza end -->
</div>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
<!-- Show warning points -->
<if condition="$showpoints==1">
<if condition="$post[alerts]>0">
<font color="#ff0000">
<BR>Alerts: $post[alerts]
<font color="#000000">
</if>
<if condition="$post[warnings]>0">
<font color="#ff0000">
<BR>Warnings: $post[warnings]
<font color="#000000">
</if>
<if condition="$post[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $post[warning_level]
<font color="#000000">
</if>
<if condition="$post[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $post[warning_bans]
<font color="#000000">
</if>
</if>
<!-- End of show warning points -->
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
<if condition="$show['sports_icons']"><div>$post[sportsicons]</div><br /></if>
<!-- vbPlaza start -->
<if condition="$post['giftsdisplay']"><div class="smallfont">$post[giftsdisplay]</div></if>
<if condition="$post['ribbonsdisplay']"><div class="smallfont">$post[ribbonsdisplay]</div></if>
<!-- vbPlaza end -->
</div>

</td>
</tr>
<if condition="$pnotes!='' AND $vboptions['warn_allownotes']==1">
<tr>
<td colspan="5">
<table border="1" width="100%" align="center">
<tr>
<td align="center" class="thead" colspan="4">
<div class="smallfont">The following notes have been entered for this user</div>
</td>
</tr>
<tr>
<td align="center" class="smallfont" width="10%">
Moderator
</td>
<td align="center" class="smallfont" width="15%">
Time
</td>
<td align="center" class="smallfont">
Moderator Note
</td>
<td width="5%" class='smallfont' align='center'>
Remove
</td>
</tr>
$pnotes
</table>
</td>
</tr>
</if>
</table>
<!-- / user info -->
</td>
<tr>
<td class="alt1" id="td_post_$post[postid]">
<!-- message, attachments, sig -->

<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
<if condition="$show['messageicon'] OR $post['title'] OR (THIS_SCRIPT=='showthread' AND $showwarnsignmgm==1) OR (THIS_SCRIPT=='showthread' AND $showwarnsign==1)">
<TABLE width=100%><TR>
<TD width=90%>
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<!-- / icon and title -->
</td>
<TD width=10% align="$stylevar[right]">
<!-- Show warned sign -->
<if condition="THIS_SCRIPT=='showthread'">
<if condition="$showwarnsignmgm==1">
<!-- Mgm can click on the stop sign to see the warnings -->
<A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
</if>

<if condition="$showwarnsign==1">
<!-- Simple Users can only see the warn sign but not the warnings -->
<img src="images/misc/warn.gif" border=0>
</if>
</if>
<!-- End of show warned sign -->
</td>
</tr></table>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
</if>

<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
<if condition="$show['unhiddenattachment']">

<div style="padding:$stylevar[formspacer]px">

$post[unhiddenattachments]
</div>

</if>

<if condition="$show['hiddenattachment']">

<div style="padding:$stylevar[formspacer]px">
$post[hiddenattachments]
</div>

</if>
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

<if condition="$post['signature'] AND (($sigthress>0 AND $post[warning_level]<=$sigthress) OR $sigthress==0)">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

<div align="$stylevar[right]">
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<!-- / controls -->
</div>

<!-- message, attachments, sig -->

</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if> <if condition="$show['btu_canban']">
<if condition="!isset($btu[$post[threadid]][$post[userid]])">
<tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
<else />
<tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
</if>
</if>
<!-- v3 Arcade -->
<if condition="$post['arcadeawards']">
<tr><td class="thead"><phrase 1="$post[username]">$vbphrase[xs_arcade_awards]</phrase></a></td></tr>
$post[arcadeawards]
</if>
<if condition="($post['arcadeoptions'] & 1) AND $post['userid']!=$bbuserinfo['userid']">
<tr><td class="thead">$vbphrase[arcade]</a></td></tr>
<tr><td class="vbmenu_option"><a href="arcade.php?do=newchallenge&userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[challenge_x_in_the_arcade]</phrase></td></tr></if>
<!-- /v3 Arcade -->
</table>
</div>
<!-- / post $post[postid] popup menu -->




<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->

you will need to play a little with it to find a spot to put the warn sign that fit your needs you have some other hacks installed like vbpizza and vbarcade i don't use them.While searching for a good spot to put the warning sign keep a note what's above it then try something like


<b><h1>testing this stuff</b></h1>


if that works ok you can insert de code for the warn sign

Nathan2006
03-31-2006, 07:33 PM
you will need to play a little with it to find a spot to put the warn sign that fit your needs you have some other hacks installed like vbpizza and vbarcade i don't use them.While searching for a good spot to put the warning sign keep a note what's above it then try something like


<b><h1>testing this stuff</b></h1>


if that works ok you can insert de code for the warn sign

Hi Erik,

I have figured it out lol:D

I have it the same as your attachment above, but is there a way to knock it down 1 level?

I am not a coder but I have tried <p></p> to try and knock it down but I cannot figure it out :(

I have added a screen shot to the place I wanted the warn sign :)

Delphiprogrammi
03-31-2006, 07:56 PM
Hi Erik,

I have figured it out lol:D

I have it the same as your attachment above, but is there a way to knock it down 1 level?

I am not a coder but I have tried <p></p> to try and knock it down but I cannot figure it out :(

I have added a screen shot to the place I wanted the warn sign :)

before this


<!-- Show warned sign -->


add


<br /> <br />


that will force to show the warn sign on a "new" line

sv1cec
04-01-2006, 08:34 AM
OK here are some answers:

General: Sorry if I do not drop by often and check your messages, for some reason vB is not sending me notifications. Maybe because I bad-mouth version 3.5.xx??

To hornstar1337: yes, I am using it whenever I can find time to correct issues that members bring up here. Thanks!

Users of Inferno hacks: Can someone who has installed the Inferno hacks check if that routine, which conflicts with AWS routine (sendPM) is the same in the two hacks? If the code is the same, then there is no reason to rename one or the other.

General: I'll upload the files that Delphi posted. What you should do, is replace the files that get installed by the hack, with these files.

Nathan2006
04-01-2006, 03:08 PM
Hi,

I have reinstalled my board and started a fresh.

On the install there is the aws35.zip file and all the other files for the update.

As I'm starting off as new do I install the aws35.zip files and then the updates after that?:cross-eyed:

Thanks for any help :)

sv1cec
04-01-2006, 03:48 PM
Yes, install per the zip instructions, and then copy over the single files included in the hack, in the proper directories.

Sorry for the confusion.

Delphi, any idea on how to create a new installation file?

Nathan2006
04-01-2006, 04:05 PM
Yes, install per the zip instructions, and then copy over the single files included in the hack, in the proper directories.

Sorry for the confusion.

Delphi, any idea on how to create a new installation file?

Thanks for your reply John :)

Do I also have to add all the code from the warn_notes_update_instructions.txt file too?

I have added all the info from the other text file from the aws.zip file

Delphiprogrammi
04-01-2006, 04:30 PM
Thanks for your reply John :)

Do I also have to add all the code from the warn_notes_update_instructions.txt file too?

I have added all the info from the other text file from the aws.zip file

you will only need warn_notes_updates_instructions if you want the "warn notes" feature that existed on 3.4.16 (vb 3) if you want that on 3.5.x then you need that yes

Delphiprogrammi
04-01-2006, 04:33 PM
Yes, install per the zip instructions, and then copy over the single files included in the hack, in the proper directories.

Sorry for the confusion.

Delphi, any idea on how to create a new installation file?

if you changed anything in the plugins / templates / phrases and such you need to export the product goto plugin system =>manage products => aws and in the drop down choose export now vbulletin creates a file product-aws.xml that's it ... (hopefully)

Nathan2006
04-01-2006, 05:43 PM
Thank you John & Erik

Its all working great!:D

I will try not to ask anymore questions lol;)

Delphiprogrammi
04-02-2006, 03:46 PM
hi people,

those 'warn_notes' do not work for me. i mean i edit all files and templates like the ".txt" says but it doesn't show me anything in my postbit_legacy all i see is a button called "add a note" when i click it nothing is displayed even the navbits array is empty is this 3.5.x acting strange again ????

Ziki
04-02-2006, 04:23 PM
sv1cec how long will it be in BETA?

It doesn't look as it is in BETA....;)

MThornback
04-03-2006, 02:44 PM
hi people,

those 'warn_notes' do not work for me. i mean i edit all files and templates like the ".txt" says but it doesn't show me anything in my postbit_legacy all i see is a button called "add a note" when i click it nothing is displayed even the navbits array is empty is this 3.5.x acting strange again ????

That happened to me...and I reimported the product because the add note template was missing. See if doing that fixes it for you :)

MThornback
04-03-2006, 02:55 PM
I think its been stable for awhile....the few tweaks that have been made along the way could have been fixed and it still could have been called a stable release.

The only suggestion I have....maybe to put this over the top....is to be able to ban users from x page....which would be useful more for hacked boards than anything I think....say for example someone has googlemap and ibproarcade installed....the arcade comes with the ability to ban users or groups of users from the arcade, the googlemap doesn't....its not permission based at all really....not on the front end. Maybe a script where you can put in a username, and ban x user from x page? I dunno if anyone else might find that useful....but I would :bunny:


aside from my little thought...i'd say go for it :)

*bump suggestion*

I didn't see an awnser to this....is it possible?

(incedentally...sorry to double post)

Delphiprogrammi
04-03-2006, 03:06 PM
That happened to me...and I reimported the product because the add note template was missing. See if doing that fixes it for you :)

nope the template is there this is strange :surprised:

Delphiprogrammi
04-03-2006, 04:07 PM
*bump suggestion*

I didn't see an awnser to this....is it possible?

(incedentally...sorry to double post)

that's not supported and i doubt that would even be possible

Nathan2006
04-03-2006, 05:52 PM
hi people,

those 'warn_notes' do not work for me. i mean i edit all files and templates like the ".txt" says but it doesn't show me anything in my postbit_legacy all i see is a button called "add a note" when i click it nothing is displayed even the navbits array is empty is this 3.5.x acting strange again ????

I did not understand half of that info in that txt file lol:tired:

But I managed to get it working:D

This is what should be there (Screenshot added)

Also uploaded the 2 files I edited you could always add these and see if it works - Make sure you backup the other ones tho ;)

Still going to do a few tests with it tho :)

Delphiprogrammi
04-03-2006, 06:46 PM
I did not understand half of that info in that txt file lol:tired:

But I managed to get it working:D

This is what should be there (Screenshot added)

Also uploaded the 2 files I edited you could always add these and see if it works - Make sure you backup the other ones tho ;)

Still going to do a few tests with it tho :)


nope even with your files it doesn't work what the ++++ man :down: :down:

Nathan2006
04-03-2006, 07:17 PM
nope even with your files it doesn't work what the ++++ man :down: :down:

It was working for me and then when I went add a note and saved it There was no way of viewing it :cross-eyed:

The next thing the add note button vanished altogether :confused:

I'm going to revert back without the notes cos I don't wanna mess anything up:( Just going to keep the warning system for now.

I have tried 2 times and no luck so I am going to stick it at the bottom of my list because its a pain to install.

robert_2004
04-05-2006, 03:50 PM
how do i go about getting AWS to work on my board?
i upgraded from vb3.0.9 and the AWS released around that time.
should i remove certain database entries? which ones?
or can i edit the XML to update and replace instead?

Delphiprogrammi
04-06-2006, 11:11 AM
how do i go about getting AWS to work on my board?
i upgraded from vb3.0.9 and the AWS released around that time.
should i remove certain database entries? which ones?
or can i edit the XML to update and replace instead?

you must first delete the old system ... everything except your issued warnings information or you loose that

vampireus
04-09-2006, 03:54 PM
Where is the issued warnings information stored? I want to delete it.

Delphiprogrammi
04-09-2006, 05:39 PM
Where is the issued warnings information stored? I want to delete it.

the warnings table .... if you want to delete that you'll also want to check pmtext_warned , warn_notes (if you are using this ) warn_alerts ... you could set the "prune warnings" setting to 0 days which will delete all issued warnings ...

SHalliday
04-09-2006, 06:03 PM
Is this plugin ready to go or is it still in beta?

I upgraded to 3.5 about 6 weeks ago and when I did the older version of this hack stopped working. Have been wanting to upgrade to this plugin but from reading this thread, it looks like there are still problems with this version. Am nervous about upgrading since I am no php or vb expert.

Is upgrading to this AWS plugin straight forward or are there still problems that need to be worked out?

sv1cec
04-09-2006, 07:14 PM
Delphi, if you use the postbit template, does it work?

Delphiprogrammi
04-09-2006, 08:00 PM
Delphi, if you use the postbit template, does it work?

yes the warning system works fine i just deactivated the notes thing .... all good

MThornback
04-09-2006, 09:53 PM
I'm trying to make a plugin for this that will force mods and admins to enter a comment for warnings....but its not working! Whats wrong with this?


// Require Comment //
if ($vbulletin->GPC['comment']==0)
{
$message_left="{$user['username']} could not be warned because you did not enter a reason for the warning. Please go <a href='javascript:history.go(-1)'>back</a> and try again.";
}
elseif ($vbulletin->GPC['comment']==1)
{
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');
}

Luxury
04-09-2006, 10:17 PM
Why are there warning system settings in vBulletin options? Also, the description for some fields is wrong.

vampireus
04-10-2006, 02:11 PM
Save copy of Warning Message in a predefined forum? Yes

I got this error when issue a warn with the above option Enable, the warning is still made, but no copy of Warning Message sent to a predefined forum

Fatal error: Only variables can be passed by reference in /home/yancom/public_html/music/includes/functions_warning.php on line 600

Line 600 : $destforum = verify_id('forum', intval($vbulletin->options['warn_savecopyforum']));



if ((($vbulletin->options['warn_savecopy']=='1' AND ($alert=='No' OR $alert=='')) or ($vbulletin->options['warn_savecopyalert']=='1' AND $alert=='Yes')) AND $vbulletin->options['warn_savecopyforum']!='')
{
require_once('./includes/functions_databuild.php');
$destforum = verify_id('forum', intval($vbulletin->options['warn_savecopyforum']));
$newforuminfo = fetch_foruminfo($destforum);
if (!$newforuminfo['cancontainthreads'] OR $newforuminfo['link'])
{
eval(standard_error(fetch_error('error_moveillegal forum')));
}

Delphiprogrammi
04-10-2006, 03:44 PM
Save copy of Warning Message in a predefined forum? Yes

I got this error when issue a warn with the above option Enable, the warning is still made, but no copy of Warning Message sent to a predefined forum

Fatal error: Only variables can be passed by reference in /home/yancom/public_html/music/includes/functions_warning.php on line 600

Line 600 : $destforum = verify_id('forum', intval($vbulletin->options['warn_savecopyforum']));



if ((($vbulletin->options['warn_savecopy']=='1' AND ($alert=='No' OR $alert=='')) or ($vbulletin->options['warn_savecopyalert']=='1' AND $alert=='Yes')) AND $vbulletin->options['warn_savecopyforum']!='')
{
require_once('./includes/functions_databuild.php');
$destforum = verify_id('forum', intval($vbulletin->options['warn_savecopyforum']));
$newforuminfo = fetch_foruminfo($destforum);
if (!$newforuminfo['cancontainthreads'] OR $newforuminfo['link'])
{
eval(standard_error(fetch_error('error_moveillegal forum')));
}


did you set the forumid where you want to save the copys of issued warnings and alerts under "forumid"

vampireus
04-10-2006, 08:40 PM
I did, I got this error after I replaced the PHP files inside the zip file by those outside. Some old errors are fixed, but this new error occurs

MarcusTangh
04-11-2006, 02:36 PM
STupid... stupid thing.
I added warning options via admincp, but the warning options aren't there when you try and warn someone. Useful hack, eh?
anyway.
It's also interfearing with RPG Inferno:

Fatal error: Cannot redeclare sendpm() (previously declared in /home/khinforu/public_html/inferno.php:592) in /home/khinforu/public_html/includes/functions_warning.php on line 23

Delphiprogrammi
04-11-2006, 02:40 PM
I did, I got this error after I replaced the PHP files inside the zip file by those outside. Some old errors are fixed, but this new error occurs

verry odd that function works fine on my test board and my live board

sv1cec
04-11-2006, 05:26 PM
MarcusTangh, I am sure you are capable of writing a better hack than this. Please go ahead and do it.

sv1cec
04-11-2006, 05:30 PM
MThornback,

'comment' is a string, why are you comparing to with zero? Try comparing it with ''.

MThornback
04-12-2006, 03:16 AM
MThornback,

'comment' is a string, why are you comparing to with zero? Try comparing it with ''.

That would be because I am an admirer and editor of code...more than I am good at writing it :p

So this should work then? Cause it doesn't

// Require Comment //
if ($vbulletin->GPC['comment']=='')
{
$message_left="{$user['username']} could not be warned because you did not enter a reason for the warning. Please go <a href='javascript:history.go(-1)'>back</a> and try again.";
}
else
{
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');
}

sv1cec
04-12-2006, 03:56 AM
LoL, I'll have to look at the code to see how this Javascript needs to be called. Did you verify that the comparison works? In other words, with the above code, does the program goes into the IF statement or in the ELSE statement?

MThornback
04-12-2006, 04:23 PM
It goes right to the else...it seems to ignore the IF altogether....it went to the IF when I was comparing it to zero...for obvious reasons :p

sv1cec
04-12-2006, 05:32 PM
Try this.

In Warn.php find:


$slcomment=$vbulletin->GPC['comment'];


Add below that:


if ($slcomment=='')
{
$message_left="{$user['username']} could not be warned because you did not enter a reason for the warning. Please go <a href='javascript:history.go(-1)'>back</a> and try again.";
}
else
{


Then in the same file, find:


$url="showthread.php?p={$post}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');


Replace that with:


}
$url="showthread.php?p={$post}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');


Let me know if it works. Note that I edited the code this morning, so please make sure you are using the latest one, as it appears above.

Also, you do not have to use the "Back" javascript, it will redirect you automatically.

akanevsky
04-12-2006, 05:46 PM
Is ever going to be a non-beta?

Apparently not, but oh well. I don't need it anymore.

sv1cec
04-13-2006, 09:11 AM
Another fed-up customer.

akanevsky
04-13-2006, 02:02 PM
Yup, what can be done... :-/

Delphiprogrammi
04-13-2006, 06:45 PM
hi people,

i got the warn_notes to work !!!!!! and added it to the product XML.I hate half work and keep playing with it till i found what went wrong

those notes do work fine :D :cool:

sv1cec
04-13-2006, 07:03 PM
Congrats buddy!

Since the test forum I used is shut down, I guess users are now relying on you for a complete package, ready for installation.

MThornback
04-14-2006, 05:24 AM
Try this.

In Warn.php find:


$slcomment=$vbulletin->GPC['comment'];


Add below that:


if ($slcomment=='')
{
$message_left="{$user['username']} could not be warned because you did not enter a reason for the warning. Please go <a href='javascript:history.go(-1)'>back</a> and try again.";
}
else
{


Then in the same file, find:


$url="showthread.php?p={$post}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');


Replace that with:


}
$url="showthread.php?p={$post}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');


Let me know if it works. Note that I edited the code this morning, so please make sure you are using the latest one, as it appears above.

Also, you do not have to use the "Back" javascript, it will redirect you automatically.

worked famously! :) thanks muchly!


for the non-post related warnings the last bit should be:

}
$url="member.php?u={$vbulletin->GPC['id']}";
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');

Delphiprogrammi
04-15-2006, 06:00 PM
hi people,

I have implemented phrases so the system should be "translation ready" into any language you wish.Just done so gonna leave it running for it while to see if any problems show up(like phrases i forgot) :D after that i'll attach the XML you just need to reimport it (and like always BACKUPPPPPPP your database)

ciao :cool:

Dr.Viggy
04-17-2006, 12:39 AM
well this thing took forever to go through it all and put in but as soon as i did, it worked perfectly. GREAT product. thanks

Delphiprogrammi
04-17-2006, 12:05 PM
hi people,

A thing new to this hack are the bitfield permissions.Just like vbulletin uses itself "can view forum" etc etc.....

Nathan2006
04-18-2006, 03:24 AM
When an email is received after removing a warning the email does not show the warned post or the board name:

Dear user,

A warning you have received for violating Array[bbtitle] Rules has
been totally removed from your account, by the Forums team. The removed
warning concerned:

Banned
(Warning Type = 'Permanent Ban')

The post for which you were warned, and whose warning has now been
totally removed, can be seen here:

Array[bburl]/showthread.php?p=81

With this warning being removed, 15 point(s) have been removed from
your total.

Your total Warning Level at the moment is: 0 point(s).

Please reply back if you have a dispute.

----------------

Array[bbtitle] Team

Thank you for any help :)

Delphiprogrammi
04-18-2006, 05:46 PM
When an email is received after removing a warning the email does not show the warned post or the board name:



Thank you for any help :)

did you enabled that option for including the warned post ?

as for the links (Array['bbtitle']) i've spotted that to and already fixed it

that package will be availible in a few days if i complete my tests successfully

Nathan2006
04-19-2006, 01:00 AM
did you enabled that option for including the warned post ?

as for the links (Array['bbtitle']) i've spotted that to and already fixed it

that package will be availible in a few days if i complete my tests successfully

Yeah I have set that to yes in the admincp also when you remove an alert

From a post that was within the members area

Dear Example,

An Alert you have received for violating Array[bbtitle] Rules has
been totally removed from your account, by the Forums team. The removed
Alert concerned:

Spamming the forums
(Warning Type = 'Spam')

The post for which you were alerted, and whose alert has now been
totally removed, can be seen here:

Array[bburl]/showthread.php?p=72

Kind regards

----------------

Array[bbtitle] Team

dai-kun
04-19-2006, 05:41 AM
is it possible to have a post that's been warned soft/completly deleted after the warning expires? My users keep getting warned twice cus the warn post image disappears.

Nathan2006
04-19-2006, 06:10 AM
is it possible to have a post that's been warned soft/completly deleted after the warning expires? My users keep getting warned twice cus the warn post image disappears.

The best thing to do is go to:

Admincp > Advanced Warning System > Manage Warning Options>

Then have a look down the list and you will find:

4th option on the list

Allow multiple warnings for the same post?If set to No, you will not be allowed to warn a user more than once, for the same post, even if there were several violations in that post.

Set that to "NO" and it should stop multipost warnings :)

Delphiprogrammi
04-20-2006, 10:41 AM
hi people,

I would like to announce the updated package from AWS


All known features like the same system for vb3 had (including the notes)
usergroup permissions(this is new)
the warning and warningtypes interface are using phrases now so translation is made easy
a few bugs i spotted and also reported by other users here are fixed


some fies changed from the ones availible here ...

with Johns permission as it is still his code i modified here and there i'll zip the system and attach it

thank you for listening lol

:cool:

jluerken
04-20-2006, 03:37 PM
hi people,

I would like to announce the updated package from AWS


All known features like the same system for vb3 had (including the notes)
usergroup permissions(this is new)
the warning and warningtypes interface are using phrases now so translation is made easy
a few bugs i spotted and also reported by other users here are fixed


some fies changed from the ones availible here ...

with Johns permission as it is still his code i modified here and there i'll zip the system and attach it

thank you for listening lol

:cool:

Can you please give it a new version number and create a new downloadable archiv file? Currently I don't know which files to download.

Delphiprogrammi
04-20-2006, 06:27 PM
Can you please give it a new version number and create a new downloadable archiv file? Currently I don't know which files to download.

yes i will zip the complete package.Anybody wants the complete system uses phrases (currently only the warninglists do )

cnprint
04-21-2006, 05:13 PM
hi,Delphiprogrammi
I used your fixed,but when I kill warn in cron ,it send me fix.

Fatal error: Call to a member function query_first() on a non-object in E:/Apache Group/www/includes/functions_warning.php on line 31

and functions_warning.php line 31 and 32 is

$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
why?could you help me?
thanks in advance

Delphiprogrammi
04-21-2006, 06:47 PM
hi,Delphiprogrammi
I used your fixed,but when I kill warn in cron ,it send me fix.

Fatal error: Call to a member function query_first() on a non-object in E:/Apache Group/www/includes/functions_warning.php on line 31

and functions_warning.php line 31 and 32 is

$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
why?could you help me?
thanks in advance

that code is absolutely correct ......

the only thing i can think of is that you are not using vbulletin 3.5.x which this system is designed for ?

try to describe exactely what you are doing when the error appaers

GoTTi
04-22-2006, 01:04 AM
Congrats buddy!

Since the test forum I used is shut down, I guess users are now relying on you for a complete package, ready for installation.

WHY HAVENT U CONTACTED ME ABOUT THIS? DAMN IT SV1!!!

READ YOUR PM AND GET BACK TO ME!!!

cnprint
04-22-2006, 08:31 AM
that code is absolutely correct ......

the only thing i can think of is that you are not using vbulletin 3.5.x which this system is designed for ?

try to describe exactely what you are doing when the error appaers

oh,I use the simplechinese rich version,it has added much more hack,it's different form english version,there's so trouble,I wouldn't take care of it.

thank you again.

sv1cec
04-22-2006, 10:30 AM
Gotti, I PM-ed you. But if Delphi is so close to release the whole thing, I do not think you guys need my help. Let's wait to see what Deplhi has up in his sleeve, I am sure it will be much improved over my versions.

Delphi, one issue. Please check the templates, I think that there are still some references to $vboptions instead of $vbulletin->options.

Also, why don't you rename those two routines which cause problems with the Inferno hacks, so that we get over that issue too?

Sorry buddy, some ideas only.

Delphiprogrammi
04-22-2006, 11:35 AM
Gotti, I PM-ed you. But if Delphi is so close to release the whole thing, I do not think you guys need my help. Let's wait to see what Deplhi has up in his sleeve, I am sure it will be much improved over my versions.

Delphi, one issue. Please check the templates, I think that there are still some references to $vboptions instead of $vbulletin->options.

Also, why don't you rename those two routines which cause problems with the Inferno hacks, so that we get over that issue too?

Sorry buddy, some ideas only.

in templates $vboptions will still work fine.I renamed those two routines which where causing a conflict if you are using inferno hacks .I'll attach a zip

now don't shoot me if anything goes wrong :banana:

tqvn2004
04-23-2006, 05:57 PM
in templates $vboptions will still work fine.I renamed those two routines which where causing a conflict if you are using inferno hacks .I'll attach a zip

now don't shoot me if anything goes wrong :banana:

I am completely lost :(

The package released by Delphiprogrammi should be the latest AWS version? Do I have to apply those fixed mentioned previously?

And I can see that a lot of sentences are hard-coded into the code, which makes them more difficult to translate. Examples are:

+ Add Note for $post[username]
+ View $post[username]'s Warnings
+ View your Warnings
+ The following notes have been entered for this user
+ Moderator
+ Moderator Note
+ Time
+ Remove
+ You appear to be the Collector of this site. Under which ID you want this message to be send?

Could you make them into language phrases as well, Delphiprogrammi? Much appreciated for this ;)

Delphiprogrammi
04-23-2006, 06:25 PM
I am completely lost :(

The package released by Delphiprogrammi should be the latest AWS version? Do I have to apply those fixed mentioned previously?

And I can see that a lot of sentences are hard-coded into the code, which makes them more difficult to translate. Examples are:

+ Add Note for $post[username]
+ View $post[username]'s Warnings
+ View your Warnings
+ The following notes have been entered for this user
+ Moderator
+ Moderator Note
+ Time
+ Remove
+ You appear to be the Collector of this site. Under which ID you want this message to be send?

Could you make them into language phrases as well, Delphiprogrammi? Much appreciated for this ;)

i am already doing that so far the add warning page uses phrases.They can be used to translate the original into your own language you want to use (warningtypes and warning lists already uses phrases)

and you just download the zip reimport the product XML (set allow overwrite to yes) upload the files from the zip

done (hopefully)

tqvn2004
04-23-2006, 09:07 PM
i am already doing that so far the add warning page uses phrases.They can be used to translate the original into your own language you want to use (warningtypes and warning lists already uses phrases)

and you just download the zip reimport the product XML (set allow overwrite to yes) upload the files from the zip

done (hopefully)

I downloaded the zip file, and inside there is a readme.txt, which shows how to edit templates (postbit, postbit_legacy...). Those phrases I found are in these template editing.

If I have to perform template editting as readme.txt instructed, I will have problem with translation of those phrases :D Or do you mean I dont have to do those template editting? Note that this is the fresh install of AWS on my board!

Thanks!

Delphiprogrammi
04-23-2006, 09:17 PM
I downloaded the zip file, and inside there is a readme.txt, which shows how to edit templates (postbit, postbit_legacy...). Those phrases I found are in these template editing.

If I have to perform template editting as readme.txt instructed, I will have problem with translation of those phrases :D Or do you mean I dont have to do those template editting? Note that this is the fresh install of AWS on my board!

Thanks!

the phrases you mean aren't there yet.I am busy with it and i have to test all the changes i have made.You don't want a crashing database do you ? :knockedout:

The phrases already used are build into it they are currently


Issued Warning List
warning Types List


you will have todo all templates edites as instructed in readme.txt

GoTTi
04-24-2006, 05:02 PM
so wait, that attachement from delphi is a fully working AWS?

Delphiprogrammi
04-24-2006, 08:04 PM
so wait, that attachement from delphi is a fully working AWS?

i hope so ......

the two screenshots attached are the things which are using phrases.Those column headings (not the actual issued warnings itself)

turkerm
04-24-2006, 10:58 PM
I need to translate it completely into Turkish, yet it is a wonderful thing!

cnprint
04-25-2006, 04:20 PM
the phrases you mean aren't there yet.I am busy with it and i have to test all the changes i have made.You don't want a crashing database do you ? :knockedout:

The phrases already used are build into it they are currently


Issued Warning List
warning Types List


you will have todo all templates edites as instructed in readme.txt

oh, good, delphi, when you finished the new version warning hack , I would translate to SimpleChinese version ,I have finished translate two version in the past.

Delphiprogrammi
04-26-2006, 01:10 PM
hi people,

Some news.The System is phrased in the postbit,postbit_legacy and MEMBERINFO templates and working fine maybe i get a quickpackage ready since some people are waiting for this :bandit:

GoTTi
04-26-2006, 06:01 PM
delphi take your time. lets not have any mistakes or stuff missing.

sv1, why dont u put delphi as a supporter/co-author on this hack so he can update the package and stuff?

DementedMindz
04-27-2006, 11:10 PM
can you please cache template warn_pm

DementedMindz
04-27-2006, 11:13 PM
also how come it dont display the warnings given on the post? mostly all the edits i see are for postbit but what happens if you use postbit_legacy for everything should you do all them edits on that?

Delphiprogrammi
04-28-2006, 08:56 AM
also how come it dont display the warnings given on the post? mostly all the edits i see are for postbit but what happens if you use postbit_legacy for everything should you do all them edits on that?

1)yes i spotted the uncached templates and that is solved
2)you have to edit BOTH templates postbit and postbit_legacy (instructions are in readme.txt .... they are there)

DementedMindz
04-28-2006, 07:12 PM
1)yes i spotted the uncached templates and that is solved
2)you have to edit BOTH templates postbit and postbit_legacy (instructions are in readme.txt .... they are there)

i have edited it to the read me ill just wait for next version or try inferno

sv1cec
04-29-2006, 12:23 PM
Good point on adding Delphi as a supporter, co-author. I added him, he fully deserves it.

GoTTi
04-29-2006, 02:58 PM
john my test site is still up for you dude, maybe if you wanna take his zip he made and install it there and go through it and test everything out yourself you can start learning how this scripting for 3.5 is done and get the ideas and maybe fix your hack up yourself also.

the test board is there for you guys i want you guys to use it ;)

sv1cec
04-30-2006, 12:22 PM
GoTTi, I won't be able to do anything on this, until Tuesday, today and tomorrow the animals (ah,.... sorry, the twins) are at home, so it's impossible to do anything. I'll try to work on this and do some tests Tuesday.

Delphiprogrammi
05-02-2006, 11:01 AM
Good point on adding Delphi as a supporter, co-author. I added him, he fully deserves it.

thank you John found any mistakes i "may" have made yet ? :banana:

oooh and firefox doesn't like they way i phrased the warnings button option that browser shows always two buttons on top of eachother

EdQ
05-02-2006, 04:11 PM
I notice when I use the newer version of Warn.php and try to warn a user. It comes up telling me this post was already warned. Even though that isn't true.

This post has received other warnings.

H@K@N
05-03-2006, 08:28 AM
What could be the Problem, if the Selection Box is empty if i want to do a non-post related Warning ?

Warning Selection: Choose a warning

(not post-related)

Everything else is working, and i hav several Warning types.

th@nks

robert_2004
05-03-2006, 01:44 PM
PROBLEMS FOUND:
- forum/admincp/admin_warn.php - enter a username, and view warnings. the links on some <a href> are wrong, and have either '/' on the start, or missing the variable for the adminCP directory.
- /forum/admincp/admin_warn.php?act=viewlogs&script=&perpage=50&orderby=w.warned_time%20DESC&page =2 - choose to view logs. now choose to sort warning types. nothing happens. i also tried going to next page, and it doesn't go anywhere - simply showing what looks to be like the first page still.

Also, i think we should be able to use a warning or alert for posts and non posts.
i don't think i should have to make all 25 different warning types again, for non posts. (even though only 3-8 of them would only affect non post related warnings).

Also, i would like to delete all warnings given to people for a certain warning type. (we have a 'sig too big', people were warnings instead of issuing alerts. and now i want to remove all the warnings people have gotton, instead of leaving them on their account.)
SO: i would like to prune warnings, also with the option by type, and by date (more than 30 days ago).

Thanks mate - good work so far.

robert_2004
05-03-2006, 01:46 PM
post #910 - H@K@N,
you have not configured any warnings to be "non-post related", meaning all the warnings you have at the moment, are only valid and can be given to a specific post on the forum - not really can it be given to their profile picture, their username, their member profile.
you have to set up warning types to be non post related.
hope that helps.

Bubble #5
05-03-2006, 05:00 PM
Does anybody know what the secret is to removing the warnings from a members account? It removes the ban points but not the warnings... Thanks :confused:

Delphiprogrammi
05-03-2006, 06:04 PM
I notice when I use the newer version of Warn.php and try to warn a user. It comes up telling me this post was already warned. Even though that isn't true.

that's normal set "maintain historical records" to no and it should disappaer

Delphiprogrammi
05-03-2006, 06:07 PM
What could be the Problem, if the Selection Box is empty if i want to do a non-post related Warning ?

Warning Selection: Choose a warning

(not post-related)

Everything else is working, and i hav several Warning types.

th@nks



if the warning selection dropdown list only show "choose a warning" then you are trying to issue a warning on the option found in the membersprofile (or via the admincp usermanager).Define at least one non post related warning type and your problem will disappaer

Delphiprogrammi
05-03-2006, 06:08 PM
PROBLEMS FOUND:
- forum/admincp/admin_warn.php - enter a username, and view warnings. the links on some <a href> are wrong, and have either '/' on the start, or missing the variable for the adminCP directory.
- /forum/admincp/admin_warn.php?act=viewlogs&script=&perpage=50&orderby=w.warned_time%20DESC&page=2 - choose to view logs. now choose to sort warning types. nothing happens. i also tried going to next page, and it doesn't go anywhere - simply showing what looks to be like the first page still.

Also, i think we should be able to use a warning or alert for posts and non posts.
i don't think i should have to make all 25 different warning types again, for non posts. (even though only 3-8 of them would only affect non post related warnings).

Also, i would like to delete all warnings given to people for a certain warning type. (we have a 'sig too big', people were warnings instead of issuing alerts. and now i want to remove all the warnings people have gotton, instead of leaving them on their account.)
SO: i would like to prune warnings, also with the option by type, and by date (more than 30 days ago).

Thanks mate - good work so far.

i will check those things.The sort issue could be because of the warnings_per_page setting in the manage warning options page

Delphiprogrammi
05-03-2006, 06:11 PM
Does anybody know what the secret is to removing the warnings from a members account? It removes the ban points but not the warnings... Thanks :confused:

in the warninglog there is a checkbox next to each warning issued mark the checkboxs(s) and hit the complete remove button (delete is deleted .... ) look at the attached image it will make the procedure more clear

Bubble #5
05-03-2006, 08:10 PM
that's normal set "maintain historical records" to no and it should disappaer
Tried that, but when we click on the 'Proceed' button it sends us to a blank white page. If we log back into the controls it is now set to 'No' but the warnings still appear.

Bubble #5
05-03-2006, 08:14 PM
in the warninglog there is a checkbox next to each warning issued mark the checkboxs(s) and hit the complete remove button (delete is deleted .... )
It says no warnings found, yet one still appears in the members profile/post information...

Delphiprogrammi
05-03-2006, 09:17 PM
It says no warnings found, yet one still appears in the members profile/post information...

true but you are using an outdated admin_warn.php i fixed that bug a while back.(the redirect to a white page) if you set "MainTain Historical Records" to no it should show you the attached screenshot

you should use the files from this (https://vborg.vbsupport.ru/showpost.php?p=956881&postcount=890) package

Bubble #5
05-04-2006, 12:05 AM
true but you are using an outdated admin_warn.php
We wanted to update but we couldn't find any update instructions from 1.0.4, and there's no way to completely uninstall the old version either without them :( We'll keep trying to look for them though.

Delphiprogrammi
05-06-2006, 04:06 PM
We wanted to update but we couldn't find any update instructions from 1.0.4, and there's no way to completely uninstall the old version either without them :( We'll keep trying to look for them though.

plugin system => manage products => add a new product

product-aws.xml
allow overwrite => yes (REQUIRERD)
submit the form and upload the files from the zip to there proper locations

all done

Bubble #5
05-06-2006, 04:47 PM
plugin system => manage products => add a new product

product-aws.xml
allow overwrite => yes (REQUIRERD)
submit the form and upload the files from the zip to there proper locations

all done
OK thanks, but for us it's not that easy :bunny: We have a completely custom skin (vs. a skin that has just been customized) and no doubt we'll have to redo a bunch of templates. This is why we like to manually install anything that is going to alter templates. Oh well, I guess it needs to be done so we'll attempt it later tonight :confused:

GoTTi
05-08-2006, 03:44 PM
so how is this coming out?

Delphiprogrammi
05-08-2006, 06:03 PM
OK thanks, but for us it's not that easy :bunny: We have a completely custom skin (vs. a skin that has just been customized) and no doubt we'll have to redo a bunch of templates. This is why we like to manually install anything that is going to alter templates. Oh well, I guess it needs to be done so we'll attempt it later tonight :confused:

you will have to edit four templates in each the skins you have installed UNLESS you put your board in debug mode and edit the master style

templates to edit are


postbit
postbit_legacy
MEMBERINFO
pm_newpm


to put your board in debug mode edit /includes/config.php

$config['Misc']['debug']= true;


as a last note please remember putting a public board in debug mode is dangerous i don't recommend it.

Delphiprogrammi
05-08-2006, 06:06 PM
so how is this coming out?

better then it thought it would phrasing is almost done.After that i have todo some tests to ensure no stupid errors exist :)

Bubble #5
05-08-2006, 06:21 PM
templates to edit are


postbit
postbit_legacy
MEMBERINFO
pm_newpm


This is GREAT Delphiprogrammi! Thanks for posting those templates ;)

I wish more coders would give detailed information like this.

Thanks again!

Delphiprogrammi
05-11-2006, 08:39 PM
hi people,

Two new plugins Added.When a users's warning level is above his / her signature cutoff and he / she trys to edit the signature he / she will be stopped from doing that and see a message like

You Have To Many Warning Points To Edit Your Signature

the same thing happens with the "edit avatar" page and i'm looking at a way to hide those things to if the limits are reached but template condiotions aren't my strongest point :surprised:

Bubble #5
05-11-2006, 08:53 PM
If they are in a special usergroup you can hide them with a conditional that way. The code would go right above where the signature code is.

Delphiprogrammi
05-11-2006, 09:39 PM
If they are in a special usergroup you can hide them with a conditional that way. The code would go right above where the signature code is.

found it when a user's warning level exceeds the signature cutoff the signature will not be shown nor his avatar :cool:

H@K@N
05-12-2006, 06:31 AM
Getting following SQL Error if i want to add a non-post-related Warning-Type :


Invalid SQL:
insert into warning_types values(
'',
'BANLI',
'5',
'DIREK BAN',
'9999',
'Yes',
'No',
'No',
''
);

MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136


I am using: Advanced Warning System 1.0.4


greetz

Delphiprogrammi
05-12-2006, 02:40 PM
Getting following SQL Error if i want to add a non-post-related Warning-Type :



I am using: Advanced Warning System 1.0.4


greetz

that's working fine with me here .... did you modify it yourself ?

GoTTi
05-13-2006, 02:37 PM
whats with all the php files attached to the thread? if they arent needed can they be deleted, and make a zip file with the current version number of the release on here, and update the history version there in the first post part of this thread. im trying to follow this thread and want this hack, and im confused with what all those other php files are for and what the zip includes.

is there anything missing from this hack delphi? whats the current issues with this thing?

NickCat
05-13-2006, 03:22 PM
First off... I love this hack and have used ift for a very long time on my forums, NASIOC.com (one of the larger vb forums out there).

I am currently in the 3.0 series and I want to upgrade to 3.5, but I was waiting until this hack was a bit more settled. From just reading through all 10 pages, it seems like most of the stuff has been worked out, but installation/upgrade instructions still seem to be a bit hazy.

Can someone give me a simple clear set of directions at this point as how to install this hack as an upgrade to my existing version on the 3.0 series vbulletin. I'm quite confused as to what files have or haven't been updated and even whether all the problems since the last zip was posted by delphi are even included in the zip listed as the official one to download.

I just need a little guidenace to help sort out the confusion. Thanks.

Delphiprogrammi
05-13-2006, 04:35 PM
whats with all the php files attached to the thread? if they arent needed can they be deleted, and make a zip file with the current version number of the release on here, and update the history version there in the first post part of this thread. im trying to follow this thread and want this hack, and im confused with what all those other php files are for and what the zip includes.

is there anything missing from this hack delphi? whats the current issues with this thing?

https://vborg.vbsupport.ru/showpost.php?p=956881&postcount=890

zipfile is here agers ago.I do agree but i can't edit this hack only John and or a mod can ....

Delphiprogrammi
05-13-2006, 04:37 PM
First off... I love this hack and have used ift for a very long time on my forums, NASIOC.com (one of the larger vb forums out there).

I am currently in the 3.0 series and I want to upgrade to 3.5, but I was waiting until this hack was a bit more settled. From just reading through all 10 pages, it seems like most of the stuff has been worked out, but installation/upgrade instructions still seem to be a bit hazy.

Can someone give me a simple clear set of directions at this point as how to install this hack as an upgrade to my existing version on the 3.0 series vbulletin. I'm quite confused as to what files have or haven't been updated and even whether all the problems since the last zip was posted by delphi are even included in the zip listed as the official one to download.

I just need a little guidenace to help sort out the confusion. Thanks.

you would make a backup off all the system tables (aws) after that you upgrade vbulletin download the latest aws release here and reimport the product (set allow overwrite to yes) restore your warnings table ...

Delphiprogrammi
05-13-2006, 05:27 PM
i have a problem with not working phrases i'm looking into it but that can take a while ...

GoTTi
05-13-2006, 05:28 PM
you shoul dbe able to edit the hack delphi, your added as supporter of mod.

do u use aim?

Delphiprogrammi
05-13-2006, 05:51 PM
you shoul dbe able to edit the hack delphi, your added as supporter of mod.

do u use aim?

no i don't use aim and all i see is the install / unstall link and a "report this modification" link

Allright Folks the not working phrases is sorted out i am now trying the full phrased system on my live board.This is the last step before apublic release can be made

Nathan2006
05-13-2006, 10:57 PM
Hello,

Has this been updated since "Last Update: 01. Apr 2006" ?:confused:

Thanks for any info :)

Delphiprogrammi
05-14-2006, 10:48 AM
hi people,

The signature and avatar hide features are working ....I'll put a page together with detailed instructions on howto edit the templates

Nathan 2006 yes this package has been u pdated since 1 april 2006 you should find the latest package here (https://vborg.vbsupport.ru/attachment.php?attachmentid=46274&d=1145712633)

Nathan2006
05-14-2006, 01:24 PM
hi people,

The signature and avatar hide features are working ....I'll put a page together with detailed instructions on howto edit the templates

Nathan 2006 yes this package has been u pdated since 1 april 2006 you should find the latest package here (https://vborg.vbsupport.ru/attachment.php?attachmentid=46274&d=1145712633)


Thank you Erik :)

I was not 100% cos the date has not been updated on the hack lol:D

Thanks again :)

Darat
05-14-2006, 01:34 PM
hi people,

The signature and avatar hide features are working ....I'll put a page together with detailed instructions on howto edit the templates

Nathan 2006 yes this package has been u pdated since 1 april 2006 you should find the latest package here (https://vborg.vbsupport.ru/attachment.php?attachmentid=46274&d=1145712633)

Just a minor point but I notice in the images it says "You have to many..." that should be "too".

Nathan2006
05-14-2006, 01:50 PM
Just a minor point but I notice in the images it says "You have to many..." that should be "too".

You should be able to change that text if you search in Admincp > Languages & Phrases > Search in Phrases ;)

Marco van Herwaarden
05-14-2006, 02:57 PM
https://vborg.vbsupport.ru/showpost.php?p=956881&postcount=890

zipfile is here agers ago.I do agree but i can't edit this hack only John and or a mod can ....You are set as a co-author, can you not update the files?

If you can not, and if John handed over the hack to you, then please sent a PM to an Admin with a quote of the permission from John, and the owner will be changed.

Nathan2006
05-14-2006, 03:20 PM
Hi Erick,

I have "Advanced Warning System 1.0.4" installed

I was just wondering what changes need to be made on the upgrade?

Are there any template changes or is it just the files on the server?

Thank you for your help :)

kall
05-14-2006, 06:44 PM
hi people,

Two new plugins Added.When a users's warning level is above his / her signature cutoff and he / she trys to edit the signature he / she will be stopped from doing that and see a message like

You Have To Many Warning Points To Edit Your Signature

the same thing happens with the "edit avatar" page and i'm looking at a way to hide those things to if the limits are reached but template condiotions aren't my strongest point :surprised:
That should be "Too many warning points..."

:)

Delphiprogrammi
05-15-2006, 11:23 AM
That should be "Too many warning points..."

:)

i was in doubt about that ....... thanks for the correction

Delphiprogrammi
05-15-2006, 11:27 AM
Hi Erick,

I have "Advanced Warning System 1.0.4" installed

I was just wondering what changes need to be made on the upgrade?

Are there any template changes or is it just the files on the server?

Thank you for your help :)

the template edits avaible right now will work fine however some of the features will not work.The system is phrased so those people who want this system in another language then english ...... (it's possible)

it's coming soon even the template edit instructions are ready

i'm just looking for a way to include adminhelp vbulletin doesn't seem to export that

H@K@N
05-15-2006, 11:38 AM
the template edits avaible right now will work fine however some of the features will not work.The system is phrased so those people who want this system in another language then english ...... (it's possible)

it's coming soon even the template edit instructions are ready

i'm just looking for a way to include adminhelp vbulletin doesn't seem to export that

thx, i am also waiting for phrases. didn't like to translate within php Files.

greetz

Delphiprogrammi
05-16-2006, 11:05 AM
hi people,

Here it is.The system that uses phrases.To install import product-aws.xml(set overwrite to yes).Do the template edits (and other stuff) explained in readme.txt after that it should be ready to use

zip file updated to include a fix for a typo in a MySQL query

GoTTi
05-16-2006, 12:31 PM
great news delphi. lemme ask u, i have te AWS from 3.0x world installed still im sure in the DB. do i need to do anything special to make sure it is completely out of my system so i dont have problems with this? is there a uninstall older version or upgrade tool wth this? lemme know thanks.

dai-kun
05-16-2006, 11:20 PM
hi people,

Here it is.The system that uses phrases.To install import product-aws.xml(set overwrite to yes).Do the template edits (and other stuff) explained in readme.txt after that it should be ready to use

u forgot the product file in the new zip?

Gooses
05-17-2006, 04:54 AM
Wait, so this works with vB 3.5.4?

Delphiprogrammi
05-17-2006, 09:48 AM
u forgot the product file in the new zip?

no includes/xml/ ...

Delphiprogrammi
05-17-2006, 09:48 AM
Wait, so this works with vB 3.5.4?

yes it does

dai-kun
05-17-2006, 10:15 PM
I have trouble running kill_alerts cron
Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE vb3_user SER alerts='0' WHERE userid='39752';

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 'alerts='0' WHERE userid='39752'' at line 1
Error Number : 1064
Date : Wednesday, May 17th 2006 @ 04:12:29 PM
Script : http://domain.com/forum/admincp/cronadmin.php?do=runcron&cronid=40

I think
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."user SER alerts='{$alerts}' WHERE userid='{$warn['userid']}'");
should be:
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."user SET alerts='{$alerts}' WHERE userid='{$warn['userid']}'");


Also.. for some reason, when the warnings expire, they do not show up anymore in the view warnings, but i can still see a "Warnings: 1" in their postbit. This been happening for a really long time and I just never brought it up :/

Delphiprogrammi
05-19-2006, 03:54 PM
I have trouble running kill_alerts cron
Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE vb3_user SER alerts='0' WHERE userid='39752';

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 'alerts='0' WHERE userid='39752'' at line 1
Error Number : 1064
Date : Wednesday, May 17th 2006 @ 04:12:29 PM
Script : http://domain.com/forum/admincp/cronadmin.php?do=runcron&cronid=40

I think
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."user SER alerts='{$alerts}' WHERE userid='{$warn['userid']}'");
should be:
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."user SET alerts='{$alerts}' WHERE userid='{$warn['userid']}'");


Also.. for some reason, when the warnings expire, they do not show up anymore in the view warnings, but i can still see a "Warnings: 1" in their postbit. This been happening for a really long time and I just never brought it up :/

1)you are right about the MySQL query that's a typo.I have updated the zip package

2)i think that problem is caused by the username cache vbulletin uses the system isn't yet implemented to use that.I have no experience with it so kinda scared i mess up hehe

sv1cec
05-20-2006, 07:50 AM
Delphi,

I have entered your name in the supporters/co-authors. So you should be able to update the distribution files. If not, please contact the administrators, you can edit the hack with my blessings!

Rgds

Marco van Herwaarden
05-20-2006, 12:19 PM
hi people,

Here it is.The system that uses phrases.To install import product-aws.xml(set overwrite to yes).Do the template edits (and other stuff) explained in readme.txt after that it should be ready to use

zip file updated to include a fix for a typo in a MySQL queryHi Delphiprogrammi,

Thank you very much for creating a new zip-file.

I have a few questions/remarks in your latest zip file:
- The updated files that are included in the thread start, are they still needed with your zip?
- The product file will with most installations never be uploaded to the forum directories. In the zip it is however located in includes/xml. Better move it outside of the upload directory.
- Readme is also most convenient if not between the files to upload, but on a higher level directory
- The includes/xml directory contain 2 files that i suppose shouldn't be there: vbulletin-adminhelp.xml & vbulletin-language.xml
- Is it correct that Warn.php start with an uppercase W?


If you are going to add your zip-file to the first post and have problems with that, sent me a PM please.

Delphiprogrammi
05-20-2006, 01:18 PM
Hi Delphiprogrammi,

Thank you very much for creating a new zip-file.

I have a few questions/remarks in your latest zip file:
- The updated files that are included in the thread start, are they still needed with your zip?
- The product file will with most installations never be uploaded to the forum directories. In the zip it is however located in includes/xml. Better move it outside of the upload directory.
- Readme is also most convenient if not between the files to upload, but on a higher level directory
- The includes/xml directory contain 2 files that i suppose shouldn't be there: vbulletin-adminhelp.xml & vbulletin-language.xml
- Is it correct that Warn.php start with an uppercase W?


If you are going to add your zip-file to the first post and have problems with that, sent me a PM please.

1)No all the files the system uses have changed.Also the update instructions for the warn_notes features are already included in the product
2)i moved readme.txt to a directory called "docs"
3)i removed those files from /includes/xml they indeed shouldn't be there.I also moved the product file outside of the upload directory
4)that file always started with an uppercase "W" (i'll look into changing that )
5)I already sended a pm to Xenon about being unable to edit the hack settings.I did before you posted in this thread.Let's wait and see what he got to say.Maybe it is because the system that handles that things is being changed ?

sv1cec
05-20-2006, 01:25 PM
Delphi, did you check if you can edit the hack today? In the past, I had you as a co-author/supporter, but I had not checked the box which asked if this hack is supported. Today, I checked it. Please try again.

Also, why do you need to change Warn.php to warn.php, I like it that way! That doesn't mean that you can't change it, but why?

Tnx

Delphiprogrammi
05-20-2006, 01:37 PM
Delphi, did you check if you can edit the hack today? In the past, I had you as a co-author/supporter, but I had not checked the box which asked if this hack is supported. Today, I checked it. Please try again.

Also, why do you need to change Warn.php to warn.php, I like it that way! That doesn't mean that you can't change it, but why?

Tnx

that's odd all i see is this (the attached image)

Xenon replyed to my pm and said that's normal.That's not implemented yet that hack coauthors/supporters can edit the hack settings ... but it's coming guess you all have to wait :D

Delphiprogrammi
05-21-2006, 01:51 PM
hi people,

to make it a little easier keeping track of possible problems in the system.I've installed the vbug tracker you can find here.

click here (http://www.delphiprogramming.be/forums/forumdisplay.php?f=41)

you can use the account


username:bugreporter
password:aws_vborg


todo just that ...

shockx5
05-22-2006, 12:17 AM
im on 3.5.4 and i installed the one in the original post...my forums are iffy and i never know if a hack is gonna wipe them...and last time this hack initially did. but i reinstalled the forums, should i risk updating with the aws for 3.5.4?

Delphiprogrammi
05-23-2006, 01:36 PM
im on 3.5.4 and i installed the one in the original post...my forums are iffy and i never know if a hack is gonna wipe them...and last time this hack initially did. but i reinstalled the forums, should i risk updating with the aws for 3.5.4?

why not ? you should backup your database with each and every modification made to it even if it is a simple insert.

Parker Clack
05-23-2006, 02:50 PM
I am sure this is a function of the program but I am not sure so I wanted to check.

I installed this on 3.5.4 and it worked great but members that posted during the time I had it installed had their posts and threads moderated. Is this something that you can set in the setup of the program?

I uninstalled it for now but wanted to make sure this wasn't a setup problem on my end or a problem with the script itself.

Thanks

Delphiprogrammi
05-23-2006, 07:41 PM
I am sure this is a function of the program but I am not sure so I wanted to check.

I installed this on 3.5.4 and it worked great but members that posted during the time I had it installed had their posts and threads moderated. Is this something that you can set in the setup of the program?

I uninstalled it for now but wanted to make sure this wasn't a setup problem on my end or a problem with the script itself.

Thanks

Yes and No you can setup the script.If a member get's banned and that ban expires you can specify a usergroup that banned member will be restored into.see "bannd usergroup" and "restore usergroup" settings in the system options.There is no function that would moderate thread / posts through

Parker Clack
05-23-2006, 08:36 PM
Ok, I am just making sure as all of a sudden I am now having posts and threads that are getting set to moderation with all the forums and usergroups set to follow the forum moderation rules. This started after I installed the script and continued even after I uninstalled it.

I guess it is a problem with vBulletin as others have stated they are having problems with this happening to them too.

GoTTi
05-24-2006, 03:22 AM
i have a previous version of AWS installed from the 3.0x world, do i need to do anything special before installing this onto 3.5.4?

MThornback
05-25-2006, 08:36 AM
i have a previous version of AWS installed from the 3.0x world, do i need to do anything special before installing this onto 3.5.4?

Thats probably going to depend on wether you want to carry over your warnings and Warning types from the older board...I think I read that the variables didn't change from there to here....if you wanna carry them over make sure your warning tables are backed up so you can do a dump of the info after the upgrade.

H@K@N
05-25-2006, 09:37 AM
delphi,

have still the problem that i cannot add any Warning Types anymore.

this is what i am getting:


Invalid SQL:
INSERT INTO warning_types VALUES(
'',
'direk BAN',
'5',
'Saygisizlik direk BAN',
'9999',
'Yes',
'No',
'No',
''
);

MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136


I have upgraded my AWS to yours with Phrases, but still same issue.

How can i solve this ? Delete warning_types and reimport Product ?


th@nks

blackshadowc4p
05-25-2006, 07:20 PM
One question. I have it installed and it is working just perfect. But, I would like to give supermods power to the admin interface of this hack.

Is it possible to put config interface we have on admincp also on modcp (but only for supermods)? If yes, how?

Thanks.

bosal
05-25-2006, 08:43 PM
great hack but i have a request... please make a change.

I have sub forums and on it moderators, they only can manage the post and theards. But i can't block the option with warnings, I don't want them to have this option.

Please help, or make a permision addon.

StarDome
05-26-2006, 03:07 PM
Everything but my warn user and view warning features work...for some reason I just get a blank page when I click the link for it.

how can I make it work?

CaffeineGibbs
05-27-2006, 01:37 PM
Slighty query. the skin I'm using doesnt have

In Template navbar
FIND
------------------------------------------------------------------------------------------
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
------------------------------------------------------------------------------------------

This is the actual code of the template navbar of the skin I'm using.

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="page" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="page" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="middle">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
<td class="page" width="100%" align="left" valign="middle">
<div align="center">
<!-- Red2Black Banner Placement -->

<!-- / Red2Black Banner Placement -->
</div>
</td>
<if condition="$bbuserinfo['userid']">

<td class="page" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />

<if condition="$pcount != ''">$pcount<br /></if>

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<br /><if condition="$rcount != ''">$rcount<br /></if>
</div>
</td>

<else />

<td class="page" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[username]</td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[password]</td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<br />

---------------
Where would I have to put the
<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>

instead? I'm not too sure where to put it exactly

Delphiprogrammi
05-27-2006, 02:21 PM
delphi,

have still the problem that i cannot add any Warning Types anymore.

this is what i am getting:



I have upgraded my AWS to yours with Phrases, but still same issue.

How can i solve this ? Delete warning_types and reimport Product ?


th@nks

uninstall and reinstall weird however i don't have that issue in here

Delphiprogrammi
05-27-2006, 02:22 PM
One question. I have it installed and it is working just perfect. But, I would like to give supermods power to the admin interface of this hack.

Is it possible to put config interface we have on admincp also on modcp (but only for supermods)? If yes, how?

Thanks.

No that's not possible

Delphiprogrammi
05-27-2006, 02:23 PM
great hack but i have a request... please make a change.

I have sub forums and on it moderators, they only can manage the post and theards. But i can't block the option with warnings, I don't want them to have this option.

Please help, or make a permision addon.

that's already there usergroups [usergroupid] = can issue warnings => No

Delphiprogrammi
05-27-2006, 02:25 PM
Everything but my warn user and view warning features work...for some reason I just get a blank page when I click the link for it.

how can I make it work?

did you added warningtypes ? at least one non post related one.Did you uploaded all files to there proper location ?

Delphiprogrammi
05-27-2006, 02:29 PM
Slighty query. the skin I'm using doesnt have

In Template navbar
FIND
------------------------------------------------------------------------------------------
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
------------------------------------------------------------------------------------------

This is the actual code of the template navbar of the skin I'm using.

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="page" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="page" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="middle">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
<td class="page" width="100%" align="left" valign="middle">
<div align="center">
<!-- Red2Black Banner Placement -->

<!-- / Red2Black Banner Placement -->
</div>
</td>
<if condition="$bbuserinfo['userid']">

<td class="page" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />

<if condition="$pcount != ''">$pcount<br /></if>

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<br /><if condition="$rcount != ''">$rcount<br /></if>
</div>
</td>

<else />

<td class="page" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[username]</td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[password]</td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<br />

---------------
Where would I have to put the
<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>

instead? I'm not too sure where to put it exactly

let me guess you are using a custom skin from sites like vbstyles.com (and similair) i have in the past purchased one vbstyles.com skin and there templates are verry hard to edit.That piece of code is to add a link to Warn.php in your quicklinks menu.Sow i suggest you look at your quick links write them the last item and below that ........ add the code but make a comment around it so you can easly remove it (template newbar)


<!-- this is a comment ->
code here
<!-- this is another comment ->

sv1cec
05-27-2006, 03:48 PM
Delphi, please do me a favor. Send me the latest zip file by email, so that I can upload it here. And please do that, whenever you have a new version, so that I can update the hack's downloadables. Tnx

b00k
05-30-2006, 08:13 PM
updating usergroup for a user in admincp result in this error

Database error in vBulletin 3.5.4:
Invalid SQL: UPDATE user SET tdban=0 WHERE userid=7355; MySQL Error : Unknown column 'tdban' in 'field list'
Error Number : 1054
Date : Tuesday, May 30th 2006 @ 04:33:49 PM Script : http://www.xxxxx.com/admincp/user.php Referrer : http://www.xxxxx.com/admincp/user.php?do=edit&u=7355 IP Address : 209.XXX.XX.XXX
Username : 2TTT
classname: vb_database

Any advice on how to resolve this?

sv1cec
05-30-2006, 08:27 PM
I do not think AWS has any relation to that, I do not remember using a column called tdban in user table.

b00k
05-30-2006, 08:39 PM
I do not think AWS has any relation to that, I do not remember using a column called tdban in user table.


Thanks sv1, youre correct. Its a timeslip DB error. I had installed both of these at the same time.
That being said, this works flawless (so far, only been a few days :D )

Thanks for the prompt response.

sv1cec
05-31-2006, 05:47 AM
I just uploaded the latest zip file that Delphi send me. That should include all the fixes Delphi has done, so it should be simple to download and install the hack now. Please ignore the other files, I'll delete them as soon as I am sure that nobody needs them.

Rgds

EdQ
06-03-2006, 04:27 PM
I now get this error when trying to warn a user

An error has occured, the following message has been left below: :

You have no permissions to issue warnings

bosal
06-03-2006, 05:26 PM
yah i updated my version i had a 1.0.4 ver. :) it works great

@EdQ

go to usergroups, edit admins, sup mod etc. and activate the checkboxes aws(Advanced Warning System) Permissions

Delphiprogrammi
06-03-2006, 05:32 PM
I now get this error when trying to warn a user

bosal is correct you didn't set the usergroup permissions

bosal
06-03-2006, 05:54 PM
i have a problem, with creating new warning types:

Database error in vBulletin 3.5.3:

Invalid SQL:
INSERT INTO warning_types VALUES(
'',
'Ban',
'15',
'Description',
'180',
'No',
'Yes',
'',
''
);

MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
Date : Saturday, June 3rd 2006 @ 09:26:45 PM
Script : http://forum.tibia.pl/admincp/admin_warn.php
Referrer : http://forum.tibia.pl/admincp/admin_warn.php?do=view
IP Address : 84.10.175.34
Username : bosal
Classname : vb_database

Delphiprogrammi
06-03-2006, 06:56 PM
i have a problem, with creating new warning types:


DESCRIBE warning_types;


the error you posted means you are trying to add field with a tid that already exists.Most likely you are trying to restore a backup

bosal
06-03-2006, 07:58 PM
no i'm trying to add new type

Delphiprogrammi
06-03-2006, 08:29 PM
no i'm trying to add new type

go in your database with phpMyAdmin or something like that and create a backup of the table warning_types after that empty it then add all the warning types you'd like to use done......

i know it's kind of a dirty solution but it's all i can think off the add function works fine in here

bosal
06-03-2006, 09:20 PM
no, i found the bug, i had none warning_alert warning_alertcomment

GoTTi
06-03-2006, 10:38 PM
there is no instructions.txt file with the zip???

bosal
06-04-2006, 07:42 AM
there is, in folder upload/docs

Delphiprogrammi
06-04-2006, 11:24 AM
hi people,

looking at vbulletin.com 3.6 beta 1 this is hack is "near" to death.3.6 beta 1 will have a warning system by default and i always run the latest release availible.However i'll keep a 3.5.4 for "/testvb" so i can continue with this thing here

EdQ
06-04-2006, 02:13 PM
yah i updated my version i had a 1.0.4 ver. :) it works great

@EdQ

go to usergroups, edit admins, sup mod etc. and activate the checkboxes aws(Advanced Warning System) Permissions

Thanks, I didn't realize the upgrade added this.

DannyBoy8406
06-04-2006, 08:49 PM
Is there a way to modify this hack so that the Alert Threads and Warning Threads are posted as posts in a thread instead of being individual threads themselves?

Delphiprogrammi
06-05-2006, 10:56 AM
Is there a way to modify this hack so that the Alert Threads and Warning Threads are posted as posts in a thread instead of being individual threads themselves?

why on earth would you wanna do that ??

GoTTi
06-06-2006, 05:02 AM
first quesiton:

all the postbit modifications...should i be altering the postbit_legacy also???

also the instructions say:


In Template postbit
FIND
------------------------------------------------------------------------------------------
<if condition="$post['signature']">(this procedure is the same for postbit_legacy)
------------------------------------------------------------------------------------------
REPLACE that with
------------------------------------------------------------------------------------------
<if condition="$post['signature'] AND (($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">


when i look in my postbit_legacy i see:

<if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">

what do i do?