osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Can't get welcome message working.

This is a discussion on Can't get welcome message working. within the osCMax v1.7 Installation forums, part of the osCMax v1.7 Forums category; I am using 1.5.5 with bts update and option value contrib. My other carts, including my oscmax 1.2.x shows the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Installation

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-12-2004, 12:22 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
Default Can't get welcome message working.

I am using 1.5.5 with bts update and option value contrib.

My other carts, including my oscmax 1.2.x shows the default Welcome guest blah blah sign in or create and account... blah blah.

Anyway. I want it back and I cant figure out why it isnt being called.

I looked in the language files (default.php and english.php) and it is all defined but not showing up. I tested the other templates and they do not have it either.

I did edit the mainpage.php (that defines the default OSCmax welcome) but so far as I could tell it was just html and no php.

What do I need to do to get that script welcome (that recognizes either guest or currently logged in user) to work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 05-12-2004, 12:36 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
Default

On closer look. it seems that the index.php isnt displaying the 'text_main' either. I know it is calling it because if I foul it up with an "(" in the wrong place it displays an error in the corresponding line.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 05-12-2004, 12:56 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
Default

Found it!

It was in the index_default.tpl.php and it was kinda sneaky too because it was

Quote:
<td class="main"><? //php echo tep_customer_greeting(); ?></td>
so the // didnt show up in context highlighting because it was a php in an html.

I am sure you guys just love a thread that is immediately solved without any work...

I think I should get to be a moderator since I was so helpful on this thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 05-12-2004, 01:36 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-28-2004, 04:28 PM
New Member
 
Join Date: Dec 2002
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
knullhund
Default In response to log in text showing up

I found the file in question, however can u elaborate on how to do the change. Remember your audience in the moderator all the way to beginners (like me) Thanks, please be specific on how to fix the problem.
Knullhund
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-28-2004, 04:37 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Just delete the two // from the above line of code so it looks like:

Code:
<td class="main"><? php echo tep_customer_greeting(); ?></td>
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 11-28-2004, 08:32 PM
New Member
 
Join Date: Dec 2002
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
knullhund
Default I can get the welcome message working

Thanks Msasek. Just two details. The path to the file is: httpdocs / templates / osC / content / index_default.tpl.php "osC" represents the template I'm using. The default one is "aabox" The line to change should look exactly like this: <td class="main"><?php echo tep_customer_greeting(); ?></td>
</tr>
Make sure there is no space on "...><?php echo..."
If it does it will give an error.
Hope this helps.
Knull

PS Change the permission to this folder before doing it(make it writable)
This is for beginners like me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Working site is not working now! swatkins osCMax v2 Installation issues 20 12-25-2006 05:51 PM
Error message Paperman osCommerce 2.2 Discussion 1 11-04-2006 08:21 PM
Warning message help. Picman osCommerce 2.2 Installation Help 6 06-05-2003 04:30 PM
install -php message ozstar osCommerce 2.2 Installation Help 3 11-18-2002 02:06 PM


All times are GMT -8. The time now is 09:08 AM.


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