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)

TruthElixirX 09-09-2005 04:11 PM

Code:

Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
select * from vb3_warning_types order by warn_points, warn_maturity, warn_name;

MySQL Error  : Table 'vb3x5.vb3_warning_types' doesn't exist
Error Number : 1146
Date        : Friday, September 9th 2005 @ 01:11:16 PM
Script      : http://www.supportcore.org/testvb/ad...n.php?act=view
Referrer    : http://www.supportcore.org/testvb/ad...dex.php?do=nav
IP Address  : 69.154.2.3
Username    : Chris
Classname    : vb_database

Where are the queries to run..I never saw them..O_o. also in my admincp the Warning options section (The drop down box) is jsut a blank box that expands to fil lthe options. Also when I go to the user's oage in the admincp to warn them it has no option to do this in the user quick links.


EDIT:: Okay the queries are in the product xml file. What could be causing it not to run the right queries though?

Andreas 09-09-2005 04:37 PM

@Kru
Hmm, there is a Plugin that sets the Fields.
Did you import it as a Product?
And yre you using vBulletin 3.5?

@RoryF
No, it sends a PM or eMail.

@TruthElixirX
There should be a Warn-Button ad the bottom of the left Column in User Editor.
The Tables should be created automatically, did you import it as a Product?

Kru 09-09-2005 04:48 PM

Quote:

Originally Posted by KirbyDE
@Kru
Hmm, there is a Plugin that sets the Fields.
Did you import it as a Product?
And yre you using vBulletin 3.5?

Yes I imported it as a Product and of course I am using vb 3.5. otherwise I would have some problems to install this hack. ;)

Everything works fines besides of registering a new user after I install this hack.

I removed hack and reinstalled it again but still same error. :(

Andreas 09-09-2005 04:55 PM

Registering works fine for me. Where exactly do you get Problems?
Btw: I meant are you using RC3? ;)

TCM 09-09-2005 07:01 PM

Awesome! Thanks a ton!

* TCM installs.

EDIT: Or not, it bugged up my boards.

Kirk Y 09-09-2005 07:17 PM

Yipee! I'm so glad you ported this over, this is what I've been waiting for. This is by far the best Warning Hack... ever.

* acidburn0520 jumps for joy!

TruthElixirX 09-09-2005 07:45 PM

Quote:

Originally Posted by KirbyDE
@TruthElixirX
There should be a Warn-Button ad the bottom of the left Column in User Editor.
The Tables should be created automatically, did you import it as a Product?


Yes it is set as a product and no that column is not there.

TosaInu 09-09-2005 07:49 PM

Same problem as Kru. I'm using vb 3.5 rc3 on a fresh database.

Fatal error: Field alerts is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

It's so much easier to get this installed now. I think though that the template notes require a bit of an update (possibly because rc3 has some changes in postbit-legacy).

Example

-
Code:

        <td class="alt1">
        <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        </if>

is without
Code:

<td class="alt1">
and the replace should also be without that.

-The warningpoints are added for postbit, but not for postbit-legacy.

-Need to find
Code:

  <div>$post[message]</div>
                <!-- / message -->

in postbit-legacy
But only
Code:

                <!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->

can be found.

I like this plugin system :)

TosaInu 09-09-2005 07:58 PM

I'm not a coder, but I guess the problem is in class_dm_user.php.
This hack adds 5 fields to the database table user, but the script doesn't know what to do with those when a new user is added.

Here's a fix (WAIT for a real coder to really fix it)

Open includes/class_dm_user.php and find (located at top of file in
Code:

var $validfields = array(
)

Code:

'pmunread'          => array(TYPE_UINT,      REQ_NO),
Add below that

Code:

                'warnings'    => array(TYPE_INT,      REQ_NO),
                'warning_level' => array(TYPE_INT,      REQ_NO),

                'warning_bans'            => array(TYPE_INT,        REQ_NO),
                'alerts'            => array(TYPE_INT,      REQ_NO),
                'warn_notes'          => array(TYPE_UINT,      REQ_NO),

This allows to add users.

Michael-DLR 09-10-2005 03:48 AM

Quote:

Originally Posted by TosaInu
Same problem as Kru. I'm using vb 3.5 rc3 on a fresh database.

Fatal error: Field alerts is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

It's so much easier to get this installed now. I think though that the template notes require a bit of an update (possibly because rc3 has some changes in postbit-legacy).

Example

-
Code:

        <td class="alt1">
        <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        </if>

is without
Code:

<td class="alt1">
and the replace should also be without that.

-The warningpoints are added for postbit, but not for postbit-legacy.

-Need to find
Code:

  <div>$post[message]</div>
                <!-- / message -->

in postbit-legacy
But only
Code:

                <!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->

can be found.

I like this plugin system :)

This is the one place I am stuck to get the code in the template correct. The rest I was able to figure out. Does anyone know the right code to put in the template for this one?

Also, after clicking add warning from a post I get the following error:
Fatal error: Call to a member function on a non-object in C:\Program Files\Ensim\Sitedata\***\forums\includes\functions _warning.php on line 581


All times are GMT. The time now is 01:05 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.01781 seconds
  • Memory Usage 1,761KB
  • 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
  • (12)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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