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 ] Portal
Topic Started: Jul 21 2011, 12:11 AM (327 Views)
MABUHAY KA
Member
[ *  * ]
Board Address- www.rsoclan.com
Board Software:ZetaBoards
Description:I am looking for a code or way that I could take the banner off my portal page.I want to have a seperate banner for my forums and a new custom banner for my portal.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/site')) {
$("#logo img").remove();
}
</script>
Use that to remove the logo on the portal.
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/site')) {
$("#logo img").attr("src", "IMAGE_URL");
}
</script>
Use that to change the logo on the portal.
Offline Profile Goto Top
 
MABUHAY KA
Member
[ *  * ]
Where does it go?...assuming in the template but which section please.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board

That's where most JavaScript codes generally go.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

You probably want to put it somewhere near the bottom of the theme layout, actually, because that way you could choose a different banner while viewing the portal for each theme.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
He only has one theme on his site currently. The first code can go in the designated place I noted above to remove the logo from all themes, if you ever add another theme and you want to change the logo for each theme, do as DaPizzaMan suggested and put the second code into the Theme Layout instead, if you want the same logo on all themes, keep it in the Below the Board wrapper.
Offline Profile Goto Top
 
MABUHAY KA
Member
[ *  * ]
If I use either code it deletes my banner on portal and forum.If I put a url in for the one to change portal banner-it makes it the banner for portal and forum.I put tyhem both in below board cause I am only gonna use one skin ever once site is done.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/site') !== -1) {
$("#logo img").remove();
}
</script>
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/site') !== -1) {
$("#logo img").attr("src", "IMAGE_URL");
}
</script>
I accidentally got rid of a vital piece of the code, try those instead.
Offline Profile Goto Top
 
MABUHAY KA
Member
[ *  * ]
Thank you..works now
Offline Profile Goto Top
 
Leonardo
Member Avatar
Hakuna Matata
[ *  *  *  *  *  *  * ]
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