MyBB Community Forums
[How To?] Hide / Show div - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Hide / Show div (/thread-194384.html)



Hide / Show div - Breadman - 2016-06-18

I would like to hide a div if there has been something input into a custom user feild.

so i would like if a link is in the music field it shows the div containig the player on the member profile.

for example sake:

<b>example</b>

i only want the example to be shown if there is text entered in a custom user field.

this link is for an separate forum i was working on, the same code apply to 1.8
http://community.mybb.com/thread-194094.html


RE: Hide / Show div - izakgewdrick - 2016-06-19

Are you using 1.6 or 1.8? You will find no one will offer support for 1.6 ... as for "hide/show a div" your statement is a nightmare as a div is html code. I.e. <div class="cssscreatedclass"> <b>Example </b> </div>
(Havent coded html for ages so pardon my sloppiness)
Is the problem you are having that it is showing coded commands such as <div>? You will find that files need internal editing for such codes and simply creating a custom profile field with these command WILL cause complications