chrometweaks.org

How can I upload an AD banner in my iPage homepage?

Click Here To View All Answers...


First off, How can I upload an AD banner in my iPage homepage? Many thanks for any comment. Second question of mine... Hi,.

I have activated the information box..

Now I got a question..

How do I get the box's text to be same as the categories box text. If you understand? could take a look at jansrud.co.cc.

Regards Morten..

Comments (14)

I'm stumped. I'm not so sure what is the answer to that question. I'll do some research in Google and get back to you if I got an good answer. You should email the people at iPage as they probably could give you help..

Comment #1

Thanks alot, but in what file?.

* ok, I pasted the html code into the information.php. Much better now, but not exactly how I expected. A part of the style did not "transfer" from categories to information:) As you'll see on the webpage(jansrud.co.cc).

I want the line under the text and colour on the text to change:).

How do I fix this?.

Regards Morten.

This post has been edited by.

Mortenjan.

: 07 September 2008, 14:46..

Comment #2

Ummmm.......

Most likely.

/includes/boxes/.

Information.php.

When you find it, if you want help fixing it, just post it's contents (preferrably in a CODE box to preserve formatting)...

Comment #3

Did you see my edit?.

Oh, hold on:O never mind my edit, I manually fixed the "stylesheet" some minutes ago. Think it was the reason.

So, I have now backed up my original stylesheet..

Think I used your html code wrong..cause nothing have changed.

This post has been edited by.

Mortenjan.

: 07 September 2008, 14:51..

Comment #4

Number 1: Pasting the HTML into the file was not my intention. It need to be done using PHP..

Number 2: The code is still coming out like this:.

<a href="http://jansrud.co.cc/oss.php">BOX_INFORMATION_OSS</a><br>.

<a href="http://jansrud.co.cc/shipping.php">Shipping &amp; Returns</a><br>.

<a href="http://jansrud.co.cc/privacy.php">Privacy Notice</a><br>.

<a href="http://jansrud.co.cc/conditions.php">Conditions of Use</a><br>.

<a href="http://jansrud.co.cc/contact_us.php">Contact Us</a><br>.

Not exactly what I posted...

Comment #5

Now it looks like this... well, something I have experienced, is that whatever I change in this php file, nothing changes.. think it can be blank without doing any damage at all! to say it with other words: I'm kinda frustrated right now..

<?php.

/*.

$Id: information.php,v 1.6 2002/11/22 18:56:08 dgw_ Exp $.

OsCommerce, Open Source E-Commerce Solutions.

[url="http://www.oscommerce.com"]http://www.oscommerce.com[/url].

Copyright 2002 osCommerce.

Released under the GNU General Public License.

*/.

?>.

<! information //>.

<tr>.

<td>.

<ul>.

<li class="bg_list"><a href="http://jansrud.co.cc/oss.php">BOX_INFORMATION_OSS</a></li>.

<li class="bg_list"><a href="http://jansrud.co.cc/shipping.php">Shipping &amp; Returns</a></li>.

<li class="bg_list"><a href="http://jansrud.co.cc/privacy.php">Privacy Notice</a></li>.

<li class="bg_list"><a href="http://jansrud.co.cc/conditions.php">Conditions of Use</a></li>.

<li class="bg_list"><a href="http://jansrud.co.cc/contact_us.php">Contact Us</a></li>.

</ul>.

<?php.

$info_box_contents = array();.

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);.

New infoBoxHeading($info_box_contents, false, false);.

$info_box_contents = array();.

$info_box_contents[] = array('text' => '<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>');.

New infoBox($info_box_contents);.

?>.

</td>.

</tr>.

<! information_eof //>.

This post has been edited by.

Mortenjan.

: 07 September 2008, 14:58..

Comment #6

Remove this code from the file:.

<ul>.

<li class="bg_list"><a href="http://jansrud.co.cc/oss.php">BOX_INFORMATION_OSS</a></li>.

<li class="bg_list"><a href="http://jansrud.co.cc/shipping.php">Shipping &amp; Returns</a></li>.

<li class="bg_list"><a href="http://jansrud.co.cc/privacy.php">Privacy Notice</a></li>.

<li class="bg_list"><a href="http://jansrud.co.cc/conditions.php">Conditions of Use</a></li>.

<li class="bg_list"><a href="http://jansrud.co.cc/contact_us.php">Contact Us</a></li>.

</ul>.

Then post the contents of.

/includes/.

Column_left.php.

In a CODE box...

Comment #7

Here you go:) thanks alot for helping.

<?php.

/*.

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

[url="http://www.oscommerce.com"]http://www.oscommerce.com[/url].

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

?>.

<table border="0"cellspacing="0" cellpadding="0" class="box_width_left">.

<tr><td width="100%">.

<table border="0" cellspacing="0" cellpadding="0">.

<?php.

If ((USE_CACHE == 'true') && empty($SID)) {.

Echo tep_cache_categories_box();.

} else {.

Include(DIR_WS_BOXES'categories.php');.

}.

//.

If (isset($HTTP_GET_VARS['products_id'])) {.

If (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES'tell_a_friend.php');.

} else {.

Include(DIR_WS_BOXES'specials.php');.

}.

//.

// require(DIR_WS_BOXES'information.php');.

//.

// if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES'order_history.php');.

//.

// require(DIR_WS_BOXES'whats_new.php');.

//.

If (isset($HTTP_GET_VARS['products_id'])) {.

If (tep_session_is_registered('customer_id')) {.

$check_query = tep_db_query("select count(*) as count from "TABLE_CUSTOMERS_INFO" where customers_info_id = '"(int)$customer_id"' and global_product_notifications = '1'");.

$check = tep_db_fetch_array($check_query);.

If ($check['count'] > 0) {.

// include(DIR_WS_BOXES'best_sellers.php');.

} else {.

// include(DIR_WS_BOXES'product_notifications.php');.

}.

} else {.

// include(DIR_WS_BOXES'product_notifications.php');.

}.

} else {.

// include(DIR_WS_BOXES'best_sellers.php');.

}.

//.

// if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES'manufacturer_info.php');.

//.

If ((USE_CACHE == 'true') && empty($SID)) {.

Echo tep_cache_manufacturers_box();.

} else {.

// include(DIR_WS_BOXES'manufacturers.php');.

}.

//.

// require(DIR_WS_BOXES'search.php');.

//.

// require(DIR_WS_BOXES'reviews.php');.

//.

If (substr(basename($PHP_SELF), 0, 8) != 'checkout') {.

// include(DIR_WS_BOXES'languages.php');.

// include(DIR_WS_BOXES'currencies.php');.

}.

// require(DIR_WS_BOXES'shopping_cart.php');.

?>.

</table>.

</td>.

<td><?php echo tep_draw_separator('spacer.gif', '5', '1'); ?></td></tr>.

<! information //>.

<tr>.

<td>.

<?php.

$info_box_contents = array();.

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);.

New infoBoxHeading($info_box_contents, false, false);.

$info_box_contents = array();.

$info_box_contents[] = array('text' => '<a href="'tep_href_link('oss.php')'">'BOX_INFORMATION_OSS'</a><br>' ..

'<a href="'tep_href_link(FILENAME_SHIPPING)'">'BOX_INFORMATION_SHIPPING'</a><br>' ..

'<a href="'tep_href_link(FILENAME_PRIVACY)'">'BOX_INFORMATION_PRIVACY'</a><br>' ..

'<a href="'tep_href_link(FILENAME_CONDITIONS)'">'BOX_INFORMATION_CONDITIONS'</a><br>' ..

'<a href="'tep_href_link(FILENAME_CONTACT_US)'">'BOX_INFORMATION_CONTACT'</a><br>');.

New infoBox($info_box_contents);.

?>.

</td>.

</tr>.

<! information_eof //>.

</table>..

Comment #8

MAKE A BACKUP OF THE FILE..

PUT IT IN A SAFE PLACE FOR NOW..

Then replace the contents of the original with this code:.

<?php.

/*.

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright 2003 osCommerce.

Released under the GNU General Public License.

*/.

?>.

<table border="0"cellspacing="0" cellpadding="0" class="box_width_left">.

<tr><td width="100%">.

<table border="0" cellspacing="0" cellpadding="0">.

<?php.

If ((USE_CACHE == 'true') && empty($SID)) {.

Echo tep_cache_categories_box();.

} else {.

Include(DIR_WS_BOXES'categories.php');.

}.

//.

If (isset($HTTP_GET_VARS['products_id'])) {.

If (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES'tell_a_friend.php');.

} else {.

Include(DIR_WS_BOXES'specials.php');.

}.

//.

// require(DIR_WS_BOXES'information.php');.

//.

// if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES'order_history.php');.

//.

// require(DIR_WS_BOXES'whats_new.php');.

//.

If (isset($HTTP_GET_VARS['products_id'])) {.

If (tep_session_is_registered('customer_id')) {.

$check_query = tep_db_query("select count(*) as count from "TABLE_CUSTOMERS_INFO" where customers_info_id = '"(int)$customer_id"' and global_product_notifications = '1'");.

$check = tep_db_fetch_array($check_query);.

If ($check['count'] > 0) {.

// include(DIR_WS_BOXES'best_sellers.php');.

} else {.

// include(DIR_WS_BOXES'product_notifications.php');.

}.

} else {.

// include(DIR_WS_BOXES'product_notifications.php');.

}.

} else {.

// include(DIR_WS_BOXES'best_sellers.php');.

}.

//.

// if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES'manufacturer_info.php');.

//.

If ((USE_CACHE == 'true') && empty($SID)) {.

Echo tep_cache_manufacturers_box();.

} else {.

// include(DIR_WS_BOXES'manufacturers.php');.

}.

//.

// require(DIR_WS_BOXES'search.php');.

//.

// require(DIR_WS_BOXES'reviews.php');.

//.

If (substr(basename($PHP_SELF), 0, 8) != 'checkout') {.

// include(DIR_WS_BOXES'languages.php');.

// include(DIR_WS_BOXES'currencies.php');.

}.

// require(DIR_WS_BOXES'shopping_cart.php');.

?>.

</table>.

</td>.

<td><?php echo tep_draw_separator('spacer.gif', '5', '1'); ?></td></tr>.

<! information //>.

<tr>.

<td>.

<?php.

$info_box_contents = array();.

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);.

New infoBoxHeading($info_box_contents, false, false);.

$info_box_contents = array();.

$info_box_contents[] = array('text' => '<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>');.

New infoBox($info_box_contents);.

?>.

</td>.

</tr>.

<! information_eof //>.

</table>..

Comment #9

Oh you fixed it! Thanks ALOT! I'm so gratful!.

Just, not to be pricky, but one page went away:S My "homemade" one...

Got a clue?.

Regards Morten..

Comment #10

Ya, I kinda noticed that:.

<li class="bg_list"><a href="http://jansrud.co.cc/oss.php">BOX_INFORMATION_OSS</a></li>.

What's the name of the "homemade" PHP file and I'll help you get it back in there...

Comment #11

NEVERMIND!!!.

I'll post the code in a sec....

Brainfart here.....

Comment #12

BACKUP THE FILE AGAIN..

We don't want to lose what we've gained..

Replace this code:.

<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>' ..

With:.

<li class="bg_list"><a href="'tep_href_link('oss.php')'">'BOX_INFORMATION_OSS'</a></li>' ..

'<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>' ...

Comment #13

Was downstairs, so sorry for the late reply:) Worked like a dream!.

Damn, I love you, hah:p.

Thaks alot!..

Comment #14

Well, gee......

I'm flattered, but I'm "taken" and, although I'm not positive on your gender, if you're not female "the wind doesn't blow that way"..

If you get my drift..

Just glad to help..

And I'll offer a few words of advice..

Always backup before editing anything..

You have a custom template so be careful when installing any contributions..

They are written for "stock" osC code..

Your code will be different...

Comment #15


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