Gossamer Forum
Home : Products : Gossamer Links : Discussions :

CheckBox Select Question

Quote Reply
CheckBox Select Question
Sorry to ask a dumb question.... but I am hoping that you guys will be able to help me out.

Lets assume that within link properties I am creating a new column under link properties called "Option Offered" and the allowed options are via checkbox as
  • Select 1
  • Select 2
  • Select 3
  • Select 4
  • Select 5
  • Select 6


Options Offered Select 1 Select 2 Select 3 Select 4 Select 5 Select 6


Now suppose if the listing owner chooses "Select 1", "Select4" & "Select 5" How would I show it on the detailed page of the listing?

Thanks for the help.

Vishal Thakkar

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] CheckBox Select Question In reply to
You probably need a global.

<%global_name($Field)%>

Code:
sub {
my $_in = $_[0];
my @cut = split /\n/, $_in;
return join("<BR>",@cut);
}

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] CheckBox Select Question In reply to
And how would I be able to customize the display of the selected options?

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] CheckBox Select Question In reply to
Not even a thanks? Wink

Code:
sub {

my $_in = $_[0];
my $back;
my @cut = split /\n/, $_in;

foreach (@cut) {

# do what you want here.
$back .= "$_ <BR>";
}

$back ? return $back : return 'None';

}

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] CheckBox Select Question In reply to
In Reply To:
Not even a thanks? Wink


I thought I did.. well sorry for the mistake.

Thanks for helping out and keep up the great work.

But I am still wondering... Why would GT add such function in Links SQL if it cannot be used without a global? Unsure

I am going to try your idea :)

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] CheckBox Select Question In reply to
Also, I was wondering,

How to setup:
  1. Select
  2. Multiple Select Option
  3. Check Box &
  4. Radio Options

Any help would be highly appreciated.

Thanks :)

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [Andy] CheckBox Select Question In reply to
In Reply To:
Not even a thanks? Wink

Code:
sub {

my $_in = $_[0];
my $back;
my @cut = split /\n/, $_in;

foreach (@cut) {

# do what you want here.
$back .= "$_ <BR>";
}

$back ? return $back : return 'None';

}


Andy,

I am trying to get each returned value to be included in a image path. Something like:

sub {
my $_in = $_[0];
my $back;
my @cut = split /\n/, $_in;
foreach (@cut) {
# do what you want here.
$back .= "<img src="/images/default/pays/$_" border=0 width="10" height="10">&nbsp;";
}
$back ? return $back : return 'None';
}

Can you please help me as this portion of Perl creates a error.

THANK YOU for your time Smile
Quote Reply
Re: [nt6] CheckBox Select Question In reply to
Hi. Please try the modified version below. It should work ok :)

Code:
sub {

my $_in = $_[0];
my $back;
my @cut = split /\n/, $_in;

foreach (@cut) {

# do what you want here.
$back .= qq|<img src="/images/default/pays/$_" border="0" width="10" height="10">&nbsp;|;
}

$back ? return $back : return 'None';

}


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] CheckBox Select Question In reply to
Nice One Andy.

Muchas Gracias Cool