We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Navigation Request
Topic Started: Jul 11 2015, 09:53 PM (343 Views)
Andthepand
Member
[ * ]
I want to take the top part shown in picture off my page, except for homepage after logging in. It appears on every page forcing the user to continually scroll down.

http://i57.tinypic.com/bdljsx.jpg

Kind Regards,

Andy.
(Premium Member)
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
By 'after logging in' do you mean you want members to be able and see it, but not guests?
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Your board URL does not work with "www". Just make it "http://mechcommander.co.uk". :P

If what you want to accomplish is as Cory explain, then find
Code: HTML
 
<table>
<tbody><tr><td align="center">
<img src="http://i59.tinypic.com/10ydoqd.jpg"></td>
<td align="center">
<img src="http://i562.photobucket.com/albums/ss70/cgoetze/programas/gameranger.png"></td>
<td align="center">
<img src="http://i61.tinypic.com/34pbbf6.jpg"></td></tr></tbody></table>
in Admin CP >> Board Template >> Above the Board and replace it with
Code: HTML
 
<table class="for_logged_in">
<tbody><tr><td align="center">
<img src="http://i59.tinypic.com/10ydoqd.jpg"></td>
<td align="center">
<img src="http://i562.photobucket.com/albums/ss70/cgoetze/programas/gameranger.png"></td>
<td align="center">
<img src="http://i61.tinypic.com/34pbbf6.jpg"></td></tr></tbody></table>
<script type="text/javascript">
if(!$.zb.logged_in || location.href.indexOf(main_url + 'index/') === -1) $('.for_logged_in').hide();
</script>
Edited by DaPizzaMan, Jul 27 2015, 08:19 AM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
location.href.indexOf('/index/') !== -1
Don't forget about that to force it to display on the homepage only.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Cory
Jul 26 2015, 10:19 PM
Code:
 
location.href.indexOf('/index/') !== -1
Don't forget about that to force it to display on the homepage only.
Or rather === not !== since my code hides it.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Nice catch.
Offline Profile Goto Top
 
Roby
Member Avatar
#27

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic