MyBB Hacks

Full Version: Thread Descriptions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8
Looks like something is interfering, but I'd have no clue what unfortunately. :/
Perhaps play around with it, for example, change the template and see how the output changes.
I've done a merging with a new installation of mybb without importing the setting and I don't have this problem anymore.
I will see if it occurs again when I will add again the different plugins and modifications.
I have created a thread description and added necessary codes to the forumdisplay_thread and search_results_threads_thread templates.

My problem is that the search function doesn't work for phrases that I enter in thread description. For example, I have created a topic and used "hello" as its thread description. But when I search for "hello", that topic does not show up.

How can I fix this?
Searching thread descriptions isn't supported unfortunately.
I am using this on my ebook site and I made three different ones to make posting easier for my users. I am so pleased with the resuts but I wuld like to know one thing. Is it possible to have the username ahead of the Xthread ? Please look here and see what I mean, I would like the username on top of the custom threads

https://www.ebook-mecca.com/Thread-The-Ice-Twins   thank you
(09-29-2016 07:59 AM)Starnova Wrote: [ -> ]I am using this on my ebook site and I made three different ones to make posting easier for my users. I am so pleased with the resuts but I wuld like to know one thing. Is it possible to have the username ahead of the Xthread ? Please look here and see what I mean, I would like the username on top of the custom threads

https://www.ebook-mecca.com/Thread-The-Ice-Twins   thank you


Copy the contents of the postbit template and create a new template in your templates with name

postbit_first

and paste the contents from postbit template. Now add the threadfield variables into this template at the right position.

Eg:

Find

Code:
div class="author_statistics">
		{$post['user_details']}<br />
	</div>
</div>


below

Code:
<div class="trow2" style="padding:5px;width:100%"><div style="float:left;width:15%"><strong>Author</strong></div><div style="width:30%">{$GLOBALS['threadfields']['author']}</div></div>
	<div class="trow1" style="padding:5px;width:100%"><div style="float:left;width:15%"><strong>Genre:</strong></div><div style="width:30%">{$GLOBALS['threadfields']['genre']}</div></div>
	<div class="trow2" style="padding:5px;width:100%"><div style="float:left;width:15%"><strong>ISBN / ASIN:</strong></div><div style="width:30%">{$GLOBALS['threadfields']['isbnasin']}</div></div>


Find

Code:
<div class="post_content">


change in

Code:
<div class="post_content clear_both">


this you must adapt to your thread fields keys
{$GLOBALS['threadfields']['author']}
{$GLOBALS['threadfields']['genre']}
{$GLOBALS['threadfields']['isbnasin']}


Is that what you are looking for?

See my snapshot

Yes this is exactly what I am looking for. Thank you so much MrBrechreiz for your help! There is just one place I am not sure of..

this you must adapt to your thread fields keys
{$GLOBALS['threadfields']['author']}
{$GLOBALS['threadfields']['genre']}
{$GLOBALS['threadfields']['isbnasin']}

Because this is my first experience with Xthreads
{$GLOBALS['threadfields']['author']}
{$GLOBALS['threadfields']['genre']}
{$GLOBALS['threadfields']['isbnasin']}

this is the keys from the threadfields. You must change to your key.
(10-04-2016 06:06 AM)MrBrechreiz Wrote: [ -> ]{$GLOBALS['threadfields']['author']}
{$GLOBALS['threadfields']['genre']}
{$GLOBALS['threadfields']['isbnasin']}

this is the keys from the threadfields. You must change to your key.

Okay so if I understand this correctly make changes to the relevant templates Use {$GLOBALS['threadfields']['key']} in templates to reference this field..  Thank you

Now i know why it will not work tomorrow I will come back here and start over because I am using a combination of Xthreds I use this one too:

http://mybbhacks.zingaburga.com/showthread.php?tid=289

Duh .. Like I said its easy to start it again now that I have learned something LOL
BiggrinYipiLol
Pages: 1 2 3 4 5 6 7 8
Reference URL's