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)

sv1cec 12-02-2004 03:29 AM

Quote:

Originally Posted by ptenthus
Okay, no problem...

Help me with this one thing and I should be up and running.

Here is a snippet of the first template in warn.xml:

Code:

<templategroup name="Ungrouped Templates">
                <template name="WARN" templatetype="template" date="1100330326" username="sv1cec" version="3.0.1"><![CDATA[$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</head>
<body>
$header
$navbar
<BR>
<if condition="$bbuserinfo[userid]=='0'">

I understand the variables you have at the beginning (defining the template name, etc.) but where do I start copying the contents of the template - I assume the "![CDATA[" portion is not part of the template itself...

Thanks.

You are right, whatever is after CDDATA[ is the real template.

Sorry you have to go through this mess, but I do not know how the templates thing works, if you have it different than ... stock.

Rgds

sv1cec 12-02-2004 06:52 AM

Has anyone tested the "Restore Usergroup" function? I mean those of you who wanted to moderate the banned users, after they get unbanned, did you test this feature? Is it working OK?

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

68 Z-28 12-02-2004 04:51 PM

Great hack... Everything appears to be OK.

Only issue i ran into was the templates not getting installed. I went through and did them manually. Now everything seems to be OK at first look except one thing. If there are any problems I'll be sure to come back in and seek some help.

Whenever I'm in the warning templates I have a [ and the top of the page and a /> at the bottom. Likely I just have to go through the templates and find where the stray characters are at.

sv1cec 12-02-2004 05:53 PM

Quote:

Originally Posted by 68 Z-28
Great hack... Everything appears to be OK.

Only issue i ran into was the templates not getting installed. I went through and did them manually. Now everything seems to be OK at first look except one thing. If there are any problems I'll be sure to come back in and seek some help.

Whenever I'm in the warning templates I have a [ and the top of the page and a /> at the bottom. Likely I just have to go through the templates and find where the stray characters are at.

You are right, you probably have copied something wrong when doing the templates, especially the warn_addwarn. Check it out and I am sure (well almost sure) that you 'll find where these characters are coming from. In any case, I'll double check the instructions on the templates to make sure I haven't screwed something up.

Rgds

Shack Networks 12-02-2004 06:50 PM

Ive just upgraded my site with this and it works pretty much as it says on the tin, I had a small problem when the auto warn was issuing points out willy nilly but that was my fault for being dumb.

Its been working now for a few hours and I have not had one complain except for ofcourse those who the sytem has caught already.

Thanks a hell of a lot for this, I rate this and the CMPS the best hacks on here at the moment.

j_86 12-02-2004 06:53 PM

Hmm. Where can I add more protected user groups?

sv1cec 12-02-2004 08:15 PM

Quote:

Originally Posted by JimpsEd
Hmm. Where can I add more protected user groups?

What exactly do you have in mind? The protected groups are set in the code, depending on the Hierarchical option. If set, only admins are protected, if not set then admins, supermods and mods are protected. You want to add other groups to these?

Rgds

sv1cec 12-02-2004 08:16 PM

Quote:

Originally Posted by Shack Networks
Ive just upgraded my site with this and it works pretty much as it says on the tin, I had a small problem when the auto warn was issuing points out willy nilly but that was my fault for being dumb.

Its been working now for a few hours and I have not had one complain except for ofcourse those who the sytem has caught already.

Thanks a hell of a lot for this, I rate this and the CMPS the best hacks on here at the moment.

I am glad you like it Shack Networks, after all, you were the originator of the automatic warnings idea.

Rgds

j_86 12-02-2004 08:40 PM

Yes sv1 - I thought you included it in your past ZT's additons.

Your work currently is fantastic :)

j_86 12-02-2004 09:00 PM

What happens when someone gets given a warning for X points, and the X points happens to also be the limit, and the user is temp banned, and the warning maturity is set to longer than what the user gets temp-banned for?


All times are GMT. The time now is 05:31 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.01918 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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