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: 1270)

- 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...17#pid5917

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: 6,943
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: GPLv3
Uploader: ZiNgA BuRgA
leefish Offline
Hamster
*******
Posts: 1,009
Joined: Apr 2010
Post: #61
RE: XThreads
Its indeed awesome - I am now trying to get my image to show in my portal announcement..... :/

ZingaBurga Wrote:add portal support - you can now call {$threadfields...} from portal templates, and portal_announcement* templates will be affected if template prefixes are used (thanks to leefish for the suggestion)

But how???

I have a book_portal_announcement template, I know its being pulled to the forum (I put daft words in it to check - yup, it was the template) but I can't get my image to show.

Here is my code....

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$icon}<a href="{$mybb->settings['bburl']}/showthread.php?tid={$announcement['tid']}">{$announcement['subject']}</a></strong></td>
</tr>
<tr>
<td class="tcat" align="right">
<span class="smalltext">{$lang->posted_by} <a href="{$mybb->settings['bburl']}/member.php?action=profile&amp;uid={$announcement['uid']}">{$announcement['username']}</a>  - {$anndate} {$anntime} {$numcomments}</span>
</td>
</tr>
<tr>
<td class="fancy" colspan="5"><span class="smalltext"></span></td>
</tr>
<tr>
<td class="trow1">
<table border="0" cellpadding="{$theme['tablespace']}" width="100%">
<tr><td class="trow1"><p>{$message}</p><img src="{$GLOBALS['threadfields']['book_jacket']['url']}/thumb160x120" alt="gahhhh" /></td></tr>
<tr><td align="right" colspan="2" valign="bottom"><span class="smalltext"><a href="{$mybb->settings['bburl']}/printthread.php?tid={$announcement['tid']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/printable.gif" alt="" /></a>&nbsp;<a href="{$mybb->settings['bburl']}/sendthread.php?tid={$announcement['tid']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/send.gif" alt="" /></a></span></td></tr>
</table>
</td>
</tr>
</table>
<br />


Any help appreciated



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 07-06-2010 09:45 AM by leefish.)
07-05-2010 05:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #62
RE: XThreads
Brr, I tested it against a MyBB 1.6 codebase, but didn't expect it to fail with 1.4.

Updated to v1.24:
  • fix bug which prevented portal integration from working on MyBB 1.4 (thanks to leefish for the find)
  • fix bug which caused the contents of a thread's first post if blank posts were allowed, and a moderator edited the title using inline title editing (thanks RateU)
07-05-2010 12:54 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*******
Posts: 1,009
Joined: Apr 2010
Post: #63
RE: XThreads
Muwhahahaha......Xthreads images in announcements showing on the portal. Truly awesome.


[Image: leelink.gif]
MYBB1.6 & XThreads
07-06-2010 03:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*******
Posts: 1,009
Joined: Apr 2010
Post: #64
RE: XThreads
I discovered what I think is an incompatibility issue with X threads and DennisTs RSS2Post plugin. (link to plugin - http://mods.mybboard.net/view/rss-to-post )

I am not getting my RSS feeds in my forum. I also tried the RSS post feed from http://www.mybbhacks.com , it also did not pull the RSS feeds.

I looked in the error log of the RSS2Post plugin and see the excerpt below:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Date: Tue, 06 Jul 2010 23:07:40 +0000
URL: http://mods.mybboard.net/syndication/latest-submissions
Forum ID: 20
User ID: 1
Strip HTML: 0
array(4) {
  ["title"]=>
  string(26) "Plugin: MyTwitter - 1.0 r1"
  ["link"]=>
  string(39) "http://mods.mybboard.net/view/mytwitter"
  ["description"]=>
  string(86) "This plugin allow you forum to update your twitter status when a new thread is posted."
  ["guid"]=>
  string(39) "http://mods.mybboard.net/view/mytwitter"
}
array(13) {
  [0]=>
  array(2) {
    ["error_code"]=>
    string(20) "threadfield_required"
    ["data"]=>
    string(9) "Game Type"
  }
  [1]=>
  array(2) {
    ["error_code"]=>
    string(20) "threadfield_required"
    ["data"]=>
    string(9) "Find Name"
  }
  [2]=>
  array(2) {
    ["error_code"]=>
    string(20) "threadfield_required"
    ["data"]=>
    string(5) "Image"
  }


Those are my xthreads fields that it is asking for. The forum I am trying to post to has no Xthreads functionality enabled. Of course, I want X-threads more than RSS plugins (I can always use a feeder and manually post) but I thought I should report it.



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 07-07-2010 11:16 AM by leefish.)
07-07-2010 11:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #65
RE: XThreads
I haven't looked at this much, but from your log, it appears that XThreads is requiring certain stuff to be filled out, whereas the RSS posters obviously can't fill them out (because they aren't designed to).
This isn't an incompatibility, rather, you can't require certain fields to be filled out when the script can't do it.

The solution is to probably set those fields to not be required.
07-07-2010 11:50 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*******
Posts: 1,009
Joined: Apr 2010
Post: #66
RE: XThreads
Its not a big deal, like I said, but maybe I was not clear. The destination forum for those RSS feeds has no Xthreads prefix. The required fields in the log are all my custom thread fields (for different forums on the board) with status required. But that means in order to get RSSto Post to work then I cant have any Xthreads with status required in other forums on my board. That would "break" my Xthreads in that I can no longer "force" my users to fill in fields.

I shall test by setting all my Xthreads to status not required Erf


[Image: leelink.gif]
MYBB1.6 & XThreads
07-07-2010 06:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #67
RE: XThreads
Oh I see.
Sorry, I kinda have to go now, but can you see if this fixes it?  Replace your inc/xthreads/xt_updatehooks.php with this one.

Thanks


Attached File(s)
.php  xt_updatehooks.php (Size: 34.4 KB / Downloads: 226)

My Blog
07-07-2010 07:18 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*******
Posts: 1,009
Joined: Apr 2010
Post: #68
RE: XThreads
Yay it worked - thank you, now I can have RSS feeds and Xthreads.


[Image: leelink.gif]
MYBB1.6 & XThreads
07-07-2010 07:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #69
RE: XThreads
Cool, thanks for testing Smile
07-07-2010 07:45 PM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #70
RE: XThreads
Thanks zinga, I haven't upgraded to 1.2, can I upgrade directly to the latest version?
07-09-2010 01:53 AM
Find all posts by this user Quote this message in a reply


Forum Jump: