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,132 Views)
MojoMax
Member
[ * ]
You're test board doesn't direct to the Portal at all its like a normal board without codes. :S
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
Obviously you don't believe me so I made a video.

The code is in there.

http://divinitycoding.net/ZBvid.wmv

Edit: You can page source and see the code is there.

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>
Edited by Eureka, Jan 11 2008, 01:30 AM.
Offline Profile Quote Post Goto Top
 
finsofafrica
Member Avatar
Member
[ *  * ]




Actually I just did the same thing you did in your Video and when I click on the Zetaboard logo it doesnt go back to the portal it stays at the main forum.When I come back here and click on your test link it goes to the portal

Somethings screwy

Dont take it as an attack on your code we are just having some difficulty with it and want to help you figure it out with our feedback

Derek
Edited by finsofafrica, Jan 11 2008, 01:43 AM.
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
I placed it above the copyright, but below the board works too.
Offline Profile Quote Post Goto Top
 
MojoMax
Member
[ * ]
I see what happened I clicked on the "Forum Home" link in the navigation bar which just got me to the forum but when i click either the logo or the other link it works.
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
finsofafrica
Jan 11 2008, 01:38 AM



Actually I just did the same thing you did in your Video and when I click on the Zetaboard logo it doesnt go back to the portal it stays at the main forum.When I come back here and click on your test link it goes to the portal

Somethings screwy

Dont take it as an attack on your code we are just having some difficulty with it and want to help you figure it out with our feedback

Derek
It shouldn't go back to the portal if you click the banner. The code is designed to make tit so that no matter where you clicked - Forum Home, the logo or the link in the breadcrumbs - it takes you to the forum's main page. If you want that changed, feel free to let me know.

@MojoMax: The Forum Home link in first of all located in the submenu, not navigation bar. And I'm not sure what you're saying in your second part of your post, but all three links should take you to the forum's main page. NONE should take you back to the portal, unless you were to change the link.

So maybe I wasn't clear on what links do what on the original request as it wasn't specified so I just used what I viewed as appropriate. Of course, if you want this changed, please let me know so we can move on with our lives. Please don't take that as any sort of offense on you guys. I just have a ^#$& load of homework and college ^#$& to do and I really can't afford to come on here and fiddle around with this. I actually decided to do this because one of my friends saw this topic here and wanted the code as well so he IMed me, and I decided to help him out. That code was what he wanted, but may not be for everyone else. So please, let me know. :)

Thanks for being patience and I'm sorry if there are some complications,
Eureka
Edited by Eureka, Jan 11 2008, 08:14 AM.
Offline Profile Quote Post Goto Top
 
MojoMax
Member
[ * ]
Thanks for helping us out Eureka :D.

My English is a bit bad but what i meant to say is that only two of the three links take me to the Forum. When i click "Forum Home" in the navigation bar it just refreshes the portal. And like you said all three of them should take me to the forum.
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
Please provide a link to your board so I can take a look. :)
Offline Profile Quote Post Goto Top
 
MojoMax
Member
[ * ]
Eureka
Jan 11 2008, 04:42 PM
Please provide a link to your board so I can take a look. :)
Its my test board Link
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
I knew it! You had multiple links :P

Quick fix. Please try this. I have not tested it though.
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:contains('Forum Home')").attr("href",uri);$("#nav a:eq(0)").attr("href",uri);});
</script>
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