cherishedmoments Posted October 27, 2010 Share Posted October 27, 2010 How do I get the infobox to show up in my header when I use STS templates? If I try using $infobox$, it inserts the original infobox that was not intended for the header. Please help! Quote Link to comment Share on other sites More sharing options...
multimixer Posted October 27, 2010 Share Posted October 27, 2010 Why do you need to show any infobox? Having STS you can place the links directly into your template, in the header, footer, middle, wherever Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
cherishedmoments Posted October 30, 2010 Author Share Posted October 30, 2010 (edited) Why do you need to show any infobox? Having STS you can place the links directly into your template, in the header, footer, middle, wherever I'm sorry.....It's loginboxv5.4_in_header. I was sleepy when I wrote that. Here, look..... http://www.cherishedmomentsgifts.com (STS turned off) That's all it looks like in my header! I just want a login box in my header instead of my left or right column. But this add-on pulls it from an add-on that used the box in the right column and, when I use the tag $loginbox$, it looks like the original box instead of the header login box. Edited October 30, 2010 by cherishedmoments Quote Link to comment Share on other sites More sharing options...
bkellum Posted October 31, 2010 Share Posted October 31, 2010 I'm sorry.....It's loginboxv5.4_in_header. I was sleepy when I wrote that. Here, look..... http://www.cherishedmomentsgifts.com (STS turned off) That's all it looks like in my header! I just want a login box in my header instead of my left or right column. But this add-on pulls it from an add-on that used the box in the right column and, when I use the tag $loginbox$, it looks like the original box instead of the header login box. Why not just simply add the form to anywhere you want in your STS Template? <!-- add this to your sts template file. ---> <div id="login"> <form action="[url="http://YOURSITE.COM/YourSiteStoreDirectory/login.php?action=process"]http://YOURSITE.COM/YourSiteStoreDirectory/login.php?action=process[/url]" method="post" name="login" > Login:<input type="text" name="email_address"/><br/> Password:<input type="password" name="password"/><br/> <a id="sign_in" onclick="login.submit()">Sign in</a> <a id="sign_up" href="/create_account.php">Sign up</a> <a id="forgot" href="/password_forgotten.php">Forgot?</a><br/> $logoff </form> </div> <!-- end of login --> Of course...you will need to replace " YOURSITE.COM/YourSiteStoreDirectory " with your actual URL and store directory (if not installed in the root). Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
cherishedmoments Posted October 31, 2010 Author Share Posted October 31, 2010 Why not just simply add the form to anywhere you want in your STS Template? <!-- add this to your sts template file. ---> <div id="login"> <form action="[url="http://YOURSITE.COM/YourSiteStoreDirectory/login.php?action=process"]http://YOURSITE.COM/YourSiteStoreDirectory/login.php?action=process[/url]" method="post" name="login" > Login:<input type="text" name="email_address"/><br/> Password:<input type="password" name="password"/><br/> <a id="sign_in" onclick="login.submit()">Sign in</a> <a id="sign_up" href="/create_account.php">Sign up</a> <a id="forgot" href="/password_forgotten.php">Forgot?</a><br/> $logoff </form> </div> <!-- end of login --> Of course...you will need to replace " YOURSITE.COM/YourSiteStoreDirectory " with your actual URL and store directory (if not installed in the root). Ok, everything looks good except for two things. The "Sign in" and the "$logoff" show up as text and don't do anything. I copied and pasted and replaced my site information. I left everything else as is. Thank you, by the way! Quote Link to comment Share on other sites More sharing options...
bkellum Posted October 31, 2010 Share Posted October 31, 2010 Ok, everything looks good except for two things. The "Sign in" and the "$logoff" show up as text and don't do anything. I copied and pasted and replaced my site information. I left everything else as is. Thank you, by the way! Be sure the paths are correct for each link in the code I provided previously.... For example: "/create_account.php" - Add in your subfolder name if your store is not in the root of the site. Add a "$" at the end of the logoff tag: $logoff$ Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
cherishedmoments Posted October 31, 2010 Author Share Posted October 31, 2010 Be sure the paths are correct for each link in the code I provided previously.... For example: "/create_account.php" - Add in your subfolder name if your store is not in the root of the site. Add a "$" at the end of the logoff tag: $logoff$ Hey, Bill! I ended up changing the code to this: <div id="login"> <form action="http://www.mysite.com/login.php?action=process" method="post" name="login" > Login:<input type="text" name="email_address"/><br/> Password:<input type="password" name="password"/><br/> <input type="image" src="images/template_button_go.png" alt="Submit button"> <a id="sign_up" href="/create_account.php">Sign up</a> <a id="forgot" href="/password_forgotten.php">Forgot?</a><br/> $logoff$ </form> </div> <!-- end of login --> and it worked! Thanks so much! Quote Link to comment Share on other sites More sharing options...
blakey989 Posted February 23, 2011 Share Posted February 23, 2011 (edited) hi all, (oscommerce v2.2rc2a) just to see if you are interested i have recently installed loginbox (version with the register button instead of text) i have made some adjustments in the above version so that now when they click the register button it does not send them to login.php with the error of wrong login data, this is simply because it was submitting the form for the login, as though they are trying to login. it now takes them straight to create_account.php. also i have added a logout button, as i felt the text link was not suitable to my site's look just wanted to know if anyone would like the code putting up so you can also change or i can send you the edited .php files also i can add to the install instructions how to make the loginbox available when using STS or simular template system as i am. (simple to do when you see how) and the only reason it wouldn't show up in the header of your STS template is because (if i'm understanding the above) you have to assign it it's own call i.e. $loginbox$ in the sts file, this would put the loginbox wherever you put that 'call' in your template, i have added it to column_left.php in my oscommerce, but it shows in the right column beacuse that's where the $loginbox$ call is in my template, hope you make sense of that, as i said if you would like the full instructions i will happily post them here. Dan Edited February 23, 2011 by blakey989 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.