Gossamer Forum
Home : Products : Links 2.0 : Customization :

Launching in frameset

(Page 3 of 4)
> > > >
Quote Reply
Re: Launching in frameset In reply to
Jerry,

I did have the top frame originally configured to load the rate_success.html and rate_failure.html templates in terms of what they rated. But my concern is that if people use the regular links from the Category page, that they will go to a malformatted frames designed web page for confirmation or failure of rating sites. So, that is why I used target=_top for the form to keep response pages the same between frames and non-frames version.

Hope this makes sense.

Padders,

I wrote a mod for people to select an error message they receive and send a message to the LINKS Administrator. The Mod is located in the Resource Center in the Modification Section. You can get it there.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Launching in frameset In reply to
you can add the hidden form variable:

Code:
<input type="hidden" name="frame" value="1">

and then right before you load the template.. you can say..

Code:
if ($in{'frame'}) { $template = "frame_rate_success.html"; }
else { $template = "rate_success.html"; }

same for rate_failure.. Smile

jerry
Quote Reply
Re: Launching in frameset In reply to
Great start, Jerry. But what about the rate.cgi file. Shouldn't the comparisions go in that file that will acknowledge if the form is from the frames or no frames?

Thanks for the tips.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Launching in frameset In reply to
no.. not at all.. you just need to load a different template..

here.. in your rate_form or jump_display.. (whichever you used for the top frame..) get rid of the target.. add that hidden frame field above.. and then in site_html_rate_success...

add that other if ($in{'frame'}) code before this line..

Code:
print &load_template ('rate_success.html', {

and change that line to:

Code:
print &load_template ($template, {

and pretty much the same for the rate_failure..

you have to make frame_rate_success.html though..

jerry
Quote Reply
Re: Launching in frameset In reply to
Tried the codes, Jerry. Didn't work. When I took out the target=_top and added the hidden field as well as the if/else codes to the sub site_html_rate_form (and also tested in sub html_jump_display), the regular rate_success.html and rate_failure.html open in the top frame. I also created two new template files: frame_rate_success.html and frame_rate_error.html.

Any ideas?

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 12, 1999).]
Quote Reply
Re: Launching in frameset In reply to
That did the trick! Thanks, Jerry.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Launching in frameset In reply to
I love this little 'mod' really cool but now i am having a little problem. So far i have been only using review.cgi for ratings but now want a simple drop down menu in the frame that comes up..

i have gone back to calling rate.cgi but get

Error Message : Can't increment counter file '/123'. Reason: Permission denied
Script Location : /usr/home/padders/public_html/cgi-bin/links/rate.cgi

is this a permission problem if so what or is it a problem between using rate and review.cgi together (can you?)

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

been reading the stuff about what should happen after reviewing and think the best is to get a little popup saying.... you have rated link and then a link on that to review.cgi if they want to add coments (if being advanced a review.cgi template without the number option as they have already done that)

to see what i mean go here:

<url>http://www.planetclick.com/ratebar.mpl?siteID=6000000000085588</url>

oh yeah almost frogot.. will use the number links for rating but already know there is a mod somewhere around in the forum.

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Launching in frameset In reply to
padders,

To address your question about opening a pop-up window for confirming rate results, try the following:

1) In your jump_display.html template, add the following codes between the <head></head> anchors:

Code:
<SCRIPT LANGUAGE="JavaScript">
<!--

function launch(newURL, newName, newFeatures, orgName) {
var popup = open(newURL, newName, newFeatures);
if (popup.opener == null)
popup.opener = window;
popup.opener.name = orgName;
return popup;
}

function launchpopup(windowURL,baseURL) {
popup = launch(windowURL, "popbox","scrollbars,height=420,width=360,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,status=0,too lbar=0, channelmode=no,dependent=no,directories=no,fullscreen=no,location=no,menubar=no,resizable=no,status=no,toolbar=no", "launcher");
self.location.href=baseURL;
}

// -->
</SCRIPT>

You can modify the following attributes to get the correct size of the window:

width
height
toolbar
resizable
menubar
scrolling
directories

etc., etc.

2) Add the following codes in the the <FORM..> line

Code:
javascript:launchpopup

So, it should look like the following:

Code:
<form action="javascript:launchpopup('/cgi-bin/links/rate.cgi');" method="POST">

Then you will have to format the following templates to fit in the pop-up window:

frame_rate_error.html
frame_rate_success.html

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Launching in frameset In reply to
Thank you very much for that eliot... oh and thank you for the help by email.. i did reply to your email but it bounced.. i think wrong address (on your send out) will retry :-)

does anyone know what is wrong with my rate.cgi think?

is anyone using both review.cgi and rate.cgi ? i remember a big discussion about this in review.cgi and wonder if you can use both together easily or are lots of changes needed?
Quote Reply
Re: Launching in frameset In reply to
Ok.....

i got rate.cgi to sort of work... i think when installling review.cgi a line in links.cfg got deleted to the rates folder.

Anyway.. there is still a problem.. the data files are being created with the rate however when 'build all' is called they are not used. They remain and are not put into the links.db

What's up? anyone know?

Thanks for any help

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Launching in frameset In reply to
if you use the unmodded version of review.cgi.. you don't need rate.cgi..

i made a mod so you can use both..

jerry
Quote Reply
Re: Launching in frameset In reply to
I know that review can do everything that rate can but the reason i wanted to use rate is because i want the simple form to vote when someone clicks on a link. I know i can copy the review template and cut out the stuff i do not need however i will then have to validate each rating (i want to validate each review) if there was a way round this (review2.cgi ?? lol) then ok.

see what i was getting at?

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Launching in frameset In reply to
uhh... oh.. you can just put some tiny code inside of review.cgi to check if it has a review.. if not.. add directly to the review.db..

jerry
Quote Reply
Re: Launching in frameset In reply to
If you know what that 'tiny code' would be that would be awesome... Thanks so much for the help widgetz... i would have thought a few other people may want to use it.. ie have review.cgi, links in templates but a way to rate in this bit...

thanks for all everyone.

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Launching in frameset In reply to
Another little question..

If i need to make two frames with the &display=1 and &display=2 what do i need to add to site_html_templates to get the 2nd one?

I assume i edit

sub site_html_jump_display { my (%rec) = @_; &html_print_headers; print &load_template ('jump_display.html', { %rec, %globals });}

but not quite sure what i have to do. Any ideas?

do i need to make sub site_html_jump_display2 ???

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Launching in frameset In reply to
Well, I added everything, but when I click a link on a category page, all I get is a blank screen.

It doesn't show a second frame, and there's no content at all in what is currently shown.

Try any link on the following:
http://www.armynavy.com/Military_Surplus

Anyone know why?

Should I add something?

Thanks.

------------------
ARMYNAVY.COM
MilitarySurplus Ring









[This message has been edited by TrainedMonkey (edited December 20, 1999).]
Quote Reply
Re: Launching in frameset In reply to
whoa, I guess i finally did something ingenius, because adding a frame with a link back was really simple for me.

3 months ago i ran across the link Digital Pimp mentioned:
http://www.verysimple.com/scripts/frameit.html (great script)

Since it can call your Link Through the URL, all you have to do outside of the frame script is modify link.html in your templates:

CHANGE THE LINK IN LINK.HTML FROM:
Code:
<a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>">

TO THIS:
Code:
<a class="link" href="http://www.yourwebsite.com/cgi-bin/FrameIt.cgi?url=<%db_cgi_url%>/jump.cgi?ID=<%ID%>">

The only difference is you are calling the hyperlinks thru the FrameIt script, and LINKS still keeps an accurate track of every <%ID%>'s hits. :P

= Mr. Undies
Quote Reply
Re: Launching in frameset In reply to
I got it.

I had to move the body tags together in jump.cgi. Digital Pimp mentioned this way above.

Thanks for this mod.

------------------
ARMYNAVY.COM
MilitarySurplus Ring









[This message has been edited by TrainedMonkey (edited December 26, 1999).]
Quote Reply
Re: Launching in frameset In reply to
chmod.. there are problems with your way..

and that is simply..

1. the url is not encoded before you put it in the URL.. some browsers (older) and opera and LWP need the URL to be encoded..

and another difference is that you can't personalize the top frame to the link..

jerry

[This message has been edited by widgetz (edited December 29, 1999).]
Quote Reply
Re: Launching in frameset In reply to
Jerry,

My frameset works super for my purpose. But what do you mean about encoding the URL and why would I want to do that?

I still like my way the best! >

- Mr. Undies
Quote Reply
Re: Launching in frameset In reply to
Many thanks to Eliot & Digital Pimp for pointing me in the right direction. Smile

------------------
Quote Reply
Re: Launching in frameset In reply to
Blank Screen when you follow link

Just a tip. If you get a blank screen when you follow a link MAKE SURE that the <body> tags are inside the <frameset> tags.

It is in the above discussion but kinda hard to pick out. It took me weeks to figure it out (but then I'm programmingly challenged).

I don't want others to have to spend as much time as I did and I don't want Eliot or Widgetz to have to look at code....again...and...again! Smile

------------------
Quote Reply
Re: Launching in frameset<br> In reply to
I have installed the code for frameset and it works fine but one thing.

I added some code awhile back that had a function of a old mod call jumphack. It allowed people who added a link to my site to place code on their site, and it would give them a hit credit when one of there visitor click on my logo, or link. below is the code that worked. I have added this code to my Jump.cgi

$goto ?
print $in{'HM'} ? "Location: $build_root_url\n\n" : print "Location: $goto\n\n" :
&error ("Record not found ($in{$db_key})");

Now that I have added the following code for a frame set it does not work. here is the follow code that I added.
($goto) or &error ("Record not found ($in{$db_key})");
my (%rec) = &get_record ($in{$db_key});
print "Content-type: text/html\n\n";
print qq~<html>
<head><title>$rec{'Title'}</title></head>
<frameset rows="*,50">
<frame name="top" src="$goto" marginwidth="0" marginheight="0" scrolling="auto" frameborder="no">
<frame name="bottom" src="$build_detail_url/$rec{$db_key}$build_extension" marginwidth="0" marginheight="0" scrolling="no" frameborder="no">
<noframes>
<body>~;
$goto ?
print $in{'HM'} ? "Location: $build_root_url\n\n" : print "Location: $goto\n\n" :
&error ("Record not found ($in{$db_key})");
print qq~</body>
</noframes>
</frameset>
</html>~;
}

When the users click on the code from another site to come to my site, It takes them to the frameset not to my site.

Any ideas, I am sure it is easy, As long as I explained it well enough.

Thanks if you can help.

John Schultz
IncomeMax.com
Over 5,000 Money Making Prorams.




Quote Reply
Re: Launching in frameset<br> In reply to
Use two copies of the jump.cgi script...

1) One for the Hits and call it something like inhits.cgi or keep it the same name of jump.cgi as to not confuse your Link Owners.

2) Then use the frameset hacked version and rename it something like go.cgi and then update your links in your template files.

Regards,

Eliot Lee

Quote Reply
Re: Launching in frameset<br> In reply to
Thank You.

I never thought of that.

Thanks alot

John

> > > >