Boas-vindas ao Power Pixel

Junte-se a comunidade! Crie o seu próprio conteúdo, e faça amizades.EntrarCriar uma conta

BangBang BangBang  • Sex 29 Mar 2013 - 10:00

Como fazer o usuário bot enviar uma mensagem privada com o texto que eu escrever? Empty Como fazer o usuário bot enviar uma mensagem privada com o texto que eu escrever? Sex 29 Mar 2013 - 10:00

Qual é minha questão:
Eu quero uma página html, eu já criei um usuário bot, e quero que tenha uma text area pra eu colocar tal texto e um botao que envia a mp direto pra todos usuários do fórum, e quem manda a mensagem é o usuário que eu configurar. Consegui mais ou menos o code, só que não envia, e quando aperta o botão salvar volta a mensagem inicial do proprio painel.
Código:
<form><fieldset class="fieldset_left html-editor"><dl><dd><input type="radio" name="allow_welcome_pm" id="allow_welcome_pm_yes" value="1" checked="checked" class="radio"><label for="allow_welcome_pm_yes"> Ativado</label><input type="radio" name="allow_welcome_pm" id="allow_welcome_pm_no" value="0" class="radio"><label for="allow_welcome_pm_no"> Desativado</label> </dd>
</dl>
<dl><dt><label for="welcome_text">Mensagem de boas-vindas<a href="/popup_help.forum?l=miscvars" target="_blank" onclick="window.open('/popup_help.forum?l=miscvars&amp;i=welcome_text','','width=800,height=600,top=((screen.height-600)/2),left=((screen.width-800)/2),scrollbars=1');return false;"> *</a> :</label></dt><dd><span class="gensmall"><div><textarea class="post" name="welcome_text" id="vB_Editor_001_textarea" rows="10" cols="60" style="width:600px; height:200px; " tabindex="1" dir="ltr"><blue>{USERNAME}</blue><black>, Bem vindo ao iGamer Fórum!
Leia as nossas regras para não ser punido com Infrações.
Se apresente, na área de apresentações do</black> <red>iGamer Fórum</red>.</textarea></div></span> </dd></dl>
<dl><dt><label><img src="http://2img.net/i/fa/admin/icones/question2.png" onmouseover="show_tooltip2(this,'Welcome_sender_explain');" align="absmiddle" title="O remetente da mensagem de boas-vindas será avisado a cada mensagem de boas-vindas"> Remetente da mensagem de boas-vindas :</label></dt><dd><input type="text" id="username" name="username" value="iGamerzinho" size="20">  <input type="button" id="find_user" value="Buscar" class="icon_search"> </dd></dl><div class="DIV_BTNS"><input type="submit" value="Salvar" name="submit" class="icon_ok"></div></fieldset>
<input type="hidden" name="fa_admin_form" value="a:1:{s:4:"post";a:5:{i:0;a:7:{s:4:"type";s:4:"text";s:4:"name";s:18:"min_posts_privmsgs";s:12:"content_type";i:1;s:3:"min";i:0;s:3:"max";i:200;s:7:"default";s:0:"";s:9:"precision";s:0:"";}i:1;a:7:{s:4:"type";s:4:"text";s:4:"name";s:18:"max_inbox_privmsgs";s:12:"content_type";i:1;s:3:"min";i:5;s:3:"max";i:50;s:7:"default";s:0:"";s:9:"precision";s:0:"";}i:2;a:7:{s:4:"type";s:4:"text";s:4:"name";s:20:"max_sentbox_privmsgs";s:12:"content_type";i:1;s:3:"min";i:5;s:3:"max";i:50;s:7:"default";s:0:"";s:9:"precision";s:0:"";}i:3;a:7:{s:4:"type";s:4:"text";s:4:"name";s:19:"max_outbox_privmsgs";s:12:"content_type";i:1;s:3:"min";i:5;s:3:"max";i:50;s:7:"default";s:0:"";s:9:"precision";s:0:"";}i:4;a:7:{s:4:"type";s:4:"text";s:4:"name";s:20:"max_savebox_privmsgs";s:12:"content_type";i:1;s:3:"min";i:5;s:3:"max";i:50;s:7:"default";s:0:"";s:9:"precision";s:0:"";}}}"></input></form>
Medidas que eu tomei para corrigir o problema:
n

Links e imagens do meu problema:
n

Endereço do meu fórum:
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Versão do meu fórum:
PUNBB

[F]lames [F]lames  • Sex 29 Mar 2013 - 11:29

Como fazer o usuário bot enviar uma mensagem privada com o texto que eu escrever? Empty Re: Como fazer o usuário bot enviar uma mensagem privada com o texto que eu escrever? Sex 29 Mar 2013 - 11:29

Reputação da mensagem: 100% (1 votos)
Olá,

Substitua o HTML da página por este:

Código:
<script>jQuery.get('/privmsg?mode=post',function(data) {jQuery('.buttons input[name="auth[]"]').attr('value',jQuery('.frm-buttons input[name="auth[]"]:first',data).attr('value'));});</script><form action="/privmsg" class="frm-form" method="post" name="post" onsubmit="return vB_Editor['text_editor'].prepare_submit(0,0)" enctype="multipart/form-data" style="
    font-family: &quot;Segoe UI Web Light&quot;,&quot;Segoe UI Light&quot;,&quot;Segoe UI Web Regular&quot;,&quot;Segoe UI&quot;,&quot;Segoe UI Symbol&quot;,&quot;Helvetica Neue&quot;,Arial;
    font-size: 17px;
    line-height: 1.8em;
"><style>input[value="Salvar"]:hover {background-color: rgb(231,231,231) !important;}
select option {font-weight: 700!important;}</style><fieldset class="fieldset_left html-editor"><dl style="
    display: inline;
    padding-left: 7px;
"><dt style="
    display: inline;
    margin-right: 350px;
">Sistema ativado ?</dt><dd style="
    display: inline;
"><input type="radio" name="sistem_yes" id="sistem_yes" value="1" class="radio" style="
"><label for="allow_welcome_pm_yes" style="
    margin-right: 149px;
"> Ativado</label><input type="radio" name="sistem_not" id="sistem_not" value="0" class="radio" checked="checked" style="
"><label for="allow_welcome_pm_no"> Desativado</label> </dd>
</dl>
<br><dl style="
    display: inline;
    padding-left: 7px;
"><dt style="
    display: inline;
    margin-right: 350px;
">Titulo do aviso:</dt><dd style="
    display: inline;
    margin-left: 39px;
"><input type="text" name="subject" style="margin: 7px;
                border: 1px solid #DDD;
                padding: 5px;
                width: 46.7%;
                outline: none;
                font-family:'Segoe UI Web Light', 'Segoe UI Light', 'Segoe UI Web Regular', 'Segoe UI', 'Segoe UI Symbol', 'Helvetica Neue', Arial;
                font-size: 18px;background: #FFF;border-radius: 0px;box-shadow: none;color: #333;text-shadow: none;margin-left: -26px;"></dd>
</dl><dl style="
    display: inline;
    padding-left: 7px;
"><dt style="
    display: inline-table;
    margin-right: 377px;
    margin-top: -10px;
">Enviar para:</dt><dd style="
    display: inline-table;
    left: 11px;
    position: relative;
"><select name="usergroup" style="
    margin: 7px;
               
    padding: 3px;
                border: 1px solid #DDD;
                outline: none;
                font-family:'Segoe UI Web Light', 'Segoe UI Light', 'Segoe UI Web Regular', 'Segoe UI', 'Segoe UI Symbol', 'Helvetica Neue', Arial;
                font-size: 18px;
                padding-top: 6px;
    width: 269%;
    margin-left: -1px;
    margin-right: 0px;
    margin-bottom: 0;
"><option value=""></option><option value="1">Administradores</option><option value="6">Bot</option><option value="5">Designs</option><option value="3">Gerentes</option><option value="2">Moderadores</option><option value="4">Suportes</option><option value="7">Todos os usuários</option></select></dd>
</dl><dl><dt style="
    padding-left: 7px;
"><label for="welcome_text">Mensagem de boas-vindas<a href="/popup_help.forum?l=miscvars" target="_blank" onclick="window.open('/popup_help.forum?l=miscvars&amp;i=welcome_text','','width=800,height=600,top=((screen.height-600)/2),left=((screen.width-800)/2),scrollbars=1');return false;"> *</a> :</label></dt><dd><span class="gensmall"><div><textarea class="post" name="message" id="vB_Editor_001_textarea" rows="10" cols="60" style=" height:200px; font-family: &quot;Segoe UI Web Light&quot;,&quot;Segoe UI Light&quot;,&quot;Segoe UI Web Regular&quot;,&quot;Segoe UI&quot;,&quot;Segoe UI Symbol&quot;,&quot;Helvetica Neue&quot;,Arial;font-size: 16px;width: 97%;outline: none;resize: none;margin: 7px;padding: 7px;border: 1px solid rgb(221,221,211);" tabindex="1" dir="ltr">&lt;blue&gt;Admin&lt;/blue&gt;&lt;black&gt;, Bem vindo ao iGamer Fórum!
Leia as nossas regras para não ser punido com Infrações.
Se apresente, na área de apresentações do&lt;/black&gt; &lt;red&gt;iGamer Fórum&lt;/red&gt;.</textarea></div></span> </dd></dl><div class="buttons"><input type="hidden" name="auth[]" value="cbfc24a67b64531d31428dc63ebab5e9"><input type="hidden" name="folder" value="inbox"><input type="hidden" name="mode" value="post"><input type="hidden" name="new_pm_time" value="1364566835"><input type="hidden" name="lt" value=""><input type="submit" value="Salvar" name="post" class="icon_ok" style="alignment-baseline: auto;
background-attachment: scroll;
background-clip: border-box;
background-image: none;
background-origin: padding-box;
background-position: 0% 0%;
background-repeat: repeat;
background-size: auto;
baseline-shift: baseline;
border-bottom-color: rgb(102, 102, 102);
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
border-bottom-style: none;
border-bottom-width: 0px;
border-collapse: separate;
border-image-outset: 0px;
border-image-repeat: stretch;
border-image-slice: 100%;
border-image-source: none;
border-image-width: 1;
border-left-color: rgb(102, 102, 102);
border-left-style: none;
border-left-width: 0px;
border-right-color: rgb(102, 102, 102);
border-right-style: none;
border-right-width: 0px;
border-top-color: rgb(102, 102, 102);
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-top-style: none;
border-top-width: 0px;
bottom: auto;
box-shadow: none;
box-sizing: content-box;
caption-side: top;
clear: none;
clip: auto;
clip-path: none;
clip-rule: nonzero;
color: rgb(33, 33, 33);
color-interpolation: srgb;
color-interpolation-filters: linearrgb;
color-rendering: auto;
cursor: pointer;
direction: ltr;
display: inline-block;
dominant-baseline: auto;
empty-cells: show;
fill: #000000;
fill-opacity: 1;
fill-rule: nonzero;
filter: none;
float: none;
flood-color: rgb(0, 0, 0);
flood-opacity: 1;
font-family: 'Segoe UI', 'Segoe UI Web Regular', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif !important;
font-size: 14px!important;
font-style: normal;
font-variant: normal;
font-weight: lighter !important;
glyph-orientation-horizontal: 0deg;
glyph-orientation-vertical: auto;
height: 32px !important;
image-rendering: auto;
kerning: 0;
left: auto;
line-height: 1.8em;letter-spacing: normal;
lighting-color: rgb(255, 255, 255);
line-height: 28.15625px;
list-style-image: none;
list-style-position: outside;
list-style-type: none;
margin-bottom: 10px;
margin-left: 10px;
margin-right: 10px;
margin-top: 10px;
marker-end: none;
marker-mid: none;
marker-start: none;
mask: none;
mask-type: luminance;
max-height: none;
max-width: none;
min-height: 0px;
min-width: 0px;
opacity: 1;
orphans: 2;
outline-color: rgb(102, 102, 102);
outline-style: none;
outline-width: 0px;
overflow-wrap: normal;
overflow-x: hidden;
overflow-y: hidden;
padding-bottom: 0px;
padding-left: 7px;
padding-right: 7px;
padding-top: 0px;
page-break-after: auto;
page-break-before: auto;
page-break-inside: auto;
pointer-events: auto;
position: relative;
resize: none;
right: auto;
shape-rendering: auto;
speak: normal;
stop-color: rgb(0, 0, 0);
stop-opacity: 1;
stroke: none;
stroke-dasharray: none;
stroke-dashoffset: 0;
stroke-linecap: butt;
stroke-linejoin: miter;
stroke-miterlimit: 4;
stroke-opacity: 1;
stroke-width: 1;
tab-size: 8;
table-layout: auto;
text-align: left;
text-anchor: start;
text-decoration: none;
text-indent: 0px;
text-overflow: ellipsis;
text-rendering: auto;
text-shadow: none;
text-transform: none;
top: auto;
unicode-bidi: normal;
vector-effect: none;
vertical-align: baseline;
visibility: visible;
white-space: nowrap;
widows: 2;
word-break: normal;
word-spacing: 0px;
word-wrap: normal;
writing-mode: lr-tb;
z-index: auto;
zoom: 1;background-color: rgb(243,243,243);"></div></fieldset></form>
Resulta ?

Até mais.

BangBang BangBang  • Sex 29 Mar 2013 - 12:05

[F]lames [F]lames  • Sex 29 Mar 2013 - 12:15

Conteúdo patrocinado  • 

Como fazer o usuário bot enviar uma mensagem privada com o texto que eu escrever? Empty Re: Como fazer o usuário bot enviar uma mensagem privada com o texto que eu escrever?

Permissões neste sub-fórum
Não podes responder a tópicos