Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Edit Template Globals manually

Quote Reply
Edit Template Globals manually
Hello!

In a stupid and incomprehensible way I managed to ruin "Template Globals" file.

The point is that I can not delete one part - I mistakenly entered "Description" in "Code" field.

Where exactly is the file that I need to rewrite manually?

Many thanks in advance.
Quote Reply
Re: [katakombe] Edit Template Globals manually In reply to
Hi katakombe,

Code:
Admin folder/templates/luna/local/globals.txt

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [eupos] Edit Template Globals manually In reply to
Hello and thanks!

I already tried it before but the data are not there Frown

Any other suggestions?
Quote Reply
Re: [katakombe] Edit Template Globals manually In reply to
Hi,

The other place is:

Admin folder/templates/luna/globals.txt

If you use custom template set you should change 'luna' with your template name.

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [eupos] Edit Template Globals manually In reply to
Hello again!

As I said, I tried everything including what you're saying now but it's not there ... BlushCrazy

I really am totally confused ...

Anyhow, thanks ..
Quote Reply
Re: [katakombe] Edit Template Globals manually In reply to
Mmm if you've overwritten it, I'm afraid there isn't much you can do (apart from restoring it from a server backup, if you have one of those). This is why its always important to keep backups Whistle

Is it just one global that got over-written, or the whole file? Cos if its just 1 global, lemme know whats its meant to be doing and maybe I can find/write it again for ya =)

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: [katakombe] Edit Template Globals manually In reply to
Well, can't think of anything else then, these are the only two locations where temple globals are being held per each template set :\

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [Andy] Edit Template Globals manually In reply to
Hello Andy!

Please see the attached file CrazyMad

Is there any help?

Thanks in advance ...
Quote Reply
Re: [eupos] Edit Template Globals manually In reply to
eupos wrote:
Well, can't think of anything else then, these are the only two locations where temple globals are being held per each template set :\

No problem, many thanks Smile
Quote Reply
Re: [katakombe] Edit Template Globals manually In reply to
Can you email me your file? Kinda looks like a ' was broken somewhere, which is throwing the whole file off.

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] Edit Template Globals manually In reply to
Of course i can - but which one?

Do you want me to send you admin username / password?

Thanks ...
Quote Reply
Re: [katakombe] Edit Template Globals manually In reply to
Hi,

Ideally I would need both /admin/templates/local/globals.txt and /admin/templates/globals.txt (if you are gonna send them to me)

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] Edit Template Globals manually In reply to
Andy wrote:
Hi,

Ideally I would need both /admin/templates/local/globals.txt and /admin/templates/globals.txt (if you are gonna send them to me)

Cheers

There is no such folders/files - are you sure about paths?
Quote Reply
Re: [katakombe] Edit Template Globals manually In reply to
Sorry, /admin/templates/luna/globals.txt and /admin/templates/luna/local/globals.txt :)

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] Edit Template Globals manually In reply to
PM sent, I see now myself maybe what went wrong Crazy

Thanks
Quote Reply
Re: [Andy] Edit Template Globals manually In reply to
Can you please try removing this bit from your /luna/local/globals.txt file (lines 12-15)

Code:
'sub { my $tags = GT::Template->tags; my @words = split(/\s+/,$tags->{Title}); my @links; foreach (@words){ s/^\s*//sg; s/[\.,]$//sg; next if length($_)<4; push(@links,qq|<a href="$CFG->{db_cgi_url}/search.cgi?query=$_">$_</a>|); } return join(" - ",@links); } total_number_of_hits' => 'sub { # show total number of hits (without commas - 123456)
my ($total) = $DB->table(\'Links\')->select([\'SUM(Hits)\'])->fetchrow_array;
return $total;
}',

That seems to be the problem. Hopefully that will sort you out :)

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] Edit Template Globals manually In reply to
Ha ha ha ... of course CoolBlush

I have seen myself ... I apologize for the alarm ..

The point is that I worked all day simultaneously on another project which did not allow me 100% concentration Whistle

Once again, many thanks and Happy New Year to all GT members here!
Quote Reply
Re: [katakombe] Edit Template Globals manually In reply to
hehe no problem - I've done a few things like that myself ;)

Happy new year to you as well!

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!