How do you get...

Discussion in 'General Chat' started by Plutonic, Jul 13, 2007.

Thread Status:
Not open for further replies.
  1. #1
    One of those little bars at the top of forums that says:

    "It appears you have not registered, to be able to post on these forums you must first register here"

    I want one on my PhpBB forum, can anyone tell me how?
     
    Plutonic, Jul 13, 2007 IP
  2. pixelgod

    pixelgod Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I believe it's a mod, have you looked on the phpbb site?
     
    pixelgod, Jul 13, 2007 IP
  3. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No, but I will check now.

    Thanks,
     
    Plutonic, Jul 13, 2007 IP
  4. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #4
    If you know how to edit html then you can simply add a switch (template ones) to the overall header template.
    <!-- BEGIN switch_user_logged_out -->
    === your code here to say they haven't register ===
    <!-- END switch_user_logged_out -->
    Code (markup):
    Only appears when the user is not logged in.
     
    chopsticks, Jul 13, 2007 IP
  5. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #5

    Wow, thanks alot!
     
    Plutonic, Jul 13, 2007 IP
  6. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have added it, but how can I get it in a bar?
     
    Plutonic, Jul 13, 2007 IP
  7. Muneeb2Good

    Muneeb2Good Notable Member

    Messages:
    2,591
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    245
    #7
    I think the problem is solved...

    Good luck with your forum. :)
     
    Muneeb2Good, Jul 13, 2007 IP
  8. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #8
    Can you give an example of what you mean, from a site that has it?
     
    chopsticks, Jul 13, 2007 IP
  9. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I will try to find one, but I want it to be kind of like a network bar.
     
    Plutonic, Jul 13, 2007 IP
  10. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Plutonic, Jul 13, 2007 IP
  11. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #11
    Hopefully this is what you mean:


    In index_body.tpl under this:
    <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
    HTML:
    Insert this:
      <!-- BEGIN switch_user_logged_out -->
      <tr>
    	<th colspan="5" class="thCornerL" height="25" nowrap="nowrap">=== heading stuff ===</th>
      </tr>
      <tr>
    	<td colspan="5" class="row1" align="center" height="28">=== text to show in box ===</td>
      </tr>
      <!-- END switch_user_logged_out -->
    HTML:
    Hopefully that is right, I tested it and it worked fine...
    [​IMG]
    Shot at 2007-07-13

    :)
     
    chopsticks, Jul 13, 2007 IP
  12. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Thanks alot, but

    "<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">"

    Isn't in my index_body.tpl
     
    Plutonic, Jul 13, 2007 IP
  13. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #13
    Paste your index_body.tpl file, probably isn't the default template.
     
    chopsticks, Jul 13, 2007 IP
  14. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Okay, I have worked out where to put it, but It always goes under my banner and header, I tried putting that code in the header but it wont work, how do I get the box behind it at the top of my page?

    By the way thanks alot for this, I will give you reps when we are done.
     
    Plutonic, Jul 13, 2007 IP
  15. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #15
    Post here, or PM me a link to your forum. It'll make it alot easier for me to tell you what to fix for it to work right.
     
    chopsticks, Jul 14, 2007 IP
  16. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
  17. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #17
    Sorry!

    I made a mistake in what I said. I thought you were talking about the just about all the forums, not that little thing that appears at the top of the page... didn't notice that.

    Here, this should be what you want:
    [​IMG]
    Shot at 2007-07-14

    css: (it's basic and image-less, so fix it as you want)
    <style type="text/css">
      td.register-td {
        padding: 0px;
        width: 100%;
      }
      
      a.register-notif {
        padding: 4px; display: block; font-size: 0.7em; border: 1px solid #A7A6AA;
        border-bottom: 1px solid #000000; background-color: #FFFFE1;
        text-decoration: none;
        color: #000000;
      }
      
      a.register-notif:hover {
        background-color: #335EA8;
        color: #FFFFFF;
      }
    </style>
    Code (markup):
    Add to overall_header.tpl
    	<!-- BEGIN switch_user_logged_out -->
    <tr>
    		<td class="register-td">
    		  <a href="{U_REGISTER}" class="register-notif">
    			  It appears you have not yet registered with our community. To register please click here...
    		  </a>
    		</td>
    	</tr>
    <!-- END switch_user_logged_out -->
    Code (markup):
    Add it just after you open the first <table> tag. So in your case after:
    <table cellspacing="0" id="forum">
    Code (markup):
    You can tidy it all up. :)
     
    chopsticks, Jul 14, 2007 IP
  18. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Awesome thanks, Where do I put the CSS code?
     
    Plutonic, Jul 14, 2007 IP
  19. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #19
    In your styles CSS file or in the <head> tags in overall_header.tpl.
     
    chopsticks, Jul 14, 2007 IP
  20. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #20
    Awesome, it's working but the box is really thin...
     
    Plutonic, Jul 14, 2007 IP
Thread Status:
Not open for further replies.