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

- 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: #261
RE: XThreads
Do you get all three errors on the same page, and only on the plugins list page?
If so, perhaps try posting a list of all the plugins you have (in particular, the deactivated/uninstalled ones), though I'm at a bit of a loss as to how that could happen.

My Blog
02-19-2011 01:17 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #262
RE: XThreads
Yes, all errors on the same page, and only on the plugin page . I have attached the list as its rather long - I am a bit of a plugin hoarder. I did not realise that NON activated plugins could have an effect.

EDIT: This could well be a sign to deinstall MyNetwork until Tomm brings out 1.1.


Attached File(s)
.rar  plugins.rar (Size: 10.87 KB / Downloads: 492)


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 02-19-2011 05:56 PM by leefish.)
02-19-2011 05:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #263
RE: XThreads
I'm somewhat failing to understand how all three can appear at once on the same page :/
Are you able to replicate it on a clean board?

My Blog
02-19-2011 08:02 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #264
RE: XThreads
I'm sorry - no,  they don't all appear at ONCE. They appear in alphabetical order. So I did the install, and I got the error for the pre-parser. Just one line. So I took the plugin out of the inc folder. THEN I got the error for the VB quote - so again, removed from folder. Then I got the error for XThreads. Well, I could not just remove the XThreads plugin - board would have collapsed (the whole thing is BUILT on XThreads).

So then I had a deeper look and changed that line in the plugins calling for the control object.

I can't reproduce it - but this is the only one of the 3 set ups I have with MyNetwork on it....


[Image: leelink.gif]
MYBB1.6 & XThreads
02-19-2011 10:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #265
RE: XThreads
Okay, if you're willing to give me FTP + admin account, I can try debugging it tomorrow.
Thanks.

My Blog
02-19-2011 11:17 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #266
RE: XThreads
Thanks for the update, Yumi Smile

02-20-2011 05:05 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #267
RE: XThreads
I see the problem:
inc/network/core/m_custompostrep.php

PHP Code:
1
2
3
4
5
6
7
8
9
10
// Control object by ZiNgA BuRgA at http://mybbhacks.zingaburga.com
function myn_control_object(&$obj, $code)
{
	static $cnt = 0;

	$newname = '_objcont_'.(++$cnt);
	$objserial = serialize($obj);

// ...etc...
}

Can you get Tomm to change the name of his classes if he's going to be copying my function (and renaming it)?  Since using the same name in there is guaranteed to conflict.
Something like changing this line:

PHP Code:
$newname = '_objcont_'.(++$cnt);

to, perhaps

PHP Code:
$newname = '_myn_objcont_'.(++$cnt);


I've done this on your installation.

Thanks for letting me debug it Smile


My Blog
02-21-2011 08:46 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #268
RE: XThreads
Hi Zinga - thanks for taking a look and fixing the upgrade notice Smile.

I have contacted Tomm via pm with a link to the above post.


[Image: leelink.gif]
MYBB1.6 & XThreads
02-21-2011 09:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kitten Offline
Junior Member
**
Posts: 16
Joined: Feb 2011
Post: #269
RE: XThreads
Hi
I just installed xthreads 1.41 version on a test board, i had added two custom fields and they dont appear at all when i create a new threads. I use Apart Theme and yes , i do verified newthread template to see if contain {$extra_threadfields}{$posticons} line.  
PS:I use the lattest version of mybb without any plugin activated.

this is the code from newthread template:

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html>
<head>
<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php?fid={$fid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->post_new_thread}</strong></td>
</tr>
{$loginbox}
<tr>
<td class="trow2" width="20%"><strong>{$lang->thread_subject}</strong></td>
<td class="trow2">{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
{$extra_threadfields}{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong>{$smilieinserter}</td>
<td class="trow2">
<textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea>
{$codebuttons}
{$multiquote_external}
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="7"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$pollbox}
{$captcha}
</table>
{$attachbox}
<br />
<div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}</div>
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$footer}
</body>
</html>

(This post was last modified: 02-25-2011 10:15 PM by kitten.)
02-25-2011 10:09 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #270
RE: XThreads
@ kitten - did you specify in the custom threadfield what forums they were to display in?


[Image: leelink.gif]
MYBB1.6 & XThreads
02-25-2011 11:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply


Forum Jump: