loginmodule.css?

  • 1
  • Question
  • Updated 9 years ago
  • Answered
I'm trying to configure a database and in one of my codes, I have a link for loginmodule.css but I don't have a page named that! However, I see that other websites are also using the loginmodule.css link without having a corresponding page... does anyone know what the loginmodule.css is in reference to? Or maybe you can fix my code!

<!--

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml...>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Access Denied</title>
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Access Denied </h1>
<p align="center"> </p>
<h4 align="center" class="err">Access Denied!<br />
You do not have access to this resource.</h4>
</body>
</html>

-->
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
  • http://youcanneverbetoosmart.com

Posted 9 years ago

  • 1
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
I think I have seen the loginmodule.css in my other codes... this particular one is for an "access denied" page!
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
also present on login failed page...

<!--

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml...>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login Failed</title>
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Login Failed </h1>
<p align="center"> </p>
<h4 align="center" class="err">Login Failed!<br />
Please check your username and password</h4>
</body>
</html>

-->
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
and this one...

<!--

<?php
//Start session
session_start();

//Unset the variables stored in session
unset($_SESSION['SESS_MEMBER_ID']);
unset($_SESSION['SESS_FIRST_NAME']);
unset($_SESSION['SESS_LAST_NAME']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml...>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Logged Out</title>
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Logout </h1>
<p align="center"> </p>
<h4 align="center" class="err">You have been logged out.</h4>
<p align="center">Click here to <a href="login-form.php">Login</a></p>
</body>
</html>

-->
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
the loginmodule.css is a Cascading Style Sheet, which is a style.I think it just makes it look better/align etc but im not sure
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
yea, but what's with the "a href"... that indicates a link... is it possible that it's a link to the style? Because it doesn't show a full url, it indicates it is a part of my site... which it isn't.
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
Hmm im not quite sure.Someone else may now a bit more about this.
Photo of SilverX

SilverX

  • 492 Posts
  • 40 Reply Likes
A href is not the name , just A , but href is a type.

That file may be placed in site of the folder where the site hosted.

Ex: www.domain.com/forum/4/login.php
css : www.domain.com/forum/4/*.css (access denieds by default)
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Donald

The link href will link to the CSS file you have uploaded in your File Manager. So, it should look something like this:

<!--<link href="resources/loginmodule.css" rel="stylesheet" type="text/css" />-->

I hope that was the information you were after.
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
so... loginmodule.css should be a file in my file manager? ok... back to the drawing board!
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Hi Donald,

Firstly, are opening and closing tags for PHP code and cannot be used with Yola. Any code between these tags will not execute.

Secondly, If you are hosting the script somewhere else, the only way I know of is to run it in an iframe on your Yola site.

As for the .css file, you need to give it the path name where it can be accessed from.
As Sanja mentioned, with Yola it will be resources/loginmodule.css.
With Yola all your files are stored in the "resources" directory.
Using just the straight "loginmodule.css" means the .css file is stored in the root directory of your site, which once again is not accessable with Yola.
Hope this helps.
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
yes, I am creating a site to allow logins hosted on another host (other than yola)... after I get this site created, I'm going to try to merge it with one of my yola sites therefore, the members only area will by hosted by one host and everything else (public info) will be hosted by yola... kinda tricky, but definately possible! So the php tags are definitely executing where the codes are placed!
Photo of lambofgod

lambofgod

  • 875 Posts
  • 35 Reply Likes
So Donald,

is your login system up and running? You know/have everything configured? It'll be cool to see how you will incorporate this!

Also, for the iframe

<!--
<iframe source="http://website.com/" width="dimension" height="dimension">If you can see this, then you need to enable iframe's.</iframe>

-->
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
do I have iframe's in my codes, I don't remember seeing them!
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
yes, it's up and running, but the rest of the site really isn't. I have the following pages...

access-denied.php (access denied for accessing a member's only area without logging in)

auth.php (this file is used for certain authorizations - i think, still learning about this one)

config.php (this file accesses the MySQL database to register users, login users, and makes queries)

index.php (my homepage)

login.php (logs in registered users)

login_check.php (this is linked to on any member's only page. it checks to see if you're logged in and if not the access-denied page will show - although I haven't placed this code on the profile.php page yet so anyone can view the profile page)

logout.php (this logs a user out)

process_login.php (this is the process for which is logs a user in I guess)

profile.php (this is the same for each user currently, I'm working on configuring it so that it's different for each user and is modifiable by each user - and a big challenge in doing so)... although, each user is given their own profile url at registration (but they won't know this because I haven't figured out how to tell the user this yet) - mine for example is http://single-n-looking.info/profile.... and the next user to register will be 2 at the end.

register.php (this is where you register, and when I did it, it worked, but since then I've made changes, hopefully it still works).

Ok... now it's your turn... register! However, the site is only meant for single individuals, my first few or few hundred don't have to be as that'll just help me build some traffic and get the word out there and most of the first few people will be tests and opinions anyways.

http://single-n-looking.info/register... - that's where you register.

After you register, see if http://single-n-looking.info/profile.... will work cause I believe you or whoever will be the second person... however, it'll be the same as profile.php, I have yet to figure out how to make the "My Profile" into your first name or better yet, "Welcome, Donald"! Trying to figure out a GET tag. If you know about GET tags, please let me know.
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
I'm also going to try to make this site (with the logins and member areas) to be merged with a yola site of mine (for public area)... the purpose of this is because yola is so much simpler to use, so creating one long giant site with php and mysql is a pain in the butt. So I'll just provide links going from yola site to non yola site and see how that works. Because I'm going to set the cookies to timeout after TWO hours, as long as they click a link going back to php site within two hours, they'll still be logged in.