vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Links Directory > Feedback & Suggestions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2007, 11:44 AM
BWJ BWJ is offline
Senior Member
 
Join Date: Jul 2005
Posts: 120
Default Multiple-Selection Menu... why not?

Why is it not possible to use a "Multiple-Selection Menu" like in the forum? You can "only" use "checkbox" for multiple entries. I really miss this feature... Your competitors can easyly copy+paste your hard work. This is not as easy with the "Multiple-selection menu" as you here can determine the size of the box.
Reply With Quote
  #2  
Old 03-21-2007, 06:30 PM
BWJ BWJ is offline
Senior Member
 
Join Date: Jul 2005
Posts: 120
Default Re: Multiple-Selection Menu... why not?

+ check boxes may take a lot of room (when seaching... with the comming feature... )
Reply With Quote
  #3  
Old 03-22-2007, 01:21 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Multiple-Selection Menu... why not?

Multiple select custom fields will be added in the next feature release version.
Reply With Quote
  #4  
Old 03-23-2007, 10:34 AM
BWJ BWJ is offline
Senior Member
 
Join Date: Jul 2005
Posts: 120
Default Re: Multiple-Selection Menu... why not?

Thank you very much...
Reply With Quote
  #5  
Old 09-25-2007, 04:24 PM
jasharen jasharen is offline
Member
 
Join Date: May 2006
Posts: 34
Default Re: Multiple-Selection Menu... why not?

Is there a timeframe on this feature being implemented? I need the ability to have a multi select, and was about to begin modifying it, however if I can have the ability built in, that would be far more preferable.
Reply With Quote
  #6  
Old 09-26-2007, 12:55 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Multiple-Selection Menu... why not?

The next release should be a fairly big one, so it's probably still a couple of months down the line.
Reply With Quote
  #7  
Old 09-26-2007, 10:01 PM
jasharen jasharen is offline
Member
 
Join Date: May 2006
Posts: 34
Default Re: Multiple-Selection Menu... why not?

Ok fair enough.

In the meantime Brian, do you mind offering a little advice?

I've modified the functions_vba_links_savelink.php file and I can now save and display a multiple select. However when I load it to edit, it only highlights one of the entries.

I added the following code after case 'select' statement in the construct_custom_fieldbits function.

PHP Code:
                case 'multiselect':

                    if (!
is_array($link[$fieldname]) AND !$editing)
                    {
                        
$link[$fieldname] = array();
                    }
                    else if (
$editing)
                    {
                        
$link[$fieldname] = explode(', '$link[$fieldname]);
                    }

                    
$optarray = array();
                    foreach (
$link[$fieldname] AS $okey => $ovalue)
                    {
                        
$optarray[] = htmlspecialchars($ovalue);
                    }
                    
                    
$inputbox '<select multiple size="10" name="' $inputname '[]">';                    
                    
$inputbox .= '<option value="">' $vbphrase['please_select_one'] . '</option>';
                    foreach (
$field['options'] AS $key => $option)
                    {
                        
$option trim($option);
                        
$inputbox .= '<option ' iif(in_array($option$optarray), 'selected="selected"') . ' value="' $option '">' $option '</option>';
                    }
                        
$inputbox .= '</select>';
                break; 
Also on the edit page, when I try to save, it does not recognize that this is an edit and tries to save the record as a new record, forcing the code that stops duplicates to kick in.
This issue is resolved, it was me being kinda stupid hehe.

I do still have problems with the editing however.

Also for testing purposes I created a select through the admin panel, and then went into the database and altered the type to multiselect.

Last edited by jasharen; 09-27-2007 at 01:27 PM.
Reply With Quote
  #8  
Old 09-27-2007, 01:39 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Multiple-Selection Menu... why not?

Sorry, but I'm not really seeing any obvious problems in your coding there.
Reply With Quote
  #9  
Old 09-27-2007, 02:48 PM
jasharen jasharen is offline
Member
 
Join Date: May 2006
Posts: 34
Default Re: Multiple-Selection Menu... why not?

Ok I know where its not matching now, just not why.

Anytime I have & in the value of the select box, it will not match.

Unfortunately I'm new to PHP and am not sure the command to convert &amp; back to &.

Any suggestions?
Reply With Quote
  #10  
Old 09-28-2007, 01:57 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Multiple-Selection Menu... why not?

So you're using a '&' sign in one of your choices for the select menu, right? If so, edit the custom field again and try changing that to '&amp;'.
Reply With Quote
  #11  
Old 09-28-2007, 08:16 PM
jasharen jasharen is offline
Member
 
Join Date: May 2006
Posts: 34
Default Re: Multiple-Selection Menu... why not?

I tried what you are suggesting Brian and had no luck.

I noticed when you save a record of actual data to vbadv_links_cfields_entries it has the special characters added (ie &amp however when you save the source record into vbadv_links_cfields that the base & is stored.

For now I've just reworded the selects to not include &, not the most elegant I have to admit but it gets me past it for now and I can come back later when everything else is working and bang my head against it more then (beside by then maybe I'll have a better grasp of PHP)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Problems - Looking for a way out :P 78rabbit Troubleshooting & Problems 2 12-24-2006 03:44 PM
different styles for vba and vb with no user selection pasaoglu "How Do I..." Questions 5 11-15-2006 10:16 PM
Template Selection 3.5.4 dc1pop Troubleshooting & Problems 2 02-28-2006 04:55 AM
Phrase errors and no directory selection last time Troubleshooting & Problems 2 12-12-2005 02:52 PM
Style Selection wtf? Feedback & Suggestions 1 09-22-2004 11:56 AM


All times are GMT -4. The time now is 11:33 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.