Show Posts
|
|
Pages: [1] 2 3
|
|
1
|
Web Design & Developement / Programming / Re: Parse error: syntax error, unexpected '{'
|
on: February 18, 2008, 06:07:08 PM
|
|
No, I have not heard of formatting, sorry.
Considering I know very little about PHP and the fact that this is an ecommerce script. I counted 4 left and 4 right brackets. PhpED claims there is no bracket problem at all.
With all said above, I am still at square one with the problem still existing in the script.
|
|
|
|
|
3
|
Web Design & Developement / Programming / Parse error: syntax error, unexpected '{'
|
on: February 17, 2008, 10:29:17 PM
|
|
I can't seem to figure out how to fix this.
Here is the php file.
<?phpif ( (!strstr($_SERVER['PHP_SELF'],'login.php'))and(!strstr($_SERVER['PHP_SELF'],'create_account.php'))and!tep_session_is_registered('customer_id')) {?><!-- loginbox //--><tr><td><center><TABLE WIDTH=175 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3><center> <IMG SRC="images/boxes/table_signin.gif"></TD> </TR> <TR> <td><?php if (!tep_session_is_registered('customer_id')) {?> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LOGIN_BOX); // new infoBoxHeading($info_box_contents, false, false);$loginboxcontent = tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')) . BOX_LOGINBOX_EMAIL . tep_draw_input_field('email_address', '', 'size="10" maxlength="100" style="width: ' . (BOX_WIDTH-30) . 'px"') .'<br><br>' . BOX_LOGINBOX_PASSWORD . tep_draw_password_field('password', '', 'size="10" maxlength="40" style="width: ' . (BOX_WIDTH-30) . 'px"') .'<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . BOX_LOGINBOX_FORGOT_PASSWORD . '</a>' . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . '</form><br><br>' . BOX_LOGINBOX_TEXT_NEW . '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . BOX_LOGINBOX_NEW . '</a>' ; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent); new infoBox($info_box_contents);?> </TD> </TR> <TR> <TD COLSPAN=3> </TD> </TR></TABLE></td></tr><?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. }?><!-- loginbox_eof //--><?php// WebMakers.com Added: My Account Info Box} else { if (tep_session_is_registered('customer_id')) {?><!-- my_account_info //--> <tr><td><center><TABLE WIDTH=175 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3><center> <IMG SRC="images/boxes/table_myaccount.gif"></TD> </TR> <TR> <td><?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT); // new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>'); new infoBox($info_box_contents);?> </TD> </TR> <TR> <TD COLSPAN=3> </TD> </TR></TABLE></td></tr><!-- my_account_info_eof //--><?php }}?>
Can anyone please help.
Thank you,
Josh R.
|
|
|
|
|
5
|
Web Design & Developement / Web Design / HTML / Re: Sub Domains
|
on: February 14, 2008, 02:08:17 PM
|
|
These are the sub domain setup options I have. Maybe I did something wrong here. The only other option is under the DNS settings for changing the IP Address.
FTP user: Use the FTP user account of the main domain YES Create a separate FTP user account for this subdomain "NO"
FTP Login (Domain Name) * N/A Old password None N/A Password N/A Confirm Password N/A Hard disk quota N/A
Apache ASP support : YES SSI support : YES PHP support : YES CGI support : YES Perl support : YES Python support : YES FastCGI support : YES
|
|
|
|
|
6
|
Web Design & Developement / Web Design / HTML / Re: Sub Domains
|
on: February 14, 2008, 01:52:32 PM
|
|
Yeah, I just now tried that. I might be getting somewhere. However...now I am getting this message:
Server Default page
Future site of 72.172.134.149
To update your index page modify the file /httpdocs/index.html
I added a sample index page but it doesn't show up. I keep getting the "Future Site" page.
Thats better then getting the main domain page I guess.
|
|
|
|
|
7
|
Web Design & Developement / Web Design / HTML / Re: Sub Domains
|
on: February 14, 2008, 01:31:31 PM
|
|
Yeah, that part is correct. But I still get redirected to the main domain. I even tried uploading a sample template on the sub domain and cant get to it either. I figured it was a permissions problem but that didn't fix it either. Pretty much, I cant get to anything thats on the sub domain.
|
|
|
|
|
9
|
Web Design & Developement / Web Design / HTML / Sub Domains
|
on: February 14, 2008, 12:26:30 PM
|
|
Can anyone help me please. I have created a sub domain on my server and uploaded OSC software to it. The problem is, when ever I try and get to the sub domain in my browser I keep getting my main domain page. In the subdomain, all of the root files are there including the httpdocs folder. Please help......
Thank you,
Josh R.
|
|
|
|
|
12
|
Market Place / Site Promotion / Looking better !!
|
on: November 12, 2007, 10:39:32 PM
|
With the help of a lot of T35 members my site is looking a lot better !! In the next week or so I should have a top level domain through Microsoft ! Anyways, I'm open for suggestions (ridicule to, seeing that it might be unavoidable) I would like to also thank everyone for their help. http://topsoftwaredownloads.t35.comJosh R.
|
|
|
|
|