View Full Version : Advanced Warning System (AWS)
sv1cec
01-16-2005, 07:31 PM
Ok, for the member who asked for a different message, when a banned member tries to log in the site, I have found the place to check it out and produce a different message. I am not releasing it as a new version though, as I want to elaborate on it a bit, but if you are in a hurry to put this into action, here is what you have to do:
Edit file functions.php and find:
$postvars = construct_post_vars_html();
$bbuserinfo['badlocation'] = 1; // Used by exec_shut_down();
if ($bbuserinfo['userid'])
{
eval(print_standard_error('nopermission_loggedin', true));
}
else
Replace that, with:
$postvars = construct_post_vars_html();
$bbuserinfo['badlocation'] = 1; // Used by exec_shut_down();
if (($bbuserinfo['usergroupid']==$warn_opts['banned_usergroup_id'] OR $bbuserinfo['usergroupid']==$warn_opts['troll_usergroup_id']) AND $bbuserinfo['userid'])
{
eval(print_standard_error('nopermission_banned', true));
}
if ($bbuserinfo['userid'] AND (!$bbuserinfo['usergroupid']==$warn_opts['banned_usergroup_id'] OR !$bbuserinfo['usergroupid']==$warn_opts['troll_usergroup_id'])
{
eval(print_standard_error('nopermission_loggedin', true));
}
else
Also, create a new phrase, named nopermission_banned, its type being Front-End Error Messages, which says something like:
<p><strong>$bbuserinfo[username]</strong>,<p> You do not have permission to access the forums, because you are temporarily banned.<p>Sorry, we hope to see you again in our forums soon.
<p><div align="$stylevar[right]"> <a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]">Log Out</a> <a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a> </div>
Try this out and let me know if it works, I have a reservation, since I am not sure if warn_opts have been evaluated at that point. If not, I'll give you a better solution tomorrow.
Delphiprogrammi
01-16-2005, 09:34 PM
hi sv1cec ,
yeah i forgot about the logged in part it is /includes/functions.php you're right
however i tryed this on my "testvb" board and this block of code is giving me a parse error
if($bbuserinfo['userid']) AND !$bbuserinfo['usergroupid']==$warn_opts['banned_usergroup_id'] OR !$bbuserinfo['usergroupid']==$warn_opts['troll_usergroup_id'])
{
eval(print_standard_error('nopermission_loggedin', true));
}
anyway time to sleep now :tired:
sv1cec
01-17-2005, 09:21 AM
The new version includes the checking for the special message that banned users receive when they try to log in.
Rgds to all
Delphiprogrammi
01-17-2005, 10:32 AM
The new version includes the checking for the special message that banned users receive when they try to log in.
Rgds to all
hi sv1cec,
thanks for the new version but i'm facing a problem the modification that takes care of the "special message" for banned users well i banned my test account just to see what happens and the PHP parser gives me this error
Fatal error: Call to a member function on a non-object in /path/to/includes/functions.php on line 2066
line 2066 from /includes/adminfunctions.php is
$warn_opts=$DB_site->query_first("select * from ".TABLE_PREFIX."warning_options where oid='1'");
i can't see anything wrong it
rgds
sv1cec
01-17-2005, 11:36 AM
Nothing's wrong with that phrase, what I ... forgot to tell you guys, was that you have to do another edit in the functions file. Scroll a bit higher up from where you made that mod, and find a phrase that looks like:
global $vboptions, $logincode, $url, $bbuserinfo, $session, $stylevar;
Replace that with:
global $DB_site, $vboptions, $logincode, $url, $bbuserinfo, $session, $stylevar;
Don't expect me to be perfect at 08:30 am, not enough coffee in my system yet.
Delphiprogrammi
01-17-2005, 11:43 AM
Nothing's wrong with that phrase, what I ... forgot to tell you guys, was that you have to do another edit in the functions file. Scroll a bit higher up from where you made that mod, and find a phrase that looks like:
global $vboptions, $logincode, $url, $bbuserinfo, $session, $stylevar;
Replace that with:
global $DB_site, $vboptions, $logincode, $url, $bbuserinfo, $session, $stylevar;
Don't expect me to be perfect at 08:30 am, not enough coffee in my system yet.
nobody is perfect my friend errors /mistakes do happen we are all humans not *machines*
i searched the web about this error and found out it was something with a global statement already i just had no idea where i'll get back to you if that works and do not worry about to much ;)
Delphiprogrammi
01-17-2005, 12:07 PM
sv1cec,
YES YES man can i buy a bucket of coffee :D :D working fine i modified the standerd "print_no_permission()" function
function print_no_permission()
{
global $DB_site,$vboptions,$logincode,$url,$bbuserinfo,$s ession,$stylevar;
if(!$logincode)
{
$logincode=construct_login_code();
}
$postvars=construct_post_vars_html();
$bbuserinfo['badlocation'] = 1; // Used by exec_shut_down();
$warn_opts=$DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "warning_options WHERE oid='1'");
if (($bbuserinfo['usergroupid']==$warn_opts['banned_usergroup_id'] OR $bbuserinfo['usergroupid']==$warn_opts['troll_usergroup_id']) AND $bbuserinfo['userid'])
{
$ban = $DB_site->query_first("SELECT liftdate FROM " . TABLE_PREFIX . "userban WHERE userid=$bbuserinfo[userid]");
if ($ban['liftdate']=='0')
{
$until="permanently banned";
}
else
{
$until= vbdate ( $vboptions['dateformat'], $ban[liftdate] );
$until=" temporarily banned, until the $until";
}
eval(print_standard_error('nopermission_banned', true));
}
// test
if($bbuserinfo['userid'])
{
eval(print_standard_error('nopermission_loggedin', true));
}
else
{
$scriptpath = htmlspecialchars_uni(SCRIPTPATH);
define('VB_ERROR_PERMISSION', true);
eval(print_standard_error('nopermission_loggedout' , false));
}
}
thanks man for sorting that one out
sv1cec
01-20-2005, 11:17 AM
Three days with no reported errors or problems??!!!
OK, so now it's time to start thinking of new things to add.
Rgds
jluerken
01-20-2005, 11:35 AM
Three days with no reported errors or problems??!!!
OK, so now it's time to start thinking of new things to add.
Rgds
Oh please no. An update once every two month is enough I think.
I really don't like it to update a hack twice a week :D
Dennis B
01-20-2005, 09:25 PM
Oh please no. An update once every two month is enough I think.
I really don't like it to update a hack twice a week :D
These are days when we upgrade vBulletin every week, why not our hacks...? :D:D
sv1cec
01-21-2005, 04:10 AM
Tell me about it, for 3.0.3 to .4 to .5 and now to .6.
Thank God, it did't take me more than 2 hours to do all my hacks and I have about 20 of them installed (little and biggies).
Rgds
beano33
01-21-2005, 05:06 AM
Three days with no reported errors or problems??!!!
OK, so now it's time to start thinking of new things to add.
Rgds
Blocking open proxies from registering would be a nice addon.
https://vborg.vbsupport.ru/showthread.php?t=72442 :D
It's hard to keep banned users out when all they have to do is add the proxy extension to firefox.
sv1cec
01-21-2005, 05:48 AM
Blocking open proxies from registering would be a nice addon.
https://vborg.vbsupport.ru/showthread.php?t=72442 :D
It's hard to keep banned users out when all they have to do is add the proxy extension to firefox.
I am sorry, but this is not something related to the AWS. It's a different issue all together. Also, I do not have the knowledge to address it.
Sorry :-(
Delphiprogrammi
01-21-2005, 08:36 AM
there is no way to detect anonymous proxys so .... impossible todo proxy server pass variables if those variables aren't passes php doesn't know it's a proxy does it ? what you could do to keep banned users out is create a custom usergroup with no rights ...
PKRWUD
01-21-2005, 09:16 AM
Three days with no reported errors or problems??!!!
OK, so now it's time to start thinking of new things to add.
Rgds
I've got a lean miss in my F-150 that I can't find...
sv1cec
01-21-2005, 01:04 PM
I've got a lean miss in my F-150 that I can't find...
Well, this is what happens when you get an F-150 only. Why not the F-350? Much more macho and you can have it with a diesel which does not run lean!!! LoL
My old Cherokee is producing all kind of pinging sounds, I learned not to pay too much attention to them. And don't you dare call it a ricer, because it's tires are 5" taller than standard!
Rgds
rh2004
01-21-2005, 11:21 PM
hey.. I am still running the old one .. I was wondering have you fixed the PM popup
box when they receive a warning now?
Because when the user receives a warning they don't get a popup box saying they
have a new PM waiting :)
sv1cec
01-22-2005, 09:07 AM
hey.. I am still running the old one .. I was wondering have you fixed the PM popup
box when they receive a warning now?
Because when the user receives a warning they don't get a popup box saying they
have a new PM waiting :)
Well, I was not aware of it, but now (version 3.1.2) it is corrected. A pop-up window is activated if the user has defined this option in his user CP.
Rgds
---------
John
Revan
01-22-2005, 10:04 AM
Your last 3 instructions in the upgradetolatest from 3.1.1 => 3.1.2 are duplicates of already done edits.
sv1cec
01-22-2005, 10:39 AM
Your last 3 instructions in the upgradetolatest from 3.1.1 => 3.1.2 are duplicates of already done edits.
Yes, you are correct, but I say in the beginning "Start with a vB original file", so there!
Rgds
Revan
01-22-2005, 11:58 AM
O, I didnt notice that.
Then I gotta say that's not very good... First of all I just avoided doing those edits and everything works fine. Second, do you seriously think your hack is the only one that modifies the private.php? I can think of 3 or so without actually checking.
If you want us to remove some code there, tell us that instead of saying "right, now redo every single hack you ever done to private.php" :P
sv1cec
01-22-2005, 01:13 PM
O, I didnt notice that.
Then I gotta say that's not very good... First of all I just avoided doing those edits and everything works fine. Second, do you seriously think your hack is the only one that modifies the private.php? I can think of 3 or so without actually checking.
If you want us to remove some code there, tell us that instead of saying "right, now redo every single hack you ever done to private.php" :P
And you are right Sir, I'll try to change the instructions. The reason I did that, was because I am not sure at which version the users are, so they might not be able to find the code they need to change. Stupid of me, I assume.
Let me see if I can rephrase those instructions.
sv1cec
01-22-2005, 01:41 PM
Can someone who is still using AWS Version 3.1.1 (hasn't yet upgraded to 3.1.2) send me a section of his private.php file?
I need the section which starts from:
// check for valid users
and ends with:
// query recipients
I would appreciate that, either post it here, or send it at my e-mail or via PM.
Tnx
Bolas
01-22-2005, 02:14 PM
uhm.. no-backup philosophy? ^^
sv1cec
01-22-2005, 02:38 PM
uhm.. no-backup philosophy? ^^
Well, my backups are going back to 3.0.0, but in the mean time, I also got involved in a vB upgrade, which eventually left me in a state of confusion. So in order to avoid giving out false instructions, I think it is better to ask for some help.
sv1cec
01-22-2005, 02:43 PM
:) here
Sorry JimpsEd, that, I have (as I said, back to 3.0.0), what I need is that section of the private.php file.
Rgds
Ah ok.. I thought this could be taken from your instructions. I'll find the file when I get home and try get the code :)
Rhoads
01-23-2005, 12:49 AM
Hi sv1cec is it possible to change the warn and the view text in the postbit in two nice buttons. Or maby added it to the thread tools menu.
sv1cec
01-23-2005, 02:00 PM
Hi sv1cec is it possible to change the warn and the view text in the postbit in two nice buttons. Or maby added it to the thread tools menu.
I could make a couple of buttons, but they will be something like "Warn User" and "View User Warnings", without the name of the user. vB produces a button, with whatever text you want in there, but I haven't the faintest idea how they make it, it's a "class" thing, and I do not even know where classes are stored in the files.
If that's OK with you, let me know.
Rhoads
01-23-2005, 02:18 PM
No, I am no coder hehe.
I wondered myself it was possible to do.
Thnx anyway
sv1cec
01-25-2005, 08:11 AM
No, I am no coder hehe.
I wondered myself it was possible to do.
Thnx anyway
If you do not mind the fact that the button will not say "Warn John" but "Warn User" (without the user name), I can do it for you
Rgds
sv1cec
01-25-2005, 08:15 AM
Can someone send me that part of the private.php file, I asked for, a couple of posts back?
Rgds
Rhoads
01-25-2005, 08:50 AM
If you do not mind the fact that the button will not say "Warn John" but "Warn User" (without the user name), I can do it for you
Rgds
Yes why not, when you press on the button you can see the user who you warned , ;)
GoranTornqvist
01-25-2005, 11:50 AM
Hello, I've just installed AWS "by the book", version 3.1.2
I get the following errors in admincp:
When clicking Statistics - Bans per User:
/admincp/admin_warn.php
Database error in vBulletin 3.0.6:
Invalid SQL: select b.*, u.*, a.username AS warner, w.*, wt.* from ban_dates as b
LEFT JOIN user AS u ON(u.userid = b.banned_user)
LEFT JOIN user AS a ON(a.userid = b.banned_by)
LEFT JOIN warnings AS w ON(w.wid = b.banned_warning)
LEFT JOIN warning_types AS wt ON(wt.tid = w.warned_warning_id)
ORDER BY b.banned_user, b.banned_ban LIMIT 0,
mysql error: You have an error in your SQL syntax.
When clicking Statistics - Warnings per User
/admincp/admin_warn.php
Invalid SQL: select * from
user u where warnings>0 ORDER BY userid ASC LIMIT 0,
mysql error: You have an error in your SQL syntax.
Looks like the $perpage variable isn't set for some reason, see LIMIT 0,
A bug?
What should I check for?
Thanks for any info :)
Delphiprogrammi
01-25-2005, 12:05 PM
no that can't be a bug why ? because it works in here probably you have a typo somewhere also if you have bans already already you must run the included update_bandates.php script
$get_bans=$DB_site->query("select b.*, u.*, a.username AS warner, w.*, wt.* from ".TABLE_PREFIX."ban_dates as b
LEFT JOIN " . TABLE_PREFIX . "user AS u ON(u.userid = b.banned_user)
LEFT JOIN " . TABLE_PREFIX . "user AS a ON(a.userid = b.banned_by)
LEFT JOIN " . TABLE_PREFIX . "warnings AS w ON(w.wid = b.banned_warning)
LEFT JOIN " . TABLE_PREFIX . "warning_types AS wt ON(wt.tid = w.warned_warning_id)
ORDER BY $orderby LIMIT $startat, $perpage");
GoranTornqvist
01-25-2005, 01:17 PM
Already run /admincp/update_ban_dates.php before.
This is weird, if I add this row, just before the code you specified above:
$perpage = 10;
it works!!!
so the $perpage does indeed loose its value somewhere...maybe a typo, I don't know.
$perpage=$warn_opts['warnings_per_page'];
echo "warnings_per_page=".$warn_opts['warnings_per_page']."<br>";
Told me that $warn_opts['warnings_per_page'] is empty. Where is this variable declared, assigned?
Any other ideas?
sv1cec
01-25-2005, 01:24 PM
no that can't be a bug why ? because it works in here probably you have a typo somewhere also if you have bans already already you must run the included update_bandates.php script
$get_bans=$DB_site->query("select b.*, u.*, a.username AS warner, w.*, wt.* from ".TABLE_PREFIX."ban_dates as b
LEFT JOIN " . TABLE_PREFIX . "user AS u ON(u.userid = b.banned_user)
LEFT JOIN " . TABLE_PREFIX . "user AS a ON(a.userid = b.banned_by)
LEFT JOIN " . TABLE_PREFIX . "warnings AS w ON(w.wid = b.banned_warning)
LEFT JOIN " . TABLE_PREFIX . "warning_types AS wt ON(wt.tid = w.warned_warning_id)
ORDER BY $orderby LIMIT $startat, $perpage");
I do not think it is a bug, and I do not think it is a typo, the reason is that admin_warn.php is not a file the user edits, it is in the zip file. And it can't by a bug, because, as Delphi says, it works elsewhere.
Check your warning_options table in your database to see what value it has in that column. If it has nothing, set it from the AWS Options and check again.
BUT: I would strongly advise that you download and install the latest version. Use the uninstaller to uninstall the previous one, and then run the install_warn.php file again, from the newest version (I'll be uploading version 3.1.3 in a few minutes).
GoranTornqvist
01-25-2005, 01:30 PM
Hmm...wtf?!? :)
My warning_options table is empty...how could that be...gaaaah!!!
I'll try reinstalling it.
EDIT: thanks for the help :)
GoranTornqvist
01-25-2005, 01:35 PM
Allrighty...now it works...must have missed some part in the installation.
But the installationprocedure was no picknick, a lot of messing around in the code :) , and I'm no newbie...it would be great to have a more simple installation. Anyway, thanks for the help.
Jamsoft
01-25-2005, 01:40 PM
What would be the "upgrade" procedure to apply the latest patch? I just got done installing this on 5 forums, and like the idea of the buttons instead of the text.
Can I just drop a few files in, or do I need to hack some more files?
hello
01-25-2005, 02:09 PM
you haven't put the attachment on yet
Rhoads
01-25-2005, 02:15 PM
Version 3.1.3 (released Saturday January 25th, 2005 GMT 15:25)
The "Warn XYZ" and "View XYZ's Warnings" links can now be substituted by two buttons. An option has been added in the Warning System Options, in your AdminCP, in order to select the style of those links (text or buttons).
As always, let me know if you have any problems.
Splendid sv1cec the buttons option, but it is Tuesday today :laugh:
Oke I installed 3.1.3 now, when de attachment is comming :squareeyed:
Delphiprogrammi
01-25-2005, 02:46 PM
where's the new zip ?
sv1cec
01-25-2005, 03:01 PM
That's what's happening when two babies start yelling together. You update something then leave something else out. Thank God they were asleep when I did the coding work.
OK, I just upload the zip and corrected the day LoL.
Now, the upgrade procedure is described in a file called "UpgradeToLatestVersion.txt" in the zip file. In reality, it's a couple of files you have to edit, two templates and run a query. The file edits are done in files you have already edited.
No biggie.
Rgds
docvader
01-25-2005, 04:20 PM
I just installed this truly wonderful hack yesterday. Very impressive; kudos to all who have contributed to it.
And today, a new addition, LOL.
But, I'm trying to upgrade, and, the first part of the instructions:
UPDATE `".TABLE_PREFIX."warning_options` SET version='3.1.3' WHERE oid='1'leads to this error, for me:An error occurred while attempting to execute your query. The following information was returned.
error number: 1103
error desc: Incorrect table name '".TABLE_PREFIX."warning_options'
The install of 3.1.2 yesterday, was flawless, and the hack works perfectly.
I have a warning_options table, but, my vbulletin does not use prefixes, as it is an upgrade from an old 2.xx version.
Am I missing something here?
Thanks,
rich
Torqued
01-25-2005, 04:29 PM
Hey, John:
When you update the 1st post, can you add the version # so that we can tell where we are w/ what we have installed vs what is posted here?
:)
Thanks!
Delphiprogrammi
01-25-2005, 04:37 PM
people,
ALWAYS store a "working" version of the modified files BEFORE you try to upgrade so you can get everything back up and running with a minimum of "no working" time
sv1cec,
in your upgradetolatestversion.txt instructions are two database querys
1) this query updates the AWS version number (obviously)
2) that query will add a column in the warning_options table called textbutoption
i'm not sure since i see other querys here are that all database querys whe need to run to upgrade to the latest version ? i don't use that other system i always used your AWS i'm on 3.1.2 and no we cannot stop butter you with questions but when it's working i'll send you some coffee lol :D
edit
my links in the memberinfo info template disapperd ??
my links in the postbit template are gone to :S
rh2004
01-25-2005, 05:49 PM
Hi...
I have a question
Im goingto upgrade from 3.0.3 this week and was wondering am I going to
loose the info or anything from the users that have warnings
- Upload new files
- Run datebase update
- Download all new mods
- Re-add all mods/check through
I don't have to use upgrade on the mods? just do it as new install?
sv1cec
01-25-2005, 05:51 PM
I just installed this truly wonderful hack yesterday. Very impressive; kudos to all who have contributed to it.
And today, a new addition, LOL.
But, I'm trying to upgrade, and, the first part of the instructions:
leads to this error, for me:
The install of 3.1.2 yesterday, was flawless, and the hack works perfectly.
I have a warning_options table, but, my vbulletin does not use prefixes, as it is an upgrade from an old 2.xx version.
Am I missing something here?
Thanks,
rich
Remove the ".TABLE_PREFIX.", if you are not using a table prefix.
Rgds
sv1cec
01-25-2005, 05:51 PM
Hey, John:
When you update the 1st post, can you add the version # so that we can tell where we are w/ what we have installed vs what is posted here?
:)
Thanks!
I always update the 1st post with the most recent version number, it's right at the bottom.
Rgds
Torqued
01-25-2005, 05:52 PM
I always update the 1st post with the most recent version number, it's right at the bottom.
Rgds
I mean in the title. :) So I can quickly see how far behind I am. lol.
sv1cec
01-25-2005, 05:54 PM
people,
ALWAYS store a "working" version of the modified files BEFORE you try to upgrade so you can get everything back up and running with a minimum of "no working" time
sv1cec,
in your upgradetolatestversion.txt instructions are two database querys
1) this query updates the AWS version number (obviously)
2) that query will add a column in the warning_options table called textbutoption
i'm not sure since i see other querys here are that all database querys whe need to run to upgrade to the latest version ? i don't use that other system i always used your AWS i'm on 3.1.2 and no we cannot stop butter you with questions but when it's working i'll send you some coffee lol :D
edit
my links in the memberinfo info template disapperd ??
my links in the postbit template are gone to :S
Did you copy the pictures to your web server? If you select the text option, do your links re-appear?
Oh, I wrote in the instructions that there is a new option, which controls the appearance of those links, didn't I? Go into your Warning System Options and check the option before the last. If you haven't set this, then your links will disappear.
Rgds
sv1cec
01-25-2005, 06:06 PM
Hi...
I have a question
Im goingto upgrade from 3.0.3 this week and was wondering am I going to
loose the info or anything from the users that have warnings
- Upload new files
- Run datebase update
- Download all new mods
- Re-add all mods/check through
I don't have to use upgrade on the mods? just do it as new install?
You got me puzzled here, in the beginning, I though you were upgrading AWS from 3.0.3 to 3.1.3. You are going to upgrade vB from 3.0.3 to the latest, right?
Well, I got some news for you. Don't re-install your hacks. Get Beyond Compare or a similar program and just copy the modifications you have done in the 3.0.3 files to the 3.0.6 version files. Took me about 1 hour to do all of them, and I have about 20 hacks installed in my system.
One thing that will not work after the upgrade, is the Message Tag. For some wierd reason, every time I upgrade the vB software, the Message Tag option disappears. It' s easy to re-install it though, just run the last query from the installation script, which inserts a row in the setting table.
Rgds
sv1cec
01-25-2005, 06:07 PM
I mean in the title. :) So I can quickly see how far behind I am. lol.
OK, I'll do it, just for you! LoL
sv1cec
01-25-2005, 06:11 PM
Allrighty...now it works...must have missed some part in the installation.
But the installationprocedure was no picknick, a lot of messing around in the code :) , and I'm no newbie...it would be great to have a more simple installation. Anyway, thanks for the help.
Well, I wish I knew a better way to do the file and the template updates, but I do not. You see, I am way past my programming days here, at 47. I just do this, because I use this hack in my own site, so I thought I could share the mods I did for myself, with the rest of you. Someone could create a hack which would make the file editing and the templates editing easier, that would be the hack of the year, not of the month, but definitely this is not going to be me.
Sorry :-(
Bolas
01-25-2005, 08:36 PM
Someone could create a hack which would make the file editing and the templates editing easier, that would be the hack of the year
vb4? :)
rh2004
01-26-2005, 02:51 AM
Get Beyond Compare or a similar program?
Where can I get that?....
(message tag whats the start of the SQL start with)
Also if I was not using that and went through all the mods because I really want to update a few to newer versions do I just re-install the mods after the upgrade of vb to 3.0.6 or do I have to upgrade each mod .. with the updates from the different version numbers to the latest version
sv1cec
01-26-2005, 03:55 AM
Get Beyond Compare or a similar program?
Where can I get that?....
(message tag whats the start of the SQL start with)
Also if I was not using that and went through all the mods because I really want to update a few to newer versions do I just re-install the mods after the upgrade of vb to 3.0.6 or do I have to upgrade each mod .. with the updates from the different version numbers to the latest version
www.scootersoftware.com
The query for the message tag is this:
INSERT INTO `".TABLE_PREFIX."setting` (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile) VALUES ('messagetag', 'address', '', '', '', '35', '0', '1')
I've set the volatile to 1, which normally means that vB is not touching this setting when upgrading, still every time I upgrade, this setting is gone. I've posted a bug report, but so far no answer.
Upgrading your vB should better be done off line, or on a test server. You should download the latest vB (that can be a very frequent operation these days), and upload it to your server. Run the upgrade script, so that your forum works with the latest release. Then, start applying your hacks, one by one. Install one and test it. Then move to the next. Always keep a backup of the latest working version of your files and of your database.
Rgds
sv1cec
01-26-2005, 09:02 AM
vb4? :)
If vB4 has that feature, I'll be really happy. As long as they do not release vB4 within the next month! I am tired of upgrading.
LoL
sv1cec
01-26-2005, 09:12 AM
Gentlemen,
it looks as if the messagetag issue was my mistake. The folks at vB told me that if volatile=1, the setting will be removed at the next upgrade, so I have to set it to 0, in order for message tag to remain in the settings after the upgrades.
To rectify this issue, please run the following query:
update `setting` set volatile=0 where varname='messagetag'
Remember to add any TABLE_PREFIX if you are using one.
The installation instructions have been changed accordingly.
The funny thing was, that at some time in the past, I had suggested to another developer here, to set volatile=0 in his settings, so that they do not get overwritten at the upgrades. However, in my mind, I had it the opposite way! Go figure.
Rgds
Jamsoft
01-26-2005, 12:03 PM
Get Beyond Compare or a similar program?
Where can I get that?....
You guys should try WinMerge:
http://winmerge.sourceforge.net/
Its free, and it works great. I just used it to upgrade from vb 3.0.3 to 3.0.6.
One of its cool features is it's exclusions. I told it to ignore all lines that started with "||". This way, all dates and version numbers kept in the comments at the TOP and BOTTOM of the files are IGNORED for file comparisons. So when I tell it to only show me different files, it only shows me ones with different CODE changes.
Best of all, its free software. And it works REAL nice.
sifuhall
01-26-2005, 02:03 PM
So how do you know if a file difference is due to a hack you have installed (in the case of many hacks) or a change from vbulletin?
Delphiprogrammi
01-26-2005, 02:39 PM
that's totally your responsebility if you install hacks you must have a checklist of wich hacks you installed there is no support for it the vbulletin licence cleary sells "your are allowed to modify the orginal source code on your own risk" to answer your question i use the modification log hack from here ...
Delphiprogrammi
01-26-2005, 02:42 PM
Did you copy the pictures to your web server? If you select the text option, do your links re-appear?
Oh, I wrote in the instructions that there is a new option, which controls the appearance of those links, didn't I? Go into your Warning System Options and check the option before the last. If you haven't set this, then your links will disappear.
Rgds
yes you did but there wasn't enough coffee in my system yet :p i reverted everything back i'll do the template edits again and activate that option
edit
yup works like a champ
sv1cec
01-26-2005, 05:44 PM
So how do you know if a file difference is due to a hack you have installed (in the case of many hacks) or a change from vbulletin?
Typically, when you patch a file for a hack, you add some comments line before and after each hack code, in other words :
// This is AWS modification
code here
// This is the end of AWS modification
In that way, when you check the file, you know which part of code is due to a hack or it's pure vB.
sv1cec
01-26-2005, 05:45 PM
yes you did but there wasn't enough coffee in my system yet :p i reverted everything back i'll do the template edits again and activate that option
edit
yup works like a champ
Glad you made it!
Rgds
docvader
01-27-2005, 04:55 AM
I'm curious, but it seems that after I added this hack, I can't use the text message box for private messages, using Netscape Navigator or Firefox. But I can still use it in IE. Very strange. Has anyone experienced this? Any idea why this might be happening?
BTW, the hack is working superbly, without problems. Truly a masterpiece.
rich
Delphiprogrammi
01-27-2005, 09:39 AM
well,
i have just tested it with firefox.The textbox for private messages works fine here .carefull with netscape that box uses dhtml is that even supported by netscape ? and netscape itself is that still under development ? didn't use that browser in agers in here that textbox works
jluerken
01-27-2005, 05:20 PM
Hi, sv1cec
I have a small problem with the hack now.
When I am logged in I can start a new thread but if not I am getting this error message when I click on 'new thread'.
Fatal error: Call to a member function on a non-object in /PATH/forum/includes/functions.php on line 2070
On line 2070 in functions.php I have this:
$warn_opts=$DB_site->query_first("select * from ".TABLE_PREFIX."warning_options where oid='1'");
I added this:
<a href="newthread.php?$session[sessionurl]do=newthread&f=$forum[forumid]"><div class="smallfont">[$vbphrase[new_thread]]</a>
to the forumhome_forumbit_level2_post template to be able to create a thread in a forum without the need to enter it.
I am not sure if really AWS is the problem but maybe you can help.
Delphiprogrammi
01-27-2005, 05:36 PM
carefull with adding code ....
the error you get is that your script calls an object wich isn't defined open functions.php and make sure you did all
global $DB_site, $vboptions, $logincode, $url, $bbuserinfo, $session, $stylevar;
you are missing a global statement
rgds
jluerken
01-27-2005, 05:47 PM
carefull with adding code ....
the error you get is that your script calls an object wich isn't defined open functions.php and make sure you did all
global $DB_site, $vboptions, $logincode, $url, $bbuserinfo, $session, $stylevar;
you are missing a global statement
rgds
Can you tell me which is the one that makes my newthread addition from above work and where I have to add code?
sv1cec
01-27-2005, 05:48 PM
I'm curious, but it seems that after I added this hack, I can't use the text message box for private messages, using Netscape Navigator or Firefox. But I can still use it in IE. Very strange. Has anyone experienced this? Any idea why this might be happening?
BTW, the hack is working superbly, without problems. Truly a masterpiece.
rich
I've tested the hack with IE, Netscape Communicator 7.2 and Firefox. There is not a hint of a problem with any of them. Please check the mods you made in the private.php file.
Rgds
sv1cec
01-27-2005, 06:11 PM
Hi, sv1cec
I have a small problem with the hack now.
When I am logged in I can start a new thread but if not I am getting this error message when I click on 'new thread'.
Fatal error: Call to a member function on a non-object in /PATH/forum/includes/functions.php on line 2070
On line 2070 in functions.php I have this:
$warn_opts=$DB_site->query_first("select * from ".TABLE_PREFIX."warning_options where oid='1'");
I added this:
<a href="newthread.php?$session[sessionurl]do=newthread&f=$forum[forumid]"><div class="smallfont">[$vbphrase[new_thread]]</a>
to the forumhome_forumbit_level2_post template to be able to create a thread in a forum without the need to enter it.
I am not sure if really AWS is the problem but maybe you can help.
I am not sure I understand your problem. Are not-logged-in users allowed to create new threads in your site? I've never tried anything like that, I do not allow non-logged-in users to create threads. Typically, what you should get in this situation is the screen which asks you to log in. If you do not get that, check the modification you did, in functions.php. You probably haven't replaced the globals line correctly.
Rgds
jluerken
01-27-2005, 06:28 PM
I think I will solve this with an if condition that does not show those links to guests browsing the board :D
jluerken
01-27-2005, 06:33 PM
This is working fine for me
<if condition="$bbuserinfo['usergroupid'] != 1"><br><a href="newthread.php?$session[sessionurl]do=newthread&f=$forum[forumid]"><div class="smallfont">[$vbphrase[new_thread]]</a></div></if>
and quite logic cause why should I show this link when the people are not allowed to make a new post anyway :D
sv1cec
01-27-2005, 06:37 PM
I think I will solve this with an if condition that does not show those links to guests browsing the board :D
This is not a fix to your problem, the fix is to check that you have made the mods properly. The only case I touched the functions.php file, is to add the special message for banned users. It's only a couple of things to check, the mods in that file, are very straightforward. Do check them out and make sure they are correct.
sv1cec
01-27-2005, 06:39 PM
This is working fine for me
<if condition="$bbuserinfo['usergroupid'] != 1"><br><a href="newthread.php?$session[sessionurl]do=newthread&f=$forum[forumid]"><div class="smallfont">[$vbphrase[new_thread]]</a></div></if>
and quite logic cause why should I show this link when the people are not allowed to make a new post anyway :D
This will also allow the registered but not yet activated users to see the link.
This is not the fix to your problem, check that you have made the changes in functions.php properly.
Rgds
sv1cec
01-28-2005, 08:51 AM
Just to let you know, that I improved on the way the recently added buttons worked. Now they act like real buttons, click on them and they look as if they are pressed. Also, the name of the user appears again on the button, like it does in the textual links.
A few easy changes in your postbit and MEMBERINFO templates.
Rgds
Delphiprogrammi
01-28-2005, 10:29 AM
hi,
well i did this updated and instead of those images there are buttons but if you click the button nothing happens ? i'm i missing something here ?
sv1cec
01-28-2005, 11:03 AM
hi,
well i did this updated and instead of those images there are buttons but if you click the button nothing happens ? i'm i missing something here ?
Did you erase only the <img things, or also the <a href ???
rgds
Delphiprogrammi
01-28-2005, 11:14 AM
Did you erase only the <img things, or also the <a href ???
rgds
no the a href="" stuff is still there i just replace the img tag and before the "</a>" i add the new code
<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w"></a>
sv1cec
01-28-2005, 11:22 AM
no the a href="" stuff is still there i just replace the img tag and before the "</a>" i add the new code
<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w"></a>
OK, here is the code as it is in my template:
<!-- checks for warning system -->
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
<if condition="$hierarchical=='No'">
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ?
</if>
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6)">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?
</if>
<if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND $post[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?
</if>
</if>
<if condition="$hierarchical=='Yes'">
<if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])) OR ($post[usergroupid]==7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid]) AND $bbuserinfo[usergroupid]==5) OR
($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ?
</if>
<if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5)) OR ($post[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?
</if>
<if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?
</if>
</if>
</if>
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
<if condition="$hierarchical=='No'">
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<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"/></a> ?
</if>
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6)">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v"/></a> ?
</if>
<if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND $post[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v"/></a> ?
</if>
</if>
<if condition="$hierarchical=='Yes'">
<if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])) OR ($post[usergroupid]==7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid]) AND $bbuserinfo[usergroupid]==5) OR
($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
<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"/></a> ?
</if>
<if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5)) OR ($post[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v"/></a> ?
</if>
<if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v"/></a> ?
</if>
</if>
</if>
<!-- end of warning system -->
Rgds
Delphiprogrammi
01-28-2005, 12:47 PM
hi sv1cec,
thanks for the code ;) i copy & pasted that in my postbit template but for some reason (don't ask me why i have no idea) nothing is happening when you click that button however i modified the code a little
<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="javascript:window.location=http://www.yourserver.com/forums/Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]">
then the button works
rgds
sv1cec
01-28-2005, 01:12 PM
CAUTION: The latest mod which was implemented with version 3.1.4 DOES NOT WORK with Internet Explorer. Do not install it, until I find the proper solution.
sv1cec
01-28-2005, 01:25 PM
hi sv1cec,
thanks for the code ;) i copy & pasted that in my postbit template but for some reason (don't ask me why i have no idea) nothing is happening when you click that button however i modified the code a little
<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="javascript:window.location=http://www.yourserver.com/forums/Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]">
then the button works
rgds
Are you sure it works with this code you attached?
I try it in Internet Explorer and it does not work, with or without that onclick thing.
Delphiprogrammi
01-28-2005, 01:59 PM
no now it doesn't work anymore fu** it worked the first time i tryed it
Exernon
01-28-2005, 02:02 PM
CAUTION: The latest mod which was implemented with version 3.1.4 DOES NOT WORK with Internet Explorer. Do not install it, until I find the proper solution.So why not place the 100% working version instead of showing the 3.1.4 to the public?
Bolas
01-28-2005, 02:09 PM
because Firefox is The Solution! :)
sv1cec
01-28-2005, 02:15 PM
OK, I found it. It now works OK with IE, Firefox and Netscape, so everyone should be happy.
Sorry about that, but I couldn't believe that it would work with Firefox and not work with IE.
I'll upload the corrected files in a few moments.
Rgds
rh2004
01-28-2005, 02:22 PM
Hey...
How do I add this to all the styles on my site because it only works on the default
one... the warning bit (View Warnings/ Warn User) it gives me a blank white page,
when I click it...
Delphiprogrammi
01-28-2005, 02:23 PM
look like internet explorer requirers (microsoft JScript) requirers another syntax then the standard javascript that code i added before works in firefox
sv1cec
01-28-2005, 02:31 PM
look like internet explorer requirers (microsoft JScript) requirers another syntax then the standard javascript that code i added before works in firefox
In Firefox, the code worked as I had it initially. No need for the onclick. OK, go and grab the latest instructions. Everything works with IE, Netscape and Firefox.
Rgds
sv1cec
01-28-2005, 02:33 PM
So why not place the 100% working version instead of showing the 3.1.4 to the public?
Because I had put version 3.1.4 in public this morning. I haven't thought to test this with IE, I tested it with Firefox and it worked perfect. I needed some time to fix the bug, so I put this warning here, and in the announcement of the hack.
Should I have kissed your hand as well?
sv1cec
01-28-2005, 02:34 PM
Hey...
How do I add this to all the styles on my site because it only works on the default
one... the warning bit (View Warnings/ Warn User) it gives me a blank white page,
when I click it...
There was a post that explained that, somewhere in this thread. Try doing a thread search.
Rgds
Delphiprogrammi
01-28-2005, 03:39 PM
works fine now ;)
rh2004
01-28-2005, 09:14 PM
Wow ... this is now awesome
Loads of new stuff since my version...
Thanks loads for all the work ...
Here is what I did ...
I upgraded my files to 3.0.6
Ran the update
Went through every file on my site using the merge ...
Re-added this mod
Ran the install for this
And wow it works I think, I hope fine :)
rh2004
01-28-2005, 10:36 PM
Oh I got a problem :(
This is my MEMBERINFO
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
$headinclude
</head>
<body>
$header
$navbar
<!-- main info - avatar, profilepic etc. -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
<!-- checks for warning system -->
<td class="thead" align="right">
<div class="smallfont" style="float:$stylevar[right]">
<if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes' AND $buttons=='Text'">
<if condition="$hierarchical=='No'">
<if condition="($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7">
<a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
</if>
<if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
</if>
</if>
<if condition="$hierarchical=='Yes'">
<if condition="($userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)) OR ($userinfo[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $userinfo[usergroupid]!=6)">
<a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
</if>
<if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
</if>
</if>
</if>
<if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes' AND $buttons=='Buttons'">
<if condition="$hierarchical=='No'">
<if condition="($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7">
<a href='Warn.php?do=WarnUserNoPost&id=$userid'><input type="button" class="button" name="warn" value="Warn $post[username] (non-post related)" accesskey="w" onClick="window.location='Warn.php?do=WarnUserNoPost&id=$userid'"></a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$userinfo[userid]'"></a>
</if>
<if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0">
<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>
</if>
</if>
<if condition="$hierarchical=='Yes'">
<if condition="($userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)) OR ($userinfo[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $userinfo[usergroupid]!=6)">
<a href='Warn.php?do=WarnUserNoPost&id=$userid'><input type="button" class="button" name="warn" value="Warn $post[username] (non-post related)" accesskey="w" onClick="window.location='Warn.php?do=WarnUserNoPost&id=$userid'"></a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$userinfo[userid]'"></a>
</if>
<if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
<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>
</if>
</if>
</if>
<!-- end of warning system -->
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="alt2">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" colspan="3">
<if condition="$userinfo['rank'] OR $userinfo['reputationdisplay']">
<div style="float:$stylevar[right]; padding:4px">
<if condition="$userinfo['rank']"><div align="center">$userinfo[rank]</div></if>
<if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if>
</div>
</if>
<div style="font-size:18pt">$userinfo[musername]</div>
<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
</td>
<td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" align="$stylevar[right]">
<div class="smallfont">
<b>User ID :</b> $userid
<if condition="$viewoption=='All'">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
<if condition="$viewoption=='Mgm' AND $hierarchical=='Yes'">
<if condition="($bbuserinfo[usergroupid]==7 AND $userinfo[userid]==$bbuserinfo[userid])
OR
($bbuserinfo[usergroupid]==7 AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7)
OR
($bbuserinfo[usergroupid]==5 AND $userinfo[userid]==$bbuserinfo[userid])
OR
($bbuserinfo[usergroupid]==5 AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5)
OR
($bbuserinfo[usergroupid]==6)
">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
</if>
</div>
<if condition="$viewoption=='Mgm' AND $hierarchical=='No' AND
(
$bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR
$bbuserinfo[usergroupid]==6
)">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
</td>
<if condition="$show['profilepic']">
<td valign="middle" align="$stylevar[right]" rowspan="2" width="160">
<center><img src="image.php?u=$userinfo[userid]&type=profile&dateline=$userinfo[profilepicdateline]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]" /></center>
</td>
</if>
</tr>
<tr valign="top">
<if condition="$show['avatar']">
<td colspan="3">
<div class="smallfont">User's avatar :<p><img src="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></div></td>
<else />
<td colspan="3"><div class="smallfont">User's avatar :<p><img src="images/avatars/noavatar.gif"></td>
</if>
<td class="smallfont" valign="middle" align="$stylevar[right]">
<if condition="$show['lastactivity']">
<div><B>$vbphrase[last_activity]:</b> $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span> </div>
</if>
<if condition="$show['currentlocation']">
<div><b><if condition="$userinfo['action']">$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]<else />$vbphrase[offline]</if> </b></div>
</if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- / main info - avatar, profilepic etc. -->
<!-- button row -->
<if condition="$show['profilelinks']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$userinfo['showvcard']">
<td class="vbmenu_control"><a href="member.php?$session[sessionurl]do=vcard&u=$userinfo[userid]">$vbphrase[download_vcard]</a></td>
</if>
<if condition="$show['member']">
<td class="vbmenu_control">
<if condition="$show['addbuddylist']">
<a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a>
</if>
</td>
<td class="vbmenu_control">
<if condition="$show['addignorelist']">
<a href="profile.php?$session[sessionurl]do=addlist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a>
</if>
</td>
</if>
<if condition="can_moderate()">
<td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[user_options]</a></td>
</if>
</tr>
</table>
</if>
<!-- / button row -->
<br />
<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
<td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" width="50%">$vbphrase[forum_info]</td>
<td class="tcat" width="50%">$vbphrase[contact_info]</td>
</tr>
<tr valign="top">
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
</div>
</div>
<fieldset class="fieldset">
<legend>$vbphrase[posts]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
</td>
</tr>
<if condition="$vboptions['profilelastpost']">
<tr>
<td>
$vbphrase[last_post]:<br />
<a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br />
$userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span>
</td>
</tr>
</if>
<tr>
<td><a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
</tr>
<tr>
<td><a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&s earchuser=$userinfo[urlusername]"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
</tr>
</table>
</fieldset>
<if condition="$vboptions['usereferrer']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[referrals]: <strong>$referrals</strong><br />
<if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&shortname=admindonate&userid=$post[userid]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: <strong>$points</strong> (<a href="ushop.php?do=a&shortname=donate&userid=$post[userid]" target="_blank">Donate</a>)
</div>
</div>
<else />
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
<if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&shortname=admindonate&userid=$post[userid]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: <strong>$points</strong> (<a href="ushop.php?do=a&shortname=donate&userid=$post[userid]" target="_blank">Donate</a>)
</div>
</div>
</if>
<if condition="$show['usernotes']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[user_notes]: <strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>]
<if condition="$show['usernotetotal']">
<br />($vbphrase[last]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
</if>
</div>
</div>
</if>
</div>
</div>
</td>
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$show['homepage']">
<tr>
<td>
$vbphrase[home_page]:<br />
<a href="$userinfo[homepage]" target="_blank">$userinfo[homepage]</a>
</td>
</tr>
</if>
<tr>
<td>
$vbphrase[email]:<br />
<a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a>
</td>
</tr>
<if condition="$userinfo['pm']">
<tr>
<td>
$vbphrase[private_message]:<br />
<a href="private.php?$session[sessionurl]do=newpm&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>
</table>
</div>
<if condition="$show['hasimicons']">
<fieldset class="fieldset">
<legend>$vbphrase[instant_messaging]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$userinfo['showicq']">
<tr>
<td>$userinfo[icqicon]</td>
<td><a href="#" onclick="return imwindow('icq', '$userinfo[userid]', 500, 450)">$userinfo[icq]</a></td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$userinfo[aimicon]</td>
<td><a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)">$userinfo[aim]</a></td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$userinfo[msnicon]</td>
<td><a href="#" onclick="return imwindow('msn', '$userinfo[userid]', 400, 200)">$userinfo[msn]</a></td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$userinfo[yahooicon]</td>
<td><a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)">$userinfo[yahoo]</a></td>
</tr>
</if>
</table>
</fieldset>
</if>
</div>
</div>
</td>
</tr>
<tr>
<td class="tcat" width="50%">$vbphrase[additional_information]</td>
<td class="tcat" width="50%">$vbphrase[group_memberships]</td>
</tr>
<tr valign="top">
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<div class="fieldset">
<if condition="$userinfo['birthday'] OR $customfields">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$userinfo['birthday']">
<tr>
<td>
<strong>$vbphrase[birthday]</strong>:<br />
$userinfo[birthday]
</td>
</tr>
</if>
$customfields
</table>
<else />
<em>$vbphrase[n_a]</em>
</if>
</div>
</div>
</div>
</td>
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]px" border="0">
<tr>
<if condition="$show['membergroups']">
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_a_member_of_the_following_groups]</phrase></strong>:</td>
<else />
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td>
</if>
</tr>
$membergroupbits
</table>
</div>
</div>
</div>
</td>
</tr>
</table>
$footer
</body>
</html>
This is my view ... when I edited that file with your changes :ermm:
sv1cec
01-29-2005, 05:00 PM
Oh I got a problem :(
This is my MEMBERINFO
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
$headinclude
</head>
<body>
$header
$navbar
<!-- main info - avatar, profilepic etc. -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
<!-- checks for warning system -->
<td class="thead" align="right">
<div class="smallfont" style="float:$stylevar[right]">
<if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes' AND $buttons=='Text'">
<if condition="$hierarchical=='No'">
<if condition="($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7">
<a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
</if>
<if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
</if>
</if>
<if condition="$hierarchical=='Yes'">
<if condition="($userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)) OR ($userinfo[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $userinfo[usergroupid]!=6)">
<a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
</if>
<if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
</if>
</if>
</if>
<if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes' AND $buttons=='Buttons'">
<if condition="$hierarchical=='No'">
<if condition="($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7">
<a href='Warn.php?do=WarnUserNoPost&id=$userid'><input type="button" class="button" name="warn" value="Warn $post[username] (non-post related)" accesskey="w" onClick="window.location='Warn.php?do=WarnUserNoPost&id=$userid'"></a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$userinfo[userid]'"></a>
</if>
<if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0">
<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>
</if>
</if>
<if condition="$hierarchical=='Yes'">
<if condition="($userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)) OR ($userinfo[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $userinfo[usergroupid]!=6)">
<a href='Warn.php?do=WarnUserNoPost&id=$userid'><input type="button" class="button" name="warn" value="Warn $post[username] (non-post related)" accesskey="w" onClick="window.location='Warn.php?do=WarnUserNoPost&id=$userid'"></a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$userinfo[userid]'"></a>
</if>
<if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
<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>
</if>
</if>
</if>
<!-- end of warning system -->
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="alt2">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" colspan="3">
<if condition="$userinfo['rank'] OR $userinfo['reputationdisplay']">
<div style="float:$stylevar[right]; padding:4px">
<if condition="$userinfo['rank']"><div align="center">$userinfo[rank]</div></if>
<if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if>
</div>
</if>
<div style="font-size:18pt">$userinfo[musername]</div>
<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
</td>
<td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" align="$stylevar[right]">
<div class="smallfont">
<b>User ID :</b> $userid
<if condition="$viewoption=='All'">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
<if condition="$viewoption=='Mgm' AND $hierarchical=='Yes'">
<if condition="($bbuserinfo[usergroupid]==7 AND $userinfo[userid]==$bbuserinfo[userid])
OR
($bbuserinfo[usergroupid]==7 AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7)
OR
($bbuserinfo[usergroupid]==5 AND $userinfo[userid]==$bbuserinfo[userid])
OR
($bbuserinfo[usergroupid]==5 AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5)
OR
($bbuserinfo[usergroupid]==6)
">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
</if>
</div>
<if condition="$viewoption=='Mgm' AND $hierarchical=='No' AND
(
$bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR
$bbuserinfo[usergroupid]==6
)">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
</td>
<if condition="$show['profilepic']">
<td valign="middle" align="$stylevar[right]" rowspan="2" width="160">
<center><img src="image.php?u=$userinfo[userid]&type=profile&dateline=$userinfo[profilepicdateline]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]" /></center>
</td>
</if>
</tr>
<tr valign="top">
<if condition="$show['avatar']">
<td colspan="3">
<div class="smallfont">User's avatar :<p><img src="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></div></td>
<else />
<td colspan="3"><div class="smallfont">User's avatar :<p><img src="images/avatars/noavatar.gif"></td>
</if>
<td class="smallfont" valign="middle" align="$stylevar[right]">
<if condition="$show['lastactivity']">
<div><B>$vbphrase[last_activity]:</b> $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span> </div>
</if>
<if condition="$show['currentlocation']">
<div><b><if condition="$userinfo['action']">$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]<else />$vbphrase[offline]</if> </b></div>
</if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- / main info - avatar, profilepic etc. -->
<!-- button row -->
<if condition="$show['profilelinks']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$userinfo['showvcard']">
<td class="vbmenu_control"><a href="member.php?$session[sessionurl]do=vcard&u=$userinfo[userid]">$vbphrase[download_vcard]</a></td>
</if>
<if condition="$show['member']">
<td class="vbmenu_control">
<if condition="$show['addbuddylist']">
<a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a>
</if>
</td>
<td class="vbmenu_control">
<if condition="$show['addignorelist']">
<a href="profile.php?$session[sessionurl]do=addlist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a>
</if>
</td>
</if>
<if condition="can_moderate()">
<td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[user_options]</a></td>
</if>
</tr>
</table>
</if>
<!-- / button row -->
<br />
<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
<td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" width="50%">$vbphrase[forum_info]</td>
<td class="tcat" width="50%">$vbphrase[contact_info]</td>
</tr>
<tr valign="top">
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
</div>
</div>
<fieldset class="fieldset">
<legend>$vbphrase[posts]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
</td>
</tr>
<if condition="$vboptions['profilelastpost']">
<tr>
<td>
$vbphrase[last_post]:<br />
<a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br />
$userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span>
</td>
</tr>
</if>
<tr>
<td><a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
</tr>
<tr>
<td><a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&s earchuser=$userinfo[urlusername]"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
</tr>
</table>
</fieldset>
<if condition="$vboptions['usereferrer']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[referrals]: <strong>$referrals</strong><br />
<if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&shortname=admindonate&userid=$post[userid]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: <strong>$points</strong> (<a href="ushop.php?do=a&shortname=donate&userid=$post[userid]" target="_blank">Donate</a>)
</div>
</div>
<else />
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
<if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&shortname=admindonate&userid=$post[userid]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: <strong>$points</strong> (<a href="ushop.php?do=a&shortname=donate&userid=$post[userid]" target="_blank">Donate</a>)
</div>
</div>
</if>
<if condition="$show['usernotes']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[user_notes]: <strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>]
<if condition="$show['usernotetotal']">
<br />($vbphrase[last]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
</if>
</div>
</div>
</if>
</div>
</div>
</td>
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$show['homepage']">
<tr>
<td>
$vbphrase[home_page]:<br />
<a href="$userinfo[homepage]" target="_blank">$userinfo[homepage]</a>
</td>
</tr>
</if>
<tr>
<td>
$vbphrase[email]:<br />
<a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a>
</td>
</tr>
<if condition="$userinfo['pm']">
<tr>
<td>
$vbphrase[private_message]:<br />
<a href="private.php?$session[sessionurl]do=newpm&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>
</table>
</div>
<if condition="$show['hasimicons']">
<fieldset class="fieldset">
<legend>$vbphrase[instant_messaging]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$userinfo['showicq']">
<tr>
<td>$userinfo[icqicon]</td>
<td><a href="#" onclick="return imwindow('icq', '$userinfo[userid]', 500, 450)">$userinfo[icq]</a></td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$userinfo[aimicon]</td>
<td><a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)">$userinfo[aim]</a></td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$userinfo[msnicon]</td>
<td><a href="#" onclick="return imwindow('msn', '$userinfo[userid]', 400, 200)">$userinfo[msn]</a></td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$userinfo[yahooicon]</td>
<td><a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)">$userinfo[yahoo]</a></td>
</tr>
</if>
</table>
</fieldset>
</if>
</div>
</div>
</td>
</tr>
<tr>
<td class="tcat" width="50%">$vbphrase[additional_information]</td>
<td class="tcat" width="50%">$vbphrase[group_memberships]</td>
</tr>
<tr valign="top">
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<div class="fieldset">
<if condition="$userinfo['birthday'] OR $customfields">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$userinfo['birthday']">
<tr>
<td>
<strong>$vbphrase[birthday]</strong>:<br />
$userinfo[birthday]
</td>
</tr>
</if>
$customfields
</table>
<else />
<em>$vbphrase[n_a]</em>
</if>
</div>
</div>
</div>
</td>
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]px" border="0">
<tr>
<if condition="$show['membergroups']">
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_a_member_of_the_following_groups]</phrase></strong>:</td>
<else />
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td>
</if>
</tr>
$membergroupbits
</table>
</div>
</div>
</div>
</td>
</tr>
</table>
$footer
</body>
</html>
This is my view ... when I edited that file with your changes :ermm:
I am not sure I understand what the picture shows. Is that a picture of your memberinfo screen or the postbit one? I think this is postbit, and obviously you are using postbit_legacy, not postbit.
It would help if you could be a bit more precise of your problem, and if you could post a picture of a post, which has received some warning, so that I can see where everything fits. As far as I can tell, this is not the standard template either, so ... too many things to check and too confusing info, in your post.
Rgds
rh2004
01-29-2005, 07:49 PM
I did the postbit legacy wrong sorry I have sorted that now... but I have got loads of other problems :surprised:
I don't seem to have the Warn User Or View Warnings on the postbit bar nor is that new image being displayed to warned users (maybe it doesn't work on my past users)
I have these two images in admincp user options... they have no images? :ermm:
When I warn a user by typing in the link to warn them I receive after clicking add warning
Database error in vBulletin 3.0.6:
Invalid SQL: insert into warnings (wid, warned_user, warned_by, warned_time, warned_reason, warned_post, warned_warning_id, caused_ban, warned_status, removed_by, removed_date) values('','129','7','1107035074','','108070','2',' Y','A','','')
mysql error: Unknown column 'caused_ban' in 'field list'
mysql error number: 1054
Date: Saturday 29th of January 2005 04:44:34 PM
Script: http:///Warn.php
Referer: http:///Warn.php?do=WarnUser&id=129&post=108070
Username: xx
IP Address: xx
So is it possible to drop some database fields and keep the warned users as I have around 60 warned - if not would it be better to completely remove it and re-add it I can re-warn them all.
Rhoads
01-29-2005, 09:15 PM
Hi sv1cec
I have installed the warning system (3.1.4) again today on een clean forum (3.0.6). It's amazing how well it works, I had no problems, and it works 100% in 1 time. Very good job.
Only missed 2 gif's for the User Manager (warnuser.gif & viewuserwarnings.gif), but I get that from de older installer and it's working now. Also the warning indicated still the old version 3.1.3, but that I have updated myself to 3.1.4
Well work, and thanks for these fantastic hack.
sv1cec
01-30-2005, 04:38 AM
Yep, you are right, I removed those two images from the upload, when I changed the buttons to the "more sophisticated" ones. Don't worry about it, just download the latest 3.1.5 version and apply the update instructions, just a query to run (to set the version) and one file change in admincp/user.php.
rh2004, have you defined if you want buttons or textual links in the Warning Options? Also, you can add that column in your database table, by running the query:
ALTER TABLE `".TABLE_PREFIX."warnings` ADD COLUMN `caused_ban` char(1) AFTER warned_warning_id
Remember to change TABLE_PREFIX according to your database.
rh2004
01-30-2005, 08:15 AM
OK.. can you tell me what TABLE_PREFIX is.. an example please
It was set on text.. when I changed it I received
Database error in vBulletin 3.0.6:
Invalid SQL: update warning_options set
hierarchical='No',
automatic='No',
automaticpm='No',
autocomments='No',
warner='7',
automatic_warner='0',
collector='',
banned_limit='7',
points_before_banned='10',
warnings_before_banned='',
banned_usergroup_id='11',
troll_usergroup_id='8',
protected_usergroups='5|6|7|6',
aprotected_usergroups='6',
restore_groupid='0',
incr_ban_days='Yes',
max_no_bans='3',
bans_mature='',
viewoption='All',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='Yes',
email_on_ban='No',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='15',
textbutoption='Text'
where oid='1'
mysql error: Unknown column 'autocomments' in 'field list'
mysql error number: 1054
Date: Sunday 30th of January 2005 05:15:05 AM
Script: http:///admincp/admin_warn.php
Referer: http:///admincp/admin_warn.php?act=manageoptions
Username: xx
IP Address: xx
Thanks
sv1cec
01-30-2005, 09:17 AM
Run this query:
ALTER TABLE `".TABLE_PREFIX."warnings` ADD COLUMN `caused_ban` char(1) AFTER warned_warning_id
TABLE_PREFIX is a prefix you have specified, when you installed your vB. It is added in front of each table name. From the message above, you do not seem to need one, so just delete the ".TABLE_PREFIX." from the query above.
You are obviously trying to upgrade to the latest version, form an older one, but not from the previous one. In order to do it, you have to do all the upgrade steps, described in the UpgradeToLatestVersion.txt file, starting from the version you have installed already.
Rgds
rh2004
01-30-2005, 05:48 PM
but I don't know what version im running at all, how can I find out...
sv1cec
01-30-2005, 06:29 PM
but I don't know what version im running at all, how can I find out...
If you didn't have the caused_ban field in that table, you are at around 2.3.1 or something. Lots of changes to get to the latest version. I would suggest that you uninstall and reinstall from scratch.
Rgds
Rhoads
01-30-2005, 06:58 PM
but I don't know what version im running at all, how can I find out...
When you in the admin and go to the Warning System, push on the Manage Warning Types, then you can see the version number of the hack in the right corner
bahawolf
01-30-2005, 07:17 PM
Upgrading from version 3.1.2 it tells me to upload 3 image files:
warnuser.gif, viewuserwarnings.gif and viewyourwarnings.gif
None of which I can find in the zip.
Oh, nevermind.. I see they can be deleted later.. Thanks anyway. :)
bahawolf
01-30-2005, 07:34 PM
Database error in vBulletin 3.0.5:
Invalid SQL: update warning_options set
hierarchical='Yes',
automatic='No',
automaticpm='No',
autocomments='Yes',
warner='0',
automatic_warner='1',
collector='',
banned_limit='7',
points_before_banned='10',
warnings_before_banned='',
banned_usergroup_id='13',
troll_usergroup_id='13',
protected_usergroups='6|6',
aprotected_usergroups='6',
restore_groupid='2',
incr_ban_days='Yes',
max_no_bans='3',
bans_mature='0',
viewoption='All',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='No',
email_on_ban='Yes',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='15',
textbutoption='Text'
where oid='1'
mysql error: Unknown column 'collector' in 'field list'
mysql error number: 1054
I got that updating my AWS Options after upgrading to version 3.1.5
rh2004
01-30-2005, 08:36 PM
If you didn't have the caused_ban field in that table, you are at around 2.3.1 or something. Lots of changes to get to the latest version. I would suggest that you uninstall and reinstall from scratch.
Rgds
Yeah it was around Dec 1ish when I installed it... so how do I un-install it
apart from use the uninstaller... it will be alot easier
Maybe good if you can add the version you are using in the control panel.. :nervous:
I ran the uninstaller.. and now receive this error when I go to /board/
Database error in vBulletin 3.0.6:
Invalid SQL: select * from warning_options where oid='1'
mysql error: Table 'xx_forums.warning_options' doesn't exist
mysql error number: 1146
Date: Sunday 30th of January 2005 05:41:09 PM
Script: http:///board/
Referer:
Username: xx
IP Address: xx
Quote:
Originally Posted by rh2004
but I don't know what version im running at all, how can I find out...
When you in the admin and go to the Warning System, push on the Manage Warning Types, then you can see the version number of the hack in the right corner
Doesn't show me anything...
sv1cec
01-30-2005, 08:53 PM
Yeah it was around Dec 1ish when I installed it... so how do I un-install it
apart from use the uninstaller... it will be alot easier
Maybe good if you can add the version you are using in the control panel.. :nervous:
I ran the uninstaller.. and now receive this error when I go to /board/
Database error in vBulletin 3.0.6:
Invalid SQL: select * from warning_options where oid='1'
mysql error: Table 'xx_forums.warning_options' doesn't exist
mysql error number: 1146
Date: Sunday 30th of January 2005 05:41:09 PM
Script: http:///board/
Referer:
Username: xx
IP Address: xx
Doesn't show me anything...
The uninstaller removes some things, the changes to the files remain. The error is because one of the files is trying to read a table which has been erased by the uninstaller. Now run the installation script and you should be OK, as far as the database is concerned. Then check the .php gfiles and make sure that you have all the necessary changes in them.
rh2004
01-30-2005, 09:24 PM
Yeah as I did remove all the old stuff last time from the php files.. trying it now
rh2004
01-30-2005, 09:42 PM
OK I cannot log in to run the installer
I have replaced the root and includes files with the default vb ones as I thought it would allow me on there but I still get this error
Database error in vBulletin 3.0.6:
Invalid SQL: select * from warning_options where oid='1'
mysql error: Table 'xx_forums.warning_options' doesn't exist
mysql error number: 1146
Date: Sunday 30th of January 2005 06:39:30 PM
Script: http:///board/
Referer:
Username: x
IP Address: xx
bahawolf
01-30-2005, 10:12 PM
Any solution to my problem?
Ganon
01-30-2005, 11:16 PM
I installed the hack, followed all the instructions, but when I hit "warn user" I get a blank page, any ideas?
sv1cec
01-31-2005, 03:52 AM
Database error in vBulletin 3.0.5:
Invalid SQL: update warning_options set
hierarchical='Yes',
automatic='No',
automaticpm='No',
autocomments='Yes',
warner='0',
automatic_warner='1',
collector='',
banned_limit='7',
points_before_banned='10',
warnings_before_banned='',
banned_usergroup_id='13',
troll_usergroup_id='13',
protected_usergroups='6|6',
aprotected_usergroups='6',
restore_groupid='2',
incr_ban_days='Yes',
max_no_bans='3',
bans_mature='0',
viewoption='All',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='No',
email_on_ban='Yes',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='15',
textbutoption='Text'
where oid='1'
mysql error: Unknown column 'collector' in 'field list'
mysql error number: 1054
I got that updating my AWS Options after upgrading to version 3.1.5
Add the 'collector' column, by running this query:
ALTER TABLE `".TABLE_PREFIX."warning_options` ADD COLUMN collector int(10) unsigned AFTER warner
Rgds
sv1cec
01-31-2005, 03:53 AM
OK I cannot log in to run the installer
I have replaced the root and includes files with the default vb ones as I thought it would allow me on there but I still get this error
Database error in vBulletin 3.0.6:
Invalid SQL: select * from warning_options where oid='1'
mysql error: Table 'xx_forums.warning_options' doesn't exist
mysql error number: 1146
Date: Sunday 30th of January 2005 06:39:30 PM
Script: http:///board/
Referer:
Username: x
IP Address: xx
Replace admincp/index.php as well and try again.
sv1cec
01-31-2005, 03:54 AM
I installed the hack, followed all the instructions, but when I hit "warn user" I get a blank page, any ideas?
Hover your mouse over the link (or button) and look at the bottom line of your browser to tell me what it says (what link it is pointing to). Most probably you have some mistake there.
Rgds
Delphiprogrammi
01-31-2005, 04:28 PM
I installed the hack, followed all the instructions, but when I hit "warn user" I get a blank page, any ideas?
that happend to me to i sorted it out by making sure all requirerd templated in the currently used style are there.You only need to edit one style templates manually then you can use this hack (https://vborg.vbsupport.ru/showthread.php?t=72288) to copy templates from one style to another
achtungbaby
01-31-2005, 04:39 PM
Hello, impressive hack, just installed. Having a small problem with the user groups feature though. I've altered the default user groups on my board and the AWS is classifying a customized group as "Super Moderator"...my question is, do I need to make a change within the AWS files (and if so, which ones), templates or db?
sv1cec
01-31-2005, 04:46 PM
Hello, impressive hack, just installed. Having a small problem with the user groups feature though. I've altered the default user groups on my board and the AWS is classifying a customized group as "Super Moderator"...my question is, do I need to make a change within the AWS files (and if so, which ones), templates or db?
You mean that your admin is not 6, mod is not 7 and supermod is not 5???
I am sorry to tell you, that there are a heck of a lot of changes to make. Both in files and templates. Maybe, if I get the courage, I'll come up with a new version where these groups are user-definable, but I do not think it is worth the effort.
Sorry :-(
achtungbaby
01-31-2005, 04:57 PM
You mean that your admin is not 6, mod is not 7 and supermod is not 5???
I am sorry to tell you, that there are a heck of a lot of changes to make. Both in files and templates. Maybe, if I get the courage, I'll come up with a new version where these groups are user-definable, but I do not think it is worth the effort.
Sorry :-(
No problem, I just wanted to confirm that the AWS was using this pattern:
super mod - 5
admin - 6
mod - 7
sv1cec
01-31-2005, 05:18 PM
No problem, I just wanted to confirm that the AWS was using this pattern:
super mod - 5
admin - 6
mod - 7
Yes, it is based on the standard vB user groups. Now why on earth vB is using these ones for admins/supermods and mods, don't ask me, I would use 1,2 and 3, but I can't speak for others.
Rgds
Ganon
01-31-2005, 08:51 PM
Hover your mouse over the link (or button) and look at the bottom line of your browser to tell me what it says (what link it is pointing to). Most probably you have some mistake there.
Rgds
http://www.ganonstower.com/forums/Warn.php?do=WarnUser&id=902&post=67631
sv1cec
01-31-2005, 09:39 PM
http://www.ganonstower.com/forums/Warn.php?do=WarnUser&id=902&post=67631
The link seems correct, if you get a blank page, make sure the templates are there. Are you using another style maybe?
Rgds
Ganon
01-31-2005, 10:09 PM
I tested it in the default style, where I originally installed the templates, but I'll doublecheck it to make sure I did them all. It was only postbit and postbit legacy, right? The ones at the very bottom of the instruction page?
sv1cec
01-31-2005, 10:22 PM
I tested it in the default style, where I originally installed the templates, but I'll doublecheck it to make sure I did them all. It was only postbit and postbit legacy, right? The ones at the very bottom of the instruction page?
Check if in your templates there is a template group called "Advanced Warning System Templates", it 's towards the bottom of the templates list. What version are you installing by the way?
Ganon
01-31-2005, 10:40 PM
I'll take a look. I just installed it yesterday, so whatever the latest version as of then is, and I'm installing it on vBulletin 3.0.6.
EDIT: There are no advanced warning system templates, so I"m guessing that's the problem. I'll double check the install file to see if I accidentally skipped a step. Other than that the hack seems great.
sv1cec
02-01-2005, 05:32 AM
I'll take a look. I just installed it yesterday, so whatever the latest version as of then is, and I'm installing it on vBulletin 3.0.6.
EDIT: There are no advanced warning system templates, so I"m guessing that's the problem. I'll double check the install file to see if I accidentally skipped a step. Other than that the hack seems great.
Can't work without them, can it?
Let me know if you have problems.
sv1cec
02-01-2005, 05:45 AM
ANNOUNCEMENT
The Advanced Warning System has been accepted to have its own Premium Forum, in vBulletin.org. The forum is located here:
https://vborg.vbsupport.ru/forumdisplay.php?f=105
From now on, I would appreciate if you could ask your questions, in that forum, instead of this thread. In that way, you will get better attention and quicker response.
I'll be following this thread for a while, and any new release will be posted here, but obviously my attention will be focused in that forum.
Many thanks for your support.
--------------
John
Ganon
02-01-2005, 03:51 PM
Can't work without them, can it?
Let me know if you have problems.
I re-ran the installer and double checked the install file and they're still not there..... Is there a way I can manually add them? The installer said it did, but they're not there.
sv1cec
02-01-2005, 04:21 PM
I re-ran the installer and double checked the install file and they're still not there..... Is there a way I can manually add them? The installer said it did, but they're not there.
That's wierd. Are you sure you are running the install in the standard style? Are you sure you do not have a template category called "Advanced Warning System Templates"? It's towards the end of the list.
Rgds
Ganon
02-01-2005, 04:29 PM
It said it added it to all styles, but I guess I can check each individual style to see if for some reason it installed to one but not the others.
EDIT: I found one style that has the group in there, but all that's in the group is a template called warn, which I'm guessing isn't enough, since the install file said there's 20 of them total.
sv1cec
02-01-2005, 05:52 PM
It said it added it to all styles, but I guess I can check each individual style to see if for some reason it installed to one but not the others.
EDIT: I found one style that has the group in there, but all that's in the group is a template called warn, which I'm guessing isn't enough, since the install file said there's 20 of them total.
I am not sure what to tell you. There should be 22 templates in there. Some how I think it has to do with the fact that you have more than one styles. The hack is designed to install the templates and everything in the style with id equals to $vboptions[styleid]. I am not sure what will happen if that's not the case, or if you have more styles.
I am sure there was a post which explained these issues some time at the beginning of this thread, so I would suggest you find all the patience you can get and start going over the pages, looking for some help. I can't assist you on that, as I have only one style on my system and I am not sure how the styles work.
Rgds
mikexxx
02-01-2005, 06:17 PM
This is wat I get if I update form 3.1.1 to 3.1.5 (upgrade_warn.php)
Database error in vBulletin 3.0.6:
Invalid SQL: alter table warnings
add `warned_status` char(1), add `removed_by` int(15), add `removed_date` int(15)
mysql error: Duplicate column name 'warned_status'
mysql error number: 1060
sv1cec
02-02-2005, 03:53 AM
This is wat I get if I update form 3.1.1 to 3.1.5 (upgrade_warn.php)
Database error in vBulletin 3.0.6:
Invalid SQL: alter table warnings
add `warned_status` char(1), add `removed_by` int(15), add `removed_date` int(15)
mysql error: Duplicate column name 'warned_status'
mysql error number: 1060
Please read the instructions carefully. Upgrade_warn.php is to upgrade from ZT hack to mine.
Read the UpgradeToLatestVersion.txt file on how to upgrade from one version to the next.
JazzleBug
02-02-2005, 06:50 AM
Having a bit of trouble here with...
mysql error: Unknown column 'textbutoption' in 'field list'
Everything is working with the exception of the Manage Warning Options in my ACP.
Database error in vBulletin 3.0.6:
Invalid SQL: update warning_options set
hierarchical='Yes',
automatic='No',
automaticpm='No',
autocomments='No',
warner='1',
automatic_warner='',
collector='',
banned_limit='14',
points_before_banned='6',
warnings_before_banned='0',
banned_usergroup_id='8',
troll_usergroup_id='8',
protected_usergroups='6',
aprotected_usergroups='',
restore_groupid='0',
incr_ban_days='Yes',
max_no_bans='2',
bans_mature='',
viewoption='Mgm',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='No',
email_on_ban='No',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='20',
textbutoption='Text'
where oid='1'
mysql error: Unknown column 'textbutoption' in 'field list'
mysql error number: 1054
Anyone have any thoughts?
Steph
JazzleBug
02-02-2005, 05:36 PM
Got antsy and worked it out myself. I think it was a little too easy. :o
ALTER TABLE `warning_options` ADD COLUMN textbutoption char(10) AFTER warnings_per_page
Killer script. Thanks so much!
sv1cec
02-02-2005, 05:36 PM
Having a bit of trouble here with...
mysql error: Unknown column 'textbutoption' in 'field list'
Everything is working with the exception of the Manage Warning Options in my ACP.
Database error in vBulletin 3.0.6:
Invalid SQL: update warning_options set
hierarchical='Yes',
automatic='No',
automaticpm='No',
autocomments='No',
warner='1',
automatic_warner='',
collector='',
banned_limit='14',
points_before_banned='6',
warnings_before_banned='0',
banned_usergroup_id='8',
troll_usergroup_id='8',
protected_usergroups='6',
aprotected_usergroups='',
restore_groupid='0',
incr_ban_days='Yes',
max_no_bans='2',
bans_mature='',
viewoption='Mgm',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='No',
email_on_ban='No',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='20',
textbutoption='Text'
where oid='1'
mysql error: Unknown column 'textbutoption' in 'field list'
mysql error number: 1054
Anyone have any thoughts?
Steph
Obviously this column does not exist in your database. Why? I have no idea. Did you try installing from scratch? Did you upgrade from an earlier version?
In any case, you can add that column, by using the following query:
ALTER TABLE `".TABLE_PREFIX."warning_options` ADD COLUMN textbutoption char(10)
Rgds
sv1cec
02-02-2005, 05:37 PM
From now on, please use this link to go to AWS special forum.
https://vborg.vbsupport.ru/forumdisplay.php?f=105
Post your questions there, as new threads.
Thank you
The Realist
02-15-2005, 10:12 AM
BUT..........
I have 1 member already in my banned section and when I run http://www.yourforumsite.com/admincp/update_ban_dates.php it says ban_dates table updated from userban but it does not work?
Also I noticed that when I click in admin cp the view banned users it says "The administrator has not specified any groups that contain banned users. Please do so using the usergroup editor" but I have already done this and changed the settings in the warnings options stating what the banned usergroup is.
Any ideas?
sv1cec
02-15-2005, 10:53 AM
BUT..........
I have 1 member already in my banned section and when I run http://www.yourforumsite.com/admincp/update_ban_dates.php it says ban_dates table updated from userban but it does not work?
Also I noticed that when I click in admin cp the view banned users it says "The administrator has not specified any groups that contain banned users. Please do so using the usergroup editor" but I have already done this and changed the settings in the warnings options stating what the banned usergroup is.
Any ideas?
Which "view banned users" are you using, the one in the Warning System or the one in the Users menu?
Also, for your bandates, what do you mean it does not work. That script will just get info from the userban table and enter it in the ban_dates table. Did you check the ban_dates and there is no entries there, while there are entries in your userban table?
And please do not post questions here. Use our special forum, as noted above.
Rgds
msimplay
02-22-2005, 03:01 PM
The queries in the upgrade from 3.1.7 to 3.1.8 don't seem to work
Delphiprogrammi
02-22-2005, 05:13 PM
they work fine ....
sv1cec
02-22-2005, 05:28 PM
they work fine ....
Try using :
ALTER TABLE etc. (add the word TABLE, after ALTER)
I've uploaded a new zip with the queries corrected.
Rgds
JazzleBug
02-22-2005, 07:30 PM
Obviously this column does not exist in your database. Why? I have no idea. Did you try installing from scratch? Did you upgrade from an earlier version?
In any case, you can add that column, by using the following query:
ALTER TABLE `".TABLE_PREFIX."warning_options` ADD COLUMN textbutoption char(10)
Rgds
Not sure why it wasn't created. I upgraded and when that didn't work, I dropped the AWS additions and did a clean install. When that didn't work (created everything okay except for a couple of missing fields), I manually created it. That's about all the info I can give you - sorry it isn't more. Haven't had any more trouble, though, and it was easy enough to remedy. Thanks again!
Delphiprogrammi
02-23-2005, 07:49 PM
Try using :
ALTER TABLE etc. (add the word TABLE, after ALTER)
I've uploaded a new zip with the queries corrected.
Rgds
that's pretty obvious .... i didn't even noticed that wasn't there
Kruppa
02-24-2005, 09:49 PM
Hi, I saw someone posted his error and solved it by adding the missing column. But I<m not sure if mine requires a char(10):
Database error in vBulletin 3.0.6:
Invalid SQL: update warning_options set
hierarchical='No',
automatic='No',
automaticpm='No',
autocomments='No',
warner='0',
automatic_warner='',
collector='',
banned_limit='7',
points_before_banned='15',
warnings_before_banned='0',
banned_usergroup_id='9',
troll_usergroup_id='8',
protected_usergroups='5|6|7|5|6|7|14',
aprotected_usergroups='5|6|7|14',
restore_groupid='0',
incr_ban_days='Yes',
max_no_bans='2',
bans_mature='0',
viewoption='Mgm',
multiple_per_post='No',
send_pm_warning='Yes',
send_em_warning='Yes',
email_on_ban='Yes',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='20',
textbutoption='Text',
modoption='All',
sig_thresshold='0',
avatar_thresshold='0'
where oid='1'
mysql error: Unknown column 'modoption' in 'field list'
mysql error number: 1054
So I'm I looking at:
ALTER TABLE `warning_options` ADD COLUMN modoption (then what?)
If anyone has any ideas, please share. It was so long to install all of this to be snipped at the final step.
MicroLinux?
02-24-2005, 11:16 PM
Anyone have any feedback in response to this https://vborg.vbsupport.ru/showthread.php?p=616957#post616957 ??
Should I just ignore the difference in the 2 lines of code? Thanks, Travis.
EDIT: I just ignored the difference and pasted it where it should have. I dont notice any errors yet. =D
EDIT2: Holy crap these template edits are OFF big TIME!!!!!!
EDIT3: https://vborg.vbsupport.ru/showthread.php?p=616990#post616990 please go there and help me. thanks
sv1cec
02-25-2005, 04:29 AM
Hi, I saw someone posted his error and solved it by adding the missing column. But I<m not sure if mine requires a char(10):
Database error in vBulletin 3.0.6:
Invalid SQL: update warning_options set
hierarchical='No',
automatic='No',
automaticpm='No',
autocomments='No',
warner='0',
automatic_warner='',
collector='',
banned_limit='7',
points_before_banned='15',
warnings_before_banned='0',
banned_usergroup_id='9',
troll_usergroup_id='8',
protected_usergroups='5|6|7|5|6|7|14',
aprotected_usergroups='5|6|7|14',
restore_groupid='0',
incr_ban_days='Yes',
max_no_bans='2',
bans_mature='0',
viewoption='Mgm',
multiple_per_post='No',
send_pm_warning='Yes',
send_em_warning='Yes',
email_on_ban='Yes',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='20',
textbutoption='Text',
modoption='All',
sig_thresshold='0',
avatar_thresshold='0'
where oid='1'
mysql error: Unknown column 'modoption' in 'field list'
mysql error number: 1054
So I'm I looking at:
ALTER TABLE `warning_options` ADD COLUMN modoption (then what?)
If anyone has any ideas, please share. It was so long to install all of this to be snipped at the final step.
modoption is char(3)
Kruppa
02-25-2005, 12:46 PM
Thanks so much! :)
But then I got an error for sig_thresshold and saw in the column of the error message I got that I was going to get another error for avatar_thresshold as well. So I looked even more than I did yesterday.
It occured to me there were two install.php files, one for the clean install and one for the upgrade. When I searched the one I used (for the upgrade) for the modoption column it couldn't find anything. That's when I thought that the upgrade php must have omitted entries figuring they were done by Zero Tolerance's hack. So I searched in the clean install file and found it, along with the other two I needed.
So for anyone getting that error message, I bet they were all people upgrading. Simply look in the clean install file and you'll find all the database queries you're missing which you can add manually through PHPMyAdmin.
sv1cec
02-25-2005, 01:08 PM
Thanks so much! :)
But then I got an error for sig_thresshold and saw in the column of the error message I got that I was going to get another error for avatar_thresshold as well. So I looked even more than I did yesterday.
It occured to me there were two install.php files, one for the clean install and one for the upgrade. When I searched the one I used (for the upgrade) for the modoption column it couldn't find anything. That's when I thought that the upgrade php must have omitted entries figuring they were done by Zero Tolerance's hack. So I searched in the clean install file and found it, along with the other two I needed.
So for anyone getting that error message, I bet they were all people upgrading. Simply look in the clean install file and you'll find all the database queries you're missing which you can add manually through PHPMyAdmin.
Darn, I always forget to update the script for the upgrade!!!
OK. I'll go do it now!
SaN-DeeP
02-26-2005, 04:27 PM
Darn, I always forget to update the script for the upgrade!!!
OK. I'll go do it now!
Hi sv1cec,
I plan to install this addon (with some custom modifications) on our forums, are you planning for a update recently ?
So i can wait for new release. :)
Regards,
sv1cec
02-26-2005, 06:06 PM
Hi sv1cec,
I plan to install this addon (with some custom modifications) on our forums, are you planning for a update recently ?
So i can wait for new release. :)
Regards,
No, I have nothing planned. Go ahead and install it.
Rgds
Bolas
02-26-2005, 07:01 PM
So, with this release, you get the ability to prevent a user's signature or his avatar from appearing, according to his total warning points. If you want to see something else removed, please let me know.
The possibility to deny post OR access to a list of forumid? Please please please please please :)
sv1cec
02-26-2005, 07:16 PM
The possibility to deny post OR access to a list of forumid? Please please please please please :)
Let me see if I understand what you mean. You want to deny the capability of posting, if the user exceeds a certain number of warning points?
Or the possibility to forbid access to certain forumids, according to the user's warning points?
Oh, and please use the AWS forum for this suggestions, at:
https://vborg.vbsupport.ru/forumdisplay.php?f=105
Chazz Layne
02-26-2005, 07:56 PM
ok i have fixed it lol finally, i had to make all the templates because i have 2 skins and it only put the templates on 1 of them, that is how you fix it :)
Sorry if this has been covered already. Just started having the same problem here when we added a new style. Is there an easier way than copying the templates to the new styles manually? Seems that would take quite some time...
TIA
sv1cec
02-27-2005, 05:10 AM
Sorry if this has been covered already. Just started having the same problem here when we added a new style. Is there an easier way than copying the templates to the new styles manually? Seems that would take quite some time...
TIA
There is a hack by Zero Tolerance, which can take over your copying chores. You will find it here:
https://vborg.vbsupport.ru/showthread.php?t=72288
It is mentioned in the top, where the description of this hack is.
Rgds
Pickalo
03-01-2005, 10:21 PM
Hey... I've been having some problems entering the data for warning types. Every time I try I get this error:
Please provide a proper maturity for this warning type.
Thanks.
sv1cec
03-02-2005, 04:30 AM
Hey... I've been having some problems entering the data for warning types. Every time I try I get this error:
Thanks.
You are right, I've missed a couple of == and a couple of '' signs.
Please download the new zip and upload admin_warn.php file to your server's admincp directory.
Rgds and tnx
Delphiprogrammi
03-02-2005, 04:39 AM
Hey... I've been having some problems entering the data for warning types. Every time I try I get this error:
Thanks.
that's due to a bug in the code that's checks if those propertys are filled in properly to resolve that open the file admin_warn.php and find
if ($warn_opts['allowoffpost']=='No' AND $_POST['warn_type']=='No')
{
define('CP_REDIRECT', 'admin_warn.php?act=view');
print_stop_message('warning_warn_typeconflict');
}
after that add
if(empty($_POST['warn_name']) OR trim($_POST['warn_name']) == '')
{
print_stop_message('warning_warn_emptywarntype');
}
if(empty($_POST['warn_desc']) OR trim($_POST['warn_desc']) == '')
{
print_stop_message('warning_warn_emptydesc');
}
if(empty($_POST['warn_points']) OR trim($_POST['warn_points']) == '')
{
print_stop_message('warning_warn_emptypoints');
}
if(empty($_POST['warn_maturity']) OR trim($_POST['warn_maturity'])== '')
{
print_stop_message('warning_warn_maturity');
}
i am verry sorry for making such a stupid mistake that code is mine John is innocent
sv1cec
03-02-2005, 05:07 AM
that's due to a bug in the code that's checks if those propertys are filled in properly to resolve that open the file admin_warn.php and find
if ($warn_opts['allowoffpost']=='No' AND $_POST['warn_type']=='No')
{
define('CP_REDIRECT', 'admin_warn.php?act=view');
print_stop_message('warning_warn_typeconflict');
}
after that add
if(empty($_POST['warn_name']) OR trim($_POST['warn_name']) == '')
{
print_stop_message('warning_warn_emptywarntype');
}
if(empty($_POST['warn_desc']) OR trim($_POST['warn_desc']) == '')
{
print_stop_message('warning_warn_emptydesc');
}
if(empty($_POST['warn_points']) OR trim($_POST['warn_points']) == '')
{
print_stop_message('warning_warn_emptypoints');
}
if(empty($_POST['warn_maturity']) OR trim($_POST['warn_maturity'])== '')
{
print_stop_message('warning_warn_maturity');
}
i am verry sorry for making such a stupid mistake that code is mine John is innocent
Delphi, the code you provide is not exactly correct, and since you want the checks, I guess we need to code them properly. The two first fields are character, so the trim function is necessary, the last two are numeric, so the check should be a little different, see below:
if(empty($_POST['warn_name']) OR trim($_POST['warn_name']) == '')
{
print_stop_message('warning_warn_emptywarntype');
}
if(empty($_POST['warn_desc']) OR trim($_POST['warn_desc']) == '')
{
print_stop_message('warning_warn_emptydesc');
}
if(empty($_POST['warn_points']) OR $_POST['warn_points'] == '' OR $_POST['warn_points']<1 OR $_POST['warn_points']>99999)
{
print_stop_message('warning_warn_emptypoints');
}
if(empty($_POST['warn_maturity']) OR $_POST['warn_maturity']=='' OR $_POST['warn_maturity']<1 OR $_POST['warn_maturity']>99999)
{
print_stop_message('warning_warn_maturity');
}
If not, the user can enter a maturity of 'abcde' and the check will not stop him.
I've updated the zip file with this.
Rgds
Delphiprogrammi
03-02-2005, 05:35 AM
Delphi, the code you provide is not exactly correct, and since you want the checks, I guess we need to code them properly. The two first fields are character, so the trim function is necessary, the last two are numeric, so the check should be a little different, see below:
if(empty($_POST['warn_name']) OR trim($_POST['warn_name']) == '')
{
print_stop_message('warning_warn_emptywarntype');
}
if(empty($_POST['warn_desc']) OR trim($_POST['warn_desc']) == '')
{
print_stop_message('warning_warn_emptydesc');
}
if(empty($_POST['warn_points']) OR $_POST['warn_points'] == '' OR $_POST['warn_points']<1 OR $_POST['warn_points']>99999)
{
print_stop_message('warning_warn_emptypoints');
}
if(empty($_POST['warn_maturity']) OR $_POST['warn_maturity']=='' OR $_POST['warn_maturity']<1 OR $_POST['warn_maturity']>99999)
{
print_stop_message('warning_warn_maturity');
}
If not, the user can enter a maturity of 'abcde' and the check will not stop him.
I've updated the zip file with this.
Rgds
agreed daim i feel so ashamed stupid error :dead: :(
sv1cec
03-02-2005, 06:00 AM
agreed daim i feel so ashamed stupid error :dead: :(
Don't worry about it, it was your fault, as much as mine. I didn't really check your code, when you posted it, I was way too busy to check it out, so I just included in the file. So we share the responsibility. LoL
Pickalo
03-02-2005, 03:43 PM
Haha, thanks for the help guys :)
Kruppa
03-05-2005, 11:22 AM
Hi, I have had this problem when I try to remove warnings (not the complete removal which still works) and haven't been able to resolve it. Can anyone help?
Database error in vBulletin 3.0.6:
Invalid SQL: update user set warning_level='0', warnings=1, warning_bans= where userid='6246'
mysql error: You have an error in your SQL syntax near 'where userid='6246'' at line 1
mysql error number: 1064
Script: admin_warn.php
Referer: admin_warn.php?act=remove&id=14&userid=6246&uname=Dhoffryn&wname=Flaming&postid=966742&ban=N&orderstring=w.warned_time DESC
Thanks :)
Delphiprogrammi
03-05-2005, 11:49 AM
warning_bans doesn't have a value edit your aws options (doesn't matter wich one) and save it again) that might help
Kruppa
03-05-2005, 01:08 PM
Nope, hasn't done anything. :(
sv1cec
03-06-2005, 05:32 AM
I cannot reproduce your problem, this is something I've tested several times. So I would suggest you upload the admin_warn.php file again.
Rgds
Kruppa
03-06-2005, 12:09 PM
It's one of the first thing I tried. :D
If you can't reproduce the problem, it might be because it's confilcting with another hack I've recently installed. I'll keep looking.
sv1cec
03-06-2005, 12:20 PM
Can you please give me some more details? Where exactly do you try to remove a warning from? The Warnings Log?
Kruppa
03-07-2005, 12:28 PM
That's right! I go to:
Warning System > View Warning Logs > Remove Warning and click on 'Remove'
Then it takes me to the confirm box and I select the yes button and click on 'Proceed' and that's when I got the above mentioned error.
outlaw621
03-08-2005, 12:12 AM
I need a little help. The hack install is flawless on my system. The problem I am having is with the templates. We have the standard groups of Admin (6), Super Mod (5), Mod (7). We also have a 4th group called Asst. Admins (11). The hierarchy of the groups from top down is as follows: Admin (6), Asst Admin (11), Super Mod (5) then Mod (7). I am trying to edit the conditionals in the Postbit, Postbit Legacy and Memberinfo templates but I am lost. Can anyone post the correct edits to add group Asst. Admin (11) to the above listed templates? Just to clarify the structure, the only person who should be able to warn the Asst. Admin is the Admin group. Without changing any of the conditionals in the template modifications described in the hack, the Asst. Admins can issue warnings but can not view the already issued warnings. I need to correct this.
sv1cec
03-09-2005, 08:39 AM
I need a little help. The hack install is flawless on my system. The problem I am having is with the templates. We have the standard groups of Admin (6), Super Mod (5), Mod (7). We also have a 4th group called Asst. Admins (11). The hierarchy of the groups from top down is as follows: Admin (6), Asst Admin (11), Super Mod (5) then Mod (7). I am trying to edit the conditionals in the Postbit, Postbit Legacy and Memberinfo templates but I am lost. Can anyone post the correct edits to add group Asst. Admin (11) to the above listed templates? Just to clarify the structure, the only person who should be able to warn the Asst. Admin is the Admin group. Without changing any of the conditionals in the template modifications described in the hack, the Asst. Admins can issue warnings but can not view the already issued warnings. I need to correct this.
It's kind of complicated. Are you using the hierarchical thing? I assume you are. Try replacing this:
<if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5)) OR ($post[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
with this:
<if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=11 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==11)) OR ($post[usergroupid]==7 AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==11)) OR ($post[usergroupid]==5 AND $bbuserinfo[usergroupid]==11) OR ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
This belongs to the part which uses buttons for the links and the hierarchical structure.
In the future, please post your questions in the hack's forum, the address is near the top of the page.
Rgds
sv1cec
03-09-2005, 08:54 AM
It's one of the first thing I tried. :D
If you can't reproduce the problem, it might be because it's confilcting with another hack I've recently installed. I'll keep looking.
Open your admin_warn.php and find:
$bans=$warn['warning_bans'];
Replace that with:
if ($warn['warning_bans']='' or $warn['warning_bans']==0)
{
$bans=0;
}
else
{
$bans=$warn['warning_bans'];
}
Let me know if this works, but please, do not post your questions here any more. Use the hack's forum, the link is near the top.
Rgds
Kruppa
03-09-2005, 12:29 PM
Let me know if this works, but please, do not post your questions here any more. Use the hack's forum, the link is near the top.
Rgds
Ok, sorry about that. But thanks, it solved my problem. :)
sv1cec
03-09-2005, 12:37 PM
Glad if I can help.
Rgds
mekro
03-09-2005, 03:10 PM
Hi
Can anyone help i am trying to upgrade from zero's warning hack to this but everytime i run the upgrade script to install this warning hack i get a error message saying:
Database error in vBulletin 3.0.5:
Invalid SQL: delete from template where (title>='warn' AND title<'warn_z')
mysql error: Table 'hubforc_duel.template' doesn't exist
mysql error number: 1146
Date: Wednesday 09th of March 2005 12:03:37 PM
Please can someone help me
kirk
sv1cec
03-09-2005, 06:01 PM
Hi
Can anyone help i am trying to upgrade from zero's warning hack to this but everytime i run the upgrade script to install this warning hack i get a error message saying:
Please can someone help me
kirk
Are you using a table prefix in your database?
Please use the hack's forum for your question. This is the last question I am answering here.
atrljoe
03-10-2005, 04:32 PM
If I have Zero's installed is there an easy way to upgrade?
sv1cec
03-11-2005, 06:41 AM
Yes, there is an upgrade script to do just that. Just make sure you read the instructions carefully.
AND PLEASE DO NOT USE THIS THREAD FOR YOUR QUESTIONS. Use the hack's forum, the address is at the top.
Rgds
coRtALoS
03-26-2005, 08:13 PM
*Copied question to tech support forum for this hack*
Sleepyk
03-29-2005, 12:14 AM
if i get this would i be able to update from zero's hack? or is it gonna conflict?
and the zero hack im talkin about is located https://vborg.vbsupport.ru/showthread.php?t=65336&page=1&pp=15
please respond soon so i can upgrade if thats the case
sv1cec
03-29-2005, 01:58 AM
Yes, you can upgrade from ZT's Warning Hack 1.5 to the latest version of AWS.
Sleepyk
03-30-2005, 10:56 PM
^what if the private php was screwed up? i made the edit didnt work, everything else did
SaN-DeeP
03-31-2005, 01:47 PM
is there a manual which covers the usage of this addon ?
shall be handy for our moderators
sv1cec
03-31-2005, 02:27 PM
Sorry, no manual, but it's not that difficult to understand how to use it. All they have to do, is click on the Warn XYZ button (or link) to warn someone, or the View XYZ's warnings button to see his warnings.
Rgds
Lars-Christian
04-01-2005, 10:13 PM
Excellent hack, it is just what I have been looking for! Had to use my brains a little when installing on 3.0.7 (some of the things listed under "Find" had been slightly altered), but I got it working just fine.
As for a manual, why would you need that? It is 100% straight forward ;)
GamerzWorld
04-02-2005, 09:31 PM
Uh oh lol. I dont know what ive done wrong but when putting in that sql query it doesnt find the setting table and when trying to run the script warn.php (after clicking button) i get
The requested URL /forum/warn.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
(http://www.mirzone.net/forum/warn.php?action=dominus&newuser=&amount=Substract+-1)
Btw the file is in the forum directory but called .. Warn.php..ive tryed adding a second warn.php and editing it etc but with no luck
mojo8850
04-03-2005, 10:05 AM
Ok Guy's..
So is the Advanced Warning System completely seprate to Warning Hack 1.5, if I install AWS would I have to remove the WH 1.5. :)
sv1cec
04-03-2005, 06:47 PM
First of all, please do not post your questions here, I no longer monitor this thread as often as the hack's forum.
Second, there is a script which allows you to upgrade from Zero Tolerance's Warning Hack 1.5 to the AWS. Read the instructions of AWS carefully though.
GamerzWorld, I am not sure I understand your problem. Of course warn.php cannot be found, because it is named Warn.php and capitals play their role on a Unix platform. Also, your second error message does not make any sense, nowhere in AWS hack there are such parameters passed to Warn.php. You must have edited some file wrong. Please provide me with more specific details, about when your problem happens, BUT NOT HERE, use AWS Forum.
Rgds
boeserwolf
04-04-2005, 02:41 AM
dear sv1cec
My name is Markus and I am member of the vbhack Community Germany.
(http://www.vbhacks-germany.com/forum/)
We are a german community about vB Hacks, we code hacks or translate them into german language.
Now a lot of people from our Community a really interested in this advanced warning system hack. I am interested myself.
So I wanted to ask if it?s okay for you if I would translate your hack into german?
And is it also okay if we would post the translated hack in our community? (Please mind: Only after a license check, members may download hacks in our community!)
Sorry for my english, but I am not a native speaker
Greets
Markus
sv1cec
04-04-2005, 05:24 AM
Markus, you can translate the original hack in German, but people will have to download it from the original place, not your own forum.
If you do decide to go ahead, I would suggest you do it with release 3.4.0, which at the moment is a beta release, but will be released like a normal one very soon. You can download it from here:
https://vborg.vbsupport.ru/showthread.php?t=78164
Oh and your English are much better than my German, so no problem there.
Rgds
boeserwolf
04-04-2005, 06:04 AM
Hi
Okay I will wait until 3.4.0 is released an then translate it. Then I´ll post the german language package here and set a link from the vbHacks Germany board to the thread.
greets
Markus
sv1cec
04-04-2005, 11:45 AM
Hi
Okay I will wait until 3.4.0 is released an then translate it. Then I?ll post the german language package here and set a link from the vbHacks Germany board to the thread.
greets
Markus
Version 3.4.0 is out Markus, you may download it from here. For all future correspondence, please use the AWS Forum, at:
https://vborg.vbsupport.ru/forumdisplay.php?f=105
Rgds
mojo8850
04-09-2005, 01:15 PM
Hi Guy's..
Right I have tried to install this everything goes nice and smooth.
when it come to edit the POSTBIT & POSTBIT_LEGACY Template's, half the codes cant be found, yes I have'nt installed Zero's Warning Hack 1.5, so the files should be untouched.
I have upgraded to Vbulletin 3.0.7, also some instruction in the php files are not
given correctly.!
Help. Please..!
sv1cec
04-09-2005, 01:54 PM
First of all, go here:
https://vborg.vbsupport.ru/forumdisplay.php?f=105
And post your question there, as a new thread.
Second, give specific details of what your problem is. What you can't find.
Rgds
Ski-Whiz
04-13-2005, 09:44 PM
This CERTAINLY is one of the BEST hacks I've seen!! Installed without a hitch, and the FEATURES!!
Well thought out! Thanks!! The fact that I can configure it to suit my needs.. :D Man, I'm pumped about this.. GREAT JOB!!
sv1cec
04-14-2005, 02:47 AM
Thanks for the nice words.
Rgds
Ski-Whiz
04-15-2005, 12:43 PM
I have a request, when the warning system posts the warning thread to a certain forum. I posts the thread that was warned. On my site, that URL isn't clickable.
Is this just my site, or is this the hack? I have to copy/paste the URL to see which thread..
Thanks.. Having it clickable would be easier.. :D
Ski-Whiz
04-15-2005, 12:46 PM
Here's an example to show you.. It's straight from the warning post:
For this violation, you have been given 2 point(s).
The point(s) will remain in your account for 60 days.
After that, they will be removed automatically.
The post for which you are warned can be seen here:
http://www.dabearz.com/forums/showthread.php?p=10978
The admin/moderator who warned you, entered this comment:
Is this me or the hack,, :D
Greebo
04-15-2005, 02:08 PM
Does this hack have or are there any plans for it to have support for short term bans against IPs?
We allow anonymity on our forum in a few places, and blocking an IP on a short term basis for people who abuse it would be a very useful feature.
(Not installed yet but I'm getting close to do it as we continue to grow...) :)
sv1cec
04-15-2005, 02:10 PM
It works for me! There is no reason why it shouldn't be clickable. Is it clickable in the PM the warned member gets?
And please, DO NOT USE THIS THREAD FOR YOUR QUESTIONS! Use the AWS Forum
Rgds
sv1cec
04-15-2005, 04:51 PM
Does this hack have or are there any plans for it to have support for short term bans against IPs?
We allow anonymity on our forum in a few places, and blocking an IP on a short term basis for people who abuse it would be a very useful feature.
(Not installed yet but I'm getting close to do it as we continue to grow...) :)
So you mean that in addition to the user being banned, you want to ban the IP that the banned user came from? I am not sure where the banned IP addresses are kept, let me look into it, and I'll come back to you.
AND PLEASE DO NOT USE THIS SPACE FOR YOUR QUESTION. THERE IS A SPECIAL FORUM FOR AWS, IT'S MENTIONED IN THE BEGINNING OF EVERY PAGE HERE, USE THAT FORUM INSTEAD.
Rgds
Alex2
04-16-2005, 09:09 AM
Hello,
I've been looking throught this hack too, but I must admit that my knowledge to install this scares me :) Most because I tried one time before, and I screwed up my whole board, so I wonder; Is it any possibility to get some help to install this warning system. I just ask because my knowledge regarding this are too small,a and I'm afraid to screw up everuthing again.
Thanks in advance.
sv1cec
04-16-2005, 11:08 AM
Alex2, if you are not feeling comfortable with the various coding aspects, I wouldn't suggest that you start the installation of this hack. It is very complex with lots of modifications etc.
If you want, I could do it for you.
Rgds
Alex2
04-16-2005, 06:09 PM
If you would use your time to do it for me, it would be much appreciated sv1cec. I usually would have done it by my self, but I actually don't dare incase I screw everything up.
Just tell me what you need, eg: admin information, url, and I'll e-mail it to you if that is ok?
Thank You
Alex2
SnowBot
04-19-2005, 09:55 AM
Thanks for the updates in the last few days, great work :)
Sir_Yaro
04-19-2005, 01:54 PM
Hello
Im using auto warning option. But its evidently working wrongly.
please look at warning in attachment.
this is whole post:
Odp: Nvidia Midi Problem ..
gameport * * * * * * * *3328 *1 snd-intel8x0
snd-mpu401-uart * * * * 5856 *1 snd-intel8x0
snd-rawmidi * * * * * *19300 *1 snd-mpu401-uart
snd-seq-device * * * * *6344 *3 snd-seq-oss,snd-seq,snd-rawmidi
To są moduły załadowane do obsługi MIDI, czyli jest OK. Tylko teraz czego oczekujesz?
Napiszę Ci co możesz i jak to wykorzystać. Ponieważ ta karta dźwiękowa nie potrafi ładować do pamięci pr?bek dźwiękowych więc do pracy z MIDI potrzebujesz zewnętrznego sequencera t/j keyboard oraz oprogramowania np. Rosegarden.
Natomiast do samego odtwarzania plik?w MIDI polecam TiMidity z włąsnym 8Mb bankiem brzmień np.
timidity -ig -s 44100 -Od1 plik.mid ###Zacznie odtwarzać muzykę
timidity -ig -s 44100 -Ow1 plik.mid ###zapisze plik MIDI jako WAV
Jest jeszcze inna możliwość, wykorzystania pr?bek Timidity jako sequencera.
timidity -h
Inną możliwość daje server Jack kt?ry potrafi wykorzystywać inne pr?bki bardziej zaawansowane. Należy pamiętać że tym wszystkim zawiaduje procesor gł?wny ponieważ karta NVIDIA nie posiada procesora DSP. Napisz czego oczekujesz to będziemy szli w tym kierunku.....Lex
__________________
Linux User 363394
Icq 271334579
Czy aby nastroić kontrabas trzeba kupić fortepian?
and this are all censored words on my board:
kurw pierdol {jeb} jeba jebie pierdol huj
there isnt even ONE of this words in whole topic!!
additionally link in adminCP (/admincp/admin_warn.php?act=viewlogs) leads to wrong post (http://forum.mandrake.pl/showthread.php?p=69481#post69481 not to http://forum.mandrake.pl/showthread.php?p=69494#post69494)
Any clue whats wrong?
I dont want to warn my moderators for helping other users... :D
sv1cec
04-19-2005, 02:35 PM
Well, I run into something similar a few days ago. Have you considered that your user might have edited his post, as soon as he saw the warned post sign next to his post and the warning points? Somewhere in vB there is a time limit, during which edits are not registered. If the user edited his post within that limit, you would see no "Last edited by...." message.
And what one should do, for you guys to stop posting questions here and use the proper forum????
Marco van Herwaarden
04-19-2005, 02:42 PM
And what one should do, for you guys to stop posting questions here and use the proper forum????
Warn them?
Marco van Herwaarden
04-19-2005, 03:48 PM
Nice try JimpsEd, but won't work i am afraid. :D
sv1cec
04-19-2005, 05:02 PM
Thanks JimpsEd, I appreciate your effort, let's wait to see the results though. I believe that most of those posts are coming from users, who get tired of reading through the thread, click the post reply button and type away. They do not even reach page 65!
Rgds and tnx
As long as you keep reposting it every 5 posts or so it will work hopefully!
SamirDarji
04-20-2005, 04:59 AM
Or a mod could close this thread. Then the last post would be a link to the new forum.
DO NOT POST QUESTIONS/SUPPORT REQUESTS IN THIS THREAD
USE THIS PREMIUM-HACK FORUM: https://vborg.vbsupport.ru/forumdisplay.php?f=105
SamirDarji
04-20-2005, 12:39 PM
Good! Quick now someone close this thread! :D
Alex2
04-21-2005, 09:37 PM
Have you uploaded the files to your web server? The insert statement does not have all the values required.
Try uploading all the files in the proper directories, especially warn.php and admincp/admin_warn.php. Your error shows me that you are using the wrong warn.php file.
RgdsSeems I have done exactly the same when I installed this hack too. Can anyone look at it or give me some help what I need to fix?
sv1cec
05-04-2005, 10:53 AM
First of all :
DO NOT POST QUESTIONS/SUPPORT REQUESTS IN THIS THREAD
Start a new thread in the AWS Forum at :
https://vborg.vbsupport.ru/forumdisplay.php?f=105
Describe your problem there, clearly, don't make me go back and look 50 posts back, to find out what that quote refered to.
Thanks
Acers
05-08-2005, 05:56 AM
/me clicks install
btw can we have some warn icons instead of the buttons or text?
SamirDarji
05-09-2005, 12:56 AM
First of all :
DO NOT POST QUESTIONS/SUPPORT REQUESTS IN THIS THREAD
Start a new thread in the AWS Forum at :
https://vborg.vbsupport.ru/forumdisplay.php?f=105
Describe your problem there, clearly, don't make me go back and look 50 posts back, to find out what that quote refered to.
ThanksHow come this thread isn't just being closed?
Phalynx
05-09-2005, 01:19 PM
Me clicks install! Thanks for this great addition.
sv1cec
05-15-2005, 09:59 AM
How come this thread isn't just being closed?
And where will AWS be downloaded from? Also, people might be interested in reading the posts here.
Me clicks install! Thanks for this great addition.
Thank you Sir!
Rgds
SamirDarji
05-16-2005, 02:27 AM
And where will AWS be downloaded from? Also, people might be interested in reading the posts here. When a thread is closed, it is simply closed to new posts. How will this affect the download or ability to read the posts?
sv1cec
05-16-2005, 08:13 AM
You are right, but
(a) I can't do that, only moderators can do that.
(b) I am not sure if I'll still be allowed to upload new versions here, if this thread is closed.
rgds
Lionel
05-16-2005, 08:48 AM
This must be the most updated hack in vb history! :tired:
Marco van Herwaarden
05-16-2005, 08:52 AM
If it is closed, the coder would not have the possibility to provide updates.
sv1cec
05-16-2005, 09:04 AM
This must be the most updated hack in vb history! :tired:
Sometimes I think it would be better if it was shut! :(
Lionel
05-16-2005, 09:05 AM
I meant that as a joke. Couldn't help it. I use and enjoy your hack.
sv1cec
05-16-2005, 09:22 AM
OK, no problem. Please respond to a thread I've posted in the Hack's forum, on the Warning Comments issue.
Rgds
SamirDarji
05-16-2005, 02:00 PM
You are right, but
(a) I can't do that, only moderators can do that.
(b) I am not sure if I'll still be allowed to upload new versions here, if this thread is closed.
rgds
a. I know, I thought a mod might have just missed it
b. From the last few posts, it seems as if a closed thread cannot be updated. :( Hey, but this is vb.org! Someone write a hack for that! I'm sure it could be useful for all the premium hacks that still have active threads.
sv1cec
05-17-2005, 04:59 AM
You might be surprised to find how few hacks are used in this site.
Mr. Brian
05-24-2005, 12:56 PM
Well, isit possible to add a ".gif" into the warning list ? Something like a "Yellow card" or "Red card ?
Snitz
05-24-2005, 07:11 PM
what's the difference between the warning level and warning points ?
What is so hard about reading a simple notice posted on this page and the first bit you see??
Questions and support requests should be posted in the premium forum (link at the top).
:speechless:
sv1cec
05-31-2005, 08:31 AM
Well, isit possible to add a ".gif" into the warning list ? Something like a "Yellow card" or "Red card ?
I am ot sure I understand what you mean. And please, use the proper place for your questions.
Rgds
mrpotatohead
06-01-2005, 03:51 AM
Hi,
I've installed everything now - however when clicking on 'Warn member' button, I get this message:
Database error in vBulletin 3.0.3:
Invalid SQL:
SELECT name, warnlvl, points
FROM warnings
ORDER BY (warnlvl) ASC, (worder) ASC
mysql error: Unknown column 'name' in 'field list'
mysql error number: 1054
Any ideas what I've done wrong?
Thanks!
- Joe
sv1cec
06-01-2005, 06:18 AM
Joe,
Are you sure this is AWS? I do not remember the code you show, being part of my hack. Maybe another warning system?
AND PLEASE use the forum shown at the top of the page for your questions.
paul41598
06-15-2005, 04:05 AM
So this system doesnt really ban a user? Im playing with it, and I got a test user to get temporarily banned it says. It looks like the user cant post at all, but still view the forums.
What kind of ban is that?
Or am I doing something wrong?
sv1cec
06-15-2005, 04:39 AM
First of all,
Questions and support requests should be posted in the premium forum (link at the top).
Second, AWS does ban a member, when he reaches the points limit you have specified. What that means however, is not AWS job, it depends on the permissions you have set, for the banned users group. If you have the view permission on, and the post permission off, that's what the banned member gets. It is not related to AWS, but to your general vB settings for the various usergroups.
AND PLEASE POST YOUR QUESTIONS HERE:
https://vborg.vbsupport.ru/forumdisplay.php?f=105
msimplay
06-15-2005, 06:11 AM
So this system doesnt really ban a user? Im playing with it, and I got a test user to get temporarily banned it says. It looks like the user cant post at all, but still view the forums.
What kind of ban is that?
Or am I doing something wrong?
The banning has nothing to do with the hack. Its Your settings in admincp for the ban group. You have to make sure that it does not inherit permissions from other usergroups
Snake
06-19-2005, 10:18 AM
I've one question. How many queries does this hack needs to run?
sv1cec
06-19-2005, 11:24 AM
Read this:
https://vborg.vbsupport.ru/showthread.php?t=81519
And in the future, please post your questions here:
https://vborg.vbsupport.ru/forumdisplay.php?f=105
Snake
06-19-2005, 01:12 PM
Will do. Sorry about that.
red_baron2000
06-22-2005, 08:52 AM
will this great hack converted to work with vbb 3.5?
Snake
06-22-2005, 09:07 AM
I hope so. :D
sv1cec
06-22-2005, 09:14 AM
I am not sure. My initial intentions were to port it, but after giving it an initial try, it looks as if there are so many changes in the new "standards" that converting it will require some serious .... reading on my behalf. Even though I have every good intention to do it, I seriously doubt if I'll find the time to figure out how on earth the new vB works.
Don't get disappointed, you never know.
Please do not post your questions here though, look at the top of each page here, for the AWS forum.
Rgds
King Kovifor
06-29-2005, 06:36 PM
/me installs this hack along with the help of Mythotical. Thanks for the great hack!
Bratz-Designs
07-06-2005, 01:34 PM
Ok...for me, the warn system shows up fine in the ACP, but on the forums its nowhere, any ideas?
sv1cec
07-06-2005, 05:19 PM
Have you done all the modifications suggested? Especially the ones in the postbit template?
AND PLEASE USE THE PROPER PLACE FOR YOUR QUESTIONS:
https://vborg.vbsupport.ru/forumdisplay.php?f=105
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.