MyBB Hacks

Full Version: How to make simple form
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Mybb Hack Jap, Im currently using XThread and still cannot use it. I have follow the guide in the XThreads Example Applications but not found what i want.

I want to make simple form for my "Hardware Configuration" section and it should display like this when someone view the thread:

Processor(CPU):Intel Core i7-3770K 3.5GHz LGA 1155
Motherboard: ASUS P8Z77-V DELUXE
Memory:CORSAIR Vengeance 8GB
Graphic Card:EVGA GeForce GTX 680
Hard Disk: Western Digital Caviar Black 1TB
Power Supply: CORSAIR Professional Series HX750
Processor Cooling: CORSAIR H100 Water Cooling
Operating System: Windows 7 Ultimate 64bit

I want the question display with the answer when they post the thread. Hope you know what i mean.
This is a good example:
http://mybbhacks.zingaburga.com/showthread.php?tid=285

Just change the title, and use a different key for each field. In Display Format put how you want it to look like, for example:

Code:
<strong>Processor(CPU):</strong> {VALUE}


And add your variable inside postbit/postbit_classic:

Code:
{$GLOBALS['threadfields']['KEY']}


Where KEY is the key you choose for each individual field.

It only show at the forum but at the thread it not show. any how? where do i put {$GLOBALS['threadfields']['processor']} at he bottom of all code in there?
If you don't know HTML and much about MyBB's template system, I strongly recommend you study those before using XThreads.
(05-28-2012 04:27 PM)ZiNgA BuRgA Wrote: [ -> ]If you don't know HTML and much about MyBB's template system, I strongly recommend you study those before using XThreads.
In your opinion where is a good place for me to learn HTML? ?Do I need to take the class or just learn on the web? and if I finished learn html language what I need to learn next to use Xthread?
Just search for a tutorial on the web - plenty out there.
HTML is pretty easy - it shouldn't take long to learn and is immensely helpful if you wish to do any form of customisation to your website.

After HTML, play around with the MyBB template system to get familiar with that - if you know HTML well, it should be easy to understand.
After that, follow the tutorial Sama34 posted above, making sure you understand each step - this should be enough to give you an idea of how to use XThreads.
Reference URL's