Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2006, 09:01 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 04-06-2006, 09:19 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody? This is kind of important...

*prod*
Reply With Quote
  #3  
Old 04-07-2006, 09:28 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 04-08-2006, 09:49 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any input before I start messing around and trying to solve it myself?
Reply With Quote
  #5  
Old 04-08-2006, 10:05 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It tells you in the error that it's newthread.php making this sql call.
Reply With Quote
  #6  
Old 04-08-2006, 10:46 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-08-2006, 10:52 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this a hack you downloaded from here ? have you posted in it's support thread ?
Reply With Quote
  #8  
Old 04-08-2006, 10:57 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09774 seconds
  • Memory Usage 2,225KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete