Project Detail

Modify PHP code for Portability/Reuse  

Modify PHP code for Portability/Reuse is project number 310846
posted at GetAFreelancer.com. Click here to post your own project.

 

Bookmark and Share
Free Trial For New Buyers
 

Status: Closed
(Selected Service Provider)

Selected Providers: sourabhgupta3838

Budget: $30-250

Created: 09/05/2008 at 23:38 EDT

Bid Count: 4

Average Bid: $ 36

09/10/2008 at 23:38 EDT

Project Creator: dgrmpr View PM Post PM
Employer Rating: 9.97/109.97/109.97/109.97/109.97/109.97/109.97/109.97/109.97/109.97/10 (35 reviews)

Bid On This Project
 

Description

The goal of this very small project is to modify the following code to allow it to be used to be placed anywhere within OSCommere without being dependent upon other files, boxes, or traditional OSCommerce code ('.HEADER_TITLE_LOGIN.') to function or present properly.

Current Code:

<?php
$manageaccount_contents = array();
$manageaccount_contents[] = array('text' => BOX_HEADING_MANAGEACCOUNT);
new infoBoxHeading($manageaccount_contents, false, false);
$page_title = TITLE;
$store_name = STORE_NAME;
if (strstr ($HTTP_USER_AGENT, "MSIE")) {
$sid_str = '&' . tep_session_name() . '=' . tep_session_id();
$sstr = array($sid_str);
$rstr = array("");
$REQUESTED_SHORT_URI = str_replace($sstr, $rstr, $REQUEST_URI);
$self = "http://" . $HTTP_HOST . $REQUESTED_SHORT_URI;
}

$manageaccount_contents = array();
$manageaccount_contents[] = array('text' =>

((!tep_session_is_registered('customer_id')) ?

'<a href="../../login.php">'.HEADER_TITLE_LOGIN.'</a> ' . ' <br /> '.
'<a href="../../password_forgotten.php">'.BOX_FORGOTPASSWORD.'</a> '. ' <br /> '.
// '<a href="'.tep_href_link(FILENAME_SHOPPING_CART).'">'.BOX_MODIFY_CART.'</a> '. ' :: '.
'<a href="'.tep_href_link(FILENAME_CREATE_ACCOUNT).'">'.HEADER_TITLE_CREATE_ACCOUNT.'</a> ':
'<a href="logoff.php">'.HEADER_TITLE_LOGOFF.'</a>' . '<br />' ) .

((tep_session_is_registered('customer_id')) ?

' '. '<a href="'.tep_href_link(FILENAME_SHOPPING_CART).'">'.BOX_MODIFY_CART.'</a>'. ' <br /> '.
'<a href="account.php">Edit My Account</a>'


: '').
'');

new infoBox($manageaccount_contents);

?>


Desired Layout:

<ul>
<li class="bg_list"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a></li>' .
'<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></li>' .
'</ul>

Messages Posted: 0 View project clarification board Post message on project clarification board

Bid On This Project
 
If you are the project creator or one of the bidders Log In for more options

  View PM Post PM

30

0 days

09-06-2008 05:25 EDT

Hi! see my reviews and profile for my oscommerce customization expertise. Thanks

help

  View PM Post PM

30

0 days

09-05-2008 23:45 EDT

can do in less time

help

  View PM Post PM

50

2 days

09-06-2008 00:56 EDT

Please view the PMB

help

  View PM Post PM

35

0 days

09-06-2008 08:48 EDT

(No Feedback Yet)

Hi , We can do this. Please see PMB for detail. Thanks

help

    Bid on this Project