Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

html in to existing infobox


vaviv

Recommended Posts

I use osc 2.3.1

 

for example:

 

I want to insert html code in to language infobox or another infobox..

 

How to do that?

 

Thanks

 

Just add it into the $data section, open any infobox and you will see what I mean.

 

Mark

Link to comment
Share on other sites

because i'm a rookie :-)

 

where is the

 

$data section

 

This is the code from the languages.php infobox

 

          $data = '<div class="ui-widget infoBoxContainer">' .
                 '  <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_LANGUAGES_BOX_TITLE . '</div>' .
                 '  <div class="ui-widget-content infoBoxContents" style="text-align: center;">' . $languages_string . '</div>' .
                 '</div>';

Link to comment
Share on other sites

This is the code from the languages.php infobox

 

          $data = '<div class="ui-widget infoBoxContainer">' .
                 '  <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_LANGUAGES_BOX_TITLE . '</div>' .
                 '  <div class="ui-widget-content infoBoxContents" style="text-align: center;">' . $languages_string . '</div>' .
                 '</div>';

 

and the html code

---------------

<p>

<iframe name="I1" src="html link here.htm" width="223" height="931" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0">

Your browser does not support inline frames or is currently configured not to display inline frames.

</iframe></p>

---------------

 

where to insert it ?

 

sorry for my english...

Link to comment
Share on other sites

and the html code

---------------

<p>

<iframe name="I1" src="html link here.htm" width="223" height="931" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0">

Your browser does not support inline frames or is currently configured not to display inline frames.

</iframe></p>

---------------

 

where to insert it ?

 

sorry for my english...

 

to ask a daft question ...... why on earth would you want to put that into an infobox?

Link to comment
Share on other sites

I do some tests on how to working?

 

$data = '<div class="ui-widget infoBoxContainer">' .
                 '  <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_LANGUAGES_BOX_TITLE . '</div>' .
                 '  <div class="ui-widget-content infoBoxContents" style="text-align: center;">' . $languages_string . '</div>' .
                 '  <p>' .
                 '  <iframe name="I1" src="html link here.htm" width="223" height="931" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0">Your browser does not support inline frames or is currently configured not to display inline frames.' .
                 '  </iframe></p>' .
                 '</div>';

Link to comment
Share on other sites

$data = '<div class="ui-widget infoBoxContainer">' .
                 '  <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_LANGUAGES_BOX_TITLE . '</div>' .
                 '  <div class="ui-widget-content infoBoxContents" style="text-align: center;">' . $languages_string . '</div>' .
                 '  <p>' .
                 '  <iframe name="I1" src="html link here.htm" width="223" height="931" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0">Your browser does not support inline frames or is currently configured not to display inline frames.' .
                 '  </iframe></p>' .
                 '</div>';

 

WOWWWWWWWWWWWW

 

Many thanks....

You are super...

Link to comment
Share on other sites

If look at how the code is laid out then you should have no problems replicating it in the future :thumbsup:

 

Mark, one question again

 

in to products_new.php where to insert the same html code?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...