Gossamer Forum
Quote Reply
Andys MyFavorites Plugin
Andy,


Unable to use the following in myfaves_link.html :

<%if Review_Count%>
&nbsp;<a href="<%db_cgi_url%>/review.cgi?ID=<%ID%>">Reviews</a> (<%Review_Count%>)
<%endif%>

Shows Nothing.

Help!!!
Quote Reply
Re: [rascal] Andys MyFavorites Plugin In reply to
Hi,

This tag is not available in MyFaves. However, you could try a new global.

Call it "load_review_count", and put <%load_review_count($ID)%>

..at the very top of myfave_link.html.

Then, make this new global;

Code:
sub {

my $ID = $_[0];
my $review_count = $DB->table('Reviews')->count( { Review_LinkID => $ID } );
return { Review_Count => $review_count };

}

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] Andys MyFavorites Plugin In reply to
Thanks for responding, I get the following error:

Error: Variable 'load_review_count' is not a code reference
Quote Reply
Re: [rascal] Andys MyFavorites Plugin In reply to
Wink

Found the Solution, all is needed is the following at the very top of myfaves_link.html Template.

<%Links::Utils::load_reviews%>
Quote Reply
Re: [rascal] Andys MyFavorites Plugin In reply to
A new version of MyFaves is on the way.

MyFavLinks.

It's changed since it's announcement, but it adds features, allows for custom lists, etc.

Still need a few more people to play with it before it gets released.

The current version will import an existing MyFaves installation.

There is no import (or support) for cookies, it's an SQL version only.

If you have a MyLinks_DB install you want to migrate, I can probably hook up the import.

I'm adding in admin options, such as easy blocking of users lists, and such. Since this is a precursor for the wishlist program, allowing user lists to be "viewable" was important, but allowing the admin to block them is important too ;)


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.