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)
-   -   Warning Hack V1.5 (https://vborg.vbsupport.ru/showthread.php?t=65336)

Neutral Singh 10-01-2004 05:58 AM

Gr8 Hack !! Aman Clicks Install !!

I see warning options on each post but when a member clicks on these links he gets no permission message. What is use of showing it when they can not view it. Is there any option which makes it possible only for admin to view those links on each post or can an admin give permissions for users to view their warnings. i am a newbie, so kindly bear with me, please guide me.

Best Regards

Regards

sv1cec 10-01-2004 06:16 AM

Quote:

Originally Posted by amanpartaps
Gr8 Hack !! Aman Clicks Install !!

I see warning options on each post but when a member clicks on these links he gets no permission message. What is use of showing it when they can not view it. Is there any option which makes it possible only for admin to view those links on each post or can an admin give permissions for users to view their warnings. i am a newbie, so kindly bear with me, please guide me.

Best Regards

Regards

It all depends on your postbit conditionals. If you use the conditionals below, the admins and mods can see the "Warn XYZ" and "View XYZ Warnings", but a normal member can only see the "View my warnings" link.

PHP Code:

<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 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 ($bbuserinfo[usergroupid]==7 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]==2 AND $post[warning_level]>0">
<a href='
Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?</if> 

Oh yes, the moderators can see the "Warn XYZ" link, only in the forums they are assigned as moderators. Please make sure that your admin and mod usergroups are 6 and 7, otherwise change these accordingly.

I hope this helps.
------------
John

fridayweb 10-02-2004 02:36 AM

That's not it though... I've changed the conditionals and my regular users can see it, they can click on it, but they can't get to the actual warn.php listing. Is it because of the 'canadmin' conditional in that .php file?

sv1cec 10-02-2004 10:17 AM

Quote:

Originally Posted by fridayweb
That's not it though... I've changed the conditionals and my regular users can see it, they can click on it, but they can't get to the actual warn.php listing. Is it because of the 'canadmin' conditional in that .php file?

I am not sure I understand you. With the conditionals I posted, a normal user can see only his own warnings, via the link "View your warnings". Let's analyze that a bit:

PHP Code:

<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ?
</if> 

This checks if the person who posted is an admin or a mod (if they are, they cannot be warned) and if they are not, then it checks if the viewer has the right to moderate that particular forum. If he has the rights (i.e. he is either a mod for that forum or an admin), he gets the Warn User link.

PHP Code:

<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6)">
<
a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?</if> 

This checks if the poster is not an admin or a mod, and if the user is an admin or a mod. In that case, it shows the "View User Warnings". In other words an admin or a moderator can always view the "View User Warnings" link, except if the poster is himself and admin or a moderator.

PHP Code:

<if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]==2 AND $post[warning_level]>0">
<
a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?</if> 

This checks if the poster user is the same with the viewing user. and that this user is a registered user. If he is, he only gets the "View Your Warnings" link, which allows him to see his own warnings only. If he clicks on that link, he will be shown his warnings.

Isn't that what happens in your setup?

Rgds

fridayweb 10-02-2004 02:47 PM

I understand everything you said, and I appreciate the break down. Yes users can currently see their own warnings. All users can see "View Warnings" if that person has greater than 0 points.

I want ALL users to be able to see ALL warnings of any other user. I'm sorry to be a bother, I'm just trying to get this worked out.

They still keep getting a No Permission - "you do not have permission to access this page." Error.

I think it has to do with "Warn.php?do=ViewWarnings&id=3732" .... the do ViewWarnings is set up in the .php code to be associated with canmoderate. I want to separate that out so that I can set it up by usergroups as well. Does that make sense?

sv1cec 10-03-2004 05:18 AM

Quote:

Originally Posted by fridayweb
I understand everything you said, and I appreciate the break down. Yes users can currently see their own warnings. All users can see "View Warnings" if that person has greater than 0 points.

I want ALL users to be able to see ALL warnings of any other user. I'm sorry to be a bother, I'm just trying to get this worked out.

They still keep getting a No Permission - "you do not have permission to access this page." Error.

I think it has to do with "Warn.php?do=ViewWarnings&id=3732" .... the do ViewWarnings is set up in the .php code to be associated with canmoderate. I want to separate that out so that I can set it up by usergroups as well. Does that make sense?

Oh, OK, that's simple enough. In your Warn.php file, find:

PHP Code:

// You have permission to warn o_O
if($_GET['do']!='ViewMyWarnings'){
if(!
can_moderate(  )){
print_no_permission(  );
}


Replace that with :

PHP Code:

// // You have permission to warn o_O
// if($_GET['do']!='ViewMyWarnings'){
// if(!can_moderate(  )){
// print_no_permission(  );
// }
// } 

I hope this gets it for you.

Rgds
------------
John

msimplay 10-03-2004 06:55 AM

any news on how to stop people from warning the same post twice ?

Anek 10-03-2004 10:02 AM

Quote:

Originally Posted by sv1cec
One issue I had with this hack, is the fact that it uses a separate table, to maintain those members which get banned. If you do that, then you have to manually change their status to unbanned, when the banning period expires.

Why can't we use the normal table, in which vB stores the banned users, called "userban"? In that way, we can have the vB's cron job take care of the unbanning.

For those who are interested in this, all you have to do, is the followings:

In your warn.php file, find the following line:

PHP Code:

$DB->query("insert into ".TABLE_PREFIX."banned_members values ('','{$user['userid']}','".time()."','{$time_unban}')"); 

Replace it, with the followings:

PHP Code:

        if($warn_type['warn_permban']=="Yes")
            {
$liftdate=0;
             }
            else
            {
$liftdate=$time_unban;
             }
                 
$usergroupid=8
        $DB_site
->query("
            INSERT INTO " 
TABLE_PREFIX "userban
            (userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate)
            VALUES
            (
$user[userid]$user[usergroupid]$user[displaygroupid]$user[customtitle], '" addslashes($user['usertitle']) . "', $bbuserinfo[userid], " TIMENOW ", $liftdate)");
        
$DB_site->query("
                UPDATE " 
TABLE_PREFIX "user SET
                usergroupid = 
$usergroupid,
                displaygroupid = 
$usergroupid
                WHERE userid = 
$user[userid]
            "
); 

Of course, in this case, ...etc


Hi.
I replaced the code but now when I click on "warn XYZ" or "View XYZ's Warnings" it give me this error

Code:

Parse error: parse error, unexpected T_VARIABLE in /home/www/.........../Warn.php on line 278
where line 278 is the first line of your code... any idea?

Thx

sv1cec 10-03-2004 04:02 PM

Quote:

Originally Posted by Anek
Hi.
I replaced the code but now when I click on "warn XYZ" or "View XYZ's Warnings" it give me this error

Code:

Parse error: parse error, unexpected T_VARIABLE in /home/www/.........../Warn.php on line 278
where line 278 is the first line of your code... any idea?

Thx

Yes, as I said before, I have made several changes in this hack, to make it more suitable for my needs. One such change is the addition of a new field, warn_permban in the table, which indicates if the offence of the user deserves (and gives him) a permanent ban. You obviously do not have that field in your database and you get that error.

You may remove that part of the code, and use it. Just replace:

PHP Code:

if($warn_type['warn_permban']=="Yes")
            {
$liftdate=0;
             }
            else
            {
$liftdate=$time_unban;
             } 

with

PHP Code:

            $liftdate=$time_unban

That should do it.

Let me know if it works.

Rgds
------------
John

fridayweb 10-03-2004 04:19 PM

Quote:

Originally Posted by sv1cec
Oh, OK, that's simple enough. In your Warn.php file, find:

PHP Code:

// You have permission to warn o_O
if($_GET['do']!='ViewMyWarnings'){
if(!
can_moderate(  )){
print_no_permission(  );
}


Replace that with :

PHP Code:

// // You have permission to warn o_O
// if($_GET['do']!='ViewMyWarnings'){
// if(!can_moderate(  )){
// print_no_permission(  );
// }
// } 

I hope this gets it for you.

Rgds
------------
John


Worked like a charm, thank you so much. Stupid me, I didn't think to comment it out, I thought I had to change it to usergroups or something. Thanks again!!

sv1cec 10-03-2004 04:25 PM

Quote:

Originally Posted by fridayweb
Worked like a charm, thank you so much. Stupid me, I didn't think to comment it out, I thought I had to change it to usergroups or something. Thanks again!!

No problem, but before you actually commit to using my code, make sure you test it extensively. I've done so many changes to this hack, that even though I try everything several times before putting it here, you may still get some problems. If so, please let me know, I'll do what I can to help.

Rgds
------------
John

Anek 10-04-2004 09:42 PM

Quote:

Originally Posted by sv1cec
.......

You may remove that part of the code, and use it. Just replace:

PHP Code:

if($warn_type['warn_permban']=="Yes")
            {
$liftdate=0;
             }
            else
            {
$liftdate=$time_unban;
             } 

with

PHP Code:

            $liftdate=$time_unban

That should do it.

Let me know if it works.
.....

Perfect it works!!! :up:

Only a thing: when user is banned, him user title doesn't change.
I think that is sufficient set $user[customtitle]="banned" .. is it right?

sv1cec 10-05-2004 06:08 AM

Quote:

Originally Posted by Anek
Perfect it works!!! :up:

Only a thing: when user is banned, him user title doesn't change.
I think that is sufficient set $user[customtitle]="banned" .. is it right?

Well, to do that, find:

PHP Code:

 $liftdate=$time_unban

and right underneath that, add:

PHP Code:

$title="Temp. Banned" 

or "Banned" or whatever you want.

Then find:

PHP Code:

        $DB_site->query("
                UPDATE " 
TABLE_PREFIX "user SET
                usergroupid = 
$usergroupid,
                displaygroupid = 
$usergroupid
                WHERE userid = 
$user[userid] 

and replace it with:

PHP Code:

        $DB_site->query("
                UPDATE " 
TABLE_PREFIX "user SET
                usergroupid = 
$usergroupid,
                displaygroupid = 
$usergroupid,
                usertitle = 
$title
                WHERE userid = 
$user[userid] 


Anek 10-05-2004 07:58 AM

Thx a lot :)

This night I found a solution like yours

Code:

$liftdate=$time_unban;
                $usergroupid=8;
                                $usertitle= "<font color=\"red\">Banned</font>";
        $DB->query("
            INSERT INTO " . TABLE_PREFIX . "userban
            (userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate)
            VALUES
            ($user[userid], $user[usergroupid], $user[displaygroupid],'". addslashes($user['customtitle']) ."', '" . addslashes($user['usertitle']) . "', $bbuserinfo[userid], " . TIMENOW . ", $liftdate)");
        $DB->query("
                UPDATE " . TABLE_PREFIX . "user SET
                usergroupid = $usergroupid,
                displaygroupid = $usergroupid,
                usertitle = '". addslashes($usertitle) . "'
                WHERE userid = $user[userid]
            ");

This is the first time that I play with the code, I hope that everything will work.
Thanks still for the patience ^^

Goodspeed 10-06-2004 09:40 AM

Is it possible to remove warn points after the expiration of some time? And setup different time of expiration for each violation?

Thank you.

sv1cec 10-06-2004 02:36 PM

Quote:

Originally Posted by Goodspeed
Is it possible to remove warn points after the expiration of some time? And setup different time of expiration for each violation?

Thank you.

Yes, it is possible, that's what I have in my forums. Each violation has a maturity period, when that passes, a cron script removes the violation points from the user. However, as I've said, I haven't documented the changes I've made very neatly (not at all actually), so all I can do to help you, is to send you the related files and you have to take it from there. I'll provide as much help as I can, but don't expect me to do everything.

Rgds
------------
John

Goodspeed 10-07-2004 01:46 PM

Quote:

Originally Posted by sv1cec
Yes, it is possible, that's what I have in my forums. Each violation has a maturity period, when that passes, a cron script removes the violation points from the user. However, as I've said, I haven't documented the changes I've made very neatly (not at all actually), so all I can do to help you, is to send you the related files and you have to take it from there. I'll provide as much help as I can, but don't expect me to do everything.

Rgds
------------
John

It would be great if you leave these files here. Thank you!

j_86 10-07-2004 03:50 PM

Such a mod has been posted in this thread, 5 - 10 pages back.

sv1cec 10-07-2004 05:53 PM

Quote:

Originally Posted by JimpsEd
Such a mod has been posted in this thread, 5 - 10 pages back.

Try looking through the posts, I am almost sure I've posted here before. If you can't find it, let me know.

Rgds

Cryo 10-07-2004 09:11 PM

sv1cec, I added your mature warnings cron job and it doesn't seem to do anything, even though I have several warnings that are over 1 month old. Any ideas what could be wrong?

sv1cec 10-07-2004 11:11 PM

Quote:

Originally Posted by Charlie O'Leary
sv1cec, I added your mature warnings cron job and it doesn't seem to do anything, even though I have several warnings that are over 1 month old. Any ideas what could be wrong?

What is the maturity period for those warnings? Do you have a maturity period in your warnings?

Rgds
-----------
John

Cryo 10-07-2004 11:43 PM

Quote:

What is the maturity period for those warnings? Do you have a maturity period in your warnings?
Hrm, don't have anything that allows me to set that. What tables / modifications would need to be added / made in order to get that to work? Didn't see it anywhere else in this thread.

sv1cec 10-08-2004 06:01 AM

Since this thread is getting quite long, and there are several posts with replies I gave to users, based on my modifications of this excellent hack, and after being prompted by a fellow member here, I spend a whole night, putting down some notes to explain what my version of the hack does.

Unfortunatelly, when I was making those changes, I didn't kept a log, so it is not possible to provide step-by-step instructions. Also, it is not possible to implement one feature and leave out another. The whole thing is offered as a ... packaged deal, LoL.

Please be patient, remember that last night I slept only one hour, preparing these things and making the code more "public", until yesterday, it was only for internal consumption.

OK, hopefully when this message is complete, there will be several files uploaded. These are :

1. mymods.txt - a text file describing what my mods do, in addition or in difference to the original hack (even version 1.5, which should be installed before starting to change things). This file contains also the description of the tables that my mods use. IT DOES NOT CONTAIN STEP -BY-STEP INSTRUCTIONS ON HOW TO MODIFY THE TABLES, IT JUST SHOWS YOU THE TABLES STRUCTURE.
2. Warn.php - my version of Warn.php
3. admin_warn.php - my version of the file, this one should be uploaded into your admincp directory.
4. kill_warns.php - a cron script to automatically delete warnings, whose maturity period has been elapsed. This should be uploaded into your include/cron directory and activated from the "Add New Scheduled Task" in your AdminCP. Make it so it is run once a day. My settings for that are:
Title: delete_old_warnings
Day of the week : *
Day of the month : *
Hour : 3
Minute : 3
Log Entries : Yes
File : ./includes/cron/kill_warns.php
5. templates.txt - a file which contains all my warn-related templates. Some of them may be the same as the ones of the original hack, but since I do not know/remember which ones I've modified, I included them all. It also contains instructions, on how to modify the postbit and the postbit_legacy templates. If you have some of the warn templates already, make sure they contain my code. If some of the templates I list, are not in your system, you have to create them.

One more thing I remembered, as I finished this: Since I am not using the table that the original hack had for the banned users, the "Unban User" option is no longer available. I let vB cron job do the unbanning. Please test it though, because I am not sure how well it works. For example, in my hack, when a user is banned, his original user group id is maintained in the userban record, in order for it to be restored when the member is unbanned. I am not sure if this works though. Let me know.

Added Friday Oct 8th Evening:

If one is to allow multiple warnings for the same post (for various offences obviously), the person issuing the warning, should be able to see what other warnings were issued for this post. So, I edited Warn.php a little, and a couple of templates. The changes are reflected at the files below.

Added Saturday Oct. 9th morning:

I forgot to mention that the Warning Points a user has received, are also shown in his profile. So that brings the total number of templates you have to edit to 20!!!!

I guess this is the best I can do to describe how I customized this beautiful hack, to make it more suitable to my needs. Credits should all be given to Zero Tolerance for the hack, all I did was lots of trials and (a whole lot more) errors.

I'll try to help anyone who has issues, but I cannot guarantee it guys, there are two 2.5 years-old boys in this family, and this can be a really messy situation.

Regards

----------
John

Cryo 10-08-2004 09:32 PM

Absolutely wonderful, sv1cec! Thanks for the hard work, implementing these changes now. :) One question, is the maturity period a day variable? Meaning, if I wanted a warning to expire in 30 days, the maturity period would be set to 30?

sv1cec 10-09-2004 04:25 AM

Quote:

Originally Posted by Charlie O'Leary
Absolutely wonderful, sv1cec! Thanks for the hard work, implementing these changes now. :) One question, is the maturity period a day variable? Meaning, if I wanted a warning to expire in 30 days, the maturity period would be set to 30?

Yes Sir, it is on a day basis, so for 30 days you enter 30.

Rgds
---------

John

TheMayhem 10-10-2004 03:59 PM

My queries for the warning options are just not working. I'm trying to update from the original warning hack to the 1.5. Could anyone write something up real quickly for phpmyadmin that will delete the current warning options and readd the table with the necessary rows inside? I've spent 24 hours and I just can't seem to get it to work properly :(

M1th 10-10-2004 05:41 PM

Quote:

Originally Posted by sv1cec
Yes Sir, it is on a day basis, so for 30 days you enter 30.

Rgds
---------

John


Not sure if you got my email, John, but the warn maturity feature doesnt seem to work. I set one to be removed after 2 days. I even waited that long but didnt seem to have removed it.

sv1cec 10-10-2004 05:52 PM

Quote:

Originally Posted by M1th
Not sure if you got my email, John, but the warn maturity feature doesnt seem to work. I set one to be removed after 2 days. I even waited that long but didnt seem to have removed it.

M1th,

Please check that you have everything as described in the files a couple of posts above.

It seems it's working OK in my forums, so I am not sure what's the problem. Please check everything again.

And no, I haven't got any e-mail from you, sorry.

Rgds
-----------
John

GamerJunk.net 10-10-2004 10:08 PM

Could you make it possible for the next release to add warning permissions by usergroup? That would help so only mods, supermods and admins could warn users.

SamirDarji 10-10-2004 10:44 PM

If I recall correctly, there actually is a hack for this somewhere in this thread.

sv1cec 10-11-2004 12:54 AM

Quote:

Originally Posted by RasMasta
Could you make it possible for the next release to add warning permissions by usergroup? That would help so only mods, supermods and admins could warn users.

This feature is already there, I think, in version 1.5, in the form of protected groups. Also, my hack takes this into consideration, as far as which members see the "Warn XYZ" link.

Rgds

sv1cec 10-11-2004 04:41 AM

One feature I thought would be interesting, is the history of the warnings a user has received. As the hack was until now, a user might have received 100 warnings, which have matured, and were not displayed anywhere. I am sure the moderators would like to know the past history, so I did some changes to include the past history in the whole thing.

The records in the warnings table, are no longer deleted, when the maturity period expires or the mods/admins remove a warning, they are just marked as "Inactive". In that way when a mod/admin asks to see the warnings of a user, he sees not only the ones which are currently active, but also the ones which got matured (and thus removed automatically) or deleted. The inactive warnings are shown with lighter letters than the active ones, when one asks to see the warnings., so they are easily distinguished.

The new feature requires changes in Warn.php, in includes/cron/kill_warns.php and in some templates. It also requires that you add another field in your warnings table. This time, I provided accurate step-by-step instructions, in the attached text file, but remember that they are based on my files released in this post.

I've also included a screenshot of how the inactive warnings look like.

Guys, if some of you are using my modified hack, please post a note here, as I have no idea if you do like me adding features or you would prefer me to go do some other things.

Small update (Tuesday, October 12th): If you do the mods included in this post, to use the historical aspect of warnings, the included admin_warn.php is better, so you might want to use that as well.

Rgds
-------------
John

sv1cec 10-11-2004 06:45 AM

If you have done the mods suggested in https://vborg.vbsupport.ru/showpost....&postcount=303, you may change the template warn_addwarn, with this new one, it just improves on the functionality, opening all links in new browser windows.

This should be the contents of your warn_addwarn template:

PHP Code:

<form action="Warn.php" method="post">
<
input type="hidden" name="do" value="DoWarnUser">
<
input type="hidden" name="id" value="{$_GET['id']}">
<
input type="hidden" name="post" value="{$_GET['post']}">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat" colspan="2">Warning User $user[username]<div class="smallfont">All links belowwill open a new browser windowclose it to return here.</div></td>
</
tr>
<
tr>
    <
td class="alt1">User Info:</td>
    <
td class="alt1">
<
a href="member.php?u=$_GET[id]"  onclick="window.open('member.php?u=$_GET[id]}','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">User Profile for $user[username] - User ID$_GET[id]</a><br />
<if 
condition="$user[warning_level]>0">
<
Font color="red">User Current Warning Level: {$user['warning_level']}</font><br />
<
a href="Warn.php?do=ViewWarnings&id=$user[userid]"  onclick="window.open('Warn.php?do=ViewWarnings&id=$user[userid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">View Existing Warnings for $user[username]</a>
</if>
        </
td>
</
tr>
<
tr>
    <
td class="alt2">Warned Post:</td>
    <
td class="alt2">
<
a href="showthread.php?p=$_GET[post]onclick="window.open('showthread.php?p=$_GET[post]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">Review Warned PostPost ID$_GET[post]</a>

<if 
condition="$warning_multiwarns1<>''">
<
br><Font color="red">$warning_multiwarns1</font><br>
<
A HREF="Warn.php?do=ViewPostWarnings&post=$_GET[post]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$_GET[post]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">$warning_multiwarns2</a></if></td>

</
tr>
<
tr>
    <
td class="alt1">Warning Selection:</td>
    <
td class="alt1"><select name="warningid" class="smallfont">
        <
optgroup label="Choose A Warning">
        
$warnopts
        
</optgroup>
    </
select></td>
</
tr>
<
tr>
    <
td class="alt2">
        
Moderator Comments:</td>
    <
td class="alt2"><input type="text" name="comment" size="50" class="bginput">
    </
td>
</
tr>
<
tr>
    <
td class="tfoot" align="center" colspan="2"><input type="submit" value=" Add Warning " class="bginput"></td>
</
tr>
</
table>
</
form>
<
br /> 

Rgds
----------
John

SamirDarji 10-11-2004 01:17 PM

Quote:

Originally Posted by sv1cec
...as I have no idea if you do like me adding features or you would prefer me to go do some other things.

I, for one, look at each of your mods with great anticipation. You've been able to take this hack to another level. Keep up the good work. I know that I'll be giving you a ton of feedback once I start really messing with this hack on my test server.

Malice 10-11-2004 10:45 PM

Looking over this hack just a tad, does it have NEW database tables? Basically altering the database.

xtreme-mobile 10-13-2004 07:20 PM

does anyone know who i would go about getting the amount of warning points to go in the profile?

ive seen it on a forum so basically you dont have to click view warnings cos it shows amount of warning points in red bold text

any ideas?

dean

sv1cec 10-14-2004 03:38 AM

Quote:

Originally Posted by xtreme-mobile
does anyone know who i would go about getting the amount of warning points to go in the profile?

ive seen it on a forum so basically you dont have to click view warnings cos it shows amount of warning points in red bold text

any ideas?

dean

Dean,

You have to modify the memberinfo template to have the warning points shown in there. But you can also have it in each and every post of every member, by altering the postbit/postbit_legacy template.

Is that what you had in mind?

Rgds
-------------
John

sv1cec 10-14-2004 04:02 AM

Quote:

Originally Posted by Malice
Looking over this hack just a tad, does it have NEW database tables? Basically altering the database.

The hack does use additional tables. Two of them if you follow my approach, three according to the original hack (if memory serves me right).

Rgds
-----------
John

SamirDarji 10-14-2004 04:33 AM

Quote:

Originally Posted by sv1cec
But you can also have it in each and every post of every member, by altering the postbit/postbit_legacy template.

That's awesome! That's exactly what I'm planning to do.

xtreme-mobile 10-14-2004 03:34 PM

yeh thats it mate i just want it to show up under there post count etca evertime they post

do i just need to edit the postbit files in the template?

could you or anyone else post up the code etc to change or edit etc?

many thanks

Dean


All times are GMT. The time now is 03:40 AM.

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.03395 seconds
  • Memory Usage 1,988KB
  • 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
  • (3)bbcode_code_printable
  • (19)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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