Welcome, guest! We are a creative arts/general discussion community, and welcome guests and members alike to participate in our discussions. While registration is not required to post, we strongly recommend considering an account with us, as it a quick, free, and easy way to fully utilize all of the features on our forum. We hope you enjoy your stay!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyBB - display content on profile only if ? is filled
#1
I can't seem to work out how to only display certain content only if multiple custom profile fields have been filled in.

The custom profile fields are:
- Ad BG Image
- Ad Name(1 word)
- Ad link

if all of these fields are filled in, I want it to show the content, however if only 1 or 2(or none) of them are, I don't want it to display. I know this can be done in PHP, but I suck at that, haha, so I need some guidance.

Basically it would be something like this(I think):
PHP Code:
<?php

if (**ALL FIELDS ARE FILLED IN** == true?) {
 
   then display the content
} else {
 
   dont display the content
}

?>

The content that I want putting in there, is as follows:
Code:
<div class="ui dimmable image" id="dim" style="float:right;margin-top:20px;">
        <div class="ui dimmer">
            <div class="content">
                <div class="center">
                    <div class="ui inverted button">SOCIAL+</div>
                </div>
            </div>
        </div>
        <img src="http://i.imgur.com/EkXHK5R.png" class="ui image rounded">
    </div>
</div>
[Image: forumonic-bar.png]...............[Image: xige-logo-png-blue-sml.png]
Latest snapshots: Postbit Design - Multi Login Modal (1) - Responsive Pollbar
Reply
Thanks given by:
#2
I think that has been suggested elsewhere as well. Not sure it's really possible without a plugin, but I could be mistaken. That would be a silly thing to have to do a plugin for.
[Image: makestation_submatrix31_5.png]
Together, we can make something awesome...
Reply
Thanks given by:
#3
Wouldn't you be able to do it with the php in templates plugin?
[Image: forumonic-bar.png]...............[Image: xige-logo-png-blue-sml.png]
Latest snapshots: Postbit Design - Multi Login Modal (1) - Responsive Pollbar
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
  A proper MyBB Status/Profile Updates Plugin? Darth-Apple 6 8,172 August 2nd, 2014 at 8:02 PM
Last Post: CapTon
  Low quality content Darth-Apple 11 10,623 July 20th, 2014 at 7:27 PM
Last Post: Guardian
  Good status update & advanced profile plugin? Darth-Apple 1 2,724 August 27th, 2013 at 5:31 PM
Last Post: simlink



Users browsing this thread: 1 Guest(s)

Contact Us | Makestation | Return to Top | Lite (Archive) Mode | RSS Syndication
Proudly powered by MyBB 1.8, © 2002-2019 MyBB Group. Hosted by Ramnode.
Design/theme © 2014 by Makestaton designers.
All rights reserved.
Also see Chatcave chat hosting (owned by us), Forumonic.com (a Harry-K community) and Zalost's Gridzone