Gossamer Forum
Quote Reply
[Plugin] Ask_Frames
Not really much to this plugin, its basically a LSQL version of my Links 2 'Ace Frames' mod. It will allow you to redirect your users to the site, whilst still calling jump.cgi. It has the option of a 'remove frame' link, and room in the top banner for and even a logo Tongue Customize to your hearts content, as the frames and banner HTML is defined in the templates.

Well, this is a beta, but enjoy Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
Could I ask why jump2.cgi is compiling GT::SQL, Links::Plugins and Links::User::Jump, yet uses none of them.

You are also importing $DB $USER and $CFG which also aren't used.

Also if the p parameter is defined but is not "banner" I'll get an internal server error I think as you have:

Code:
if ($p eq "banner") { &banner; }

....so if p = banner it will be ok...then:

Code:
if (!$p) {
print Links::SiteHTML::display('jump_frames', { ID => $ID });
}

....so if p is empty it will be ok, but that's it. Anything else will barf.

Last edited by:

Paul: Oct 10, 2002, 3:35 AM
Quote Reply
Re: [Paul] [Plugin] Ask_Frames In reply to
As I said, its a beta Wink I got quite a few more features I wanna add...like checking ID is valid, removing excess code, making it more thorough etc...

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Paul] [Plugin] Ask_Frames In reply to
Paul...I don't quite understand why you think it will barf is $p is defined, for example, as 'test'. It will simply;

Is $p = to banner?
No
Call code below

Or, if $p is defined as 'banner';

Is $p = to banner?
Yes
Call &banner.

I don't see the problem with that code Unsure

BTW: I have added some extra code, that will check if ID exists....

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
Ok, here is the newest version. Extra checking, and unused code removed....

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
Quote:
Paul...I don't quite understand why you think it will barf is $p is defined, for example, as 'test'. It will simply;

Is $p = to banner?
No
Call code below

Or, if $p is defined as 'banner';

Is $p = to banner?
Yes
Call &banner.

I don't see the problem with that code

No that's not how it will work.

Here is the code:

Code:
# decide if we wanna show the banner or not...
if ($p eq "banner") { &banner; }


# if we dont have $p defined, then we must wanna show the FRAMEs
# page, so do this here...
# if we only get the ID, then it must be from a category page...
if (!$p) {
print Links::SiteHTML::display('jump_frames', { ID => $ID });
}

That is saying:

if $p equals banner call &banner

if $p doesn't exist print the jump_frames template.

So what if p doesn't equal banner but still exists?
Quote Reply
Re: [Paul] [Plugin] Ask_Frames In reply to
Ahhh..I see what you mean. I'll get that fixed up...

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
OK..the plugin is now available in the download area...

Enjoy Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
In Reply To:
Not really much to this plugin, its basically a LSQL version of my Links 2 'Ace Frames' mod. It will allow you to redirect your users to the site, whilst still calling jump.cgi. It has the option of a 'remove frame' link, and room in the top banner for and even a logo Tongue Customize to your hearts content, as the frames and banner HTML is defined in the templates.

Well, this is a beta, but enjoy Smile



I Andy,

Can you give a bit more info about what this plugin does for those of us that haven't seen your Links 2 'Ace Frames' mod? Without having seen it "it redirects users to the site whilst still calling jump.cgi" says that it produces exactly the same results as if you didn't have it installed! Smile

cheers,
r.
Quote Reply
Re: [ryel01] [Plugin] Ask_Frames In reply to
LOL..no problem Wink

Basically, it opens up a page, like;

Code:
------------------------------
| banner |
------------------------------
| |
| |
| |
| page |
| |
| |
| |
------------------------------

'page' will call jump.cgi, so we can still track hits etc.
'banner' will be your template for a banner. As said earlier, it supports a 'remove frame' option, as well as a 'Home' link (as well as globals etc).

Thats pretty much it....basic, but a great way to keep visitors on your site, and also get a little more banner exposure Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
That's great Andy - thanks! It sounds good.

Before you replied I found a description of it in the admin plugin download area and posted it above... but then I saw your picture! - nice touch.

Smile

thanks again!

r
Quote Reply
Re: [ryel01] [Plugin] Ask_Frames In reply to
BUG FIX: version 1.2

I've updated the plugin to include the bug fix, and it should all work fine now.

What was the bug? It was in the Install.pm file, where the error calling was not being run correctly.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
Your installer isn't updating the perl path, "use lib" path and Links::init() path so I expect it won't work at all.
Quote Reply
Re: [Paul] [Plugin] Ask_Frames In reply to
Mmm...good point. Maybe it has been lucky the no-oe was using a different path to Perl, or an NT server up til now. I'll get that done now...

Thanks for pointing it out Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
I expect that no-one has downloaded the plugin (or have manually fixed it) because the server they are using is irrelevant - it would fail on all servers due to the missing paths.

Last edited by:

Paul: Nov 8, 2002, 4:11 AM
Quote Reply
Re: [Paul] [Plugin] Ask_Frames In reply to
Nope, that is untrue. My mate at herculinks.com had it working fine, on his own!

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
Ok, the updated version has been uploaded to the download area...

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
Quote:
Nope, that is untrue. My mate at herculinks.com had it working fine, on his own!

Well maybe he has the magic touch. When I installed it the path to perl was wrong and two vital paths were missing which I am 100% sure would cause a fatal error.

Nevermind at least you updated it.

Last edited by:

Paul: Nov 8, 2002, 4:27 AM
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
Hi

Nice plugin andy

In jump_banner.html all site variables are available

if I add <%Title%> I have the following error message : Unknown Tag: 'Title'

Is it possible to have all the link variables? Except the <%ID%> that works fine...

For exemple I would like to add the name and the actual rating of the website...


ThanksWink



FMP
Quote Reply
Re: [fmp] [Plugin] Ask_Frames In reply to
Try adding <%GT::Template::dump%> in the jump_banner.html template, and try again. It will show you all the variables/tags available in that template.

Glad you like the plugin Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [Plugin] Ask_Frames In reply to
Txs for your answerWink

so I add <%GT::Template::dump%> in the jump_banner.html template :

I have all the templates globals available but none the links variables (title, add_date, Hits, votes...)Unsure



Any idea about the way to get these variables.?



txs

FMP
Quote Reply
Re: [fmp] [Plugin] Ask_Frames In reply to
Hi,

Has anyone gotten an answer about using other tags, such as <%Title%> in the frame page?

Thanks,
George
Quote Reply
Re: [macbethgr] [Plugin] Ask_Frames In reply to
I'll look into this...but I'm very busy at the moment with custom work Frown

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [macbethgr] [Plugin] Ask_Frames In reply to
Not sure how Andy's plugin works but I had a similar frame on my site (until I found lots of problems with cookies and IE6) and passed the title via the link:

http://www.mydomain.com/...ID=1&Title=Yahoo

Then you need to read the inputs into frame.cgi and pass them to the top frame.

Hope that makes sense.
Quote Reply
Re: [afinlr] [Plugin] Ask_Frames In reply to
Edited; just found it. I wan to pass something like inside=yes to show without a frame,
so i changed jump.pm

if ($CFG->{framed_jump} and not ($IN->param('inside')) and not ($CFG->{build_detailed} and $IN->param('Detailed'))) {

Last edited by:

Robert: Aug 25, 2006, 9:04 AM