PDA

View Full Version : Miscellaneous Hacks - Spoiler Information Postbit


MyPeSePe
10-04-2011, 10:00 PM
(Espa?ol/Spanish)

Buenas , pues como tengo un postbit bastante extenso en mi comunidad y no encontre nada relacionado con ello para esta version , decidi adaptar un nuevo codigo en el postbit . Para que gente como yo , que tenga una informacion extensa dentro de su perfil , pueda esconderla.

( Ingles/Inglish)

Well, as I have a fairly extensive postbit in my community and I did not find anything about it to this version, I decided to adapt a new code in the postbit. For people like me who have an extensive information in your profile, you can hide it.

Inside the template postbit_legay search :

<vb:if condition="$show['reputation']">

added before :

<div class="divspoiler">
<input type="button" value="Mostrar Informacion" onclick="if (this.parentNode.nextSibling.childNodes[0].style.display != '') { this.parentNode.nextSibling.childNodes[0].style.display = ''; this.value = 'Ocultar Informacion'; } else { this.parentNode.nextSibling.childNodes[0].style.display = 'none'; this.value = 'Mostrar Informacion'; }" />
</div><div><div class="spoiler" style="display: none;">

*Change the colors, by the text to replace

(Espa?ol/Spanish)

Para cerrar el codigo , en este caso yo tengo demasiada informacion y he cerrado el codigo en los datos de contacto

(Ingles/Inglish)

To close the code, in this case I have too much information and I closed the code in the contact details

Search :

post.yahooicon} {vb:raw post.skypeicon}</div>
</div>
</vb:if>

add after

</div></div>

Watch demonstration --> Demo (http://www.phonesfera.com/threads/5301-Novedades-Del-Foro)

Fabilous
10-10-2011, 01:40 PM
After that my postbit_legacy in Threads are broken :(

MyPeSePe
10-10-2011, 01:53 PM
In my forum is working correctly, I'm still trying to move some values

ccr
10-10-2011, 05:41 PM
works fine on my forum

I have a question

How can I center the button in connection with the nick and the range?

https://vborg.vbsupport.ru/external/2011/10/56.png

Thanks for this mod and your help

MyPeSePe
10-10-2011, 06:36 PM
Added before a

<center><div class="divspoiler">
<input type="button" value="Mostrar Informacion" onclick="if (this.parentNode.nextSibling.childNodes[0].style.display != '') { this.parentNode.nextSibling.childNodes[0].style.display = ''; this.value = 'Ocultar Informacion'; } else { this.parentNode.nextSibling.childNodes[0].style.display = 'none'; this.value = 'Mostrar Informacion'; }" />
</div><div><div class="spoiler" style="display: none;">here the rest of the code</div></div></ center>

ccr
10-12-2011, 07:10 AM
done!
thank you

FReeSTER
10-15-2011, 02:13 PM
Thank you this is awesome, is there a way to add an image instead of a default button?

Thanks

MyPeSePe
10-15-2011, 04:01 PM
Thank you this is awesome, is there a way to add an image instead of a default button?

Thanks

not right now, maybe in the next version

sergarch
01-14-2012, 06:44 PM
Thank you very much for this hack!

It works perfect in postbit_legacy template.

Good work.

:up:

viper357
01-15-2012, 08:24 AM
Will this work on vb 3.8?

CAG CheechDogg
04-09-2014, 10:59 AM
Great little hack my Man ... this really made my forum's members happy ..thank you!

ramesh_umk3
04-09-2014, 03:00 PM
but postbit css is not compatability with Firefox , chrome and mobile device it will be very hard for users cause they have to scroll down fix your demo site :)