MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
edit, I figured it out.

several templates were missing some code from it.
Could it be possible to allow users to insert upload files into their message just like the attachment system does? Specially images.
The postbit_first template? Set up the thread field as standard, and for the Display Format, set it to something like:

Code:
<a href="{URL}"><img src="{URL} /></a>


Insert it into the postbit_first template.

(04-07-2013 02:35 PM)Sama34 Wrote: [ -> ]Could it be possible to allow users to insert upload files into their message just like the attachment system does? Specially images.
If you have PHP in Templates, you could theoretically achieve this via a preg_replace, and then provide some Javascript inserter to add it into the post.
This is, of course, if you don't want to make your users copy the xtattachment URL and use that.

But I'd just use MyBB's attachment system if that's what you want - it'll also be consistent across all posts...
is it possible to properly filter some categories with xthreads across different sub-forums?

for example, rateu has set up category filtering in the product review mod here, but it only appears to work correctly when all of the categories are within the same forum section, and not spread out to sub-forums.

my reasoning for wanting that functionality is so that I can set up the sub-forums to redirect to the filtered category instead of viewing all of the reviews for all of the categories.
The MyBB forumdisplay won't display threads from more than one forum at a time, if that's what you're asking.
XThreads doesn't change this behaviour.

(04-09-2013 01:28 PM)Shemo Wrote: [ -> ]my reasoning for wanting that functionality is so that I can set up the sub-forums to redirect to the filtered category instead of viewing all of the reviews for all of the categories.
If I understand you correctly, you'd just use the forum link feature to redirect users to the URL with the filter applied.
(04-09-2013 02:32 PM)ZiNgA BuRgA Wrote: [ -> ]The MyBB forumdisplay won't display threads from more than one forum at a time, if that's what you're asking.
XThreads doesn't change this behaviour.

(04-09-2013 01:28 PM)Shemo Wrote: [ -> ]my reasoning for wanting that functionality is so that I can set up the sub-forums to redirect to the filtered category instead of viewing all of the reviews for all of the categories.
If I understand you correctly, you'd just use the forum link feature to redirect users to the URL with the filter applied.

since the sub-forums are hidden to non-admins and mods at the moment, I can't give you live links, but I did take a screenshot of how I'm wanting to use the product review xthreads mod:

[Image: g3snI3g.jpg]

as you see, each forum will have a sub-forum for reviews (soap & cream reviews, blade reviews, etc.)..

if I go into the soap & cream review sub-forum, this is how it looks (direct sub-forum url - remember, this link is not viewable for non-admins & mods http://shavenook.com/forum-soap-cream-reviews)

[Image: 79E9RJd.jpg]

when I click the 'soaps & creams' category on the right, it redirects to this url and shows nothing in that category: http://shavenook.com/forum-soap-cream-re...http://shavenook.com/forum-soap-cream-reviews?filtertf_pfcat=Soaps%20an

[Image: WwtYh67.jpg]

when I click on another category while still in the soap & cream reviews sub-forum, like brushes for example, http://shavenook.com/forum-soap-cream-re...http://shavenook.com/forum-soap-cream-reviews?filtertf_pfc it's not filtering anything because I guess any brush reviews were created in the brush review sub-forum, http://shavenook.com/forum-brush-reviews

I guess what I'd need to do, if it's possible, is have the filters redirect to the proper sub-forums.

for example, if someone is within the soap & cream reviews section and clicks on one of the categories on the right side other than the soaps & creams category, it'll filter to the appropriate sub-forum.  is this possible?

--------

edit: blah, I'm probably going to do away with that categories box on the right hand side of the forumdisplay pages as it really won't serve a purpose for me in the way I'm wanting it to work since the review categories aren't in the same forum to begin with.
Yeah, I don't even know why you're using filters in the first place if this is what you want to achieve.
ZiNgA, {$first_post} does not seem to be displaying properly. I set "Show first post on every showthread page" to Yes, and moved {$first_post}, applying a little formatting, but nothing appears to have changed.

Source output:

HTML Code
	<div class="float_right" style="width: 20%;">
		
	</div>


Template:

HTML Code
	<div class="float_right" style="width: 20%;">
		{$first_post}
	</div>


Edit: NM, I didn't have a postbit_first template. Fixed.

Hi everyone.
Im using xthreads for some time now and would like to share my experience,
on what options i found missing in xthreads but required while working on customising various sites.

Summarising these experiences i gathered thought's about these missing options
and added it as new feature's suggestions which i believe may improve xthreads usability.
(even tho xthreads are allready excellent, no one said it cant be mega excellent and ultra awesome)

The suggestions are :
issue #7, New option - thread field 'Not applicable forums' (importance - 10/10 critical stuff happen without it!)
issue #8, New option - xthreads works in chosed templates (importance - 7/10 can live without it but its sometime hassle)
issue #9, New option - hidden lock variable, xthreads interface in ACP visible to uID's (importance - 3/10 could be nice addition)
Reference URL's