Gossamer Forum
Home : Products : Gossamer Links : Discussions :

<%editors%> formating

Quote Reply
<%editors%> formating
Hi

How do you change <%editors%> formating to displaythe editors names in a comma separated list : editor1, editor2...
not in a list format as it is now?

Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] <%editors%> formating In reply to
Hi
Sorry to insist here .. but realy need help on this one..
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] <%editors%> formating In reply to
Look in Links/Utils.pm, about line 43 in sub load_editors

The code you need to change is
Code:
my $output = '<ul>';
while (my $user = $sth->fetchrow_hashref) {
$output .= qq~
<li>$user->{Username}
~;
}
$output .= "</ul>";

Then look in your category template, and (if you need to) edit
Code:
<ul><%editors%></ul>


My solution here is
Code:
my $output = '';
while (my $user = $sth->fetchrow_hashref) {
$output .= qq~
$user->{Username}&nbsp;
~;
}
return { editors => $output };
and
Code:
<UL><LI><SMALL><%editors%></SMALL></LI></UL>

Last edited by:

YoYoYoYo: Oct 10, 2001, 10:53 PM
Quote Reply
Re: [YoYoYoYo] <%editors%> formating In reply to
Worked great

Thanks
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory