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 01-28-2005 11:03 AM

Quote:

Originally Posted by Delphiprogrammi
hi,

well i did this updated and instead of those images there are buttons but if you click the button nothing happens ? i'm i missing something here ?

Did you erase only the <img things, or also the <a href ???

rgds

Delphiprogrammi 01-28-2005 11:14 AM

Quote:

Originally Posted by sv1cec
Did you erase only the <img things, or also the <a href ???

rgds

no the a href="" stuff is still there i just replace the img tag and before the "</a>" i add the new code

Code:

<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w"></a>

sv1cec 01-28-2005 11:22 AM

Quote:

Originally Posted by Delphiprogrammi
no the a href="" stuff is still there i just replace the img tag and before the "</a>" i add the new code

Code:

<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w"></a>

OK, here is the code as it is in my template:

HTML Code:

<!-- checks for warning system -->
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
<if condition="$hierarchical=='No'">
        <if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 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 $post[usergroupid]!=5 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 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]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND $post[warning_level]>0">
        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?

        </if>
</if>
<if condition="$hierarchical=='Yes'">
        <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])) OR ($post[usergroupid]==7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid]) AND $bbuserinfo[usergroupid]==5) OR
        ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)"
>

        <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]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5)) OR ($post[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $post[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]!=6 AND $post[warning_level]>0">
        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?
        </if>
</if>
</if>
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
<if condition="$hierarchical=='No'">
        <if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
        <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w"/></a> ?
        </if>
        <if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6)">
        <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v"/></a> ?
        </if>
        <if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND $post[warning_level]>0">
        <a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v"/></a> ?
        </if>
</if>
<if condition="$hierarchical=='Yes'">
        <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])) OR ($post[usergroupid]==7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid]) AND $bbuserinfo[usergroupid]==5) OR
        ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)"
>

<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>
<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w"/></a> ?
        </if>
        <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5)) OR ($post[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
        <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v"/></a> ?
        </if>
        <if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[warning_level]>0">
        <a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v"/></a> ?
        </if>
</if>
</if>
<!-- end of warning system -->

Rgds

Delphiprogrammi 01-28-2005 12:47 PM

hi sv1cec,

thanks for the code ;) i copy & pasted that in my postbit template but for some reason (don't ask me why i have no idea) nothing is happening when you click that button however i modified the code a little

Code:

<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="javascript:window.location=http://www.yourserver.com/forums/Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]">
then the button works

rgds

sv1cec 01-28-2005 01:12 PM

CAUTION: The latest mod which was implemented with version 3.1.4 DOES NOT WORK with Internet Explorer. Do not install it, until I find the proper solution.

sv1cec 01-28-2005 01:25 PM

Quote:

Originally Posted by Delphiprogrammi
hi sv1cec,

thanks for the code ;) i copy & pasted that in my postbit template but for some reason (don't ask me why i have no idea) nothing is happening when you click that button however i modified the code a little

Code:

<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="javascript:window.location=http://www.yourserver.com/forums/Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]">
then the button works

rgds

Are you sure it works with this code you attached?

I try it in Internet Explorer and it does not work, with or without that onclick thing.

Delphiprogrammi 01-28-2005 01:59 PM

no now it doesn't work anymore fu** it worked the first time i tryed it

Exernon 01-28-2005 02:02 PM

Quote:

Originally Posted by sv1cec
CAUTION: The latest mod which was implemented with version 3.1.4 DOES NOT WORK with Internet Explorer. Do not install it, until I find the proper solution.

So why not place the 100% working version instead of showing the 3.1.4 to the public?

Bolas 01-28-2005 02:09 PM

because Firefox is The Solution! :)

sv1cec 01-28-2005 02:15 PM

OK, I found it. It now works OK with IE, Firefox and Netscape, so everyone should be happy.

Sorry about that, but I couldn't believe that it would work with Firefox and not work with IE.

I'll upload the corrected files in a few moments.
Rgds


All times are GMT. The time now is 04:33 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.02100 seconds
  • Memory Usage 1,773KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)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