ZiNgA BuRgA
Fag
Posts: 3,357
Joined: Jan 2008
|
|
03-18-2012 08:37 PM |
|
webmasterdean
Junior Member
Posts: 7
Joined: Feb 2012
|
|
03-18-2012 10:31 PM |
|
RateU
Administrator
Posts: 2,350
Joined: Mar 2010
|
|
03-19-2012 05:07 AM |
|
ZiNgA BuRgA
Fag
Posts: 3,357
Joined: Jan 2008
|
RE: Thread Descriptions
I said forumdisplay, not a screenshot of template code. That, you can just copy/paste here.
My Blog
|
|
03-19-2012 09:35 AM |
|
ZiNgA BuRgA
Fag
Posts: 3,357
Joined: Jan 2008
|
RE: Thread Descriptions
(03-19-2012 05:07 AM)RateU Wrote: Does the threads there have a descriptions
That was actually his problem.
See http://jobsnforums.com/Forum-All-Full-Time-Jobs
Obviously, if you want an actual description to show up, you need to enter it in...
My Blog
(This post was last modified: 03-19-2012 04:40 PM by ZiNgA BuRgA.)
|
|
03-19-2012 04:40 PM |
|
Scois0n
Junior Member
Posts: 5
Joined: Aug 2012
|
RE: Thread Descriptions
(04-22-2010 04:48 PM)ZiNgA BuRgA Wrote: 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:
- Go to your AdminCP -> Configuration -> Custom Thread Fields section
- Choose to Add Thread Field
- 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)
- Now scroll down to the bottom of the page and Add Thread Field
- 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.
- Go to your AdminCP -> Templates & Style -> Templates
- 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)
- Now, expand "Forum Display Templates"
- Click on the forumdisplay_thread template to edit it
- Find the following line of code:
and add the following before it:
- Save the template
- Back at the templates list page, expand "Search Templates", and select the search_results_threads_thread template to edit
- Perform the same edit as you did for the forumdisplay_thread template, and save this edited template
- 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.
Very simple, but i understand XThreads functionality a little better now.
|
|
09-12-2012 06:00 AM |
|
mylife
Junior Member
Posts: 3
Joined: Dec 2013
|
RE: Thread Descriptions
hai i just want to ask
i had follow your discription in 1st post and all be fine for me
than i want to add to showthread... so i just add in templete in code {$threadfields['vac']}
but nothing appears ??
can u advice me thanks ??
|
|
12-07-2013 01:08 AM |
|
ZiNgA BuRgA
Fag
Posts: 3,357
Joined: Jan 2008
|
RE: Thread Descriptions
Yes, if the name is called 'vac', and this template isn't a postbit related one.
My Blog
|
|
12-07-2013 01:54 PM |
|
mylife
Junior Member
Posts: 3
Joined: Dec 2013
|
RE: Thread Descriptions
so how to add to show in showthread ?
i missing something ?
|
|
12-07-2013 04:27 PM |
|
RateU
Administrator
Posts: 2,350
Joined: Mar 2010
|
RE: Thread Descriptions
It is better if you post your modified showthread template here.
|
|
12-07-2013 11:10 PM |
|