MyBB Central

Full Version: Sign up notice for guests only..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay, first, for this, you'll need this; http://www.mybbcentral.com/thread-1616.html (works on mybb1.6 - just change the compatibility line in the php file).

Then, when you're in the ad manager settings, in the top box "Enable Inline Ads" click enable, and put this code (obviously changing the references to sectorz.com to your own)

Code:
<table border="0" cellspacing="0" cellpadding="6" class="tborder" style="clear: both; border-bottom-width: 0;">
        <tr>
            <td class="thead" colspan="2">
                <div style="float: right;">
                    <span class="smalltext"><strong><a href="member.php?action=register">Register</a> | <a href="member.php?action=login">Login</a></strong></span>
                </div>
                <div>
                    <strong>Register to Remove these Ads</strong>
                </div>
            </td>
        </tr>
        
    </table>
    <div id="posts">
        <!-- start: postbit -->

<a name="advertisement" id="advertisement"></a>
<table border="0" cellspacing="0" cellpadding="6" class="tborder" style="border-top-width: 0; " id="post_157">
    <tbody>
        <tr>
            <td class="tcat">
                <div class="float_left smalltext">
                </div>
                <!-- start: postbit_posturl -->
<div style="float: right; width: auto; vertical-align: top"><span class="smalltext"><strong><a href="#advertisement">Advertisement</a></strong><!-- start: postbit_inlinecheck --> </span></div>
            </td>
        </tr>

        <tr>
            <td class="trow1 ">
                <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
                    <tr>
                        <td class="post_avatar" width="1" style="">
                            
                        </td>
                        <td class="post_author">
                            <strong><span class="largetext"><a href="member.php?action=register">SectorZ Ad Bot</a></span></strong> <!-- start: postbit_offline -->
<img src="images/buddy_online.gif" title="Online" alt="Online" />
<!-- end: postbit_offline --><br />
                            <span class="smalltext">
                                SectorZ Loves Me!<br />
                                <img src="images/star.gif" border="0" alt="*" /><img src="images/star.gif" border="0" alt="*" /><br />
                                
                            </span>
                        </td>
                        <td class="smalltext post_author_info" width="165">
                            <!-- start: postbit_author_user -->

    <br />
    <!-- start: postbit_warninglevel -->
<br />
<!-- end: postbit_warninglevel -->
<!-- end: postbit_author_user -->
                        </td>
                    </tr>
                </table>
            </td>
        </tr>

        <tr>
            <td class="trow2 post_content ">
                <span class="smalltext"><strong>Register on SectorZ.com to remove this Ad!</strong></span>

                <div class="post_body" id="advertisement">
                    Hey Guest! Looks like you're browsing SectorZ without an account! We reccommend that you <a href="member.php?action=register">Sign Up</a> or <a href="member.php?action=login">Sign In</a> to experience our web site to the fullest extent! This box will disappear when you're logged in :)
                </div>
                
                

            </td>
        </tr>
    </tbody>
</table>

this will add a post type thing to everyone telling them to register, now, for guests only, in the "Exempt Groups Inline" box in the ad settings, put 2,3,4,5,6,7 (as long as 1 is the only group which sees the ads)

That's it, voila, you have an ad after the first post to guests telling them to join up.

[Image: 2010-08-13-02h46_25.png]
Sorry, this is more of a tutorial than a plugin, but I couldn't see a tutorial area.
Great Tout inline ads never worked for me, hmm wierd maybe on 1.6 they will.
OMG this is very useful.
Thanks! Smile