vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/showthread.php?t=71992)

mcyates 12-06-2004 10:21 PM

Quote:

Originally Posted by sv1cec
The following tables are used by this hack (and Zero's):

warning_options
warning_types
warnings

If you had installed version 2.0 and above, you would also have a table named pmtext_warned.

Zero was using another table for banned users, called banned_members. All these should be in your database, and should be useable again.

If you want to delete them and start from scratch, just make sure you do not use a TABLE_PREFIX. If you do, add that in the installation script.

I would suggest that you do not start with Zero's hack, go directly to the installation of this one, the installation procedure is much easier.

Let me know if that helps.

Rgds

I removed the following tables

warning_options
warning_types
warnings

And from the "user" table i removed:

warnings
warning_level
warning_bans

I then started the install scripts, it installed the templates but then I get this error:

Code:

Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'No', '','0','7','10','8','6','8','0','Yes','3','All','Yes','Yes','No','Yes','Yes','15')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Tuesday 07th of December 2004 12:21:14 AM

What's the problem?

sv1cec 12-07-2004 03:42 AM

Quote:

Originally Posted by rh2004
Okie I have re done the whole mod anyway and its working, I found another error
though, when you have send PM to user (when warned) it gives you the error:

Code:

Fatal error: Call to undefined function: sendpm() in /home/username/public_html/dis/Warn.php on line 357
If its turned of you don't get the error

Another one I found is:

My adminpanel is called adminpanel instead of admincp so when I click
Complete Removal user it gives me

Code:

The requested URL /admincp/admin_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.

Can you help me fix these :D

Thanks :)

Please download the latest zip, the Warn.php file I had in the previous one was using a wrong required file, so it was not locating the functions_warning.php file. Let me know if you still have problems.

As for the adminpanel, and find this in your admin_warn.php file:

PHP Code:

$cy="<a href='{$vboptions[bburl]}/admincp/admin_warn.php?act=completeremove 

Replace it with:

PHP Code:

$cy="<a href='{$vboptions[bburl]}/adminpanel/admin_warn.php?act=completeremove 

Rgds

sv1cec 12-07-2004 03:45 AM

Quote:

Originally Posted by Celtic_Mad
I have made a usergroup called 'Site Owner' which I am in and it has everything an adminstrator has but administrators and moderators are still able to warn me, how can I make it that neither of them can warn this usergroup?

A whole usergroup for yourself!!!

Why didn't you just add yourself in the admins?

Just add that group in the "Protected Usergroups" option, in the Warning Options.

Rgds

sv1cec 12-07-2004 03:48 AM

Quote:

Originally Posted by mcyates
I removed the following tables

warning_options
warning_types
warnings

And from the "user" table i removed:

warnings
warning_level
warning_bans

I then started the install scripts, it installed the templates but then I get this error:

Code:

Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'No', '','0','7','10','8','6','8','0','Yes','3','All','Yes','Yes','No','Yes','Yes','15')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Tuesday 07th of December 2004 12:21:14 AM

What's the problem?

Download and use the latest install_warn.php file. Darn, I have to rewrite that insert so it works with the column names, I always seem to have a mistake there. A couple of people had that problem yesterday, so I hope I have corrected the insert.

Let me know if it works.

Rgds

mcyates 12-07-2004 09:32 AM

Quote:

Originally Posted by sv1cec
Download and use the latest install_warn.php file. Darn, I have to rewrite that insert so it works with the column names, I always seem to have a mistake there. A couple of people had that problem yesterday, so I hope I have corrected the insert.

Let me know if it works.

Rgds

ok thanks mate,i'll try now. Your doing a fantastic job. Thanks again

I'll let you know if it works.

mcyates 12-07-2004 09:48 AM

Quote:

Originally Posted by mcyates
ok thanks mate,i'll try now. Your doing a fantastic job. Thanks again

I'll let you know if it works.

I'm still getting the same error:

Code:

Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'No', '','0','7','10','8','6','8','0','Yes','3','All','Yes','Yes','No','Yes','Yes','15')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

You'll get it right one day!! :up:

bold 12-07-2004 05:14 PM

i get this error

Code:

Fatal error: Cannot redeclare sendpm() (previously declared in /home/blah/public_html/forums/includes/functions_warning.php:12) in /home/blah/public_html/forums/includes/functions_newpost.php on line 15

bold 12-07-2004 05:27 PM

i removed the sendpm function in functions_newpost.php and it's working. you should include that in the upgrade txt.

sv1cec 12-07-2004 06:03 PM

I just copied this below, from the installation file. I am sure I have it right there.

PHP Code:

$install[]="INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6', '6','8','0','Yes','3','All','Yes','Yes','No','Yes','Yes','15')"

Try this!

sv1cec 12-07-2004 06:06 PM

Quote:

Originally Posted by bold
i removed the sendpm function in functions_newpost.php and it's working. you should include that in the upgrade txt.

You are right, I forgot to add the instructions for that, I just updated the file.

Tnx

bold 12-07-2004 07:01 PM

Quote:

Originally Posted by sv1cec
You are right, I forgot to add the instructions for that, I just updated the file.

Tnx

:) you are doing a good job with this hack.

mcyates 12-09-2004 10:21 AM

Quote:

Originally Posted by sv1cec
I just copied this below, from the installation file. I am sure I have it right there.

PHP Code:

$install[]="INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6', '6','8','0','Yes','3','All','Yes','Yes','No','Yes','Yes','15')"

Try this!

It worked!!

Thanks, what did you change?

mcyates 12-09-2004 10:31 AM

I just need to add the phrases now as its saying there are duplicates but i'm missing some?

Is there any SQL query i can run which will drop the phrase if it exists and adds them all. The database is fine now, its just the phrases. After the prases are added I can do the file changes.

Thanks in advance, fantastic support.

sv1cec 12-09-2004 11:07 AM

Quote:

Originally Posted by mcyates
I just need to add the phrases now as its saying there are duplicates but i'm missing some?

Is there any SQL query i can run which will drop the phrase if it exists and adds them all. The database is fine now, its just the phrases. After the prases are added I can do the file changes.

Thanks in advance, fantastic support.

Try running the following query in your system:

PHP Code:

select from phrase where varname>='warning' and varname<'we' 

This will show you the phrases which start with 'warning'. All of these are connected to the warning system, so if you do not see anyone that is not related to a warning, then you may execute the following query to remove whichever is left:

PHP Code:

delete from phrase where where varname>='warning' and varname<'we' 

Please make sure that there are no other phrases in the list produced by the first query, except those related to a warning, if there are, then do not run the second one, or else you will delete them.

Rgds

mcyates 12-09-2004 12:02 PM

works thanks!!!

I'll get onto changing the files now. Thank You very much.

sv1cec 12-10-2004 08:53 AM

Quote:

Originally Posted by mcyates
works thanks!!!

I'll get onto changing the files now. Thank You very much.

Most welcome!

mcyates 12-10-2004 10:47 AM

Just query about the atomatic arwings when people post words which are in the censored list. You say you can't prove they said what they said as it replaces the words with **** or whatever symbol you use.

Could you just not make another field (or text box) which the automatic warnings run from? Instead of using the words listed in the censored list, have a warning list and when someone types in a word which is in the warning list, they get warned and the words they typed are still shown as they are not censored.

ALSO you could have (if you want) 3 different boxes for the sevearily of the word.

For examply,

Very Very naughty words: (type words in the box, if uses types in one of the words he gets 5 warning points)

Naughty words: (type words in the box, if uses types in one of the not so nautghy words he only gets 2 points)

Not so naughty: like prick, twat (they will get 1 warning point)
Just a suggestion.

mcyates 12-10-2004 10:57 AM

Also could you add something like this so the public can view the banned members with a ling to the post they got the ban for and when the ban expires:

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

Or will this already work in parralel with this hack?

sv1cec 12-10-2004 01:43 PM

Quote:

Originally Posted by mcyates
Just query about the atomatic arwings when people post words which are in the censored list. You say you can't prove they said what they said as it replaces the words with **** or whatever symbol you use.

Could you just not make another field (or text box) which the automatic warnings run from? Instead of using the words listed in the censored list, have a warning list and when someone types in a word which is in the warning list, they get warned and the words they typed are still shown as they are not censored.

ALSO you could have (if you want) 3 different boxes for the sevearily of the word.

For examply,

Very Very naughty words: (type words in the box, if uses types in one of the words he gets 5 warning points)

Naughty words: (type words in the box, if uses types in one of the not so nautghy words he only gets 2 points)

Not so naughty: like prick, twat (they will get 1 warning point)
Just a suggestion.

All these could be done, but with lot's of coding. At the moment, I am just trapping the censored words, by just comparing the messages, before and after they are parsed by the vB's routine. If they are different, then the user typed bad words, so I issue the warning. If I were to code everything from the beginning, it would take me months (or who knows, weeks? days? hours?).

We'll see, you never know.

But what I wrote before, that I do not know what the user wrote, is not true. If you activate the Automatic PM Warning option, you will see that it adds a report to your AdminCP, in which you can see the original text, as it was typed before being censored. I do not do the same in the simple posts, because it is obvious that whatever got replaced by **** was a bad word. The PM goes from one user to another, the rest of us, do not see it.

Rgds

sv1cec 12-10-2004 01:51 PM

Quote:

Originally Posted by mcyates
Also could you add something like this so the public can view the banned members with a ling to the post they got the ban for and when the ban expires:

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

Or will this already work in parralel with this hack?

You are obviously trying to make me come up with version 3.0???

That's a nice hack, but I agree, it should work with the original userban table, there is no reason to have another one. If you want to store details, such the reason for the ban or the URL that got that person banned, it can be done with extra columns in the original table. Also, it will not work with AWS, because AWS is using the userban table and I do not plan to alter it to use another one (redundancy, I hate it).

This is an interesting idea. Maybe next week. The weekend I am too busy taking care of the twins. At the moment, one of them is sitting in my lap (the other one is still asleep), playing with the Sun's keyboard, which has exceeded its buffer and is beeping every time he presses a key. He really enjoys it!! When they are both awake, I have to go!!! LoL

Rgds
---------
John

rh2004 12-10-2004 03:14 PM

Hi so what do I need to do to make that send pm work as I get that error still above, i've not changed any files since.... :)

sv1cec 12-10-2004 04:33 PM

Did you download the new Warn.php file as instructed? Also, check that you have uploaded the file includes/functions_warning.php.

I answered your questions about 15 posts ago.

Rgds

Gary King 12-10-2004 09:13 PM

I installed this hack from scratch (didn't upgrade). When I go to 'Unban Banned Users' in my admin cp, I get an error saying that the banned_members table does not exist, when in fact it should.

I have checked the files and have concluded that it should have existed, but was not created because it was never in the installer files.

Could someone please send me the correct properties for this table?

Thanks!

rh2004 12-10-2004 11:34 PM

OK, thanks Its working...

I was wondering when you ban someone and there title changes to temp
banned or banned, when you restore them it doesn't change back?

sv1cec 12-11-2004 04:43 AM

Quote:

Originally Posted by Gary King
I installed this hack from scratch (didn't upgrade). When I go to 'Unban Banned Users' in my admin cp, I get an error saying that the banned_members table does not exist, when in fact it should.

I have checked the files and have concluded that it should have existed, but was not created because it was never in the installer files.

Could someone please send me the correct properties for this table?

Thanks!

Gary,

how do you go to "Unban banned Users"? Did you unquoted something from the admincp/index.php file?

That option should not exist in my hack. That was something that ZT was using, as well as the table you are asking about. Since in my hack I use the standard vB table for banned users (userban), the standard vB options in AdminCP can be used if you want to unban users.

So please go back and comment out that line in admincp/index.php and don't worry about that table, you do not need it.

John

sv1cec 12-11-2004 04:44 AM

Quote:

Originally Posted by rh2004
OK, thanks Its working...

I was wondering when you ban someone and there title changes to temp
banned or banned, when you restore them it doesn't change back?

Yes Sir, it changes them back to what they were before the ban.

John

Johannes de Le?n 12-11-2004 08:52 AM

Great hack.

* Stirpes clicks install.

Btw, does this recognize if a user is a moderator on a specific forum or just if (s)he is a moderator and therefore has the power to warn outside their "jurisdiction"?

jluerken 12-11-2004 09:03 AM

Hi,

you have an error in install_warn.php in line 271

Quote:

INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatil
e) VALUES ('messagetag', 'address', '', '', '', '35', '0', '1')");

must be:

Quote:

INSERT INTO `".TABLE_PREFIX."setting` (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatil
e) VALUES ('messagetag', 'address', '', '', '', '35', '0', '1')");
to make it working if someone is using table prefixes.

jluerken 12-11-2004 10:46 AM

I've checked everything twice and have two little problems with the hack.

The first one is only optic. See attachments.
I want to have the reputationlink image in front of the userid.

The second one is harder.
I activated the option Allow Off-Post Warnings? and entered some non post warnings. Problem is that I don't see warning links on the users profile page.
Don't know why. Can someone please help?

sv1cec 12-11-2004 11:36 AM

Answers to the last three posts:

1) Yes, the hack recognizes the forums in which a moderator can moderate and allows him/her to issue warnings only in these forums. All mods can however see the warnings of the users, so they can check them out.

2) TABLE_PREFIX: thanks for catching this, I updated the zip file.

3) I am not sure what I see in the first picture there. But since something is not where it used to be, and the fact that you can't see the "Warn XYZ (off-post warnings)" and the "View XYZ's warning" links, tells me that you haven't edited that particular template properly. Check your MEMBERINFO template.

Rgds to all.

jluerken 12-11-2004 12:52 PM

Quote:

Originally Posted by sv1cec
3) I am not sure what I see in the first picture there. But since something is not where it used to be, and the fact that you can't see the "Warn XYZ (off-post warnings)" and the "View XYZ's warning" links, tells me that you haven't edited that particular template properly. Check your MEMBERINFO template.

Rgds to all.

I checked the MEMBERINFO Template twice and used exactly what you've written in the installation instructions.
Please mail me your MEMBERINFO Template so that I can try this.



I found a new error in the installation instructions:

Quote:

11. Edit file private.php and find:

require_once('./includes/functions_misc.php');

Below that, add:

require_once('./includes/functions_warrning.php');
functions_warning.php, there is an 'r' to much :D

Gary King 12-11-2004 01:42 PM

Quote:

Originally Posted by sv1cec
Gary,

how do you go to "Unban banned Users"? Did you unquoted something from the admincp/index.php file?

That option should not exist in my hack. That was something that ZT was using, as well as the table you are asking about. Since in my hack I use the standard vB table for banned users (userban), the standard vB options in AdminCP can be used if you want to unban users.

So please go back and comment out that line in admincp/index.php and don't worry about that table, you do not need it.

John

It was in the admincp navbar on the left side in the same dropdown as the other Warning mods.

Screenshot attached.

Bolas 12-11-2004 01:52 PM

Hi,

your hack is great, congratulations.
I find myself in a situation where interactions between many moderators (people I trust) may sometimes be difficult to manage: coalitions to ban a user from the whole board may be unpleasant moments in the community. At the moment your hack cannot be used for every single forum. If it could, we may havea system by which ban from every single forum may be proposed by the regular users of that particular forum.
Would it be a long and difficult job to add such a feature into next release?
Again congratulation.

Delphiprogrammi 12-11-2004 02:56 PM

thanks dude nice thing just downloaded it gonna install it right now i like it have a beer or two :D

jluerken 12-11-2004 03:04 PM

Quote:

Originally Posted by jluerken
I checked the MEMBERINFO Template twice and used exactly what you've written in the installation instructions.

Please can someone mail me a running modified MEMBERINFO Template so that I can try this?

oldfan 12-11-2004 03:40 PM

looks great, is it bug free yet?

sv1cec 12-11-2004 03:57 PM

Quote:

Originally Posted by oldfan
looks great, is it bug free yet?

MEMBERINFO TEMPLATE

HTML Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
$headinclude
</head>
<body>
$header
$navbar
$sponsorspanel

<!-- 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'">
        <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>
<!-- 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]&amp;type=profile&amp;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]">
<!-- for user away mod -->
<if condition="$userinfo['awaystatus'] == 1">
<b><span class="time">[ </span>$userinfo[username] is away since $awaysincedate - $awaysincetime<span class="time"> ]</span></b>
<br>
<if condition="$userinfo['awaymessage'] != ''">Reason: $awaymessage&nbsp;<br>
<else />
<span class="time">No reason was given.</span><br>
</if>
<if condition="$post['awayuntil'] != ''">
Expected back on : $post[awayuntildate]
<else />
No expected back date was given.
</if>
<p>
</if>

<!-- for user away mod -->
                                <if condition="$show['lastactivity']">
                                        <div><B>$vbphrase[last_activity]:</b> $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</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>&nbsp;</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&amp;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&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
                <else />
                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;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&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
                <else />
                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;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&amp;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&amp;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&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$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>
                                </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&amp;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&amp;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 from my forums.

sv1cec 12-11-2004 04:03 PM

Quote:

Originally Posted by Gary King
It was in the admincp navbar on the left side in the same dropdown as the other Warning mods.

Screenshot attached.

Not unless you haven't followed my instructions. Here is the part of the instructions that talk about the admincp/index.php file:

PHP Code:

In the same filefind:

    
$printhr false;
    if (
can_administer('canadminstyles'))
    {
    
Right above thatadd:

    
$printhr true ;
    
construct_nav_option 'Manage Warning Options''admin_warn.php?act=manageoptions''<br />' ) ;
    
construct_nav_option 'Manage Warning Types''admin_warn.php?act=view''<br />' ) ;
    
construct_nav_option 'View Warning Logs''admin_warn.php?act=viewlogs''<br />' ) ;
    
construct_nav_option 'View Warned Users''admin_warn.php?act=viewwarnedusers''<br />' ) ;
    if (
$warn_opts['automaticpm'] == 'Yes')
    {
            
construct_nav_option 'View Auto-Warned PMs''admin_warn.php?act=viewwarnedpms''<br />' ) ;
    }
    
construct_nav_option 'Prune Warnings''admin_warn.php?act=prune''<br />' ) ;
    
//construct_nav_option ( 'Unban Banned Users', 'admin_warn.php?act=run_unban', '<br />' ) ;
    
construct_nav_group 'Warning System''<hr />' ) ; 

As you can see the line for the Unban Banned Users, is commented out.

Anyhow, comment that line out and forget about it. You do not need it.

Rgds

jluerken 12-11-2004 04:24 PM

Quote:

Originally Posted by sv1cec
MEMBERINFO TEMPLATE
This is from my forums.

Thanks,

this is looking much better now except one small thing.
If the user has no profile pic and the reputation system is activated, the reputation icon is placed in the middle of the member info.
In the original template its showing on top right which is looking better.

I want to have it over the UserID Text. Take a look at the attachment and you'll know what I mean.

Can you help me with this?

Delphiprogrammi 12-11-2004 05:26 PM

my memberinfotemplate doesn't have

Code:

<if condition="$show['avatar']">
                                <td colspan="3">

what do i do about that ??

also there is no link in my navbar ... i added that two lines to the navbar template but nope ....


All times are GMT. The time now is 01:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02821 seconds
  • Memory Usage 2,078KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)bbcode_html_printable
  • (7)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete