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 ] Headers only on home page
Topic Started: Mar 11 2014, 04:48 PM (383 Views)
DivineShine
Member
[ * ]
Board Address: http://w11.zetaboards.com/Zerks/
Board Software: Zetaboards
Description: We have a video in the header above the board of our site usually. However some users have complained that they have to scroll past it everytime they go to a new part of the site. Is there anyway I can make it so its only on the home index of the site, but not there when you click on a subforum etc?

Thanks in advance.
Edited by DivineShine, Mar 11 2014, 04:51 PM.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Just the video or that whole table?
Offline Profile Goto Top
 
DivineShine
Member
[ * ]
Just the video not on it, the rest is fine. But that video will probably change so ideally something that will change with that.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

DivineShine
Mar 11 2014, 07:06 PM
Just the video not on it, the rest is fine. But that video will probably change so ideally something that will change with that.
Sure thing. I'm going to ask you to find
Code: HTML
 
<table width="100%" border="0" bordercolor="white" cellspacing="1" cellpadding="3">
in your Board Template/Theme Layout and replace it with
Code: HTML
 
<table id="clan_table" width="100%" border="0" bordercolor="white" cellspacing="1" cellpadding="3">

Then in Below the Board of the Board Template:
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/index/') === -1) $('#clan_table iframe[src*="youtube.com"]').hide();
</script>
Edited by DaPizzaMan, Mar 11 2014, 08:05 PM.
Offline Profile Goto Top
 
DivineShine
Member
[ * ]
DaPizzaMan
Mar 11 2014, 08:04 PM
DivineShine
Mar 11 2014, 07:06 PM
Just the video not on it, the rest is fine. But that video will probably change so ideally something that will change with that.
Sure thing. I'm going to ask you to find
Code: HTML
 
<table width="100%" border="0" bordercolor="white" cellspacing="1" cellpadding="3">
in your Board Template/Theme Layout and replace it with
Code: HTML
 
<table id="clan_table" width="100%" border="0" bordercolor="white" cellspacing="1" cellpadding="3">

Then in Below the Board of the Board Template:
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/index/') === -1) $('#clan_table iframe[src*="youtube.com"]').hide();
</script>
I only get given access to change things when a leader is on as they aren't used to changing the codes so I'll try it when I get that.
From what I'm reading though, it removes anything with youtube.com in when the url says /index/? The problem I can see with that is the site defaults to http://w11.zetaboards.com/Zerks/index/ when you visit it, or www.px-rs.com/index whichever the user may be using.
It might be that I'm reading the code wrong though, only have a basic understanding of code ATM.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

If the user is on a page with "/index/" in the URL, it hides the iframe from the table `#clan_table` that has a src that contains "youtube.com"
Offline Profile Goto Top
 
DivineShine
Member
[ * ]
Nevermind its working fine. Thanks a lot!
Edited by DivineShine, Mar 11 2014, 09:31 PM.
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