dan182skater Posted March 12, 2004 Share Posted March 12, 2004 I'm having a problem with my site.... I am using STS template and now want to add a new box, a login box I got the contribution http://www.oscommerce.com/community/contributions,590 How do I integrate this with my STS template osc site? I am okay with php so will priobably understand what you say. If possible, instand message me with aol instand messenger. My screenname is dan182skater. Thank you. Link to comment Share on other sites More sharing options...
ozcsys Posted March 12, 2004 Share Posted March 12, 2004 I'm having a problem with my site.... I am using STS template and now want to add a new box, a login box I got the contribution http://www.oscommerce.com/community/contributions,590 How do I integrate this with my STS template osc site? I am okay with php so will priobably understand what you say. If possible, instand message me with aol instand messenger. My screenname is dan182skater. Thank you. If I remember correctly you will need to assign a value for the box in the sts_ display_output.php file. Add this line: $template['loginbox'] = strip_unwanted_tags($sts_block['loginbox'], 'loginbox'); under where is says create custom boxes (around line 225 ) I am not sure if I had to change anything else or not so if that does not work you might just look through the sts files and see where else the other box values are listed. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
dan182skater Posted March 12, 2004 Author Share Posted March 12, 2004 that is exactly what i did. It didnt work though so im not sure what else to try. Link to comment Share on other sites More sharing options...
dan182skater Posted March 12, 2004 Author Share Posted March 12, 2004 now i was able to add the login box. But no wi have another problem... how do i make the login box smaller and move it to the right clumn instead of the left. Here is wut it looks like on my site... http://compshop4u.com/ Thank you Link to comment Share on other sites More sharing options...
ozcsys Posted March 12, 2004 Share Posted March 12, 2004 now i was able to add the login box. But no wi have another problem...how do i make the login box smaller and move it to the right clumn instead of the left. Here is wut it looks like on my site... http://compshop4u.com/ Thank you Moving it is the easy part since you are using sts. Go into your sts_template.html page and move the $loginbox to the other side. I believe I had the same problem with the box being too wide and I am pretty sure I fixed it by changing the width of the fields. If you look at the follow code I have the field size set to 16 which is what I think solve the problem. Try that and if it does not work I can send you the whole loginbox.php file. <tr> <td align=\"left\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"16\" value=\"\"> </td> </tr> <tr> <td align=\"left\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " </td> </tr> <tr> <td align=\"left\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"16\" value=\"\" </td> </tr> The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
dan182skater Posted March 13, 2004 Author Share Posted March 13, 2004 there is no $loginbox thing in my sts template html file. The login box just shows up by itself. Link to comment Share on other sites More sharing options...
ozcsys Posted March 13, 2004 Share Posted March 13, 2004 there is no $loginbox thing in my sts template html file. The login box just shows up by itself. Put the $loginbox somewhere in your sts_template.html file and see if it shows up where you want it to. Then you can remove the one you do not want. You must have added the code somewhere when you installed the contribution for it to be showing up. column_left.php maybe?? Go back through your install and remove the part that makes it show up so the only place it will be is where you have $loginbox in your sts_template.html file. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
dan182skater Posted March 13, 2004 Author Share Posted March 13, 2004 still no luck. I made sure that the loginbox was only added to the columnright. It still shows in the left Link to comment Share on other sites More sharing options...
ozcsys Posted March 13, 2004 Share Posted March 13, 2004 still no luck. I made sure that the loginbox was only added to the columnright. It still shows in the left In your column file Try changing this // BOF: WebMakers Added: Login Box My Account require(DIR_WS_BOXES . 'loginbox.php'); // EOF: WebMakers Added: Login Box My Account to this require(DIR_WS_BOXES . 'loginbox.php'); // STS: ADD $sts_block_name = 'loginbox'; require(STS_RESTART_CAPTURE); // STS: EOADD in your sts_display_output file I think you already have this under create custom boxes at or about line 229 $template['loginbox'] = strip_unwanted_tags($sts_block['loginbox'], 'loginbox') You should also add at around line 310 in one of the columns echo $sts_block['loginbox']; Looking at the files I think that is everything I did to get it working The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
dan182skater Posted March 14, 2004 Author Share Posted March 14, 2004 That is how it already was Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.