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

Has_New_Links OR Has_Changed_Links

Quote Reply
Has_New_Links OR Has_Changed_Links
How do I also add the following:

Has_New_Links Yes OR Has_Changed_Links eq Yes


$description .= qq| new/updated | if ($subcat->{Has_New_Links} eq 'Yes');

Cant seem to get this code right. Mad
Quote Reply
Re: [Eraser] Has_New_Links OR Has_Changed_Links In reply to
Hi,

Could you explain a bit more what you are trying to do? Also, a bit more of the global (if thats what you're using =)) would help - as I'm not sure the $subcat hashref is coming from <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] Has_New_Links OR Has_Changed_Links In reply to
Thanks Andy,

After a bit of thought, I coded this and it seem to be OK:

$description .= qq| new/updated | if ($subcat->{Has_New_Links} eq 'Yes') or ($subcat->{Has_Changed_Links} eq 'Yes');
Quote Reply
Re: [Eraser] Has_New_Links OR Has_Changed_Links In reply to
Hi,

Yeah that should be fine. I would personally have done:

Code:
if ($subcat->{Has_New_Links} eq 'Yes' || $subcat->{Has_Changed_Links} eq 'Yes') {
$description .= qq| new/updated |
}

:)

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] Has_New_Links OR Has_Changed_Links In reply to
Yep, nice alternative Cool

Cheers.

~ ERASER


Free JavaScripts @ Insight Eye