General Theme Discussions - [[[ QUESTION ]]] Hard-coding the Log-In in the theme.php fil GlueBeard - Sep 14, 2004 - 05:51 PM Post subject: [[[ QUESTION ]]] Hard-coding the Log-In in the theme.php fil
How would I hard code the log-in items into the theme.php file?
Specifically, the name, password, and remember me options.mars - Sep 14, 2004 - 10:49 PM Post subject:
Do you mean always have the fields showing?
Or something else?
I really wish you would move over to AutoTheme...
All the things you are having issues with are easily solved with AT.GlueBeard - Sep 16, 2004 - 02:47 AM Post subject:
mars wrote:
Do you mean always have the fields showing?
Or something else?
I really wish you would move over to AutoTheme...
All the things you are having issues with are easily solved with AT.
I tell you what, Mars, I'll try the AutoThemes module, though I don't have any intention of buying it.
The question, though, is what does the pay version allow me to do that the free version doesn't?mars - Sep 16, 2004 - 02:53 AM Post subject:
A few added things, color chooser, online editing of html etc.
I bought the full version to show support of the author since I use it so much, but you will be just fine with the free lite version.GlueBeard - Sep 16, 2004 - 02:59 AM Post subject:
If I may suggest, add a link to auto themes in your web links section.mars - Sep 16, 2004 - 03:58 AM Post subject:
DOH!
Good idea... lol
It is http://spidean.mckenzies.net for anyone who doesn't know.
It is also listed at the top of the downloads page here as well.GlueBeard - Sep 16, 2004 - 12:26 PM Post subject:
I registered at the site, but unlike most sites, it seems to take its sweet time in sending me a password.
So, I can't presently download from there.mars - Sep 16, 2004 - 10:24 PM Post subject:
Yeah Shawn has been having some issues with the registration over there.GlueBeard - Sep 17, 2004 - 03:58 AM Post subject:
I am exceedingly unimpressed with his website.
I will try again later to obtain the file from somewhere else. Ray, I believe, provide dme with another location to obtained the desired file.GlueBeard - Sep 27, 2004 - 08:15 AM Post subject:
Here is the answer to my question above, about how to hard code the log-in into the theme.php file:
<?php
if(!pnUserLoggedIn()){
?>
<div style="text-align:center;">
<form action="user.php" method="post"><div> Username
<input type="text" name="uname" size="14" maxlength="25" /> Password
<input type="password" name="pass" size="14" maxlength="20" />
<input type="checkbox" value="1" name="rememberme" /> Remember me
<input type="hidden" name="module" value="NS-User" />
<input type="hidden" name="op" value="login" />
<input type="hidden" name="url" value="index.php" />
<input type="submit" value="Login" />
</div>
</form>
<?php
}
?>
mars - Sep 27, 2004 - 02:14 PM Post subject:
Nice find.
I'm sure it will come in handy for some other people.GlueBeard - Sep 27, 2004 - 04:08 PM Post subject:
HammerHead and InvalidResponse over at PostNuke.com provided me the answer.AlarConcepts - Oct 02, 2004 - 05:08 PM Post subject:
GlueBeard wrote:
I tell you what, Mars, I'll try the AutoThemes module, though I don't have any intention of buying it.
The question, though, is what does the pay version allow me to do that the free version doesn't?
For one thing, it offers an opportunity to support an excellent and dedicated effort. I'd say the best part of the commerial AT over the Lite version is that it offers more admin powers. Nonetheless, the Lite version is probably sufficient for most users.
The best part of AT (overall) is that it allows one to fully reconfigure every aspect of their theme, including the entire structure, in a matter of minutes. IMHO, after overcoming the learning curve of AutoTheme, one won't be wondering how they ever lived without it...they'll simply be wondering why they did.