XThreads
Author Message
My Spiel
XThreads is one of my larger plugins which I have been working on for a while.  Originally planned to release it inline with MyBB 1.6, but who knows when that'll be out.  It perhaps doesn't include everything I wanted it to, but does have most of the things (plus I want to move onto other projects).

What does it do?
Take a look at RateU's forum for some nice ideas of what it can do.  I also have some more basic examples here of what can be done with XThreads.  I'm pretty sure there are many other applications of this plugin, but those examples just give you some simple ideas.

The basic idea is giving you the ability to define custom fields for your threads, and providing methods to give you a lot of flexibility with customising forums.

Warning: I'm not going to bother with "beta" labels and so on.  I've done some testing on this myself, but it's by no means extensive.  Use this at your own risk.

Installation Instructions: standard installation procedures apply - you can find them in the announcement here.
You may need to CHMOD the uploads/xthreads_ul/ folder to 0777 after uploading the files (probably won't though).

Upgrade Instructions: unless stated otherwise, the general procedure for upgrades is to simply upload the new files, then visit your AdminCP.  In there, you'll be presented with a notice to run the upgrade - just follow what it says from there on.

Usage Instructions: this is a complex plugin, and unfortunately, you're probably going to have to figure this out yourself, depending on what you want to achieve with this plugin.  HTML and CSS knowledge is strongly recommended; you should also be familiar with MyBB's template system.  Some demonstrations can be found here - hopefully these will give you a good idea of how things work.  I suggest looking at the thread descriptions example, as this is fairly easy to understand (IMO).  If you can understand how everything works, there, perhaps try out the gallery example.

Known conflicting plugins
- MyPlaza Turbo -
If you are using MyPlaza Turbo, note that the author decided to use a particularly odd method to implement certain functionality, practically destroying compatibility with any plugin which hooks into the forum add/edit routines.  I've included a patch to address this issue - you need to replace inc/myplaza/myplaza_admin_plugin.php with the following file (it's unlikely that this will be committed as the author has decided to discontinue development)

.php  myplaza_admin_plugin.php (Size: 56.27 KB / Downloads: 2405)

- PL9 Forum Icons -
Affects certain functionality.  See here for a solution.

- PHP in Templates, v1.4 or older -
Similar to PL9 Forum Icons - solution is just to update to the latest version.

- MyAdvertisements - (update: older versions only, later versions may not conflict)
Affects some thread functionality, see here for a solution.

- Group Post CSS -
See here http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=378&pid=59

All bug reports, suggestions, criticisms are appreciated (though I may not always implement suggestions) so please feel free to post them.
If you find this plugin useful, I would be grateful if you could give some token of appreciation for the work that has gone into this, and perhaps post some example usages you've come up with in the XThreads forum to help others get an idea of what can be achieve with this plugin (and for my own interest's sake Tongue).


Github: https://github.com/zingaburga/XThreads-MyBB-Plugin
Note: do NOT use the Github version, unless you know what you're doing
Changelogs: v1.10, v1.20, v1.21, v1.22, v1.23, v1.24, v1.25, v1.26, v1.27, v1.30, v1.31, v1.32, v1.337, v1.40, v1.41, v1.42, v1.43, v1.44, v1.45, v1.46, v1.47, v1.50, v1.51, v1.52, v1.53, v1.60, v1.61, v1.62, v1.63, v1.64, v1.65, v1.66, v1.67, v1.68
(This post was last modified: 12-25-2015 12:46 PM by ZiNgA BuRgA.)
Find all posts by this user
Quote this message in a reply
Download: xthreads-1.68.7z (114.53 KB)
Plugin Version: 1.68
Last Updated: 12-25-2015, 12:46 PM

Downloads: 8,437
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: GPLv3
Uploader: ZiNgA BuRgA
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #71
RE: XThreads
Yes, the upgrader handles everything.

My Blog
07-09-2010 01:32 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #72
RE: XThreads
Another small update to v1.25:
  • grab forum id from posthandler array rather than global variable (better compatibility with other plugins) (thanks to leefish for the report)
  • check postkey before modifying xtattachments (related to MyBB bug [http://dev.mybboard.net/issues/1077])
  • fix MIME type detection in xthreads_attach.php with mime_content_type() and finfo_file()
  • add support for proxy redirect responses (aka X-Accel-Redirect or X-Sendfile); this is only useful to you if you use a front-end webserver to serve static files and proxy PHP requests to an upstream webserver. To enable this, you need to edit the 'PROXY_REDIR_HEADER_PREFIX' define in xthreads_attach.php (see instructions in the comments). You may also wish to disable the "xthreads_attach.php/..." type URL, as it may interfere with your extension matching - you can do this by adding the line "@define('ARCHIVE_QUERY_STRINGS', 1);" near the top of inc/plugins/xthreads.php Note: I have not tested this feature yet
  • remove "XThreads File Download" WOL text in forum editing - it never was used anyway, and probably never will be
  • fix threads per page and posts per page overrides not being applied everywhere (eg search results page; still not applied in archive)
  • minor AdminCP language string modifications
(This post was last modified: 07-11-2010 07:36 PM by ZiNgA BuRgA.)
07-11-2010 07:36 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #73
RE: XThreads
Thank you very much for the update, Yumi Smile

07-12-2010 09:30 AM
Find all posts by this user Quote this message in a reply
llnn Offline
Junior Member
**
Posts: 4
Joined: Jun 2010
Post: #74
RE: XThreads
in my forum have a error,
in Add Thread Field, when you set Editable by / Required Field? = Custom
it didn't work is the same when Editable by / Required Field? = Not Editable
.-.
i select all my User Groups, and the thread Fields don't show, when i will add a thread
thanks
(This post was last modified: 07-28-2010 11:40 AM by llnn.)
07-28-2010 11:35 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #75
RE: XThreads
(07-28-2010 11:35 AM)llnn Wrote:  in my forum have a error,
in Add Thread Field, when you set Editable by / Required Field? = Custom
it didn't work is the same when Editable by / Required Field? = Not Editable
.-.
i select all my User Groups, and the thread Fields don't show, when i will add a thread
thanks
I can't seem to reproduce.
Have you checked which forums you've applied the thread field to?

Otherwise, could you give some steps on how to reproduce on a clean MyBB install with only the plugin installed?
Thanks.

My Blog
07-28-2010 08:54 PM
Find all posts by this user Quote this message in a reply
llnn Offline
Junior Member
**
Posts: 4
Joined: Jun 2010
Post: #76
RE: XThreads
ok,
in admincp go in users, select you, and add a Additional User Groups: moderators and Registered,
in Custom Thread Fields>>Add Thread Field
  • Title: Test
  • Key: Test
  • Applicable Forums : MyForum
  • Input Field Type: textbox
  • Editable by / Required Field?: Custom (specify usergroups)
  • Editable by Usergroups: Select Registered, moderators, administrators
Go to Forums  / My Category  / My Forum  / New Thread
And Thread Fields don't show Frown

i saw the function xthreads_filter_tfeditable, and when you have Additional User Groups, $mybb->usergroup don't have  gid, if you don't have Additional User Groups,  $mybb->usergroup have ['gid']
Frown
07-29-2010 12:26 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #77
RE: XThreads
Ahh, additional usergroups, didn't think of that.  Okay, I'll take a look into it.
Thanks llnn Smile

My Blog
07-29-2010 11:07 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #78
RE: XThreads
Alright, here's a fix for the usergroups thing.
Updated to v1.26:
  • slight modification to random attachment name generator (suggestion by Ryan Gordon)
  • fix for secondary usergroups (thanks to llnn)

Hope that fixes it llnn, if you still have problems or notice anything, please feel free to post back. Smile

My Blog
07-29-2010 02:24 PM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #79
RE: XThreads
I just finished reading xthreads_attach.php and it looks great Tongue Going to try something similar myself on my localhost - I've never tried to do fread and then echo it to "split" the download into various segments.

Great work once again zinga
(This post was last modified: 07-29-2010 10:12 PM by Pirata Nervo.)
07-29-2010 10:12 PM
Find all posts by this user Quote this message in a reply
AglioEoliO Offline
Junior Member
**
Posts: 39
Joined: Jan 2008
Post: #80
RE: XThreads
Thanks for the update Zinga Smile

Just awesome plugin idea and realization
07-30-2010 04:28 AM
Find all posts by this user Quote this message in a reply


Forum Jump: