The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Homepage Message

View previous topic View next topic Go down

Homepage Message

Post by shawn.m on March 12th 2012, 3:26 pm

Hi please can you tell me how i can make the homepage message only show for guests who visit my forum thanks.



shawn.m
Forumember

Male Posts : 365
Reputation : 1
Language : English

http://modifiedcarroom.com/

Back to top Go down

Re: Homepage Message

Post by midoweb96 on March 12th 2012, 7:10 pm

hi , try this alternative solution !! If you use phpbb2
AP ==> Display ==> Templates ,, General .. index_body
add this
Code:

    <!-- BEGIN switch_fb_login -->
          <div align="center" class="msgguests">

  Your Text msg for guests
</div>
        <!-- END switch_fb_login -->

After.... {JAVASCRIPT}

midoweb96
Forumember

Posts : 166
Reputation : 12
Language : Css - Html - Jquery

Back to top Go down

Re: Homepage Message

Post by shawn.m on March 12th 2012, 7:27 pm

this don't work it still show when am logged in :s

shawn.m
Forumember

Male Posts : 365
Reputation : 1
Language : English

http://modifiedcarroom.com/

Back to top Go down

Re: Homepage Message

Post by midoweb96 on March 12th 2012, 8:23 pm


midoweb96
Forumember

Posts : 166
Reputation : 12
Language : Css - Html - Jquery

Back to top Go down

Re: Homepage Message

Post by shawn.m on March 12th 2012, 8:36 pm

still don't work i don't even have </div>
<!-- END switch_user_logged_out --> in my code.

shawn.m
Forumember

Male Posts : 365
Reputation : 1
Language : English

http://modifiedcarroom.com/

Back to top Go down

Re: Homepage Message

Post by shawn.m on March 12th 2012, 9:06 pm

What do you mean by put it in my homepage message :s

shawn.m
Forumember

Male Posts : 365
Reputation : 1
Language : English

http://modifiedcarroom.com/

Back to top Go down

Re: Homepage Message

Post by shawn.m on March 13th 2012, 10:09 am

it don't work Sad

shawn.m
Forumember

Male Posts : 365
Reputation : 1
Language : English

http://modifiedcarroom.com/

Back to top Go down

Re: Homepage Message

Post by LGforum on March 13th 2012, 10:18 am

Try this small modification of Rideems code:
(bare In mind I didn't look at phpbb2 and won't, so someone who is willing to look at it can edit it again lol)

Code:

<script type="text/javascript">
(function(elem){
var user = "{*USERNAME}"; //remove asterisk
if (user != 'Guest') {
  elem.parentNode.removeChild(elem);
}
})(this);
</script>

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum