Gossamer Forum
Home : Products : Links 2.0 : Customization :

Widgetz/Eliot:Your top sites in category mod.

(Page 2 of 2)
> >
Quote Reply
Re: [Paul] Widgetz/Eliot:Your top sites in category mod. In reply to
He may also need to display HASH & ARRAY too, so I recommend Dumper anyway.
Or do you think a copy-paste isn't enough simple? And then changing variable name and @ for arrays or % for hashes?
Do you think it's difficult?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Widgetz/Eliot:Your top sites in category mod. In reply to
wow!

looks problem solved.

i just add

foreach (keys %links) {
next unless ($_ =~ m,$category,);
push (@topx, @{$links{$_}});
}

above

$db_sort_links = $original;

in sub build_top_x

and now its buld a last added in Affliates subcategories.



but!

when it build my C_and_C++ category scripts has error

and say:

Building Category: C_and_C++
Subcategories: 0
Links: 0
Directory: /html/pop/C_and_C++
Filename : /html/pop/C_and_C++/index.html
CGI ERROR==========================================Error Message : fatal error: /C_and_C++/: nested *?+ in regexp at c:/cgi-bin/pop/admin/nph-build.cgi line 1709.Script Location : c:/cgi-bin/pop/admin/nph-build.cgiPerl Version : 5.00503





foreach (keys %links) {
next unless ($_ =~ m,$category,); <<<<<<<<<<<<<<< the 1709 line in sub build_top_x
push (@topx, @{$links{$_}});
}



how to solve it to build fine my C_and_C++ category?

please help
Quote Reply
Re: [roman ch.] Widgetz/Eliot:Your top sites in category mod. In reply to
Try changing:

m,$category,

to

m,\Q$category,
Quote Reply
Re: [Paul] Widgetz/Eliot:Your top sites in category mod. In reply to
all working fine, whanks for help guys!
> >