MyBB Community Forums

Full Version: Can't manage Extra fields 1.1.2 to work.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, I'm having problems with setting up Extra fields 1.1.2, i did like in guide.
But i get wired MySQL Error and i can't post thread then...(Can't close plugin aswell, or delete / edit the field, i have to use phpmyadmin and edit the plugin file to manage to close it).
It's just me or the mode just not working?
Its just you =P Can you post that SQL error ?
LeX- Wrote:Its just you =P Can you post that SQL error ?

Sure, I'll give example.
Quote:Fieldname: {$post['version']}
Title: Version
Default message: 1.2.9
Order: 1
Options: Blank.
Field: Text-box input
Position of the field: not checked.
Show in forums: All forums.
That's what i added, now when i try to post a thread i get:
MySQL error: 1064
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '{$post['version']}) VALUES ('12', '2', 'test', '0', '1', 'O
Query: INSERT INTO mybb_posts (tid, fid, subject, icon, uid, username, dateline, message, ipaddress, includesig, smilieoff, visible, posthash, {$post['version']}) VALUES ('12', '2', 'test', '0', '1', 'Oded Dwek', '1185834743', 'test', '88.155.192.88', 'no', 'no', '1', 'ff7c398a610ab41e7c8522b2042d2f06', '')
Oded Dwek Wrote:
Quote:Fieldname: {$post['version']}
Title: Version
Default message: 1.2.9
Order: 1
Options: Blank.
Field: Text-box input
Position of the field: not checked.
Show in forums: All forums.

Try this ::

Quote:Fieldname: version
Title: Version
Default message: 1.2.9
Order: 1
Options: Blank.
Field: Text-box input
Position of the field: not checked.
Show in forums: All forums.

And then in your postbit you call it by {$post['version']} ; You probably aren't be able to delete the extra field, since it aint a 'valid' column name , so you'll need to delete it through phpMyAdmin.
Yep i knew, I Did like you said.
And it's look like a normal post.
http://mybb.co.il/nforum/showthread.php?tid=14
Oh.. i need to edit templetes right?
I Want to add some special table for it(it should look something like VB.org)
but i want the edits work only on specific forum, how can i do that?