www.uburst.com www.uburst.com

"Listing Type"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Modify uDirectory Scripts
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Listing Type"
Posted by Godfrey Ko on Oct-19-00 at 11:44 PM (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?

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Listing Type, Bill Weiner, Oct-20-00, (1)
Can you share the example(s) with u..., Sae, Nov-08-00, (2)
RE: Can you share the example(s) wi..., Bill Weiner, Nov-09-00, (3)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Listing Type"
Posted by Bill Weiner on Oct-20-00 at 06:55 AM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "Can you share the example(s) with us too (here)"
Posted by Sae on Nov-08-00 at 02:48 PM (EST)
Bill: please post these examples here that we all learn and also not to bombard you with support emails.

Thanks...

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "RE: Can you share the example(s) with us too (here)"
Posted by Bill Weiner on Nov-09-00 at 07:50 AM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.