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

[ FREE PLUGIN ] ULTRAGlobals - Collection of Globals and routines

(Page 3 of 10)
> > > >
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Hi Andy:

Doesn't seem to. I'll try it again, but when a user tries to Modify a listing it doesn't populate the checkboxes (works fine in add.cgi).

Regards,

Clint
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] [ ULTRAGlobals ] Ideas please In reply to
Mmm.. I'll have a look.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Clint] [ ULTRAGlobals ] Ideas please In reply to
Hi,

Ok, think I've nailed the problem.

Give version 1.8.1 a go, available from our site.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Hi Andy:

You sure have!

Works like a charm. This is really handy when you add new values to a column .... don't have to update all the pages ...

Thanks...


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] [ ULTRAGlobals ] Ideas please In reply to
Hi,

Quote:
Works like a charm. This is really handy when you add new values to a column .... don't have to update all the pages ...

Yeah, originally I wrote part of the code for my SuggestChanges plugin - but decided to make it into a global, as I needed to use it on my include_form.html - and get peeved off with having to update loads of SELECT and CHECKBOX fields =)

There were a coupe of globals around that used GT::SQL::HTML to format these fields, but I was never happy with the output (they didn't let you assign a class, or really have much control over the output).

Anyway - glad its working now <G>

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Hi,

I've just released version 1.8.2, which has a new function in:

Code:
<%Plugins::ULTRAGlobals::Load_Reviews_Advanced(LIMIT,CAT_ID)%>

This lets you either get the 10 latest version from the whole of your site; or if a CAT_ID is specified - it will only get reviews from the category you passed in, and any of its sub-categories.

The new version is available from our site:

http://www.ultranerds.com/...s/ULTRAGlobals_L217/

Enjoy =)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Andy wrote:
Hi,

Heres version 1.4 <G> (getting through the version numbers - think I may have to start using stuff like 1.4.1, 1.4.2, etc Blush)

This version has the following added to it:

Latest_New_Links()

Cheers

Have problem with this global. When they are displayed they are all have "new, updated, popular" icons besides them.

Also, I have detailed page on but this global doesn't recognize it.

Second thing, this global make problem when using with Count_impression because it uses link.html template so whenever you use this global, every link you displayed have Count_impression increased.

UnReal Network

Last edited by:

deadroot: Feb 21, 2008, 11:50 AM
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Andy wrote:
Hi,

Version 1.1 is attached now :)

This includes 4 more globals:

1) Load_Category_Dropdown() - create a SELECT box of your categories, indented - and with option of showing Number_of_Links too.
2) Last_Searched_Words() - global for loading the most recent searched queries (based on the built in searchlogger table)
3) Top_Search_Words() - global for loading the top search queries (based on the built in searchlogger table)
4) NL_2_BR() - converts new line breaks into <br /> tags, for formatting in HTML.

All of these are documented in the "Readme" section too - so should make more sense once you read that :)

Cheers

Only suggestion. Use escape_html when displaying <%sloq_query%> from Last_Searched_Words or Top_Search_Words. It can be really nasty if some wannabe hacker find your site ;)

UnReal Network
Quote Reply
Re: [deadroot] [ ULTRAGlobals ] Ideas please In reply to
Quote:
Have problem with this global. When they are displayed they are all have "new, updated, popular" icons besides them.

I've fixed that up - will put up the new version in a minute :)

Quote:
Second thing, this global make problem when using with Count_impression because it uses link.html template so whenever you use this global, every link you displayed have Count_impression increased.

You need to tell Count_Impressions that you don't want to count. You can do this with something like:

Code:
<%Plugins::ULTRAGlobals::Latest_New_Links(5)%>
<%if Latest_Links_Loop.length%>
<%loop Latest_Links_Loop%>
<%set dont_increase_count = 1%>
<%include link.html%>
<%endloop%>
<%endif%>

Then, in link.html ... where you have:

Code:
<%Plugins::Count_Impressions::Count($ID)%>

..change it to:

Code:
<%if dont_increase_count < 1%>
<%Plugins::Count_Impressions::Count($ID)%>
<%endif%>

That should do the trick =)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [deadroot] [ ULTRAGlobals ] Ideas please In reply to
Quote:
Only suggestion. Use escape_html when displaying <%sloq_query%> from Last_Searched_Words or Top_Search_Words. It can be really nasty if some wannabe hacker find your site ;)

Good point - I've updated those template calls to:

<li><a href="<%config.db_cgi_url%>/search.cgi?query=<%url_encode($slog_query)%>"><%escape_html($slog_query)%></a></li>

Cos ideally the URL should also be encoded :)

I've just uploaded version 1.8.5, which includes the bug fix of the Lastest_New_Links() function Smile (get it here)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Andy wrote:

Good point - I've updated those template calls to:

<li><a href="<%config.db_cgi_url%>/search.cgi?query=<%url_encode($slog_query)%>"><%escape_html($slog_query)%></a></li>

Cos ideally the URL should also be encoded :)

I've just uploaded version 1.8.5, which includes the bug fix of the Lastest_New_Links() function Smile (get it here)

Cheers

I don't think url_encode is valide code (Got error Error: Variable 'url_encode' is not a code reference).

Also, this doesn't work <%escape_html($slog_query)%>. I'm using <%escape_html slog_query%>

Regards.

UnReal Network

Last edited by:

deadroot: Feb 22, 2008, 5:16 AM
Quote Reply
Re: [deadroot] [ ULTRAGlobals ] Ideas please In reply to
Ooops, its escape() Blush

I'll update that.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Ok, Readme is updated =) I haven't bothered changing the version number, as its only a Readme update Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Andy wrote:

Code:
<%Plugins::ULTRAGlobals::Latest_New_Links(5)%>
<%if Latest_Links_Loop.length%>
<%loop Latest_Links_Loop%>
<%set dont_increase_count = 1%>
<%include link.html%>
<%endloop%>
<%endif%>

Then, in link.html ... where you have:

Code:
<%Plugins::Count_Impressions::Count($ID)%>

..change it to:

Code:
<%if dont_increase_count < 1%>
<%Plugins::Count_Impressions::Count($ID)%>
<%endif%>

That should do the trick =)

Cheers

Ok. It's working. But is it possible that when displaying Latest_New_Links, link goes to detailed page, and not jump.cgi.

Regards.

UnReal Network
Quote Reply
Re: [deadroot] [ ULTRAGlobals ] Ideas please In reply to
Hi,

Sure.

Just change:

Code:
sub Latest_New_Links {

my $table = $DB->table('Links');
$table->select_options ('ORDER BY ID DESC', "LIMIT $_[0]");

my $sth = $table->select( { isNew => 'Yes', isValidated => 'Yes' }) || die $GT::SQL::error;
my @output;
while (my $hit = $sth->fetchrow_hashref) {

if ($hit->{isNew} eq "Yes") { $hit->{isNew} = 1; } else { $hit->{isNew} = 0; }
if ($hit->{isPopular} eq "Yes") { $hit->{isPopular} = 1; } else { $hit->{isPopular} = 0; }
if ($hit->{isChanged} eq "Yes") { $hit->{isChanged} = 1; } else { $hit->{isChanged} = 0; }

push (@output, $hit);
}
return { Latest_Links_Loop => \@output };

}

..to:

Code:
sub Latest_New_Links {

my $table = $DB->table('Links');
$table->select_options ('ORDER BY ID DESC', "LIMIT $_[0]");

my $sth = $table->select( { isNew => 'Yes', isValidated => 'Yes' }) || die $GT::SQL::error;
my @output;
while (my $hit = $sth->fetchrow_hashref) {

if ($hit->{isNew} eq "Yes") { $hit->{isNew} = 1; } else { $hit->{isNew} = 0; }
if ($hit->{isPopular} eq "Yes") { $hit->{isPopular} = 1; } else { $hit->{isPopular} = 0; }
if ($hit->{isChanged} eq "Yes") { $hit->{isChanged} = 1; } else { $hit->{isChanged} = 0; }

if ($CFG->{build_detailed}) {
$hit->{detailed_url} = $CFG->{build_root_url} . "/" . $DB->table('Links')->detailed_url( $hit->{ID} );
}


push (@output, $hit);
}
return { Latest_Links_Loop => \@output };

}

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

Last edited by:

Andy: Feb 22, 2008, 6:01 AM
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Andy wrote:
Hi,


if ($CFG->[build_detailed}) {
$link->{detailed_url} = $CFG->{build_root_url} . "/" . $DB->table('Links')->detailed_url( $link->{ID} );
}


push (@output, $hit);
}
return { Latest_Links_Loop => \@output };

}[/code]
Cheers

if ($CFG->[build_detailed}) (bolded should be { ,

$link->{detailed_url} = $CFG->{build_root_url} . "/" . $DB->table('Links')->detailed_url( $link->{ID} ); (bolded should be $hit

Just for other users that want this Wink

Regards.

UnReal Network
Quote Reply
Re: [deadroot] [ ULTRAGlobals ] Ideas please In reply to
Hi,

Whoops, I've updated my above post. Serves me right for posting too quick :P

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [DeadMan] [ ULTRAGlobals ] Ideas please In reply to
hi
if ($CFG->{build_detailed}) {
$hit->{detailed_url} = $CFG->{build_root_url} . "/" . $DB->table('Links')->detailed_url( $hit->{ID} );
}



on sub Latest_New_Links

$CFG->{build_root_url} sould be $CFG->{build_detail_url}
Quote Reply
Re: [dujardin] [ ULTRAGlobals ] Ideas please In reply to
Hi,

Quote:
on sub Latest_New_Links

$CFG->{build_root_url} sould be $CFG->{build_detail_url}

Thanks for the heads up. I've added that fix to the new version (1.9.0).

You can get this from:

http://www.ultranerds.com/...s/ULTRAGlobals_L217/

This new version also now includes:

See_If_User_Has_Reviews

Called with:

Code:
<%Plugins::ULTRAGlobals::See_If_User_Has_Reviews($LinkOwner)%>
<%if review_count_num > 0%>
<a href="<%config.db_cgi_url%>/review.cgi?username=<%LinkOwner%>">Reviews</a>
<%endif%>

This is per a request here: http://www.gossamer-threads.com/...?post=300959#p300959

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Hi,

Seeing as I was working on this plugin, I thought I'd add another function <G>

Version 2.0 is now available from our site.

This has a new function Edit_Title_Full_Name

What this is aimed at, is making your title read better for both users, and search engines.

Heres my favorite example:

Code:
<%if CatDepth < 1%>
<%Name%>
<%else%>
<%Name%> - <%Plugins::ULTRAGlobals::Edit_Title_Full_Name($Full_Name,'reverse','&gt;','1')%>
<%endif%>

This would change:

Quote:
Computers/Internet/Buying

..to:

Quote:
Buying - Internet > Computers

The clever bit, is that if you are only in "Computers" (i.e 1 level deep), it would just show:

Quote:
Computers

.. and not run the plugin, otherwise it would come out like

Quote:
Computers -

..which looks rubbish =)

Anyway, Enjoy =) Its explained in a lot more detail on the Plugin Readme.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Hi,

I've set this up on Ultranerds, so you can see the new title reformatting global in action =)

http://www.ultranerds.com/...L_Plugins/index.html

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
Hi Andy
When i'm using top search global on the home page
i have got this error
i'm using 3.2.0

Code:
<a href="http://localhost/cgi-bin/search.cgi?query=Error: Variable 'escape' is not a code reference">Unknown Tag: &#039;($slog_query)&#039;</a></li>

thx for this nice plugins
Quote Reply
Re: [dujardin] [ ULTRAGlobals ] Ideas please In reply to
Hi,

What happens if you use:

Code:
<li><a href="<%config.db_cgi_url%>/search.cgi?query=<%GT::CGI::escape($slog_query)%>"><%GT::CGI::escape_html($slog_query)%></a></li>

?

Quote:
thx for this nice plugins

No problem =)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] [ ULTRAGlobals ] Ideas please In reply to
this part:
search.cgi?query=<%GT::CGI::escape($slog_query)%>

OK :)

this part
<%GT::CGI::escape_html($slog_query)%>

NOK

Error:
Code:
Error: Unable to load module 'GT::CGI':Error: No subroutine 'GT::CGI::escape_html' in 'GT/CGI.pm'
Quote Reply
Re: [dujardin] [ ULTRAGlobals ] Ideas please In reply to
HI,

Sorry, it should be <%GT::CGI::html_escape($slog_query)%> - not escape_html :P

I'll get it fixed in the Readme.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
> > > >