MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
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?
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....
Okay, if you're willing to give me FTP + admin account, I can try debugging it tomorrow.
Thanks.
Thanks for the update, Yumi Smile
I see the problem:
inc/network/core/m_custompostrep.php

PHP Code:
// 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

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.
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:
<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>

@ kitten - did you specify in the custom threadfield what forums they were to display in?
Reference URL's