Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[New Plugin] Count_Impressions

(Page 2 of 2)
> >
Quote Reply
Re: [rayhne] [New Plugin] Count_Impressions In reply to
That is really weird. Would you mind me having a look at it from a fresh install? (i.e access to your admin panel). If not, then thats fine Wink

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.] [New Plugin] Count_Impressions In reply to
Im guessing its something to do with the fact that you never require GT::Config so $global is undefined apart from the new one you added.

I may be wrong but I didn't see:

require GT::Config;

OR

use GT::Config;

...anywhere Tongue

(Although it should spew an error).

Last edited by:

Paul: May 6, 2002, 12:24 PM
Quote Reply
Re: [Paul] [New Plugin] Count_Impressions In reply to
Yeah, you could be right. Its not in there, other than in the;

Code:
my $template_set = $CFG->{build_default_tpl};
my $globals = GT::Config->load($CFG->{admin_root_path} . "/templates/$template_set/globals.txt", { inheritance => 1, compile_subs => 'Links', local => 1, cache => 1 });
$globals->{track_impressions} = "$code_in";
$globals->save;

I better add that in Tongue

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: [rayhne] [New Plugin] Count_Impressions In reply to
Ok, I've added the use GT::Config part in now. The updated version can be downloaded from the Links SQL admin panel.

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: [rayhne] [New Plugin] Count_Impressions In reply to
Hi,

What beta version are you using? There may be issues with GT::Config in the variable parsing on beta versions of 2.1.0. If you give me the exact version I can check.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] [New Plugin] Count_Impressions In reply to
Where can I look to see what Beta version it is? All I see is 2.1.0.

I plan on updating to final but have to wait until I get my computer back and am not using a borrowed one. :(
> >