Gossamer Forum
Home : Products : Gossamer Links : Discussions :

URLs in Last Search Words

Quote Reply
URLs in Last Search Words
Hi,
someone or perhaps some robots are putting their URL in my glinks search field.

I'm showing the last search words with this global.
Code:
sub {
my ($output,$db,$sth);
my $db = $DB->table('SearchLogs');
$db->select_options ('ORDER BY slog_last DESC', 'LIMIT 10');
$sth = $db->select;
Unfortunately these URLs are shown, with this global
Is there a way to stop printing out thes URLs or do I have to remove this global?

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] URLs in Last Search Words In reply to
Hi,

Whats the whole global? Should be possible to filter 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] URLs in Last Search Words In reply to
Hi Andy,
in fact the whole global is this
<%Plugins::ULTRAGlobals::Last_Searched_Words('10')%>

I moved to your Ultra Globals ;-)

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] URLs in Last Search Words In reply to
Hi,

Ok, in that case - without editing the .pm file, you could just put this in the template "loop" for the search words:

Code:
<%if slog_query contains 'http://'%>
<%-- dont bother showing --%>
<%else%>
..show ok
<%endif%>

Hope that helps.

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] URLs in Last Search Words In reply to
Or more logically....

Code:
<%unless slog_query contains 'http://'%>
..show ok
<%endif%>

....but depending on the way it is displayed this may cause empty table rows etc.

Last edited by:

Wychwood: May 3, 2008, 1:38 AM
Quote Reply
Re: [Wychwood] URLs in Last Search Words In reply to
Hi,

Quote:
Or more logically.... /

True =) Can you tell its early on in the day? :P LOL

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: [Matthias70] URLs in Last Search Words In reply to
Hi,

I've just uploaded version 2.3.2 of ULTRAGlobals - this has the URL's in search logs bug fixed :) (it will only get search queries, WITHOUT http:// in Smile)

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] URLs in Last Search Words In reply to
Hi Andy,
the new Ultra globals prints out an error :-(


Code:
slog_query (18898): Unknown method 'Condition' called at /www/htdocs/cgi-bin/admin/Plugins/ULTRAGlobals.pm line 943.

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] URLs in Last Search Words In reply to
Hi,

Sorry about that - please try the new version (same version number, just to confuse you <G>)

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] URLs in Last Search Words In reply to
@ Wychwood, thanks for your hint

Hi Andy,
the problem is fixed. Ultra Globals working fine again and URLs in the last search global are not displayed anymore. Great.

Thanks

Matthias
gpaed.de
Post deleted by nir In reply to