Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Thread Descriptions
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #1
Thread Descriptions
This is a simple thing to do, and this example should give you a general idea of the basics of XThreads.

Alrighty, after installing and activating XThreads, follow these steps on how to add thread description functionality for your threads:
  1. Go to your AdminCP -> Configuration -> Custom Thread Fields section
  2. Choose to Add Thread Field
  3. On this page, enter in the following:
    Title: Thread Description
    Key: desc
    Description: Further describe your thread here
    Display Format: <div>{VALUE}</div>
    (leave other fields on their defaults)
  4. Now scroll down to the bottom of the page and Add Thread Field
  5. If you go to your forum and try to make a new thread, you should notice that there's a "Thread Description" text box below the "Thread Subject" text box, however this doesn't actually do anything right now.  We'll need to add the description into MyBB's templates for it to be of any use.
  6. Go to your AdminCP -> Templates & Style -> Templates
  7. Select the template set you're using (if you have multiple template sets, you need to repeat the following steps with all template sets; alternatively, if you know how, you can also use the Global Templateset)
  8. Now, expand "Forum Display Templates"
  9. Click on the forumdisplay_thread template to edit it
  10. Find the following line of code:

    HTML Code
    <div class="author smalltext">{$thread['profilelink']}</div>

    and add the following before it:

    HTML Code
    {$threadfields['desc']}

  11. Save the template
  12. Back at the templates list page, expand "Search Templates", and select the search_results_threads_thread template to edit
  13. Perform the same edit as you did for the forumdisplay_thread template, and save this edited template
  14. Now, go make a new thread and confirm that thread descriptions appear properly on the forumdisplay and search pages.


If you got to the end without troubles, congratulations! you have managed to use XThreads to create a thread description.
This may seem like a bit of a convoluted method of doing such, but it does give you a lot of flexibility with various things.

As alluded to earlier, this is a very basic example and shows the basics of XThreads.
Hopefully this wasn't too difficult.  Maybe you can go on and try one of the more complicated examples. Tongue

My Blog
04-22-2010 04:48 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Thread Descriptions - ZiNgA BuRgA - 04-22-2010 04:48 PM
RE: Thread Descriptions - Shadowss - 09-22-2010, 06:08 PM
RE: Thread Descriptions - ZiNgA BuRgA - 09-22-2010, 06:16 PM
RE: Thread Descriptions - Shadowss - 09-22-2010, 06:28 PM
RE: Thread Descriptions - ZiNgA BuRgA - 09-22-2010, 07:06 PM
RE: Thread Descriptions - Shadowss - 09-22-2010, 07:26 PM
RE: Thread Descriptions - 1master1 - 10-25-2010, 01:05 PM
RE: Thread Descriptions - ZiNgA BuRgA - 10-25-2010, 04:05 PM
RE: Thread Descriptions - RocketFoot - 12-18-2010, 12:52 AM
RE: Thread Descriptions - leefish - 12-18-2010, 01:06 AM
RE: Thread Descriptions - RocketFoot - 12-18-2010, 01:19 AM
RE: Thread Descriptions - RocketFoot - 12-18-2010, 01:53 AM
RE: Thread Descriptions - leefish - 12-18-2010, 02:24 AM
RE: Thread Descriptions - RocketFoot - 12-18-2010, 03:01 AM
RE: Thread Descriptions - leefish - 12-18-2010, 03:13 AM
RE: Thread Descriptions - RocketFoot - 12-18-2010, 03:33 AM
RE: Thread Descriptions - Hyperspace - 11-29-2011, 04:34 PM
RE: Thread Descriptions - RateU - 11-30-2011, 02:23 AM
RE: Thread Descriptions - ZiNgA BuRgA - 11-30-2011, 09:04 AM
RE: Thread Descriptions - Hyperspace - 11-30-2011, 10:41 AM
RE: Thread Descriptions - webmasterdean - 02-14-2012, 09:12 PM
RE: Thread Descriptions - RateU - 02-15-2012, 04:08 AM
RE: Thread Descriptions - webmasterdean - 02-15-2012, 02:33 PM
RE: Thread Descriptions - RateU - 02-16-2012, 02:56 AM
RE: Thread Descriptions - webmasterdean - 03-05-2012, 10:42 PM
RE: Thread Descriptions - ZiNgA BuRgA - 03-06-2012, 09:52 AM
RE: Thread Descriptions - webmasterdean - 03-18-2012, 02:13 PM
RE: Thread Descriptions - akm - 03-15-2012, 01:58 AM
RE: Thread Descriptions - ZiNgA BuRgA - 03-15-2012, 04:41 PM
RE: Thread Descriptions - akm - 03-15-2012, 11:53 PM
RE: Thread Descriptions - ZiNgA BuRgA - 03-18-2012, 08:37 PM
RE: Thread Descriptions - webmasterdean - 03-18-2012, 10:31 PM
RE: Thread Descriptions - RateU - 03-19-2012, 05:07 AM
RE: Thread Descriptions - ZiNgA BuRgA - 03-19-2012, 09:35 AM
RE: Thread Descriptions - ZiNgA BuRgA - 03-19-2012, 04:40 PM
RE: Thread Descriptions - Scois0n - 09-12-2012, 06:00 AM
RE: Thread Descriptions - mylife - 12-07-2013, 01:08 AM
RE: Thread Descriptions - ZiNgA BuRgA - 12-07-2013, 01:54 PM
RE: Thread Descriptions - mylife - 12-07-2013, 04:27 PM
RE: Thread Descriptions - RateU - 12-07-2013, 11:10 PM
RE: Thread Descriptions - mylife - 12-08-2013, 09:05 AM
RE: Thread Descriptions - terzier - 08-05-2014, 09:12 AM
RE: Thread Descriptions - ZiNgA BuRgA - 08-06-2014, 11:34 AM
RE: Thread Descriptions - bromance - 03-18-2015, 01:12 AM
RE: Thread Descriptions - ZiNgA BuRgA - 03-18-2015, 09:24 AM
RE: Thread Descriptions - Grey Ghost - 03-30-2015, 05:28 PM
RE: Thread Descriptions - ZiNgA BuRgA - 04-07-2015, 05:13 PM
RE: Thread Descriptions - F.AIRYTALE - 04-11-2015, 04:26 AM
RE: Thread Descriptions - ZiNgA BuRgA - 04-11-2015, 08:24 PM
RE: Thread Descriptions - Grey Ghost - 06-18-2015, 08:41 PM
RE: Thread Descriptions - ZiNgA BuRgA - 06-19-2015, 11:09 AM
RE: Thread Descriptions - Grey Ghost - 06-21-2015, 03:02 PM
RE: Thread Descriptions - OldDuck - 06-20-2015, 04:07 AM
RE: Thread Descriptions - ZiNgA BuRgA - 06-20-2015, 12:09 PM
RE: Thread Descriptions - OldDuck - 06-20-2015, 12:13 PM
RE: Thread Descriptions - Grey Ghost - 06-21-2015, 03:52 PM
RE: Thread Descriptions - ZiNgA BuRgA - 06-21-2015, 06:55 PM
RE: Thread Descriptions - Grey Ghost - 06-21-2015, 09:01 PM
RE: Thread Descriptions - ZiNgA BuRgA - 06-21-2015, 10:09 PM
RE: Thread Descriptions - OldDuck - 06-29-2015, 08:12 AM
RE: Thread Descriptions - ZiNgA BuRgA - 06-29-2015, 12:15 PM
RE: Thread Descriptions - OldDuck - 06-29-2015, 02:47 PM
RE: Thread Descriptions - Amir Hossein - 02-28-2016, 10:06 PM
RE: Thread Descriptions - ZiNgA BuRgA - 02-29-2016, 09:47 AM
RE: Thread Descriptions - Starnova - 09-29-2016, 07:59 AM
RE: Thread Descriptions - MrBrechreiz - 09-30-2016, 10:12 AM
RE: Thread Descriptions - Starnova - 10-04-2016, 04:56 AM
RE: Thread Descriptions - MrBrechreiz - 10-04-2016, 06:06 AM
RE: Thread Descriptions - Starnova - 10-04-2016, 07:17 AM
RE: Thread Descriptions - MrBrechreiz - 10-04-2016, 08:53 AM
RE: Thread Descriptions - Starnova - 10-08-2016, 08:31 AM
RE: Thread Descriptions - MrBrechreiz - 10-09-2016, 01:49 PM
RE: Thread Descriptions - Starnova - 10-10-2016, 02:56 AM
RE: Thread Descriptions - MrBrechreiz - 10-10-2016, 06:49 PM
RE: Thread Descriptions - Starnova - 10-11-2016, 05:31 AM
RE: Thread Descriptions - Starnova - 10-11-2016, 06:49 AM
RE: Thread Descriptions - gagatek - 12-23-2016, 02:41 AM
RE: Thread Descriptions - ZiNgA BuRgA - 04-02-2017, 05:50 PM

 Standard Tools
Forum Jump: