MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
have you uploaded all the files in the correct folder and replaced? -->activated?
yes...i had uploaded through plugin uploader and also activated.
may be that you have no choice than to reinstall it
You clearly don't read anything do you?
Upgrade instructions are bolded in the first post and you refuse to read it.

Although I suspect you've done something odd, I am somewhat interested in how you managed to cause XThreads to give that error.  Please post your cache/xthreads_evalcache.php file.
its here.

Code:
<?php /* this file caches preparsed versions of display formats - please do not modify this file */

		function xthreads_evalcache_timg($field, $vars=array()) {
			switch($field) {
				case 'dispformat': return "<a href=\"{$GLOBALS['threadurl']}\" target=\"_blank\"><img src=\"{$vars['URL']}/thumb75x75\" alt=\"{$vars['FILENAME']}\" title=\"Click to view this thread image in full size - {$GLOBALS['GLOBALS']['threadfields']['timg']['dims']['w']} x {$GLOBALS['GLOBALS']['threadfields']['timg']['dims']['h']}\" style=\"margin: 3px; float: left;\" /></a>";
			} return '';
		}
		function xthreads_evalcache_fupload($field, $vars=array()) {
			switch($field) {
				case 'unviewableval': return "<em>You don't have permission to download this file</em>";
				case 'dispformat': return "".(($GLOBALS['mybb']->user['postnum'] < 100)?"
<em>You need at least valuable 100 posts in forum to download this file</em>
":"
<form action=\"{$vars['URL']}\" method=\"get\">
<input type=\"submit\" value=\"{$vars['FILENAME']}\" />
</form>
")."";
			} return '';
		}
		function xthreads_evalcache_fdesc($field, $vars=array()) {
			switch($field) {
				case 'dispformat': return "{$vars['VALUE']}";
			} return '';
		}
		function xthreads_evalcache_fscr($field, $vars=array()) {
			switch($field) {
				case 'dispformat': return "<a href=\"{$GLOBALS['URL']}\">{$vars['FILENAME']}</a>";
			} return '';
		}
		function xthreads_evalcache_fcat($field, $vars=array()) {
			switch($field) {
				case 'dispformat': return "{$vars['VALUE']}";
			} return '';
		}
		function xthreads_evalcacheForums($fid) {
			switch($fid) {
				case 208: return array(
					'tplprefix' => array_map('trim', explode(',', "download")),
					'langprefix' => '',
					'settingoverrides' => '',
				);
				case 29: return array(
					'tplprefix' => array_map('trim', explode(',', "dld_")),
					'langprefix' => '',
					'settingoverrides' => '',
				);
				case 76: return array(
					'tplprefix' => array_map('trim', explode(',', "dld_")),
					'langprefix' => '',
					'settingoverrides' => '',
				);
				case 70: return array(
					'tplprefix' => array_map('trim', explode(',', "dld_")),
					'langprefix' => '',
					'settingoverrides' => '',
				);
				case 135: return array(
					'tplprefix' => array_map('trim', explode(',', "dld_")),
					'langprefix' => '',
					'settingoverrides' => '',
				);
				case 209: return array(
					'tplprefix' => array_map('trim', explode(',', "dld_")),
					'langprefix' => '',
					'settingoverrides' => '',
				);
			} return array('tplprefix' => '', 'langprefix' => '', 'settingoverrides' => '');
		}
		
		function xthreads_evalcacheForumFilters($fid) {
			switch($fid) {
			} return array('defaultfilter_tf' => array(), 'defaultfilter_xt' => array());
		}
		function xthreads_input_generate_defhtml_0($field, &$vars) {
			return "<input type=\"text\" class=\"textbox\"{$vars['NAME_PROP']}{$vars['MAXLEN_PROP']}{$vars['WIDTH_PROP_SIZE']}{$vars['TABINDEX_PROP']}{$vars['REQUIRED_PROP']} value=\"{$vars['VALUE']}\" />";
		}
		function xthreads_input_generate_defhtml_1($field, &$vars) {
			return "<textarea{$vars['NAME_PROP']}{$vars['MAXLEN_PROP']}{$vars['HEIGHT_PROP_ROWS']}{$vars['WIDTH_PROP_COLS']}{$vars['TABINDEX_PROP']}{$vars['REQUIRED_PROP']}>{$vars['VALUE']}</textarea>";
		}
		function xthreads_input_generate_defhtml_2($field, &$vars) {
			if($field == 'formhtml_item')
				return "<option value=\"{$vars['VALUE']}\"{$vars['STYLE']}{$vars['SELECTED']}>{$vars['LABEL']}</option>";
			else
				return "<select style=\"{$vars['WIDTH_CSS']}\"{$vars['NAME_PROP']}{$vars['MULTIPLE_PROP']}{$vars['HEIGHT_PROP_SIZE']}{$vars['TABINDEX_PROP']}>
	{$vars['ITEMS']}
</select>";
		}
		function xthreads_input_generate_defhtml_3($field, &$vars) {
			if($field == 'formhtml_item')
				return "<label style=\"display: block;\"><input{$vars['NAME_PROP']} type=\"radio\" class=\"radio\" value=\"{$vars['VALUE']}\"{$vars['CHECKED']}{$vars['TABINDEX_PROP']} />{$vars['LABEL']}</label>";
			else
				return "{$vars['ITEMS']}";
		}
		function xthreads_input_generate_defhtml_4($field, &$vars) {
			if($field == 'formhtml_item')
				return "<label style=\"display: block;\"><input{$vars['NAME_PROP']} type=\"checkbox\" class=\"checkbox\" value=\"{$vars['VALUE']}\"{$vars['CHECKED']}{$vars['TABINDEX_PROP']} />{$vars['LABEL']}</label>";
			else
				return "{$vars['ITEMS']}";
		}
		function xthreads_input_generate_defhtml_5($field, &$vars) {
			if($field == 'formhtml_item')
				return "
	<![if gte IE 7]><div class=\"xta_file\" style=\"clear: both;\"><![endif]>
	<!--[if lt IE 7]><tr class=\"xta_file\"><![endif]-->
		<!--[if lt IE 7]><td><![endif]-->
		<div class=\"xta_file_link\"{$vars['ATTACH_MD5_TITLE']} style=\"padding-right: 6em;\"><input type=\"hidden\" name=\"xtaorder[]\" value=\"{$vars['ATTACH']['aid']}\" /><a href=\"{$vars['ATTACH']['url']}\" target=\"_blank\">{$vars['ATTACH']['filename']}</a> ({$vars['ATTACH']['filesize_friendly']})</div>
		<!--[if lt IE 7]></td><td><![endif]-->
		<![if gte IE 7]><span style=\"float: right; margin-top: -1.5em;\"><![endif]>
		<label class=\"xtarm_label\"".((("".$vars['REQUIRED']."") and !("".$vars['MULTIPLE'].""))?" style=\"display: none;\"":"")."><input type=\"checkbox\" class=\"xtarm\" name=\"xtarm_{$vars['KEY']}".((("".$vars['MULTIPLE'].""))?"[{$vars['ATTACH']['aid']}]":"")."\"".((!("".$vars['MULTIPLE'].""))?" data=\"xtarow_{$vars['KEY']}\"":"")." value=\"1\"{$vars['REMOVE_CHECKED']} />".((("".$vars['REQUIRED']."") and !("".$vars['MULTIPLE'].""))?"{$GLOBALS['lang']->xthreads_replaceattach}":"{$GLOBALS['lang']->xthreads_rmattach}")."</label>
		<![if gte IE 7]></span><![endif]>
		<!--[if lt IE 7]></td><![endif]-->
	<![if gte IE 7]></div><![endif]>
	<!--[if lt IE 7]></tr><![endif]-->
";
			else
				return "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
	<!--[if lt IE 7]><tbody class=\"xta_file_list\"><![endif]-->
	<![if gte IE 7]><tr><td class=\"xta_file_list\"><![endif]>
{$vars['ITEMS']}
	<![if gte IE 7]></td></tr><![endif]>
	<!--[if lt IE 7]></tbody><![endif]-->
</table>
<div id=\"xtarow_{$vars['KEY']}\" class=\"xta_input\">
	".((XTHREADS_ALLOW_URL_FETCH)?"
		".((!("".$vars['MULTIPLE'].""))?"
			<div class=\"xtasel\" style=\"display: none; font-size: x-small;\"><label style=\"margin: 0 0.6em;\"><input type=\"radio\" class=\"xtasel_opt\" name=\"xtasel_{$vars['KEY']}\" value=\"file\"{$vars['CHECKED_UPLOAD']} />{$GLOBALS['lang']->xthreads_attachfile}</label><label style=\"margin: 0 0.6em;\"><input type=\"radio\" class=\"xtasel_opt\" name=\"xtasel_{$vars['KEY']}\" value=\"url\"{$vars['CHECKED_URL']} />{$GLOBALS['lang']->xthreads_attachurl}</label></div>
		":"")."
		<table border=\"0\" cellspacing=\"0\" cellpadding=\"1\"><tr class=\"xta_input_file_row\">
			<td class=\"xtasel_label\" style=\"vertical-align: top;\">{$GLOBALS['lang_xthreads_attachfile']}: </td>
			<td>
	":"")."
		".((("".$vars['MAXSIZE'].""))?"<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"{$vars['MAXSIZE']}\" />":"")."
			<div class=\"xta_input_file_container\"><div class=\"xta_input_file_wrapper\">
				<input type=\"file\" class=\"fileupload xta_input_file\"{$vars['NAME_PROP']}{$vars['WIDTH_PROP_SIZE']}{$vars['TABINDEX_PROP']}{$vars['MULTIPLE_PROP']}{$vars['ACCEPT_PROP']} /><input type=\"button\" class=\"button xta_input_file_clr\" value=\"{$GLOBALS['lang']->file_clear}\" style=\"display: none;\" />
			</div></div>
		".((("".$vars['MAXSIZE'].""))?"<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"0\" />":"")."
	".((XTHREADS_ALLOW_URL_FETCH)?"
			</td>
		</tr>
		<tr class=\"xta_input_url_row\">
			<td class=\"xtasel_label\" style=\"vertical-align: top;\">{$GLOBALS['lang_xthreads_attachurl']}: </td>
			<td>
				".((("".$vars['MULTIPLE'].""))?"<textarea name=\"xtaurl_{$vars['KEY']}\"{$vars['WIDTH_PROP_COLS']} rows=\"3\" class=\"xta_input_url\">{$vars['VALUE_URL']}</textarea>":"<input type=\"url\" class=\"textbox xta_input_url\" name=\"xtaurl_{$vars['KEY']}\"{$vars['WIDTH_PROP_SIZE']} value=\"{$vars['VALUE_URL']}\" />")."
			</td>
		</tr></table>
	":"")."
</div>
".((!$GLOBALS['tplvars']['xta_js_dragdrop_added'] and ("".$vars['MULTIPLE'].""))?"
	<script type=\"text/javascript\" src=\"{$GLOBALS['mybb']->settings['bburl']}/jscripts/scriptaculous.js?load=effects,dragdrop\"></script>
	".(($GLOBALS["tplvars"]["xta_js_dragdrop_added"] = (1))?"":"")."
":"")."
".((!$GLOBALS['tplvars']['xta_js_added'] and (("".$vars['ATTACH']['aid']."") or XTHREADS_ALLOW_URL_FETCH or ("".$vars['MULTIPLE']."")))?"
	<script type=\"text/javascript\" src=\"{$GLOBALS['mybb']->settings['bburl']}/jscripts/xthreads_attach_input.js\"></script>
	".(($GLOBALS["tplvars"]["xta_js_added"] = (1))?"":"")."
":"")."
";
		}

please bro help....


WAITING FOR YOUR REPLY DEAR ZINGA.
OTHERWISE I HAVE TO REINSTALL IT FOR TRY.
It open threads post normally if u go through last post but threrad list not shown and also new thread creation also not working.
check this link...its work when separate thread opened.
http://medishared.org/showthread.php?tid...http://medishared.org/showthread.php?tid=134&actio


but when go to xthread download than give that error.
http://medishared.org/forumdisplay.php?fid=209
Okay, that's arguably my fault.  Thanks for the file.

Updated to v1.61:
- Fix backwards compatibility with Display Format referencing itself via $threadfields[...] for file fields (thanks for WINBOY for finding)
(11-19-2012 11:33 PM)ZiNgA BuRgA Wrote: [ -> ]Okay, that's arguably my fault.  Thanks for the file.

Updated to v1.61:
- Fix backwards compatibility with Display Format referencing itself via $threadfields[...] for file fields

WOW...Thanks bro.
You r genius.
There is problem while thread making as i have to fill all fields to post thread otherwise page is not loaded.if i not upload one of the image/ file upload field posting of thread in not occuring.
pls fix it.
what is meaning of "Allow multiple values for this field" in file upload custom thread field.??
can i upload more than one file in new thread with allowing multiple value???
Revertback to 1.53.....
sorry zinga.
1.61 creating above problems.
(11-20-2012 12:44 AM)WINBOY Wrote: [ -> ]There is problem while thread making as i have to fill all fields to post thread otherwise page is not loaded.if i not upload one of the image/ file upload field posting of thread in not occuring.
Riiiiight.
So I presume you haven't set the field to be required, and no error message displays?

Also, I'm not here 24/7 waiting for you to post your problems so please stop acting like an ass.  I don't fucking owe you anything.
Reference URL's