Post by Deleted on Sept 19, 2014 16:56:06 GMT -8
Seeing that the "Guest must login" page is not customizable, I have decide to try to create a Splash Page plugin.
My basic idea is to create a custom page, set it to be my "home page", strip the custom page of everything, add an image inside the forum wrapper which when clicked, (based on whether the user is a guest or logged in member) directs the logged user to either the forum, or unlogged user to the register/login page.
The problem I have came across so far is targeting the "home page".
I have no problem targeting the custom page, but it seems that when a custom page is set to be the "home page", it borrows the actual home pages URL.
For example: If I named my custom page "Splash", and set it to be my homepage, it's URL would be mysite.proboards.com/page/splash.
But at the same time, my sites landing page is still simply: mysite.proboards.com.
This is very confusing for me.
Basically, it's like when I set the custom page to be my sites home page, the custom page itself isn't actually my sites homepage.
Instead my actual home page is just borrowing the HTML from my custom page.
So technically my custom page (set to be my home page) and actual home page are two separate pages.
So now when I use Javascript to target my custom page (which is set to be my homepage), it only targets my custom page at the URL: mysite.proboards/page/splash.
But my custom home page (which is a custom page set to be the homepage) is not effected by the code above as it's URL address is still simply mysite.proboards.com
So I guess my actual question is how to target my custom page when it is set to be my homepage?
Wormopolis Chris Todge, somebody please, lol.
thanks.
My basic idea is to create a custom page, set it to be my "home page", strip the custom page of everything, add an image inside the forum wrapper which when clicked, (based on whether the user is a guest or logged in member) directs the logged user to either the forum, or unlogged user to the register/login page.
The problem I have came across so far is targeting the "home page".
I have no problem targeting the custom page, but it seems that when a custom page is set to be the "home page", it borrows the actual home pages URL.
For example: If I named my custom page "Splash", and set it to be my homepage, it's URL would be mysite.proboards.com/page/splash.
But at the same time, my sites landing page is still simply: mysite.proboards.com.
This is very confusing for me.
Basically, it's like when I set the custom page to be my sites home page, the custom page itself isn't actually my sites homepage.
Instead my actual home page is just borrowing the HTML from my custom page.
So technically my custom page (set to be my home page) and actual home page are two separate pages.
So now when I use Javascript to target my custom page (which is set to be my homepage), it only targets my custom page at the URL: mysite.proboards/page/splash.
if (location.href.match(splash)) {
But my custom home page (which is a custom page set to be the homepage) is not effected by the code above as it's URL address is still simply mysite.proboards.com
So I guess my actual question is how to target my custom page when it is set to be my homepage?
Wormopolis Chris Todge, somebody please, lol.
thanks.