vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Problem with posting new thread (https://vborg.vbsupport.ru/showthread.php?t=112260)

antialiasis 04-05-2006 08:01 PM

Problem with posting new thread
 
Okay, I'm still struggling with this default BBCode hack and it's in the very final stages - I got the BBCode itself working perfectly and the "Use default BBCode in this post" field is working too. However, it only works in replies, because when I try to submit a new thread, it gives me a database error about there not being a column called "usedefaultbbcode" in the thread table. However, it's not supposed to try to insert that into the thread table (it's just supposed to be in the first post of the thread), and I'm really not sure how that ever got in there. At least I've been searching in all the PHP files but can't seem to find where I can make it not do that. Just a quick newbie-ish question, basically: Why is it trying to insert it into that table and how do I stop it from trying it?

antialiasis 04-06-2006 08:19 PM

Anybody? This is kind of important...

*prod*

antialiasis 04-07-2006 08:28 PM

I really need help on this...

The database error, if anybody is interested:

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:
INSERT INTO thread
(usedefaultbbcode, postusername, postuserid, title, iconid, visible, forumid, dateline, open, attach, lastpost, lastposter, replycount, hiddencount)
VALUES
(1, 'Butterfree', 1, 'test', 0, 1, 5, 1144361987, 1, 0, 1144361987, 'Butterfree', 0, 0);

MySQL Error : Unknown column 'usedefaultbbcode' in 'field list'
Error Number : 1054
Date : Thursday, April 6th 2006 @ 11:19:47 PM
Script : http://www.dragonflycave.com/forums/newthread.php
Referrer : http://www.dragonflycave.com/forums/...=newthread&f=5
IP Address : 62.145.137.89
Username : Butterfree
Classname : vB_Database_MySQLi

antialiasis 04-08-2006 08:49 PM

Any input before I start messing around and trying to solve it myself?

Paul M 04-08-2006 09:05 PM

It tells you in the error that it's newthread.php making this sql call.

antialiasis 04-08-2006 09:46 PM

What I don't get, though, is that I've already scrutinized newthread.php twice, and what I've more or less been doing is add an identical reference to defaultbbcode everywhere that the actual vBulletin script makes a reference to signature, and nowhere else. Currently, I can't find any particular reason it would try to insert my default BBCode into the thread table if it doesn't do that with my signature... Forgive me if there is some extremely obvious reason for this, but I'm not very familiar with either PHP or vBulletin and I'm pretty much still trying to figure everything out.

Paul M 04-08-2006 09:52 PM

Is this a hack you downloaded from here ? have you posted in it's support thread ?

antialiasis 04-08-2006 09:57 PM

It's a hack I'm making, which is already working perfectly for normal replies.

EDIT: Never mind, I figured it out on my own.


All times are GMT. The time now is 11:42 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.01400 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete