Ficha
|
16 posts
|
|
|
Apr 20, 2015 22:08:43 GMT
|
|
Publicado por eton en Apr 14, 2015 1:21:59 GMT
|
|
Cuenta Oficial PHRPG
|
Publicado por PHRPG en Apr 14, 2015 5:02:10 GMT
|
|
Cuenta Oficial PHRPG
|
Publicado por PHRPG en Apr 14, 2015 5:03:19 GMT
UJ1SMTFH1d6 I'm testing the code in your post. EDIT: It works. The thing is, how would I know if a member of the community uses this code for something else, maybe to cheat somehow on the game. It doesn't work on certain posts, like it hides almost the entire of the content, not only the content within the div tags.1d6
|
|
Ficha
|
16 posts
|
|
|
Apr 20, 2015 22:08:43 GMT
|
|
Publicado por eton en Apr 15, 2015 4:25:15 GMT
Thank you for the access to board 92. That quote reveal trick is because the unwrap was probably failing if your default editor was preview as I've since discovered. I've addressed the problem but what I didn't know is that Virgil wrote the dice code to be invisible in mobile mode and when javascript is disabled so the method I proposed to protect in those situations was unnecessary. A better method would be to just use CSS in the board header to hide the dice, CSS wouldn't work in mobile but since it is already hidden there it wouldn't matter so just add the following to the header of the boards where you do not want the dice to show:
<style>.vdice-box {display:none!important;}<style>
|
|
Cuenta Oficial PHRPG
|
Publicado por PHRPG en Apr 15, 2015 6:06:37 GMT
Thank you for the access to board 92. That quote reveal trick is because the unwrap was probably failing if your default editor was preview as I've since discovered. I've addressed the problem but what I didn't know is that Virgil wrote the dice code to be invisible in mobile mode and when javascript is disabled so the method I proposed to protect in those situations was unnecessary. A better method would be to just use CSS in the board header to hide the dice, CSS wouldn't work in mobile but since it is already hidden there it wouldn't matter so just add the following to the header of the boards where you do not want the dice to show: <style>.vdice-box {display:none!important;}<style> The thing is, I don't want to hide all the dices, but only two of them (I'm using the custom post template for the board 92, you'll notice this if you create a thread, a form will appear and after you fill it and submit it, the full post of pokémon encounter shows multiple dices)
|
|
Ficha
|
16 posts
|
|
|
Apr 20, 2015 22:08:43 GMT
|
|
Publicado por eton en Apr 15, 2015 13:58:18 GMT
RcCTWuEl1d5001d500
|
|
Ficha
|
16 posts
|
|
|
Apr 20, 2015 22:08:43 GMT
|
|
Publicado por eton en Apr 15, 2015 14:16:47 GMT
Rango: Entrenador Veterano Screenshot/Pantallazo: res.cloudinary.com/com-3pix/image/upload/f_auto,h_70,w_70/v200/production/b21b0e967974ebdb5b83652de083661f.jpg [Surfing] (Click a la imagen del pokémon para ver la información del pokémon encontrado en inglés desde Si no ves ningún pokémon arriba, significa que has utilizado un método incorrecto en esta sección. No te olvides de revisar la lista de métodos disponibles en la zona que te encuentras, en la descripción del foro/categoría de dicha locación. 1d500 [Objeto] Da click AQUÍ para ir al post de reclamo de encuentro de objetos en caso de que hayas encontrado alguno. 1d500 INFORMACIÓN/STATS (Solo aplicable en caso de que te hayas encontrado con un pokémon) SEXO/GÉNERO: [Sexo] 1d2 NIVEL DEL POKÉMON ( Primer Dado: Entrenador Novato / Segundo Dado: Entrenador / Tercer Dado: Entrenador Veterano (o superior) 1d15 / 1d35 / 1d60 VALORES INDIVIDUALES (IV) ( HP / Ataque / Defensa / Ataq. Especial / Def. Especial / Velocidad) 1d31 / 1d31 / 1d31 / 1d31 / 1d31 / 1d31 HABILIDAD DEL POKEMON: [Habilidad] 1d20 NATURALEZA DEL POKÉMON: [Naturaleza] 1d25 ESTADO ALTERADO: [Estado Alterado] 1d100 ---
|
|
Ficha
|
16 posts
|
|
|
Apr 20, 2015 22:08:43 GMT
|
|
Publicado por eton en Apr 15, 2015 14:17:21 GMT
|
|
Ficha
|
16 posts
|
|
|
Apr 20, 2015 22:08:43 GMT
|
|
Publicado por eton en Apr 15, 2015 14:37:20 GMT
OK I misunderstood thinking you wanted all rolls from a specific board hidden so remove anything I've given before and we'll just add to the vdice plugin itself to accomplish. Enter the build mode of the vdice plugin and on the component tab scroll down to the Global Header & Footer and select the Footer tab, you should see this Below that add the following code <!-- Hide dice rolls of a specific range originating from certain boards --> <script type="text/javascript"> if(proboards.dataHash["proboards.post"]){ $('.vdice-range:contains(1-500)').each(function(i,e){ //remove any rolls found in quotes since quotes can have originating source omitted if($(e).closest('.quote').length){ $(e).siblings().empty(); return true; } //remove any rolls from post that originate from a certain board with the specified range var pid = $(e).closest('tr.post.item[id]').attr('id').split('-')[1]; var metapost = proboards.item('post',pid); if(proboards.item('thread',metapost.thread_id).board_id == 91 || proboards.item('thread',metapost.thread_id).board_id == 92){ $(e).siblings().empty(); } }) } </script> <!-- End Hide dice rolls of a specific range originating from certain boards --> so it should look like this now Click the save changes button at the bottom and see if it hides rolls of range 1-500 that come from boards 91 and 92. If 1d500 rolls are quoted and they are shown by vdice then they will be removed regardless since we cannot reliably tell which board a quote comes from.
|
|
Cuenta Oficial PHRPG
|
Publicado por PHRPG en Apr 15, 2015 17:29:53 GMT
eton I really appreciate your help. The code worked and everything, but there are two problems. The only thing that hides is the dice result (the big number), the "dice" box still appears + the range of the dice. Also, I'm not sure if you know about this plugin called vdice replacer made by pastuleo23, I'm using that one to get certain pokemons appear depending on the result (the name and gif image of a pokemon + possibility of finding an item), and when I pasted the code you gave on the vdice plugin, the result of the vdice replacer, didn't appear either (it was hidden as well) I was thinking maybe a plugin can be developed, and that works with a tag, something like [hide]-[/hide], but the thing is, if the content of the vdice replacer plugin it's hidden, it wouldn't work for me. Anyways, if this is too complicated to solve, it's okay, it's not really that important. I really appreciate it. Also, since I notice you know about plugins, I wanted to ask you something. There's this plugin called custom post template, that is the one from the board 92, the form. The thing is, let's on the form there's a box field to input your name, in order the result you input in that box field, appears on the post, is if in the post, you input a code similar as $[input.value-#] (The # symbol means a number, depending on the number id of the box fields), but what is the problem?, that if I put for example, $[input.value-1] twice in the same post, so the result input in the box field 1 appears twice in a post, it only detects the first one. I don't know if what I said makes sense, haha. Thank you!
|
|
Ficha
|
16 posts
|
|
|
Apr 20, 2015 22:08:43 GMT
|
|
Publicado por eton en Apr 16, 2015 11:12:33 GMT
eton I really appreciate your help. The code worked and everything, but there are two problems. The only thing that hides is the dice result (the big number), the "dice" box still appears + the range of the dice. Also, I'm not sure if you know about this plugin called vdice replacer made by pastuleo23, I'm using that one to get certain pokemons appear depending on the result (the name and gif image of a pokemon + possibility of finding an item), and when I pasted the code you gave on the vdice plugin, the result of the vdice replacer, didn't appear either (it was hidden as well) I was thinking maybe a plugin can be developed, and that works with a tag, something like [hide]-[/hide], but the thing is, if the content of the vdice replacer plugin it's hidden, it wouldn't work for me. Anyways, if this is too complicated to solve, it's okay, it's not really that important. I really appreciate it. Also, since I notice you know about plugins, I wanted to ask you something. There's this plugin called custom post template, that is the one from the board 92, the form. The thing is, let's on the form there's a box field to input your name, in order the result you input in that box field, appears on the post, is if in the post, you input a code similar as $[input.value-#] (The # symbol means a number, depending on the number id of the box fields), but what is the problem?, that if I put for example, $[input.value-1] twice in the same post, so the result input in the box field 1 appears twice in a post, it only detects the first one. I don't know if what I said makes sense, haha. Thank you! So you don't want them to see there was even a dice roll made, not just hide the result... to hide the whole thing we could just hide the parent rather than the siblings The code targets only dice of type 1d500 so if the replacer was using that range then yes that would also be hidden. I only know of the custom template plugin by name but if it accepts bbcode then the answer would be found in the first post I made to this request on the Support Forum where I gave you a bbcode that can be used to hide stuff in posts without needing a plugin or even a code. Simply do it as [div style="width:0.1em!important;height:0.1em!important;overflow:hidden!important"][roll range="1d500"][/div] and it'll be hidden when posted. However when somebody edits their post they could erase that part and have it show. As I said I know about the custom template plugin but have never used it and what you describe sounds like there needs to be an edit made to the plugin itself to get it to search out all and not just stop at one. If the plugin has the build mode enabled then that can be done but if the author has locked it so that only he can edit it then you'll need to contact the author. I can break into locked plugins in emergencies but I'd rather not, if the author locked it down then that is his right.
|
|
Cuenta Oficial PHRPG
|
Publicado por PHRPG en Apr 16, 2015 16:22:03 GMT
It totally works, 100%, just exactly how I need it, thank you!
Regarding to the custom post template, I tried to get in touch with the creator of it, he doesn't do or modify plugins anymore, we were talking on skype.
Maybe with an extension plugin? could be possible?
|
|
Ficha
|
16 posts
|
|
|
Apr 20, 2015 22:08:43 GMT
|
|
Publicado por eton en Apr 18, 2015 5:19:59 GMT
If you get permission from the author to fix the bug yourself then I can modify the plugin directly else I would need to view an example page (link) of where it converts the first and leaves the others unconverted.
|
|
Cuenta Oficial PHRPG
|
Publicado por PHRPG en Apr 18, 2015 15:19:46 GMT
If you get permission from the author to fix the bug yourself then I can modify the plugin directly else I would need to view an example page (link) of where it converts the first and leaves the others unconverted. This is a copy paste of the post example (This is what I pasted on the custom post template plugin):[b]Rango:[/b] $[input.value-1] [b]Screenshot/Pantallazo:[/b] $[input.value-2] [$[input.value-3]] [center](Click a la imagen del pokémon para ver la información del pokémon encontrado en inglés desde http://pokemondb.net )[/center]
[i]Si no ves ningún pokémon arriba, significa que has utilizado un método incorrecto en esta sección. No te olvides de revisar la lista de métodos disponibles en la zona que te encuentras, en la descripción del foro/categoría de dicha locación.[/i]
[div style="width:0.1em!important;height:0.1em!important;overflow:hidden!important"][font color="1d1ce1"]iOpS7XfX[/font][font color="0d1ce0"]1d500[/font][/div]
[Objeto] [center]Da click AQUÍ para ir al post de reclamo de encuentro de objetos en caso de que hayas encontrado alguno.[/center]
[div style="width:0.1em!important;height:0.1em!important;overflow:hidden!important"][font color="0d1ce0"]1d500[/font][/div]
[center][font size="6"][b]INFORMACIÓN/STATS[/b][/font] (Solo aplicable en caso de que te hayas encontrado con un pokémon)[/center]
[b]NIVEL DEL POKÉMON[/b] ([b]Primer Dado:[/b] Entrenador Novato / [b]Segundo Dado:[/b] Entrenador / [b]Tercer Dado:[/b] Entrenador Veterano (o superior) [font color="0d1ce0"]1d15[/font] / [font color="0d1ce0"]1d35[/font] / [font color="0d1ce0"]1d60[/font]
[b]VALORES INDIVIDUALES (IV)[/b] ([b][font color="e74841"]HP[/font][/b] / [b][font color="f1a83a"]Ataque[/font][/b] / [b][font color="fafa4a"]Defensa[/font][/b] / [b][font color="719af1"]Ataq. Especial[/font][/b] / [b][font color="94d38c"]Def. Especial[/font][/b] / [b][font color="916db3"]Velocidad[/font][/b]) [font color="e74841"][font color="0d1ce0"]1d31[/font][/font] / [font color="f1a83a"][font color="0d1ce0"]1d31[/font][/font] / [font color="fafa4a"][font color="0d1ce0"]1d31[/font][/font] / [font color="719af1"][font color="0d1ce0"]1d31[/font][/font] / [font color="94d38c"][font color="0d1ce0"]1d31[/font][/font] / [font color="916db3"][font color="0d1ce0"]1d31[/font][/font]
[b]SEXO/GÉNERO:[/b] [Sexo] [div style="width:0.1em!important;height:0.1em!important;overflow:hidden!important"][font color="0d1ce0"]1d2[/font][/div][b]HABILIDAD DEL POKEMON:[/b] [Habilidad] [div style="width:0.1em!important;height:0.1em!important;overflow:hidden!important"][font color="0d1ce0"]1d20[/font][/div][b]NATURALEZA DEL POKÉMON:[/b] [Naturaleza] [div style="width:0.1em!important;height:0.1em!important;overflow:hidden!important"][font color="0d1ce0"]1d25[/font][/div][b]ESTADO ALTERADO:[/b] [Estado Alterado] [div style="width:0.1em!important;height:0.1em!important;overflow:hidden!important"][font color="0d1ce0"]1d100[/font][/div] ---
[QUOTE]Ya ha iniciado el encuentro con un pokémon. Puedes continuar con la captura si estás interesado en el pokémon. Recuerda que las Poké Ball de cualquier tipo utilizadas bajo este sistema, se terminan perdiendo.
Para continuar, dale a [b]"Click aquí para crear respuesta"[/b] (se encuentra arriba del tema y abajo del tema) y rellena el formulario de captura.
El límite máximo de Poké Ball que se pueden lanzar a un pokémon son de 5 (máximo 5 respuestas al post + el tema inicial que determina el encuentro con el Pokémon)
Si no estás interesado en el pokémon, no te olvides de colocar en tu registro de personaje que has finalizado la captura, adjuntando un vínculo de este tema, rellenando el formulario correspondiente de manera correspondiente, indicando en Suceso: "He encontrado a "X" pokémon y no lo he capturado" o en caso de que lo hayas capturado, "He encontrado a "X" pokémon y lo he capturado", (no hacerlo resultará en multas y posibles penalizaciones).
Tampoco está permitido participar en una captura que previamente ya se cancelado o ya ha finalizado (publicado en tu registro, bajo el formulario). Semanalmente se revisan los logs de esta sección para determinar si algún usuario ha incumplido esta norma, lo cual resultará de manera progresiva en sanciones y multas de gravedad.
[font color="red"][b]Editar o eliminar este tema está terminantemente prohibido. Semanalmente se revisan los logs de esta sección para determinar si algún usuario ha incumplido esta norma, lo cual resultará de manera progresiva en sanciones y multas de gravedad.[/b][/font][/QUOTE] Depending on the board you post it, you'll get different values that are already set on the plugin management, like this image: i.gyazo.com/09bc6dd73ec844d769282c77db71b848.pngEach of those represents a value number. I just edited the custom post template on board 92, so you could give it try, create a thread, fill the form, and you'll see that at the end of the first line, it says $[input.value-1] because there are two $[input.value-1] $[input.value-1] together. I don't know if this makes sense. For example: phrpg.freeforums.net/thread/364/aaa as you can see, on the first line, next to Entrenador Novato, it says value, and what I want it's that says Entrenador Novato as well (twice, because Entrenador Novato represents the first $[input.value-1] I've been trying to contact the creator of the plugin for days, but I think he is inactive from the community. Thank you! 1d500·1d500·1d15·1d35·1d60·1d31·1d31·1d31·1d31·1d31·1d31·1d2·1d20·1d25·1d100
|
|
Ficha
|
16 posts
|
|
|
Apr 20, 2015 22:08:43 GMT
|
|
Publicado por eton en Apr 19, 2015 2:23:50 GMT
Here is a modified version of the plugin that should process more than one variable referring to the same input value, as noted before though I am in no way familiar with the operation of this plugin so you'll need to test it and see if it still operates as intended Custom Template v1.0.2
|
|