Jump to content
Sign in to follow this  
cherishedmoments

Infoboxv5.4_in_header with STS

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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 by cherishedmoments

Share this post


Link to post
Share on other sites

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).


Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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$


Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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 by blakey989

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×