vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced Warning System (Beta Version) (https://vborg.vbsupport.ru/showthread.php?t=95921)

andrefedalto 02-15-2006 10:04 AM

Quote:

Originally Posted by Xplorer4x4
I have found that I can not remove warning via the admin cp, but it works just fine in the mod cp. It seems to me a comparision of the php coding of removing a warning via admin cp should be compared to the php code of remove a warning via mod cp.

weird, because with me it works just fine removing a warn via AdminCP... and i fixed no bugs in admincp

sassy1: i'll work out to release this little modification ;)

andrefedalto 02-15-2006 12:52 PM

ok, lets go:
Open AdminCP, go to Plugin management and edit this plugin: "AWS: Show Warning Options/Points in Postbit/Threads"

replace this:
Code:

global $hierarchical, $viewoption, $showpoints;
with this:
Code:

global $hierarchical, $viewoption, $showpoints, $vbulletin, $stylevar;
scroll down to the end of the plugin and BEFORE this:
Code:

DEVDEBUG("useradmin = $useradmin, postadmin = $postadmin, usermod = $usermod, postmod = $postmod, usersmod = $usersmod");
DEVDEBUG("showpoints = $showpoints, showwarnsignmgm = $showwarnsignmgm, showwarnsign = $showwarnsign");
DEVDEBUG("showwarnlink = $showwarnlink, showviewwarnlink = $showviewwarnlink, showviewyourslink = $showviewyourslink");

add this:
Code:

if ($post[warning_level]>0) {
        $width_max = 70;
        $percent = $post[warning_level]/$vbulletin->options['warn_points_before_banned'];
        $width_max = $width_max - 4;
        $width1 = round($percent*$width_max);
        $width2 = $width_max-$width1;
        $graphic_warn_level = "<img src=\"".$stylevar[imgdir_misc]."/warn_left.png\" width=\"2\" height=\"10\"><img src=\"".$stylevar[imgdir_misc]."/warn_dark.png\" width=\"".$width1."\" height=\"10\"><img src=\"".$stylevar[imgdir_misc]."/warn_light.png\" width=\"".$width2."\" height=\"10\"><img src=\"".$stylevar[imgdir_misc]."/warn_right.png\" width=\"2\" height=\"10\">";
}

ATTENTION: in this variable $width_max change "70" for the MAXIMUM width of the bar you can use in postbit. I have 70 pixels to use, so i set it to 70. When doing the edit, set it to some value (IN PIXELS) that fits to your template.

Now you must go to template edition and edityour postbit/postbit_legacy template.
Find this:
Code:

Warnings Level: $post[warning_level]
and replace with
Code:

Warnings Level: $graphic_warn_level
Upload the attached images to your MISC image directory.
And now just enjoy your cool userbar instead of just numbers :)

See attached image to see how is the final result (my text is in portuguese, but after you follow this small tutorial you will get the text in ENGLISH).

Hope you enjoy this little mod. Thanks you all!

GoTTi 02-18-2006 05:11 PM

when is this coming out of beta? why is it still in beta also?

sv1cec 02-18-2006 07:54 PM

Most probably never. I have no test system to work on, and Andreas, who was supposed to provide support for this hack, is obviously too busy to do so. Sorry!

GoTTi 02-18-2006 11:30 PM

what kind of test system do u need?

sv1cec 02-19-2006 04:36 AM

A vB 3.5 system in which I can play. Preferably not a working, active board, as I may need to stop it etc.

Hornstar 02-19-2006 06:31 AM

I have sent you a pm John, I have set up everything for you, just waiting to find out if you still need it.

Thanks

sv1cec 02-19-2006 06:43 AM

I responded to your PM. I will not be able to work on this, until tomorrow morning.

Rgds and tnx

GoTTi 02-19-2006 07:01 AM

yo i sent u a PM also....

Hornstar 02-19-2006 07:14 AM

Okay looks like there may once again be some progress on this to finally take it out of beta lol. Take your time on doing it John, there is no rush, I fully understand that you have your own commitments to attend to first before this.

Edit: I think someone needs to go through every post and find every bug that this has, to make it easier for john. I'd do it but i gotta go out now.


All times are GMT. The time now is 06:29 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.01778 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)bbcode_code_printable
  • (1)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