chrometweaks.org

Amazon Simple Storage Services as a iPage web host?

Click Here To View All Answers...


Got a question... Amazon Simple Storage Services as a iPage web host? Thanks for any answer or 2. Another quick question... My code is.

<td class="main"><a href="'tep_href_link(FILENAME_ASK_QUESTION, 'products_id='$new_products['products_id'])'">'tep_image_button('ask_question.gif')'&nbsp;Ask Question</a></td>.

I would like the Ask question as multilanguage tag.

I have tried it in many ways, but I can`t figure out why it wont work.

If anybody knows how to do that correctly, please fell free to post!!!.

Greetz john..

Comments (14)

Good question... I dunno what is the answer. I'll do some research in Google and get back to you if I find an useful answer. You should email the people at iPage as they probably could give you an answer..

Comment #1

I have in my language file define('ASK_QUESTION', 'Ask question about product'); and would like to replace Ask Question from the end of the link so I have it multilanguage ;-).

Greetz john..

Comment #2

If you have made your text define i.e..

Define('ASK_QUESTION', 'Ask question about product');.

Then in your link call the define using your example.

<td class="main"><?php echo '<a href="'tep_href_link(FILENAME_ASK_QUESTION, 'products_id='$new_products['products_id'])'">'tep_image_button('ask_question.gif')'&nbsp;'ASK_QUESTION'</a>'; ?></td>.

This post has been edited by.

241.

: 02 October 2004, 21:30..

Comment #3

Ok ill post a bit more code... it's for the new_product module....

The aboe code would work ok on product info for example but not in new product module so here is my code (dont stone me it's a mess;-).

'text' => '.

<table width="100%" border="0" cellspacing="0" cellpadding="0">.

 <tr>.

   <td class="main" colspan="2"><div align="center"><B>'$new_products['products_name']'</b></a></div></td>.

 </tr>.

 <tr>.

   <td rowspan="7"><div align="center"><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$new_products['products_id'])'">'tep_image(DIR_WS_IMAGES$new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a></div></td>.

   <td class="main"><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$new_products['products_id'])'">'tep_image_button('details_small.gif')'&nbsp;Details</a></td>.

 </tr>.

 <tr>.

   <td class="main"><a href="'tep_href_link(FILENAME_WISHLIST, 'products_id=' .$new_products['products_id'])'">'tep_image_button('tell_small.gif')'&nbsp;Wunschliste</a></td>.

 </tr>.

 <tr>.

   <td class="main"><a href="'tep_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' .$new_products['products_id'])'">'tep_image_button('tell_small.gif')'&nbsp;Weiter Empfehlen</a></td>.

 </tr>.

 <tr>.

<td class="main"><?php echo '<a href="'tep_href_link(FILENAME_ASK_QUESTION, 'products_id='$new_products['products_id'])'">'tep_image_button('ask_question.gif')'&nbsp;'ASK_QUESTION'</a>'; ?></td>.

 </tr>.

 <tr>.

   <td><a href="'tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action'))'action=buy_now&products_id='$listing_values['products_id'], 'NONSSL')'">'tep_image_button('button_buy_now.gif', TEXT_BUY$listing_values['products_name']TEXT_NOW)'</a></td>.

 </tr>.

 <tr>.

   <td>&nbsp;</td>.

 </tr>.

 <tr>.

   <td><b>'$product_price_d'</b></td>.

 </tr>.

</table>.

');.

The code from 241 get me the error.

Greetz john..

Comment #4

Thats a mess.

'text' => '.

<table width="100%" border="0" cellspacing="0" cellpadding="0">.

<tr>.

<td class="main" colspan="2"><div align="center"><B>'$new_products['products_name']'</b></a></div></td>.

</tr>.

<tr>.

<td rowspan="7"><div align="center"><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$new_products['products_id'])'">'tep_image(DIR_WS_IMAGES$new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a></div></td>.

<td class="main"><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$new_products['products_id'])'">'tep_image_button('details_small.gif')'&nbsp;Details</a></td>.

</tr>.

<tr>.

<td class="main"><a href="'tep_href_link(FILENAME_WISHLIST, 'products_id=' .$new_products['products_id'])'">'tep_image_button('tell_small.gif')'&nbsp;Wunschliste</a></td>.

</tr>.

<tr>.

<td class="main"><a href="'tep_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' .$new_products['products_id'])'">'tep_image_button('tell_small.gif')'&nbsp;Weiter Empfehlen</a></td>.

</tr>.

<tr>.

<td class="main"><a href="'tep_href_link(FILENAME_ASK_QUESTION, 'products_id='$new_products['products_id'])'">'tep_image_button('ask_question.gif')'&nbsp;'ASK_QUESTION'</a></td>.

</tr>.

<tr>.

<td><a href="'tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action'))'action=buy_now&products_id='$listing_values['products_id'], 'NONSSL')'">'tep_image_button('button_buy_now.gif', TEXT_BUY$listing_values['products_name']TEXT_NOW)'</a></td>.

</tr>.

<tr>.

<td>&nbsp;</td>.

</tr>.

<tr>.

<td><b>'$product_price_d'</b></td>.

</tr>.

</table>.

');.

Try that as I did not know where you were trying to add the code, remember that the text define requires to be in all languages.

This post has been edited by.

241.

: 02 October 2004, 22:23..

Comment #5

Thanks steve,.

Its working now....

Never tought a missing ' can cause so much trouble..

I have tried it in many way`s and also tought off your first sulotion but.

That html, php and the defines have cracked my head.

Greetz john..

Comment #6

You will now be able to do this with all your links..

Comment #7

My code is.

<td class="main"><a href="'tep_href_link(FILENAME_ASK_QUESTION, 'products_id='$new_products['products_id'])'">'tep_image_button('ask_question.gif')'&nbsp;Ask Question</a></td>.

I would like the Ask question as multilanguage tag.

I have tried it in many ways, but I can`t figure out why it wont work.

If anybody knows how to do that correctly, please fell free to post!!!.

Greetz john..

Comment #8

What do you mean by "Ask question as multilanguage tag?".

Jack..

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.