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)
-   -   HelpDesk v1.63 (https://vborg.vbsupport.ru/showthread.php?t=77155)

laeth 02-28-2005 09:07 AM

nvm I fixed it. I changed the querys to this instead, seemed to do the trick:


PHP Code:

$query['new'][] = "CREATE TABLE `".TABLE_PREFIX."ticketreply` (
  `replyid` int(10) unsigned NOT NULL auto_increment,
  `ticketid` int(10) unsigned NOT NULL default '0',
  `username` varchar(50) NOT NULL default '',
  `userid` int(10) unsigned NOT NULL default '0',
  `dateline` int(10) unsigned NOT NULL default '0',
  `pagetext` mediumtext NOT NULL,
  `ipaddress` varchar(15) NOT NULL default '',
  PRIMARY KEY  (`replyid`),
  KEY `userid` (`userid`),
  KEY `threadid` (`ticketid`,`userid`)
) TYPE=MyISAM AUTO_INCREMENT=1"
;

$query['new'][] = "CREATE TABLE `".TABLE_PREFIX."ticket` (
  `ticketid` int(10) unsigned NOT NULL auto_increment,
  `title` varchar(250) NOT NULL default '',
  `open` smallint(6) NOT NULL default '1',
  `ownerid` int(10) unsigned NOT NULL default '0',
  `replycount` int(10) unsigned NOT NULL default '0',
  `postusername` varchar(50) NOT NULL default '',
  `postuserid` int(10) unsigned NOT NULL default '0',
  `lastposter` varchar(50) NOT NULL default '',
  `lastupdate` int(10) unsigned NOT NULL default '0',
  `dateline` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`ticketid`),
  KEY `postuserid` (`postuserid`)
) TYPE=MyISAM AUTO_INCREMENT=1"


:)

computer1 02-28-2005 09:15 AM

And where shuld we put this ??

laeth 02-28-2005 09:53 AM

Replace:

PHP Code:

$query['new'][] = "CREATE TABLE `ticketreply` (
  `replyid` int(10) unsigned NOT NULL auto_increment,
  `ticketid` int(10) unsigned NOT NULL default '0',
  `username` varchar(50) NOT NULL default '',
  `userid` int(10) unsigned NOT NULL default '0',
  `dateline` int(10) unsigned NOT NULL default '0',
  `pagetext` mediumtext NOT NULL,
  `ipaddress` varchar(15) NOT NULL default '',
  PRIMARY KEY  (`replyid`),
  KEY `userid` (`userid`),
  KEY `threadid` (`ticketid`,`userid`)
) TYPE=MyISAM AUTO_INCREMENT=1"
;

$query['new'][] = "CREATE TABLE `ticket` (
  `ticketid` int(10) unsigned NOT NULL auto_increment,
  `title` varchar(250) NOT NULL default '',
  `open` smallint(6) NOT NULL default '1',
  `ownerid` int(10) unsigned NOT NULL default '0',
  `replycount` int(10) unsigned NOT NULL default '0',
  `postusername` varchar(50) NOT NULL default '',
  `postuserid` int(10) unsigned NOT NULL default '0',
  `lastposter` varchar(50) NOT NULL default '',
  `lastupdate` int(10) unsigned NOT NULL default '0',
  `dateline` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`ticketid`),
  KEY `postuserid` (`postuserid`)
) TYPE=MyISAM AUTO_INCREMENT=1"


with:

PHP Code:

$query['new'][] = "CREATE TABLE `".TABLE_PREFIX."ticketreply` (
  `replyid` int(10) unsigned NOT NULL auto_increment,
  `ticketid` int(10) unsigned NOT NULL default '0',
  `username` varchar(50) NOT NULL default '',
  `userid` int(10) unsigned NOT NULL default '0',
  `dateline` int(10) unsigned NOT NULL default '0',
  `pagetext` mediumtext NOT NULL,
  `ipaddress` varchar(15) NOT NULL default '',
  PRIMARY KEY  (`replyid`),
  KEY `userid` (`userid`),
  KEY `threadid` (`ticketid`,`userid`)
) TYPE=MyISAM AUTO_INCREMENT=1"
;

$query['new'][] = "CREATE TABLE `".TABLE_PREFIX."ticket` (
  `ticketid` int(10) unsigned NOT NULL auto_increment,
  `title` varchar(250) NOT NULL default '',
  `open` smallint(6) NOT NULL default '1',
  `ownerid` int(10) unsigned NOT NULL default '0',
  `replycount` int(10) unsigned NOT NULL default '0',
  `postusername` varchar(50) NOT NULL default '',
  `postuserid` int(10) unsigned NOT NULL default '0',
  `lastposter` varchar(50) NOT NULL default '',
  `lastupdate` int(10) unsigned NOT NULL default '0',
  `dateline` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`ticketid`),
  KEY `postuserid` (`postuserid`)
) TYPE=MyISAM AUTO_INCREMENT=1"


In the helpdesk_install.php .

Hope it helps.

computer1 02-28-2005 11:47 AM

I get this error when I reinstall helpdesk howe can I fix this ??

Database error in vBulletin 3.0.7:

Invalid SQL: CREATE TABLE `ticketreply` (
`replyid` int(10) unsigned NOT NULL auto_increment,
`ticketid` int(10) unsigned NOT NULL default '0',
`username` varchar(50) NOT NULL default '',
`userid` int(10) unsigned NOT NULL default '0',
`dateline` int(10) unsigned NOT NULL default '0',
`pagetext` mediumtext NOT NULL,
`ipaddress` varchar(15) NOT NULL default '',
PRIMARY KEY (`replyid`),
KEY `userid` (`userid`),
KEY `threadid` (`ticketid`,`userid`)
) TYPE=MyISAM AUTO_INCREMENT=1
mysql error: Table 'ticketreply' already exists

mysql error number: 1050

nexialys 02-28-2005 11:53 AM

question... is it possible to guests to create a new ticket ?!
[so guests would be asked to enter email and name...]

i'd like to use this system instead of the contact-us form...

shadiguy1 02-28-2005 12:29 PM

yes it works with 3.0.3

Delphiprogrammi 02-28-2005 01:27 PM

installed successfully on vbulletin 3.0.7 however i had to create the database tables by hand for some reason the tables where in my database but without the correct prefixes installer bug ? anyway nice hack

/me clicks install

computer1 02-28-2005 02:45 PM

Howe can I unistall this dont work for me :devious:

Dan 02-28-2005 02:57 PM

Interesting idea..... good job

Lord Brar 02-28-2005 03:13 PM

:D Wish, all hacks could be like this!

Thanks man! I am gonna install this one! :)


All times are GMT. The time now is 03:03 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.01494 seconds
  • Memory Usage 1,752KB
  • 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_php_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