MyBB Hacks

Full Version: Trading Forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 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
Could you please post the error message?
Quote:Value for "Product image" is required.

happens the same, no matter if i put image uplaod or URL
What I can think right now is there is more than one xthreads_trdfimg input on that pages.
Try to view the source page to check it.
Quote:<div align="center"><div id="xtarow_trdfimg"><div style="display: none; font-size: x-small;" id="xtasel_trdfimg"><label style="margin: 0 0.6em;"><input type="radio" name="xtasel_trdfimg" value="file" checked="checked" id="xtaselopt_file_trdfimg" />File</label><label style="margin: 0 0.6em;"><input type="radio" name="xtasel_trdfimg" value="url" id="xtaselopt_url_trdfimg" />URL</label></div>
<div><span id="xtaseltext_file_trdfimg">File: </span><input type="hidden" name="MAX_FILE_SIZE" value="402400" /><input type="file" class="fileupload" name="xthreads_trdfimg" size="40" tabindex="10" id="xthreads_trdfimg" /><input type="hidden" name="MAX_FILE_SIZE" value="0" /></div>
<div><span id="xtaseltext_url_trdfimg">URL: </span><input type="text" class="textbox" id="xtaurl_trdfimg" name="xtaurl_trdfimg" size="40" value="http://" /></div></div><script type="text/javascript"><!--

$("xtasel_trdfimg").style.display="";
$("xtaseltext_file_trdfimg").style.display=$("xtaseltext_url_trdfimg").style.display="none";
($("xtaselopt_file_trdfimg").onclick = $("xtaselopt_url_trdfimg").onclick = function() {
var f=$("xtaselopt_file_trdfimg").checked;
$("xthreads_trdfimg").style.display = (f?"":"none");
$("xtaurl_trdfimg").style.display = (f?"none":"");
if(!f) $("xthreads_trdfimg").value = "";
})();
//-->
</script></div>
</td>
</tr>

i only see one in new thread
If you have the other XThreads file input, does it happens to the file inputs too?
If this happens to trdfimg file input only, if you have a test area/forum on that board, try assigning the trdfimg field to the test forum/area, then try to upload image from there.
(06-30-2012 03:57 AM)RateU Wrote: [ -> ]If you have the other XThreads file input, does it happens to the file inputs too?
If this happens to trdfimg file input only, if you have a test area/forum on that board, try assigning the trdfimg field to the test forum/area, then try to upload image from there.

[Image: capturadepantalladeqq20.png]
I've put it in another forum and still gives me error
i've deleted it and created it again and still problem

here is my new thread template

trdf_newthread


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>Nueva Venta</strong></td></tr>
		<tr><td class="tcat" colspan="2"><strong>Informacion requerida</strong></td></tr>
		<tr>
			<td class="trow_sep" colspan="2">
				<div class="float_left">Necesito:</div>
				<div class="float_left" style="margin-left: 9px;">{$tfinput['trdftnt']}</div>
				<div class="float_left" style="margin-left: 19px;">Categoria:</div>
				<div class="float_left" style="margin-left: 9px;">{$tfinput['trdfcat']}</div>
				<div class="float_left" style="margin-left: 19px;">Nombre del producto:</div>
				<div class="float_left" style="margin-left: 9px;"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></div>
			</td>
		</tr>
		<tr>
			<td class="trow1 smalltext" colspan="2">
				Por favor define si vas a comprar o vender un producto, su nombre y su categoria.
			</td>
		</tr>
		<tr>
			<td class="trow_sep" colspan="2">
				<div class="float_left">Cantidad:</div>
				<div class="float_left" style="margin-left: 9px;">{$tfinput['trdfquantity']}</div>
				<div class="float_left" style="margin-left: 19px;">Precio:</div>
				<div class="float_left" style="margin-left: 9px;">{$tfinput['trdfminmax']} $ {$tfinput['trdfprice']} {$tfinput['trdfet']}</div>
				<div class="float_left" style="margin-left: 19px;">Condicion:</div>
				<div class="float_left" style="margin-left: 9px;">{$tfinput['trdfcond']}</div>
				<div class="float_left" style="margin-left: 19px;">Estado:</div>
				<div class="float_left" style="margin-left: 9px;">{$tfinput['trdfstatus']}</div>
			</td>
		</tr>
		<tr>
			<td class="trow1 smalltext" colspan="2">
			Debes definir cuantos articulos tienes del mismo producto a comprar/vender. puedes establecer un precio minimo/maximo. Tambien debes establecer si si el precio es para cada producto o para todos los que ingreses (pack).  Formato de precio: x o x.xx, Tambien determina si el producto es nuevo/usado, asi como si esta disponible o no editando la opcion de estado.
			</td>
		</tr>
		<tr><td class="tcat" colspan="2"><strong>Informacion Adicional</strong></td></tr>
		<tr>
			<td class="trow2" width="1">
				<textarea name="message" id="message" rows="7" cols="60" tabindex="2">{$message}</textarea>
			</td>
			<td class="trow2 smalltext" valign="top">
				Si tienes informacion adicional sobre este producto o sobre las condiciones de pago/entrega puedes ingresarlo en el cuadro de la izquierda.
				<br class="clear" /><br />
		Si tienes una imagen relacionada con el producto, puedes subirla aqui. Formatos permitidos: jpeg, jpg, gif o png. TamaƱo Maximo 200kb. Dimension Maxima: 1024 x 768 pixeles. Dimensiones minimas: 320 x 240 pixeles.
<br>
 <span style="color:red"><b>Por seguridad, se requiere que la imagen sea real y que contenga algun texto que diga beatDJ.net, si la imagen no cumple con este requisito, tu venta/compra sera eliminada del sistema</b></span> 
				<br class="clear" />
				<div align="center">{$tfinput['trdfimg']}</div>
			</td>
		</tr>
		
		<tr><td class="tcat" colspan="2"><strong>Miscelaneos</strong></td></tr>
		<tr><td class="trow_sep" colspan="2"><strong>Metodos de pagos</strong></td></tr>
		<tr>
			<td class="trow2 smalltext" valign="top" colspan="2">
			Establece el metodo de pago para tu producto aqui, puedes seleccionar mas de uno.
				<br class="clear" />
				<div>{$tfinput['trdfpayment']}</div>
			</td>
		</tr>
		{$subscriptionmethod}
		{$modoptions}
		{$captcha}
	</table>
	<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>

Ugh... I can't reproduce it (I've tried using your template above).
Do you have a regular test account?
Great template set RateU, thank you very much. I am using it on a forum I am helping out on (mybb 1.6.8) and the $ symbol in new thread, forumdisplay thread edit post and postbit first is giving a security error. Ludicrous.

I replaced the $ with the HTML Entity (hex) from http://www.fileformat.info/info/unicode/...http://www.fileformat.info/info/unicode/char/24 and it saves fine.
Ah yes. I forget about the template security in MyBB 1.6. Thanks, Lee Smile
I have a problem with Trading Forum:

http://img109.imageshack.us/img109/3650/xtheads.png

Why my trading forum isn't as this: http://mybbhacks.zingaburga.com/attachment.php?aid=179   ?

thanks
Pages: 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
Reference URL's