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)

SnitchSeeker 10-19-2004 03:29 PM

After testing this extensively, I find the warn does not send a PM like it is supposed to. No error is given (that I know of).

Any idea why this isn't working? What should I check?

Everything else (including automatic ban after x warns) works perfectly! :)

Rick Sample 10-19-2004 06:20 PM

Quote:

Originally Posted by sv1cec
I have to assume you have installed only the original hack (and possibly version 1.5, as well). If you convert to my files, my mods use a template for the PM, so you can edit it to your heart's content.

As for your mod, again, if you install my version of the hack, mods can all see the "View XYZ's Warnings" link, but only those responsible for the particular forum can "Warn XYZ".

Rgds

Yeah, I have installed 1.5 and got everything working. Where in the template or file would I find the stuff to edit the warnings at for the PM's for 1.5?

sv1cec 10-19-2004 06:59 PM

Quote:

Originally Posted by muscle-mustangs
Yeah, I have installed 1.5 and got everything working. Where in the template or file would I find the stuff to edit the warnings at for the PM's for 1.5?

In Warn.php, find:

PHP Code:

// Send PM!! =D
$messageb="You have been warned for one of your posts: [url={$vboptions[bburl]}/showthread.php?p={$_POST['post']}]click here to see it[/url]. Your warning level is now: {$level}. Click on the [b]Quick Links[/b] menu above and select [b]View Your Warnings[/b], to see details about all the warnings you have received. The person who warned you, entered this comment: [i]{$_POST['comment']}[/i]. Please reply back if you have a dispute.";
$messageb=ParseInput($messageb); 

Replace that, with:

PHP Code:

eval('$messageb .= "' fetch_template('warn_pm') . '";');
$title="You have been warned";
$to=$user['userid'];
$from=$bbuserinfo['userid'];
SendPM($messageb,$title,$to,$from); 

You need a template called "warn_pm", which should have the followings:

HTML Code:

Dear $user[username],

You have been warned for one of your posts, which violated the Forums Rules.

The reason you have been warned is because [b][i] $warn_type[warn_desc] [/i][/b](Warning Type = $warn_type[warn_name]), for which you have been given [b] $warn_type[warn_points] [/b] point(s).

The post for which you are warned can be seen [URL="$vboptions[bburl]/showthread.php?p=$_POST[post]"]here[/URL].

The admin/moderator who warned you, entered this comment:

=======================================
[i]$_POST[comment][/i]
=======================================

Your total Warning Level at the moment is: [b] $level [/b] point(s).

If you reach the maximum of [b]$warn_options[points_before_banned][/b], you will be banned from the Forums, for [b]$warn_options[banned_limit][/b] days.

To see details about all the warnings you have received, until now, please click [URL="$vboptions[bburl]/Warn.php?do=ViewMyWarnings"]here[/URL].

Please reply back if you have a dispute.

It should work. Although, if you just upgrade to my version, you will have a lot more functionality (but also a lot of work to figure out for yourself).

Rgds
---------
John

sv1cec 10-19-2004 07:03 PM

Quote:

Originally Posted by sully02
Is there a way to make it so that when a warning is sent, the moderator who issued the warning remains anonymous?

If you use my mods of this hack, the PM is send on behalf of :

$from=$bbuserinfo['userid'];

You may change that to something like

$from=1

which will make the PM look as if it came from the admin. I haven't tried it, but it should work.

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

sv1cec 10-19-2004 07:10 PM

Quote:

Originally Posted by SnitchSeeker
This is a brilliant hack, great job and nice work!!

I have installed it over at Harry Potter friends.

The only "problem" with it, from my point of view, is that you can only warn people from a forum post. And it is always related to a post.

We have a great need to be able to warn people from their profile, or from the admin cp directly (by just entering a member id).

A lot of our warnings are for nasty PM's, for siggie rule violations, etc. (so nothing related to any forum posts).

Any chance of a tweek to this effect?

Excited for the v-2.0 release!! :)

I guess I could come up with something like that, if I get some time to work on it.

It shouldn't be too difficult, my only concern is if the warning types will be the same or not. If they are not, (if you cannot have them together with your normal, per-post warning types), then I do not see it possible, at least with my time restrictions.

Also, being a new admin, how to you get to know that someone send a nusty PM? Do members forward that to you?

Also, I need to think where that 'non-post-related' link will be, in other words, where will the "Warn XUZ" link will be, for this kind of warnings. Ideas?

Rgds

sv1cec 10-19-2004 07:13 PM

Quote:

Originally Posted by Remi
Hi

I don't know if this is posible or not, but here we go :D

Let us say, I have many wrning levels and I have a common one that I use most of the time.

Now, I want to creat a direct link on the "postbit" to that "common warningid" so I can click on that sort of "default" warning link without going into another page and having to chose from the "Warning pulldown menue".

If you think this is posible, PLEASE help :)

Thanks in advance


It can be done, all you have to do is pass the right parameters to the form, but I do not have the time to do it. Sorry Remi.

sv1cec 10-19-2004 07:17 PM

As someone suggested, a "Prune Old Warnings" functionality would be a nice addition. So I did it.

The file attached has step-by-step instructions, on how to do it. Basically, it asks you how many days warnings do you want to keep (the last 30 days for example), and then goes on and deletes all INACTIVE warnings, issued before the last 30 days. Please note that the function works with the version of my mods, which maintains all warnings as a historical file, making them inactive when they are removed or when they mature.

I hope you enjoy.

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

Remi 10-19-2004 09:59 PM

Quote:

Originally Posted by Remi
Hi

I don't know if this is posible or not, but here we go :D

Let us say, I have many wrning levels and I have a common one that I use most of the time.

Now, I want to creat a direct link on the "postbit" to that "common warningid" so I can click on that sort of "default" warning link without going into another page and having to chose from the "Warning pulldown menue".

If you think this is posible, PLEASE help :)

Thanks in advance

Quote:

Originally Posted by sv1cec
It can be done, all you have to do is pass the right parameters to the form, but I do not have the time to do it. Sorry Remi.

Thank you very much sv1cec for giving me the hope :D

I think I can do it if only someone can get me started on how to construct the link:

/Warn.php?&do=WarnUser&id=$VARID&post=$VARPOST&warn ingid=$VARID



Thanks

sully02 10-19-2004 11:05 PM

Quote:

Originally Posted by sv1cec
If you use my mods of this hack, the PM is send on behalf of :

$from=$bbuserinfo['userid'];

You may change that to something like

$from=1

which will make the PM look as if it came from the admin. I haven't tried it, but it should work.

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

My good sir, you and I are on the same page. My thinking was to set it as a static user, since the PM has to be sent from somebody. I think this might be good for some other boards because whenever my moderators issue a warning (Even if it is a 0 point "reminder") they get blasted in the reply PM. This way, nobody knows who warned who.

I'm thinking aloud here, but here is how I think this could be done, so at least the users don't know who warned them.

* Send the PM from a static username. Either the admin or some "WarnBot" will suffice
* Comment out/remove the portions of the row templates that display the moderator's username

I will look into how to achieve this, and if successful will report the results if nobody beats me to it.

sully02 10-20-2004 12:43 AM

OK, here is what I came up with. I have attached the file that has information on what to do to make the PM come from a static user and how to make the person issuing the warning disappear from "View my warnings"

This is my first real stab at modifying anything beyond what I've downloaded, so if I did something wrong, please let me know, as I wish to become more proficient in this area.

sv1cec 10-20-2004 04:05 AM

Quote:

Originally Posted by sully02
OK, here is what I came up with. I have attached the file that has information on what to do to make the PM come from a static user and how to make the person issuing the warning disappear from "View my warnings"

This is my first real stab at modifying anything beyond what I've downloaded, so if I did something wrong, please let me know, as I wish to become more proficient in this area.

I think Sully02 had a great idea. I'll check your mods out, and I'll include the "Warner ID" as a setting in the AdminCP. Check back later today, if the twins allow me to work on it.

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

sv1cec 10-20-2004 06:37 AM

As I said before, I liked the idea of a covered warner, so I did some changes in the database and the files/templates to make it a "consistent" feature of the hack. A text file is attached here, with the required modifications.

I hope you enjoy it.

While doing this, I also discovered a strange behaviour, in the Warning Options section of AdminCP. So, I changed the code a bit to correct it. The changes you should do, are described in the second attached file. All those who have implemented my "Allow multiple warnings for the same post?" option and the "Send PM to the warned member?" option, should do these changes, or else these features will not function properly.

Sorry for any inconvenience.

Finally, since the Warning Options part of AdminCP is getting a bit large as it is (it shows both the warning options, the defined offenses and allows you to add a new offence), I decided to separate them a bit, in order to make things more manageable. A third file is attached, which explains how to separate the Warning Options from the Warning Types.

I hope you enjoy.

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

SnitchSeeker 10-20-2004 09:42 AM

Quote:

Originally Posted by sv1cec
I guess I could come up with something like that, if I get some time to work on it.

It shouldn't be too difficult, my only concern is if the warning types will be the same or not. If they are not, (if you cannot have them together with your normal, per-post warning types), then I do not see it possible, at least with my time restrictions.

Also, being a new admin, how to you get to know that someone send a nusty PM? Do members forward that to you?

Also, I need to think where that 'non-post-related' link will be, in other words, where will the "Warn XUZ" link will be, for this kind of warnings. Ideas?

Rgds

Yes, members forward those types of PM's to admins.

I don't mind if it uses the exact same warning types. Well, either way is fine really. The non-post-related warnings we use are "siggie violation" "avatar violation" or "PM spam" - so we can isolate these out of the other warning types if that is easier.

As for where to place it, the logical places seem to me to be ..
.. a) from the user profile (same concept aas the link called "user options" that takes you to the admin cp
.. b) from the admin cp directly (either while editing a user or as a part of the warn system, like a new point called "warn a member" or something.
.. c) from the drop-down when you click in a member's name from inside a thread (along with "view __'s profile, view __'s home page, send __ a private message" etc.
.. d) as an option within the postbit mini-profile square thinigie that shows up beside (or above - depending on if you use legacy or not) each post.

SnitchSeeker 10-20-2004 09:46 AM

Quote:

Originally Posted by SnitchSeeker
After testing this extensively, I find the warn does not send a PM like it is supposed to. No error is given (that I know of).

Any idea why this isn't working? What should I check?

Everything else (including automatic ban after x warns) works perfectly! :)

Isn't it supposed to send a PM?

Or is that just some add-on that I didn't use? (I only used the original files from post 1.)

I would really like a PM sent from the "warner" (not anonyous).

Can anybody help? It isn't happening now. :(

j_86 10-20-2004 01:55 PM

Thanks again sv1 :)

Can the option to enable "anonymous" warnings, or changing the ID or the warner - be turned on/off in the admin panel so we dont get moderator abuse?

sv1cec 10-20-2004 01:59 PM

Quote:

Originally Posted by JimpsEd
Thanks again sv1 :)

Can the option to enable "anonymous" warnings, or changing the ID or the warner - be turned on/off in the admin panel so we dont get moderator abuse?

Yes Sir, it is an administrator option. If you define something there, all PMs will be issued by that account, if not, every PM is send by each ... warner.

Keep in mind, that the admin and the other mods can always see who the real warner is. It's just the warned user who sees the dedicated account, and this is only shown in the PM he receives.

Rgds

j_86 10-20-2004 02:10 PM

Quote:

Originally Posted by sv1cec
As someone suggested, a "Prune Old Warnings" functionality would be a nice addition. So I did it.

The file attached has step-by-step instructions, on how to do it. Basically, it asks you how many days warnings do you want to keep (the last 30 days for example), and then goes on and deletes all INACTIVE warnings, issued before the last 30 days. Please note that the function works with the version of my mods, which maintains all warnings as a historical file, making them inactive when they are removed or when they mature.

I hope you enjoy.

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

I think there are some missing phrases here?

SamirDarji 10-20-2004 04:42 PM

Quote:

Originally Posted by sv1cec
I hope you enjoy.

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

With as many mods as you've made to this hack and the amount of contribution you've made, I say that you take all your modifications to this hack and release it as an add-on hack. There's so much!

sv1cec 10-20-2004 05:19 PM

Quote:

Originally Posted by JimpsEd
I think there are some missing phrases here?

Yeah, I knew I didn't wrote everything down! That's why I am not doing this for a living, you know. I am not good at recording things!!

LoL, yes, the missing phrases are easy to assume, one is something along the lines "Old warnings, issued before the specified period, have been pruned" and should be named "warnings_pruned" and the other should be something like "Old Warnings were not pruned" and should be named "warnings_npruned", both in the Control Panel Stop Messages.

Sorry about that.

Rgds

sully02 10-20-2004 09:08 PM

Quote:

Originally Posted by sv1cec
Yeah, I knew I didn't wrote everything down! That's why I am not doing this for a living, you know. I am not good at recording things!!

LoL, yes, the missing phrases are easy to assume, one is something along the lines "Old warnings, issued before the specified period, have been pruned" and should be named "warnings_pruned" and the other should be something like "Old Warnings were not pruned" and should be named "warnings_npruned", both in the Control Panel Stop Messages.

Sorry about that.

Rgds

Here is another option I am pondering...

Perhaps a "Statute of limitations" in regards to how long you have to warn a post. The reason I bring this up is because a moderator could be viewing a thread that has some replies from a few weeks ago, sees something he/she deems warn-worthy and issues a warning. The problem is, at the time, nobody found the post in question to be a problem.

I think something that says "After a post has been up for x hours/days/whatever time increment, a warning cannot be issued for it" would be a superb addition. Anybody else agree?

Rick Sample 10-20-2004 09:50 PM

Quote:

Originally Posted by sully02
Here is another option I am pondering...

Perhaps a "Statute of limitations" in regards to how long you have to warn a post. The reason I bring this up is because a moderator could be viewing a thread that has some replies from a few weeks ago, sees something he/she deems warn-worthy and issues a warning. The problem is, at the time, nobody found the post in question to be a problem.

I think something that says "After a post has been up for x hours/days/whatever time increment, a warning cannot be issued for it" would be a superb addition. Anybody else agree?

Thats actually a good Ideal, maybe after 30 days or something. I would hate for someone to get warned for a post they made a year or two ago lol

SamirDarji 10-20-2004 10:06 PM

But the only thing is, if a moderator can stumble on an old post like that and find that it breaks the rules, a user can do the same. It's like saying that after x days, the rules don't apply even if you broke them. My 2 cents.

sv1cec 10-21-2004 03:48 AM

Quote:

Originally Posted by SamirDarji
But the only thing is, if a moderator can stumble on an old post like that and find that it breaks the rules, a user can do the same. It's like saying that after x days, the rules don't apply even if you broke them. My 2 cents.

I have to agree with SamirDarji on that one, rules are rules, and if they were broken, no matter how old the post is, it deserves a warning according to my book at least.

Also, this is an administrative issue, your moderators should have rules, by which they moderate. If you want them not to warn old posts, just tell them so. Sorry, this idea doesn't appeal to me.

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

sv1cec 10-21-2004 05:55 AM

Quote:

Originally Posted by SamirDarji
With as many mods as you've made to this hack and the amount of contribution you've made, I say that you take all your modifications to this hack and release it as an add-on hack. There's so much!

SamirDarji, I am not fully aware of the administrative issues in this forum, and since I can't provide detailed instructions on how to move from this hack's version 1.5 to my version, I do not want to post a new hack (or even an add-on hack). For the time being, I'll keep posting my mods here, for those interested. Thanks for suggesting this though.

Rgds
---------
John

sv1cec 10-21-2004 07:38 AM

Quote:

Originally Posted by SnitchSeeker
Yes, members forward those types of PM's to admins.

I don't mind if it uses the exact same warning types. Well, either way is fine really. The non-post-related warnings we use are "siggie violation" "avatar violation" or "PM spam" - so we can isolate these out of the other warning types if that is easier.

As for where to place it, the logical places seem to me to be ..
.. a) from the user profile (same concept aas the link called "user options" that takes you to the admin cp
.. b) from the admin cp directly (either while editing a user or as a part of the warn system, like a new point called "warn a member" or something.
.. c) from the drop-down when you click in a member's name from inside a thread (along with "view __'s profile, view __'s home page, send __ a private message" etc.
.. d) as an option within the postbit mini-profile square thinigie that shows up beside (or above - depending on if you use legacy or not) each post.

SnitchSeeker,

I am working on this non-post-related warning thing (which is quite interesting) and there is an issue here. In the way I do it, there will be a link inside the user profile, which will allow you to warn him. However, since this is not related to the offensive item (PM or whatever), there is no way I can show the user, for which item he was warned. So the moderator who issues such a warning, should make sure that in the Comments field, enters the appropriate information, i.e. "Your PM send to user XYZ on October 25th 2004 was offensive".

Also, I made the same mistake again, started doing changes without documenting them very well, so you may act as my guinea pig for this thing. Is that OK with you? The file changes are not too many, but I haven't documented all the template changes I did. Oh well, I'll see what's the best I can come up with.

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

sv1cec 10-21-2004 08:05 PM

Gentlemen,

Per your request, I am releasing the non-post related warnings feature of this hack. This will allow you to warn members, for offenses which are not related to a post, but to other things, like a PM or an improper Home Page etc.

The file contains the instructions, with one catch. It asks you to replace the contents of two of your templates, while I could just ask you to replace a particular line. Sorry, but I haven't kept a copy of the original line, so instead of screwing you up with mistakes, I decided to give you the whole template.

The option to allow non-post related warnings, is controlled from your AdminCP/Manage Warning Options.

If you have problems with this mod, please let me know.

Enjoy
-------------
John

SnitchSeeker 10-22-2004 05:50 AM

Quote:

Originally Posted by sv1cec
SnitchSeeker,

I am working on this non-post-related warning thing (which is quite interesting) and there is an issue here. In the way I do it, there will be a link inside the user profile, which will allow you to warn him. However, since this is not related to the offensive item (PM or whatever), there is no way I can show the user, for which item he was warned. So the moderator who issues such a warning, should make sure that in the Comments field, enters the appropriate information, i.e. "Your PM send to user XYZ on October 25th 2004 was offensive".

Also, I made the same mistake again, started doing changes without documenting them very well, so you may act as my guinea pig for this thing. Is that OK with you? The file changes are not too many, but I haven't documented all the template changes I did. Oh well, I'll see what's the best I can come up with.

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

Sure, I'm willing to be a guinea pig. :) But it looks like you have fixed it beautifully by adding it to the admin cp instead.

I'll install it later tonight and let you know how it works for me!

Thanks so much for taking the time to do this!! :)

SnitchSeeker 10-22-2004 03:32 PM

Quote:

Originally Posted by sv1cec
Gentlemen,

Per your request, I am releasing the non-post related warnings feature of this hack. This will allow you to warn members, for offenses which are not related to a post, but to other things, like a PM or an improper Home Page etc.

The file contains the instructions, with one catch. It asks you to replace the contents of two of your templates, while I could just ask you to replace a particular line. Sorry, but I haven't kept a copy of the original line, so instead of screwing you up with mistakes, I decided to give you the whole template.

The option to allow non-post related warnings, is controlled from your AdminCP/Manage Warning Options.

If you have problems with this mod, please let me know.

Enjoy
-------------
John

I don't have the templates you mention installed. I must have missed an add-on to this hack somewhere. I like the hack as it is, but want this small addition.

Dybukk 10-22-2004 07:57 PM

I installed this hack....great work.

Only found one issue. If a user is already in the userban table and they reach the ban level you get a mySQL error since the code tries to INSERT a userid that already is in the table.

Also, is there a reason why the permanent ban usergroup can't be the same as the banned usergroup? I seem to remember reading that the banned usergroup is where the user returns to after being banned.

I was going to try and fix the SQL error myself by putting a check before inserting the user into the table. But I am a noob at php so I bet someone else has a better solution.

Edit:

Here is my solution, haven't fully tested it yet.

In Warn.php:

Find:
PHP Code:

$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)"); 

Replace with:
PHP Code:

if ($check $DB_site->query_first("SELECT userid, liftdate FROM " TABLE_PREFIX "userban WHERE userid = $user[userid]"))
    {
        
// there is already a record - just update this record
        
$DB_site->query("
            UPDATE " 
TABLE_PREFIX "userban SET
            adminid = 
$bbuserinfo[userid],
            bandate = " 
TIMENOW ",
            liftdate = 
$liftdate,
            adminid = 
$bbuserinfo[userid]
            WHERE userid = 
$user[userid]
        "
);
    }
    else
    {
        
// insert a record into the userban table
        
$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)
        "
);
    } 

This was just a quirk I found and I don't really see it ever coming up since most banned users don't post. If you see errors in my code, let me know.

sv1cec 10-23-2004 05:23 AM

I had the same issue, but as you point out, I thought that a banned member is not likely to post new offenses, so it would be impossible to get new warnings for them. Still, from a good-coding point of view, you are right, it should be taken into consideration.

Your code should work fine, although there is no point in saving adminid twice, in the first part of the if statement, right? LoL

rgds
--------
John

bnn121 10-23-2004 11:30 PM

I was woundering if I could get some help with this hack.


The problem is I have four styles

Purple is the defualt style

And the other three are just different colors of the defualt.

Well from looking at the postbit and postbit legacy templates they do not match the defualt template where the hack instructions says to modify.

Could somebody help me on adding this hack to the other three styles? It works like a champ on the first style which is the defualt...

I'm able to make the modification to the navbar in style two...and I'm able to modify the postbit and postbit legacy templates on style two...but when I click on the view users warning...I get a blank page.

Thanks

sv1cec 10-24-2004 05:07 AM

Quote:

Originally Posted by bnn121
I was woundering if I could get some help with this hack.


The problem is I have four styles

Purple is the defualt style

And the other three are just different colors of the defualt.

Well from looking at the postbit and postbit legacy templates they do not match the defualt template where the hack instructions says to modify.

Could somebody help me on adding this hack to the other three styles? It works like a champ on the first style which is the defualt...

I'm able to make the modification to the navbar in style two...and I'm able to modify the postbit and postbit legacy templates on style two...but when I click on the view users warning...I get a blank page.

Thanks

Bnn121,

I have no idea how the different styles work, but as far as I can tell, there is nothing that should prevent the hack from working with different styles. If you could upload here the postbit and postbit_legacy templates of your one of your other styles, I could have a look and see if we can do something, but as you understand, I have no way to test it.

Rgds

bnn121 10-24-2004 12:18 PM

Okay...I was told that we are not using the postbit templates on the forum...only the posbit_legacy templates. I have been sucsessful in getting the thread to display the warning hack but again when I click on view users warnings I get a blank page. This is only in the last three styles...in the main style this hack works just fine.

I'm uploading the main postbit template and the main postbit_legacy template

Also uploading postbit and postbit_legacy template of one of the other styles.

The other two styles are all the same except for where they get there images from.

I did notice in the warn.php file that there is alot of calls for fetch_template. I'm not a php programmer...but would I need to add/change anything in the warn.php file in order for it to call the correct style?

I also uploaded a screen shot of the warning hack on the brown style...the brown style is the one I'm working with...If I click on the

View BNN121's Warnings

button. it takes me to a blank page.
I hope this helps.

sv1cec 10-24-2004 01:51 PM

Quote:

Originally Posted by bnn121
Okay...I was told that we are not using the postbit templates on the forum...only the posbit_legacy templates. I have been sucsessful in getting the thread to display the warning hack but again when I click on view users warnings I get a blank page. This is only in the last three styles...in the main style this hack works just fine.

I'm uploading the main postbit template and the main postbit_legacy template

Also uploading postbit and postbit_legacy template of one of the other styles.

The other two styles are all the same except for where they get there images from.

I did notice in the warn.php file that there is alot of calls for fetch_template. I'm not a php programmer...but would I need to add/change anything in the warn.php file in order for it to call the correct style?

I also uploaded a screen shot of the warning hack on the brown style...the brown style is the one I'm working with...If I click on the

View BNN121's Warnings

button. it takes me to a blank page.
I hope this helps.

As I said, I am no expert in multi-style environments, my site has just one, so I am not able to help much. I have to assume a few things here, so correct me if I am wrong. First of all, have you added all the templates to all your styles?

From what I understand about the styles-templates things, you shouldn't alter anything in your php files in order to call the template of the particular style. The style is just a variable the user selects and then all his "views" of vB are rendered using that style. I have to assume that the template names do not change, from one style to the other, or else nothing would work in vB.

I would expect that in the last template, the links should be entered somewhere within the following code:

HTML Code:

        <td class="thead" style="font-weight:normal" align="$stylevar[right]">
                &nbsp;
                <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a></if>
        </td>

somewhere after &nbsp.

I am sorry I can't be of more help.

Rgds

bnn121 10-24-2004 03:35 PM

I have not added all the templates to all the styles yet. only two of them...the main defualt and the drown one.

ITs to bad the installer could not be moded to install the templtes to all styles with some sort of option in the installer...but doing it manully is a good learning expirence.

I will wait an see if anybody else has any ideas on this...I have all templates installed in the defualt template as well as template two. As I said before. I was told that we only use the postbit_legacy template so there mite be some issues with this template and the original files that need moded...dont know for sure.

I continue working on this...I could have very well missed something...all this code looks the same after awhile.

I just wanted to ad this

Warn.php?do=ViewWarnings&id=1

When I click on the view users warning button...I get the blank screen...but thats what I see in the url.

bnn121 10-24-2004 09:42 PM

Okay...I fianlly got all this style stuff figured out and sorted..I no have a working hack on all four styles...thanks for the direction...

Now...Seeing that this thread is four pages long...I got lost somewhere along the way..

I no I seen in one of the post in this thread that you can set this hack up to do the following

1) Allow all users to see this hack
2) Allow mods to view all users but only allow them to use this hack from within the forum they are modding.
3) Allow Supermods all access board wide
4) Only Admins can unban.

Like I said I seen this in one of the post...but I cant find the specific one I need.

Can somebody help me locate this mod or repost whats needed

Thanks

sv1cec 10-25-2004 03:49 AM

Quote:

Originally Posted by bnn121
Okay...I fianlly got all this style stuff figured out and sorted..I no have a working hack on all four styles...thanks for the direction...

Now...Seeing that this thread is four pages long...I got lost somewhere along the way..

I no I seen in one of the post in this thread that you can set this hack up to do the following

1) Allow all users to see this hack
2) Allow mods to view all users but only allow them to use this hack from within the forum they are modding.
3) Allow Supermods all access board wide
4) Only Admins can unban.

Like I said I seen this in one of the post...but I cant find the specific one I need.

Can somebody help me locate this mod or repost whats needed

Thanks

This thread is 27 pages long (not 4), so happy reading. All these issues are mentionned in previous posts.

Rgds

bnn121 10-25-2004 08:33 AM

LOL...not if you have it set to see 100 post per page...then its only four pages long.

Anyway...okay I'll do some reading...got to be in here somewhere.

sv1cec 10-25-2004 05:23 PM

Quote:

Originally Posted by bnn121
LOL...not if you have it set to see 100 post per page...then its only four pages long.

Anyway...okay I'll do some reading...got to be in here somewhere.

Ooops, sorry, you are right. Never assume anything in this world! LoL

moethelawn 10-28-2004 10:17 PM

Is there an uninstall script for the warning system to be totally removed? (If you don't run install_warn.php again to uninstall it - I have Warning v1.5)

There's nothing wrong with it, and it is a very good hack. All i'm doing is changing some stuff on the forums and I kinda want to remove it for now...


All times are GMT. The time now is 03:10 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.04543 seconds
  • Memory Usage 1,951KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (26)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