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)
-   -   MAF: (Moderator Application Form & Application Rating Module) (https://vborg.vbsupport.ru/showthread.php?t=77340)

Dave-ahfb 03-29-2005 09:06 PM

oops, I meant to say /install/

red_baron2000 03-29-2005 11:20 PM

2 things :

1) there is a small typo " their" should be"there" see attached picture.

2) i have set the cron as stated above and scheduled task to run 1 time per day however it still send the same applicant form to moderators forum non stop any idea how to fix this?

thank you.

Mla7a6 03-30-2005 04:05 PM

I am not sure, but it seems to me the problem with the installation of HIS is associated with MySQL version 3.23 while it didn't affect version 4 and above.. ( I tested it on another site and it ran smoothly like a charm)..

Can you confirm it MarcoH64

sabret00the 03-30-2005 04:06 PM

yup theirs a problem with HIS or atleast my implemation and pre-4.0.0

Marco van Herwaarden 03-30-2005 05:32 PM

Try running the following queries, insert table prefix if needed:
[sql]CREATE TABLE maf_application (
appid int(10) NOT NULL auto_increment,
userid int(10) NOT NULL default 0,
email varchar(250) NOT NULL default '',
fullname varchar(250) NOT NULL default '',
age tinyint(4) NOT NULL default 0,
location varchar(250) NOT NULL default '',
timezone varchar(25) NOT NULL default '',
position varchar(250) NOT NULL default '',
why_them mediumtext NOT NULL,
what_they_bring mediumtext NOT NULL,
pactivity mediumtext NOT NULL,
globally_pactivity mediumtext NOT NULL,
plus_site mediumtext NOT NULL,
neg_site mediumtext NOT NULL,
better_than_rest mediumtext NOT NULL,
more mediumtext NOT NULL,
application_time int(10) NOT NULL default 0,
auto_mailed tinyint(4) default NULL,
PRIMARY KEY (appid)
);[/sql]
[sql]CREATE TABLE maf_ratings (
ratingid int(10) NOT NULL auto_increment,
appid int(10) NOT NULL default 0,
userid int(10) NOT NULL default 0,
rating tinyint(4) NOT NULL default 0,
additional_comments mediumtext NOT NULL,
timestamp int(10) NOT NULL default 0,
PRIMARY KEY (ratingid),
KEY appid (appid),
KEY appid_2 (appid)
);[/sql]

@sabre
Why are you not using TABLE_PREFIX? and why the same KEY twice on the second table?

Marco van Herwaarden 03-30-2005 05:33 PM

Quote:

Originally Posted by sabret00the
yup theirs a problem with HIS or atleast my implemation and pre-4.0.0

The database errors are not caused by HIS, but by the SQL statements themself. The problem with the current HIS version is that it doesn't show the database error correct.

Mla7a6 03-30-2005 09:24 PM

I ran the SQL query from "phpMyAdmin 2.4.0" as instructed, but there was an error after each query:

after the 1st query
Code:

Error

SQL-query : 

CREATE TABLE maf_application(

appid int( 10 ) NOT NULL auto_increment,
userid int( 10 ) NOT NULL default0,
email varchar( 250 ) NOT NULL default '',
fullname varchar( 250 ) NOT NULL default '',
age tinyint( 4 ) NOT NULL default0,
location varchar( 250 ) NOT NULL default '',
timezone varchar( 25 ) NOT NULL default '',
position varchar( 250 ) NOT NULL default '',
why_them mediumtext NOT NULL ,
what_they_bring mediumtext NOT NULL ,
pactivity mediumtext NOT NULL ,
globally_pactivity mediumtext NOT NULL ,
plus_site mediumtext NOT NULL ,
neg_site mediumtext NOT NULL ,
better_than_rest mediumtext NOT NULL ,
more mediumtext NOT NULL ,
application_time int( 10 ) NOT NULL default0,
auto_mailed tinyint( 4 ) default NULL ,
PRIMARY KEY ( appid )
)

MySQL said:


You have an error in your SQL syntax near 'default0, email varchar( 250  )  NOT  NULL default  '', fullname varchar( 250  )' at line 1

and then after the 2nd query:

Code:

Error

SQL-query : 

CREATE TABLE maf_ratings(

ratingid int( 10 ) NOT NULL auto_increment,
appid int( 10 ) NOT NULL default0,
userid int( 10 ) NOT NULL default0,
rating tinyint( 4 ) NOT NULL default0,
additional_comments mediumtext NOT NULL ,
timestamp int( 10 ) NOT NULL default0,
PRIMARY KEY ( ratingid ) ,
KEY appid( appid ) ,
KEY appid_2( appid )
)

MySQL said:

You have an error in your SQL syntax near 'default0, userid int( 10  )  NOT  NULL default0, rating tinyint

Any ideas MarchH64 ?

Marco van Herwaarden 03-31-2005 12:46 PM

Well something went wrong with the copy&paste. If you look at the query i posted on the previous page you will see a space between every 'default 0', this turns into 'default0' at your post.

Try again, but insert a space in every 'default0'.

SaN-DeeP 03-31-2005 12:58 PM

Nice Modification sabretooth.. I will give this a try :)

Regards,

Mla7a6 03-31-2005 09:42 PM

Quote:

Originally Posted by MarcoH64
Well something went wrong with the copy&paste. If you look at the query i posted on the previous page you will see a space between every 'default 0', this turns into 'default0' at your post.

Try again, but insert a space in every 'default0'.

I tried to copy&paster several times, and even added extra spaces, but phpMyAdmin didn't get it right.. so I tried something else..

I inserted the tables manually, and the script worked 80% except for the automatic thread creation.. I think the reason was that I didn't know how to run the following command manually: ( I am still novice @ MySQL quries :o :o )
Code:

KEY appid( appid ) ,
KEY appid_2( appid )

if thats the reason, can you help me.. I know that I bugged you very much.. but I liked the script and will do anything to install it..


All times are GMT. The time now is 03:22 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.01445 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_code_printable
  • (2)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