Announcement

Collapse
No announcement yet.

Show a portion of a template only to guests

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Show a portion of a template only to guests

    Is there a way to show a portion of a template only to guests? Something to try and encourage them to register.

    Thanks!

  • #2
    <if condition="$bbuserinfo[userid] != 0"> Show to Registered users <else /> Show to unregistered users.</if>

    Comment


    • #3
      That doesn't seem to be working...I'm trying to put it in the header template, if that makes any difference. The actual code I tried is:

      Code:
       <if condition="$bbuserinfo[userid] != 0"><br/><center><font face="Verdana" size="4" color="#000000"><a href="<A href="http://www.scifience.net/abiteofapple/forums/register.php">Register">http://www.scifience.net/abiteofapple/forums/register.php">Register Now</a> to get 50MB of space in our <a href="<A href="http://www.abiteofapple.com/gallery/">Gallery</a>!</font><br/><font">http://www.abiteofapple.com/gallery/">Gallery</a>!</font><br/><font face="Verdana" size="2"><b>50MB of free e-mail space coming soon!</b></font><br /></center><else /></if>

      Comment


      • #4
        Well for starters, your html isnt even close to valid...

        Comment


        • #5
          Originally posted by Zachery
          Well for starters, your html isnt even close to valid...
          Actually, it didn't look anything like that when I typed it in. I think the [ code ] tag is messing it up somehow. Capital A in a href? I think not.

          Let me try pasting it in without that.

          <if condition="$bbuserinfo[userid] != 0"><center><br /><font face="Verdana" size="4" color="#000000"><a href="http://www.scifience.net/abiteofapple/forums/register.php">Register Now</a> to get 50MB of space in our <a href="http://www.abiteofapple.com/gallery/">Gallery</a>!</font><br /><font face="Verdana" size="2" color="#000000"><b>50MB of free e-mail space coming soon!</b></font><else /> Show to unregistered users.</if>

          Comment


          • #6
            Do you want

            <center><br /><font face="Verdana" size="4" color="#000000"><a href="http://www.scifience.net/abiteofapple/forums/register.php">Register Now</a> to get 50MB of space in our <a href="http://www.abiteofapple.com/gallery/">Gallery</a>!</font><br /><font face="Verdana" size="2" color="#000000"><b>50MB of free e-mail space coming soon!</b></font>

            To show to registered users or unregistered users?

            Comment


            • #7
              Guests

              Comment


              • #8
                HTML Code:
                <if condition="$bbuserinfo[userid] == 0"><center><br /><font face="Verdana" size="4" color="#000000"><a href="http://www.scifience.net/abiteofapple/forums/register.php">Register Now</a> to get 50MB of space in our <a href="http://www.abiteofapple.com/gallery/">Gallery</a>!</font><br /><font face="Verdana" size="2" color="#000000"><b>50MB of free e-mail space coming soon!</b></font>
                </if>
                That should work just fine.

                Comment


                • #9
                  Thanks, that seems to have done it.

                  Comment


                  • #10
                    Where in cleveland are you ^^?

                    Comment


                    • #11
                      West side, Berea

                      Comment


                      • #12
                        Ah ok good luck with your forums

                        Comment


                        • #13
                          Thanks!

                          Comment

                          Loading...
                          Working...
                          X