[vhffs-dev] [1301] Quick (but not dirty) tagsearch.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1301
Author:   beuss
Date:     2008-10-31 08:09:05 +0100 (Fri, 31 Oct 2008)

Log Message:
-----------
Quick (but not dirty) tagsearch.

Modified Paths:
--------------
    branches/vhffs-design/vhffs-public/groupsearch.pl
    branches/vhffs-design/vhffs-public/templates/parts/tags-cloud.tt


Modified: branches/vhffs-design/vhffs-public/groupsearch.pl
===================================================================
--- branches/vhffs-design/vhffs-public/groupsearch.pl	2008-10-31 07:01:02 UTC (rev 1300)
+++ branches/vhffs-design/vhffs-public/groupsearch.pl	2008-10-31 07:09:05 UTC (rev 1301)
@@ -63,8 +63,11 @@
 my @excluded_tags_ids = map{ int($_); } $cgi->param('excluded_tags');
 
 my $groupname = $cgi->param('groupname');
+$groupname = '' unless(defined $groupname);		# Direct tag click brings us here without  without groupname ...
 my $description = $cgi->param('description');
+$description = '' unless(defined $description);	# ... and without description
 
+
 # current page
 my $page = defined($cgi->param('page')) ? int($cgi->param('page')) : 1;
 

Modified: branches/vhffs-design/vhffs-public/templates/parts/tags-cloud.tt
===================================================================
--- branches/vhffs-design/vhffs-public/templates/parts/tags-cloud.tt	2008-10-31 07:01:02 UTC (rev 1300)
+++ branches/vhffs-design/vhffs-public/templates/parts/tags-cloud.tt	2008-10-31 07:09:05 UTC (rev 1301)
@@ -2,22 +2,22 @@
 <div class="menu tags-menu">
 	<p>
 [% FOREACH t = popular_tags %]
-	<a href="/tagsearch.pl?tag=[% t.tag_id %]" class="tag[%t.weight%] ajax">
+	<a href="/groupsearch.pl?included_tags=[% t.tag_id %]" class="tag[%t.weight%] ajax">
 	[<span title="[% t.category_description | html %]">[% t.category_label | html %]</span>::<span title="[% t.tag_description | html %]">[% t.tag_label | html %]</span>] 
 	</a>
 [% END %]
 	</p>
-	<p class="more-tags"><a href="?page=public-search">[% 'More...' | i18n%]</a></p>
+	<p class="more-tags"><a href="/groupsearch_form.pl" class="ajax">[% 'More...' | i18n%]</a></p>
 </div>
 
 <h1>[% 'Random tags' | i18n %]</h1>
 <div class="menu tags-menu">
 	<p>
 [% FOREACH t = random_tags %]
-	<a href="/tagsearch.pl?tag=[% t.tag_id %]" class="tag[%t.weight%] ajax">
+	<a href="/groupsearch.pl?included_tags" class="tag[%t.weight%] ajax">
 	[<span title="[% t.category_description | html %]">[% t.category_label | html %]</span>::<span title="[% t.tag_description | html %]">[% t.tag_label | html %]</span>]
 	</a>
 [% END %]
 	</p>
-	<p class="more-tags"><a href="?page=public-search">[% 'More...' | i18n%]</a></p>
+	<p class="more-tags"><a href="/groupsearch_form.pl" class="ajax">[% 'More...' | i18n%]</a></p>
 </div>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/