Here's a basic php splash page with a top login form. A modified index.php file is in the zip file, that redirects non logged in users to splash.php, when trying to access index.php Logged in members trying to access splash.php will be redirected to index.php
View index.php and search for 'splash' to find the changes to a standard index.php.
Just add whatever content you want.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Oh.... BTW.... just unzip and upload both files to your Dolphin root. I highly recommend you rename index.php to index.php.bak in your Dolphin root before uploading the files My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Thank you very much dear houstonlively is there a way to include "register" also or does this only work with login?
This is more than I could have imagined plus the redirect. I thank you so much for your kind contribution and I hope those files also help others.
Sincerely,
Rolf
|
RE: " is there a way to include "register" also or does this only work with login?"
The easiest way, is to just look at some of the templates in the Market, many of which include a splash page.
http://www.boonex.com/market/posts/gorpus
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
There are ways to include a join form. for ex..
- Use Basic html and create a form that posts data to join.php or simply use the html of the join.php page but in this case you have to take care of few things. Like you have to validate the join form fields yourself with probably js before submitting it to server.
- You can also use some php to bring the join form on splash page and use css magic to restyle it. This can be easier with enough php knowledge. It doesn't require any validation script as dolphin default will be used.
Thank you very much dear houstonlively is there a way to include "register" also or does this only work with login?
This is more than I could have imagined plus the redirect. I thank you so much for your kind contribution and I hope those files also help others.
Sincerely,
Rolf
so much to do.... |
Thanks a lot !
It's Ok for 7.1 ?
|
RE:
Thanks a lot !
It's Ok for 7.1 ?
No, but this is is. See attached. Open splash.php to see where to add html or php code. This is very basic... you still have to add your own content.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
|
I can replace the splash.php to join.php? and bypass the splash.php right?
RE:
Thanks a lot !
It's Ok for 7.1 ?
No, but this is is. See attached. Open splash.php to see where to add html or php code. This is very basic... you still have to add your own content.
www.tumundo247.com - www.rampletea.com - www.clasificadosnetwork.com |
RE:
I can replace the splash.php to join.php? and bypass the splash.php right?
Yes you can, but that won't stop anybody from viewing other pages. Like I said, this is a really simple splash page and only intended for some introductory content. It just makes the home page splash.php for visitors. If you need something beyond that, this may fall a little short.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
hey guys... to stop from viewing other pages.. this is how to do it.
Example, go to browse.php. After all "require_once" part, just add this...
check_logged(); function goPage() { if(!isMember()) header("Location: splash.php"); }
goPage();
Change the orange text to the file you want to redirect. :)
|
I just tryed to get the splashpage work, but i have a problem when someone is already logged in. Normally we have this code on index.php:
check_logged(); if(isMember()) { header("Location: /member.php"); }
That's because we don't use the homepage only member.php. If i use the splashpage and someone logs in i can let hem go to member.php with this change in splash.php:
else { header("Location: http://www.u2me.nl/member.php"); }
Only when someone is logged in and goes to www.u2me.nl he get's the homepage. How can i set that you get only the splashpage or member.php? |
on idnex.php put the follwoing
Find:
check_logged();
Add Below:
if(!isMember()) { header("Location: splash.php"); //where to send a guest user } else { header("Location: member.php"); //where to send a user is has logged in }
~~Mike ~~ This Signature is missing something :( |
Thanks it worked!
Only when i enter a URL in my browser ( and i'm not logged in ) i go to that page and not the splash page. How can i do that?
We have a datingsite so privacy is a big thing for our members. |
and also how i can link it to a css file ( splash.css ) that i can place in templates/base/? |
Thanks it worked!
Only when i enter a URL in my browser ( and i'm not logged in ) i go to that page and not the splash page. How can i do that?
We have a datingsite so privacy is a big thing for our members.
This is due to the Splash redirect only being on the index.php
you would need to edit the other pages to have the same kind of code.
NOTE: I have not tested this globally, only on the homepage. !!!PLEASE BACKUP YOUR SITE BEFORE DOING THIS!!!
Once gain find
check_logged();
and add below
if(!isMember()) { header("Location: splash.php"); //where to send a guest user } else {
Now Find :
PageCode(); Note, this may be something else in some pages
Add Below:
}
~~Mike ~~ This Signature is missing something :( |
and also how i can link it to a css file ( splash.css ) that i can place in templates/base/?
Add this to the <head> tags of the splash page.
<link media="screen" rel="stylesheet" type="text/css" href="templates/base/css/splash.css">
~~Mike ~~ This Signature is missing something :( |
In the HTML section add the following line:
<link type="text/css" rel="stylesheet" href="templates/base/splash.css"/>
I am not sure if you need to put '/' before templates as well, so maybe if it won`t work- /templates, do it this way.
I have my css file for the splash located in root derictory, so it looks like this: href="splash.css"
and also how i can link it to a css file ( splash.css ) that i can place in templates/base/?
|
In the HTML section add the following line:
<link type="text/css" rel="stylesheet" href="templates/base/splash.css"/>
I am not sure if you need to put '/' before templates as well, so maybe if it won`t work- /templates, do it this way.
I have my css file for the splash located in root derictory, so it looks like this: href="splash.css"
and also how i can link it to a css file ( splash.css ) that i can place in templates/base/?
you shouldn't need to have the / before templates unless the file is in another directory.
eg.
<DOL_ROOT>/splash.php dose not need the slashas it would look in <DOL_ROOT>/templates/base/css
<DOL_ROOT>/extra/awsomepage.php would need the following, This would make it look from the directory above the current directory:
<link media="screen" rel="stylesheet" type="text/css" href="../templates/base/css/style.css"> Or or would look in <DOL_ROOT>/extra/templates/base/css/style.css
~~Mike ~~ This Signature is missing something :( |
Thanks for the correction, did not notice that mistake with '/' when posting :)
In the HTML section add the following line:
<link type="text/css" rel="stylesheet" href="templates/base/splash.css"/>
I am not sure if you need to put '/' before templates as well, so maybe if it won`t work- /templates, do it this way.
I have my css file for the splash located in root derictory, so it looks like this: href="splash.css"
and also how i can link it to a css file ( splash.css ) that i can place in templates/base/?
you shouldn't need to have the / before templates unless the file is in another directory.
eg.
<DOL_ROOT>/splash.php dose not need the slashas it would look in <DOL_ROOT>/templates/base/css
<DOL_ROOT>/extra/awsomepage.php would need the following, This would make it look from the directory above the current directory:
<link media="screen" rel="stylesheet" type="text/css" href="../templates/base/css/style.css"> Or or would look in <DOL_ROOT>/extra/templates/base/css/style.css
|
Is it maybe possible to place that code ( or a other code ) in header.html or sub_header.html? That way it works on every page... Right?
Thanks it worked!
Only when i enter a URL in my browser ( and i'm not logged in ) i go to that page and not the splash page. How can i do that?
We have a datingsite so privacy is a big thing for our members.
This is due to the Splash redirect only being on the index.php
you would need to edit the other pages to have the same kind of code.
NOTE: I have not tested this globally, only on the homepage. !!!PLEASE BACKUP YOUR SITE BEFORE DOING THIS!!!
Once gain find
check_logged();
and add below
if(!isMember()) { header("Location: splash.php"); //where to send a guest user } else {
Now Find :
PageCode(); Note, this may be something else in some pages
Add Below:
}
|
My colleague wants to know if it's possible to show with a piece a code the number of members / online members on the splash page... Is that possible? I thought i have already saw it on a Dolphin site, but i'm not sure. |
Does site Meta Keywords/Description apply to splash.php as well?
Because I have changed mine about 3-4 days ago and Google shows nothing. Neither does any else kind of service with info about the website.
I though if I have to include the lines below from index.php to make everything work?
$oSysTemplate->setPageDescription(getParam("MetaDescription"));
$oSysTemplate->addPageKeywords(getParam("MetaKeyWords"));
|
Does site Meta Keywords/Description apply to splash.php as well?
Because I have changed mine about 3-4 days ago and Google shows nothing. Neither does any else kind of service with info about the website.
I though if I have to include the lines below from index.php to make everything work?
$oSysTemplate->setPageDescription(getParam("MetaDescription"));
$oSysTemplate->addPageKeywords(getParam("MetaKeyWords"));
I wouldn't rely on that, make your own meta tags for the splash page as you would a simple page.
I even added extra meta info to the default _header.html file on the site.
ManOfTeal.COM a Proud UNA site, six years running strong! |
ManOfTeal.COM a Proud UNA site, six years running strong! |
Thanks, it is really useful.
I have posted a question in that topic, can you check it please?
Do not want to post 'off topic' here.
|
Is there a code to show the number of members or online members? So you can get a message on the splashpage with: "There are ... members online" or "We have ... members" |
Are you looking for something like this?
function getSiteStatUser(){ global $aStat; $aStat = getSiteStatArray(); $sCode = '<div class="siteStatMain">'; foreach($aStat as $aVal) $sCode .= $GLOBALS['oFunctions']->getSiteStatBody($aVal) $sCode .= '<div class="clear_both"></div></div>' return $sCode; }
~~Mike ~~ This Signature is missing something :( |
With the splash page the visitor that isn't logged in get's redirected to the splashpage. Join works, but forgot.php and the Boonex Facebook plugin not. How can i make them exceptions? |
You really should look in the market for a solution better tailored for your needs. You guys are trying to turn this into something it was never designed to be. All this splash page was intended for, was to present some introductory content to guests on the site home, in place of the usual index page. If you want to prevent guests from visiting other links on your dating site, this is not your answer. Take a hint from some of the other 800,000 Dolphin dating sites and cough up some bucks for one of the market solutions. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
If you want to prevent guests from visiting other links on your dating site, this is not your answer. Take a hint from some of the other 800,000 Dolphin dating sites and cough up some bucks for one of the market solutions.
As HL states, try something that will work..
i.e. Page Access Control module.
http://www.boonex.com/forums/topic/Page-Access-Blocking-How-To.htm
ManOfTeal.COM a Proud UNA site, six years running strong! |
|
No. This doesn't work for 7.2. I have tried it already. Some of the coding needs to be changed up. If I figure it out, I will post the solution. Jeremy |
The SplashPage71.zip download above will work with 7.2 as-is, as I intended. As I said previously, this is very basic, so you shouldn't expect too much out of it. There are better paid solutions in the market. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
The SplashPage71.zip download above will work with 7.2 as-is, as I intended. As I said previously, this is very basic, so you shouldn't expect too much out of it. There are better paid solutions in the market.
I stand corrected then HL. I must be doing something wrong. I added my html to it but it's still producing a blank white page. Almost as if it's not processing it properly. I will play around with it some more and post updates.
Thanks for chiming in. My apologies bellhophill for inaccurate information.
Jeremy |
Hi HL. I have been using your modified version for a couple of months and have the Splash page exactly the way I wanted it, based on your index.php to splash.php. All under 7.2.1. I really thank you for making this available as it took me on tangents which ended up producing exactly what I wanted.
However, I just updated to 7.3.0 tonight and now the splash.php page produces this redirect error:
The page isn't redirecting properly
in Firefox. Tried other browsers too the same. Tried trouble-shooting several things until I realised it was something about the splash.php page causing a problem.
Overall the upgrade from 7.2.1 to 7.3.0 went very smoothly although I see the upgrade didn't even touch index.php from 7.2.1 ie. it's the original file, so it must be splash.php as the problem.
Any chance you could see if you could get splash.php working for 7.3.0 ? or advise what you think could be going wrong and I'll try and trouble-shoot further.
The code in splash.php is extremely simple, as I took your one and simply modified it to:
<?php
require_once( 'inc/header.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'db.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
check_logged();
if(!isMember()) { echo ''; } else { header("Location: index.php"); } ?>
<html> Added my HTML in here </div> </body> </html>
and got rid of:
<?php
echo "Add php code here";
?>
at the end of the file. The above worked on 7.2.1 without issues.
The SplashPage71.zip download above will work with 7.2 as-is, as I intended. As I said previously, this is very basic, so you shouldn't expect too much out of it. There are better paid solutions in the market.
|
does this work for the latest version of dolphin 7.3.3 only that I want to make my own independent splash page and wanted to know if the redirects still work?
|