vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Advanced Warning System 3.6.7 (https://vborg.vbsupport.ru/showthread.php?t=124477)

Celtkin 02-10-2007 10:21 AM

Quote:

Originally Posted by Delphiprogrammi (Post 1165704)
hi,

That bug is now confirmed here a temporary workaround is disabling he plugin at hook location private_insertpm_process i will see what i cando about it

Problem solved

open plugin at hook location private_insertpm_process at tyhe verry top before any other code add

PHP Code:

global $vbulletin


save enable plugin

done

test users => add a new user

ciao ;)

I tried to access the reference link but you registration to your board has been turned off. :(

What was the error that you addressed.

Delphiprogrammi 02-11-2007 06:56 PM

Quote:

Originally Posted by Junkie (Post 1177530)
Is there a way to remove the vBulletin "Give Infraction" link that shows in the user's profile and the icon https://vborg.vbsupport.ru/external/2007/02/12.gif that shows in the postbit?

There is no "switch" eg a setting that controls this (so you would be allowed to enable / disable it) but you can always edit the templates and remove that code but personally i would recommend not to touch this or comment it out

HTML Code:

<!-- this is a comment --> <- the comment ends here
you would have to edit postbit & postbit_legacy and MEMBERINFO as an example look at the attached picture this is my postbit_legacy template (teststyle) i use this for testing things only.Now where did the infraction icons go ? :D ;) open postbit_legacy and look for

HTML Code:

<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
replace that with

HTML Code:

<!--<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>-->
look for

HTML Code:

<if condition="$show['redcard']">
                        <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
                <else />
                        <if condition="$show['yellowcard']">
                                <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
                </if>
                        </if>

replace with

HTML Code:

<!--<if condition="$show['redcard']">
                        <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
                <else />
                        <if condition="$show['yellowcard']">
                                <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
                </if>
                        </if>-->

look for

HTML Code:

<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
and replace with

HTML Code:

<!--<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>-->
postbit_legacy is done now.This is just an example to get you started.This way the code is never removed if you need it later on you can uncomment it and ...

Delphiprogrammi 02-11-2007 06:59 PM

Quote:

Originally Posted by Steeler Nation (Post 1177538)
Fatal error: Call to undefined function: check_user() in /home/www/steelernation/forums/Warn.php on line 605

did you uploaded the file functions_warning.php to your vBulletin includes directory ? also make sure it has the correct permissions and your server / host is not in any way disallowing it's execution (openbase_dir PHP protection is known todo this sometimes)

alexhirurg 02-14-2007 09:10 AM

bugreport ! i've not understood the condition - when it happening, but it happening often...

Look at first comma after VALUES - there is strange... no userid, no username. Why it can be ?
this report from one of the administrators account.

Code:

Invalid SQL:

                      INSERT INTO pmtext_warned
                      (fromuserid, fromusername, title, before_title, message, before_message, touserarray, dateline)
                      VALUES
                      (,
                      '',
                      '',
                      '<i>The user did not enter a title</i>',
                      'B?*um b?*um bambaló \nBambaló og dillidillidó\nMy little friend I lull to rest\nBut outside, a face looms at the window\n\nWhen the mighty mountains\nfill your chest with burning desire,\nI will play the langspil [violin-fiddle-like instrument]\nand soothe your mind\n\nB?*um b?*um bambaló \nBambaló og dillidillidó\nMy little friend I lull to rest\nBut outside, a face looms at the window\n\nWhen the cruel storms rage\nand the dark blizzard crouches above,\nI shall light five candles\nand drive away the winter/twilight shadows',
                      'B?*um b?*um bambaló \nBambaló og dillidillidó\nMy little friend I lull to rest\nBut outside, a face looms at the window\n\nWhen the mighty mountains\nfill your chest with burning desire,\nI will play the langspil [violin-fiddle-like instrument]\nand soothe your mind\n\nB?*um b?*um bambaló \nBambaló og dillidillidó\nMy little friend I lull to rest\nBut outside, a face looms at the window\n\nWhen the cruel storms rage\nand the dark blizzard crouches above,\nI shall light five candles\nand drive away the winter/twilight shadows',
                      '',
                      1171311326);

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
                      '',
                      '',
                      '<i>The user did not enter a title</i>',
                      'B?*um b?*um b' at line 4
Error Number : 1064
Date        : Monday, February 12th 2007 @ 12:15:26 PM
Script      : http://www.linkinparkforums.com/editpost.php?do=updatepost&postid=463949
Referrer    :
IP Address  : 194.144.42.227
Username    : Friðbjörn
Classname    : vB_Database


alexhirurg 02-14-2007 09:19 AM

also i want to ask authors - is it possible to embed manual changes to templates to the xml ?
like as parse_templates plugin, or - i don't know the way to change templates in install/uninstall scripts - may be somebody know ?
only one way that i can invent - get it by fetch_template, change and store directly to the database by SQL query..
Any thinks ?

chikkoo 02-14-2007 11:29 AM

Though I wanted to install AWS in 3.5, since it was in Beta, I was using Inferno Warning System. Now I am still continuing with it, though it is not 100% working (adding warnings but not banning).

Now I am planning to switch to AWS 3.6.1, before that some queries:

1) Can I import the Warning points from Inferno Warning System?
2) Inferno had some warning blocks (green+yellow+red), does your warning levels/points have such blocks/pictures?
3) Does every one can see other members warning points and warning reason?

Thanks for your support.

sv1cec 02-14-2007 03:25 PM

Even though I am no longer directly involved with either the development or the support of AWS, I think I can safely answer your questions. Maybe Delphi can elaborate more on some points, if he feels like it.

Quote:

1) Can I import the Warning points from Inferno Warning System?
I have no idea how the Inferno Warning System works, but I think it is higlly unlikely. AWS stores the member's warning points in the user table, while the details about each warning are stored in a different table called warnings. Unless the Inferno WS uses the exact same column names in both of these tables, to store the exact same information, there is no way to use the old information you have about your members. Of course, writing a small program to do the import is NOT impossible, but it has to be done by someone who is aware of how the IWS and AWS store their data.

Quote:

2) Inferno had some warning blocks (green+yellow+red), does your warning levels/points have such blocks/pictures?
Hmm, no AWS doesn't have any "blocks", at least not "visual" blocks, which categorize the member in one of the three categories mentioned. Frankly it's not so difficult to add such a thing, AWS has already some "categories" in the sense that it uses some cut-off limits (avatar cut-off limit, signature cut-off limit, PM cut-off limit).

Quote:

3) Does every one can see other members warning points and warning reason?
This is a selectable option in AWS. You have the option to allow only Management to see the warning information or everyone, however normal members can NOT see the details for each warning another member has received. Only how many warnings he/she has, how many warning points, how many bans etc.

I hope this helps.

GoTTi 02-15-2007 05:02 PM

im sure this has been answered...

can we upgrade from 3.5.4 to 3.6.x?

alexhirurg 02-16-2007 12:55 PM

Authors Ignorred My Posts ?

sv1cec 02-16-2007 02:52 PM

No, I am not ignoring your question, it's just that I do not have an answer to give you. That obviously should happen when a warning is automatically issued for usage of censored words in a PM. Unformtunately, I do not have a working system to test it and tell you, so you will have to wait for Delphi to check it out.

As for your question about the templates, I am not sure I understand the question. Yes, you can alter a template in the xml file, it's a text file, so you should be able to edit it, but somehow I do not think this is what you are asking.


All times are GMT. The time now is 10:50 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.01695 seconds
  • Memory Usage 1,793KB
  • 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
  • (7)bbcode_html_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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