uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Listing Type

Knowledge Base Lobby : uDirectory Support Conference : Modify uDirectory Scripts
Dec-17-17 12:29 PM EST
Original Message
Listing Type
Author Godfrey Ko on 10-19-2000 at 23:44 (EST)
Hello,

Another question. Is there some way to also generate "breif" listing? I want to maintain a directory where only pay advertisers can have the photo and extra fields, other lisitng should just be in simple, plain format (a title and descritpion, similar to those Yahoo! listings). Is this possible?

Also how are entries in a category sorted? Can we manually move entries around?
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Listing Type Bill Weiner, 2000-10-20 06:55:01 (1)
            Can you share the example(s) with us too (here) Sae, 2000-11-08 14:48:13 (2)
                 RE: Can you share the example(s) with us too (here) Bill Weiner, 2000-11-09 07:50:47 (3)

Messages In This Discussion
         1. RE: Listing Type
        Author Bill Weiner on 10-20-2000 at 06:55 (EST)
There is no configurable way to mark the listings as being of a certain type, but here are a couple options:

1) Obviously, if you are going to be controlling the listings yourself, you can simply control that by not entering all of the information for the free listings... and only entering all of the information for the paid listings. Most of the fields when left blank will not be displayed anyway - it should provide the affect your describing. But again, that would be only if you had them email you the information.... and you were the one to manually add the listing via the control panel.

2) Or as another option, you could leave visitor editing set to "YES"... and then create your own HTML pages for use by visitors. The HTML page for paid customers can have a form similar to the regular visitor editing form (such as http://www.uburst.com/cgi-bin/udirectory/udirectory.pl?command=edit) ... where they can enter all fields. The HTML page for the free users can have a form similar to the regular visitor editing form... except without all of the fields. You can view the source of those visitor add/edit forms in order to see the field names for your custom HTML page.... Or if you submit a support request, I could give you can example form.

In regard to sorting, the listings will always be sorted alphabetically by the main/key field.
TABLE OF CONTENTS
                 2. Can you share the example(s) with us too (here)
                Author Sae on 11-08-2000 at 14:48 (EST)
Bill: please post these examples here that we all learn and also not to bombard you with support emails.

Thanks...
TABLE OF CONTENTS
                         3. RE: Can you share the example(s) with us too (here)
                        Author Bill Weiner on 11-09-2000 at 07:50 (EST)
Actually, it ended up getting too difficult to handle this in a one-step form - mostly due to difficulties that arise handling the "feature" that allows the listing name to be modified. So basically the only solution at this time is to manually modify the "create_edit_listing_form" subroutine, by adding some "if" statements that are keyed off of one of the fields.

That is, you could add addition "if" statements that key off of a field that would only exist in a full listing. If that field is blank...then it is not a full listing.... and therefore you could hide the field on the edit form.

For instance, if you know that field 10 would only exist on a full listing, you could add some check like this:

if ($gFields[10] =~ /S/)
{
# Output form field here.
}

... to basically check if field 10 has a value other than a white space, then display all of the edit fields if it does. Otherwise, the other edit fields would not be displayed.

It still is a little tricky... so if you need some additional help, you can send us a support request and we should be able to help with your specific implementation.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.