Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Make portal home page?
Topic Started: Jan 5 2008, 12:33 PM (3,133 Views)
Eureka
Member
[ *  *  * ]
Oh okay. I get what you mean...didn't count on that when I wrote it.

Code:
 

<script>
/* Portal Home Page by Eureka of Divinity Coding [http://divinitycoding.net] */
if (location.href.match(/index\/$/i)&&!location.href.match(/\/site\//i)) location.href=main_url+"site/";var uri=main_url+"index/index.php";$(function(){$("#logo a:eq(0)").attr("href",uri);if(location.href.match(/\/site\//i)) $("#submenu a:last").attr("href",uri);$("#nav a:eq(0)").attr("href",uri);});
</script>

That should have no problems...or else, ZB needs to die! :lol:

Anyways, I hope I don't have to revisit this topic again for this.
Offline Profile Quote Post Goto Top
 
Victrixs
Member Avatar
Website Developer
[ *  *  * ]
Sweet it works. Thanks and nice code.
Offline Profile Quote Post Goto Top
 
finsofafrica
Member Avatar
Member
[ *  * ]
Perfect!!!

Thanks for the fix!Its awesome!

Derek
Offline Profile Quote Post Goto Top
 
finsofafrica
Member Avatar
Member
[ *  * ]
Ouch found another glitch

You did fix the above problem but now when you click on "Forum Home"which should bring you to the actual forum it keep refreshing the Portal.
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
Goodness gracious. And I was hoping I didn't have to revisit here. *sighs* (If only my friend would stop notifying me of this code :( )

And finsofafrica, I tried it myself on my test board and the Forum Home works fine.
Offline Profile Quote Post Goto Top
 
finsofafrica
Member Avatar
Member
[ *  * ]
Tried it in both Java and footers and same problem here.Im using IE 6 so maybe its a conflict.As soon as I take the code out everything works fine .Thanks for trying I check back to so if theres a fix for me as I really want this code

Thanks again

Derek
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
Okay, not to sound pessimistic here, but IE 6 is just horrendous. IE itself is already horrendous but IE 7 is at least decent. Coding for IE 6 is not something a lot of people would do because: 1) they don't have IE 6 (like me) and 2) they won't download IE 6 because it's just crap.

If I were you, I would just upgrade to IE 7 or get Firefox 2.

I'm sorry but I don't have IE 6 to test this and I'm not going to get it for this. If you have IE 7 and it doesn't work on this, then I can test it because I have IE 7.

EDIT: Not to mention IE 6 is way outdated and it is NOT supported in Windows Vista. Thus, I can't get it even if I want to.

Eureka
Edited by Eureka, Jan 10 2008, 05:46 PM.
Offline Profile Quote Post Goto Top
 
MojoMax
Member
[ * ]
I'm sorry Eureka but yes I also have the same problem I tested it in both IE7 and FF2 and 3 beta 2. :(
Offline Profile Quote Post Goto Top
 
finsofafrica
Member Avatar
Member
[ *  * ]
I just finished doing the upgrade to ie7.0 as you sudgested and still the same thing is happening.

Where in the template are you placing this that it works on your end.
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
http://s1.zetaboards.com/b00/index

Test board. Does it work for you on there?
Edited by Eureka, Jan 11 2008, 01:23 AM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Coding & Modifications · Next Topic »
Add Reply