chrometweaks.org

What is another iPage hosting service available similar to ideafry or wblogin?

Click Here To View All Answers...


Got a question... What is another iPage hosting service available similar to ideafry or wblogin? Thanks for any response. Another question... In the header navigation section which has a link to "Top" in the top left hand corner, I need to add the HTML attribute "target=_top" to the link, or some equivalent because this link is within a frame and to actually go to the top properly, it need this attribute, otherwise the whole framed iPage site goes into the main frame, duplicating itself..

I have look at the code for this section in catalog/includes/header.php, but not being particularly php-familiar, cannot see what it is I need to do..

Help appreciated,.

Jim...

Comments (17)

I'm stumped. I'm not so sure what is the answer to that question. I'll do some poking around and get back to you if I find an answer. You should email the people at iPage as they probably can help you..

Comment #1

I have still not discovered how to do this -.

I now have a link to the homepage in my top frame, so I could now just LOSE the "Top" link, but I don't want to rush in..

The html table generating code in header.php refers to.

<?php echo $breadcrumb->trail(' &raquo; '); ?>.

But I can't find any other reference to this....

Any1 - PLEEEAAASE!.

J...

Comment #2

Hi,.

What are you talking about? there's no frames in osCommerce..

Have you put the iPage site in a frame, with other link in a top frame?.

Do you want to do so?.

Explain please.. or give an URL so that people can see what U mean.....

Comment #3

I cannot give you the url coz the iPage site is not yet live - will be very soon , just waiting for WorldPay - AGAIN!.

I have OSC contained within frames that I constructed myself, so that we have a better menu system. So, the "Top" link top left next to the "Catalog" link has a direct link to the site's root, so the whole thing duplicates in the main frame..

However, I now just want to know how to lose the "Top" link..

Thanx for your response,.

Jim...

Comment #4

If I have understood what you said, go into the header.php file (catalog/includes/header.php).

@line 15.

<td valign="middle"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image(DIR_WS_IMAGES'oscommerce.gif', 'osCommerce')'</a>'; ?></td>.

Here is th elink for the logo on the top left, you can had your target="_top" attribute..

Then.

@line 22.

     if ($osC_Services->isStarted('breadcrumb')) {.

   echo '    <td class="headerNavigation">&nbsp;&nbsp;'$breadcrumb->trail(' &raquo; ')'</td>'"\n";.

 }.

Idem for the navigation link at top left....

Hope I have answered to your request....

This post has been edited by.

Icemaxou.

: 30 June 2004, 11:10..

Comment #5

Sorry it's been a while since you posted your response, but there's been loads for me to do & for some reason I didn't get a notification of your response..

I've looked in /catalog/includes/header.php and cannot find the code you refer to. Basically it doesn't exist there. I think you've grasped my problem though, as the code you referred to could have that attribute added to it..

Are we looking at the correct file?.

J...

Comment #6

Sorry, I were working on MS-CVS, the file is quite different..

So in /catalog/includes/header.php.

@line 57.

<td valign="middle"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image(DIR_WS_IMAGES'oscommerce.gif', 'osCommerce')'</a>'; ?></td>.

Here is the link for the logo on the top left, you can had your target="_top" attribute..

Then I can't find what I was looking for previous time... first try this, and let me know.....

Comment #7

Hi..

Afraid that's not it, coz I found it in an older version of that file, but the one I'm currently using doesn't have it in. I think it was removed as part of losing the OSC menu system on the left (as I've created my own - hence use of frames). I don't remember removing it and the fact that it's in header.php doesn't quite seem logical, but I did a global edit of all files containing certain code for the above purpose..

So, if it's not there, we need to start from somewhere else, as the problem still continues!.

Here's a link for the framed site, so you can see what I mean - apologies for content, but it's just a job!.

Hornyplay.Com.

Thanx for your prompt response to my email..

Jim...

Comment #8

It all seems to work fine although I'm confused about a few things. Navigation is terrible on that site. The left hand frame looks clumsy, surely a simple DHTML, java or flash menu would have been a better solution. Also, there are a lot of strange happenings that using frames causes. The first comes when you enter the iPage site using a browser that doesn't support frames, The second is when you enter the iPage site using 800x600, y'see, the iPage site is dynamic ie it resizes to fit the screen above a certain width/height and the left hand frame is a fixed size. That is one of the biggest design problem I found..

Oh, and go to.

Hornyplay.

, click on top, click on links and then enter site... weeeeee, two frames..

That can be easily fix by using dhtml, java or flash instead of a frame but you know that seeing as you run a web design consultancy service.

This post has been edited by.

Pw_cynic.

: 11 July 2004, 14:54..

Comment #9

Hi,.

Since I have the iPage site under my eyes....

I think the better way is that you mail me your header.php, since i'm sure the link is in it...

Comment #10

Thank you cynic for stating the obvious -.

J...

Comment #11

In header.php, the links come from thsi line....

$breadcrumb->trail(' &raquo; ').

Then, to modify the target, you must change a few in includes\class\breadcrumb.php.

In trail() function, you have the link created on line 32.

If (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) {.

         $trail_string .= '<a href="'$this->_trail[$i]['link']'" class="headerNavigation">'$this->_trail[$i]['title']'</a>';.

       }.

I thin by replacing this by :.

If (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) {.

         if($this->_trail[$i]['title']=="Top").

                $target="_top";//or whatever you want it to appear.

         else.

                 $target="";.

         $trail_string .= '<a href="'$this->_trail[$i]['link']'" class="headerNavigation" $target>'$this->_trail[$i]['title']'</a>';.

       }.

Try, this and let me know if it works..

Comment #12

Yes, I quoted that line a while back in this thread, as it seemed to be the one, but I couldn't see where to go from there..

Now, I'll have a go at what you suggest in includes\class\breadcrumb.php & let you know what transpires..

Thanx,.

J...

Comment #13

Includes/application_top.php.

&.

Includes/classes/breadcrumb.php.

You'll need to mess around with the breadcrumb function to add a "target" definition. And add a "target" to your link in application_top to match the function you just made..

Not simple, but equally not difficult I'm sure..

IMO, you'd be better off to remove the frame as it is not doing any good to your iPage site whatsoever..

Edit: I just noticed the post of icemaxou where he shows exactly how to do it. Good work..

This post has been edited by.

Burt.

: 12 July 2004, 15:33..

Comment #14

Wo - no!.

It didn't like that, got the following error:.

J...

Comment #15

Sorry, i've made a little error.

CODE  .

If (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) {.

        if($this->_trail[$i]['title']=="Top").

               $target="_top";//or whatever you want it to appear.

        else.

                $target="";.

        $trail_string .= '<a href="'$this->_trail[$i]['link']'" class="headerNavigation" '.$target.'>'$this->_trail[$i]['title']'</a>';.

      }.

Should work.....

Comment #16

Just seen your contribution, Burt..

I need to edit application_top.php as well it seems. This is all getting a little trying, so how can I simply LOSE the "Top" link, which is what I had decided I would do in my contribution to this thread on June 25th (the 3rd entry for this topic)?.

Sorry to be difficult, but in the heat of it all, I forgot my change of idea!.

Jim...

Comment #17

Well, yeah losing top would be an option. Edit it out in application_top.php..

Comment #18


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