osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Customization - Inputfields?? totally php style newbie!

This is a discussion on Customization - Inputfields?? totally php style newbie! within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; ok, so I found the html_output.php file with a little help.. I still don't get how to transform this: PHP ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-09-2007, 11:36 AM
Member
 
Join Date: Mar 2007
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Luggruff is on a distinguished road
Default Customization - Inputfields?? totally php style newbie!

ok, so I found the html_output.php file with a little help..
I still don't get how to transform this:

PHP Code:
<?php include('loginbox.php'); ?>
(in main_page.tpl.php)

PHP Code:
// Output a form input field
  
function tep_draw_input_field($name$value ''$parameters ''$type 'text'$reinsert_value true) {
    
$field '<input type="' tep_output_string($type) . '" name="' tep_output_string($name) . '"';

    if ( (isset(
$GLOBALS[$name])) && ($reinsert_value == true) ) {
      
$field .= ' value="' tep_output_string(stripslashes($GLOBALS[$name])) . '"';
    } elseif (
tep_not_null($value)) {
      
$field .= ' value="' tep_output_string($value) . '"';
    }

    if (
tep_not_null($parameters)) $field .= ' ' $parameters;

    
$field .= '>';

    return 
$field;
  }

////
// Output a form password field
  
function tep_draw_password_field($name$value ''$parameters 'maxlength="40"') {
    return 
tep_draw_input_field($name$value$parameters'password'false);
  } 
(in html_output.php in includes/functions)

..and so on, into this:

HTML Code:
<input class="login_form" onFocus="this.className='login_formON'" onBlur="this.className='login_form'" type="text" name="email_address" size="22"> 
(in main_page.tpl.php)

HTML Code:
.login_form
{
border-top: 2px solid rgb(177, 145, 79);
border-left: 2px solid rgb(177, 145, 79);
border-right: 1px solid rgb(177, 145, 79);
border-bottom: 1px solid rgb(177, 145, 79);
background-color: rgb(255, 255, 218);
font-family: Verdana;
font-size: 12px;
color: rgb(244, 151, 66);
padding-left: 2px;
height: 15px;
}

.login_formON
{
border-top: 2px solid rgb(177, 145, 79);
border-left: 2px solid rgb(177, 145, 79);
border-right: 1px solid rgb(177, 145, 79);
border-bottom: 1px solid rgb(177, 145, 79);
background-color: rgb(255, 255, 255);
font-family: Verdana;
font-size: 12px;
color: rgb(244, 151, 66);
padding-left: 2px;
height: 15px;
}
(the css for the inputfields)

The templatesytem for this shop surely ain't no vBulletin.. it's just all a messy web in comparasing.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 04-16-2007, 02:57 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: Customization - Inputfields?? totally php style newbie!

Are you trying to do inline CSS? Why not put this into your template's stylesheet.css file?

Other than that - can't understand what your doing as the code/file names must be all mixed up.

There is no <?php include('loginbox.php'); ?> code in main_page.tpl.php...



I think you want to copy login.tpl.php to your template directory then add your class="login_form" to the HTML where needed, then add your CSS to the stylesheet.css file.

Good luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-16-2007, 03:40 PM
Member
 
Join Date: Mar 2007
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Luggruff is on a distinguished road
Default Re: Customization - Inputfields?? totally php style newbie!

Quote:
Originally Posted by jpf View Post
Are you trying to do inline CSS? Why not put this into your template's stylesheet.css file?

Other than that - can't understand what your doing as the code/file names must be all mixed up.

There is no <?php include('loginbox.php'); ?> code in main_page.tpl.php...



I think you want to copy login.tpl.php to your template directory then add your class="login_form" to the HTML where needed, then add your CSS to the stylesheet.css file.

Good luck
Oh.. yeah.. I included the loginbox.php into the main_page.tpl.php!
Inline css? There is no [CSS]CSS-tag[/CSS] so I just used the HTML tag to show the css I use...

The styling of the inputs are no longer an issue, but stripping the loginbox though, IS. I can't get just the E-mail: [inputfield] Password: [inputfield] [loginbutton] Forgotten-password-link & Register-link
..in one line! Nothing more, nothing less.

Please view this thread to see more thuraly what I mean.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How do you totally empty the mysql catalog without deleting mymikl osCMax v2 Features Discussion 3 09-05-2006 10:25 AM
I am totally lost jallard osCMax v1.7 Installation 2 01-20-2005 03:15 PM
Customization lem osCMax v1.7 Discussion 0 11-08-2004 03:28 PM
Looking for someone to do OSCMax Customization Anonymous osCMax v1.7 General Mods Discussion 4 02-27-2004 06:25 AM
Customization help please! Fatbrain osCommerce 2.2 Modification Help 2 12-09-2002 02:12 PM


All times are GMT -8. The time now is 02:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax