The Classifieds module includes all functions related to classified ads management, such as placing, searching and displaying ads.
Module functions:
□
|
add_listing - allows users to add listings
|
o
|
listing_type_id - the optional parameter pointed at listing ID. If this parameter is not specified, the function returns the list of all the available listing categories
|
o
|
listing_package_id - ID of a package. A listing will be added according to this ID
|
o
|
input_template - the template of the input form contained listing fields
|
o
|
listing_package_choice.tpl
|
o
|
add_listing_choose_listing_type.tpl
|
o
|
add_listing_success.tpl
|
□
|
display_listing - displays listings
|
o
|
listing_id - the optional parameter, listing ID; if this parameter is not specified, the select-box is displays to choose listing ID
|
o
|
display_template - the name of the template. Information about a listing will be displayed according to this template
|
o
|
display_listing.tpl or the template specified in settings of a listing type
|
□
|
search_form - displays listing search forms
|
o
|
listing_type_id - the optional parameter, listing type ID
|
o
|
restore - the optional parameter, restore content of form fields
|
□
|
search_results - displays search results
|
o
|
default_sorting_field - the field that will be used for default sorting
|
o
|
default_sorting_order - the order that will be used for default sorting
|
o
|
default_listings_per_page - the default number of listings per page
|
o
|
sorting_field - the field for sorting that can be assigned in search results
|
o
|
sorting_order - the order for sorting that can be assigned in search results
|
o
|
listings_per_page - the number of listing per page that can be assigned in search results
|
o
|
page - the current page of search results
|
o
|
results_template - according to this template search results will be displayed
|
□
|
pay_for_listing - payment for listing activation. If activation is not free, a new payment is created for listing activation and user is redirected to the payment page. Otherwise, the system activates a listing and displays a message
|
o
|
listing_id - listing ID. Payment will be taken for this listing activation or for upgrading the listing to featured
|
□
|
activate_listing - activates listing according to the payment
|
o
|
payment_sid - mandatory parameter, payment SID
|
□
|
edit_listing - edits listing
|
o
|
listing_id - mandatory parameter, ID of an edited listing
|
o
|
edit_template - the template of input form. A listing will be edited according to this template
|
□
|
my_listings - displays listings of a current user
|
o
|
listings - listing IDs created by a current user
|
□
|
manage_listing - a page of listing management (Preview, Edit, Pay for Listing)
|
o
|
listing_id - mandatory parameter, listing ID
|
□
|
manage_pictures - edits listing pictures
|
o
|
listing_id - mandatory parameter, ID of listing (edited pictures belong to this listing)
|
o
|
caption - caption of an edited picture
|
o
|
picture_id - ID of an edited picture
|
□
|
listing_picture - displays a picture stored in the database
|
o
|
picture_sid - mandatory parameter, picture SID
|
o
|
type - if there is a thumb, a thumbnail is displayed, otherwise a picture is displayed. By default, there is a picture
|
□
|
edit_picture - edits picture caption
|
o
|
picture_id - mandatory parameter, ID of an edited picture
|
o
|
listing_id - ID of listing (a picture belongs to this listing)
|
o
|
picture_caption - caption that is assigned for an edited picture
|
□
|
save_listing - saves a listing in the cookies or in the database depend on a user (listings will be saved in the database for logged in users and in the cookies for not logged in users)
|
o
|
listing_id - mandatory parameter, ID of a saved listing
|
□
|
saved_listings - saved listings management (view, delete)
|
o
|
listing_id - ID of saved listing
|
□
|
save_search - saves a search
|
o
|
search_name - the name that is assigned to a saved search
|
o
|
save_search_success.tpl
|
□
|
saved_searches - saved searches management
|
o
|
search_id - ID of a search. According to this ID some actions may be done with the search, e.g. delete the search or enable/disable auto notify
|
□
|
contact_seller - sending a message to a listing owner
|
o
|
listing_id - ID of a listing. According to this listing a message will be sent
|
□
|
tell_friend - sending a message about a specified listing to a friend
|
o
|
listing_id - ID of a listing. According to this listing a message will be sent
|
□
|
loan_calculator - calculate payment for a property on time
|
o
|
listing_id - ID of a listing. Terms of payment will be calculated for this listing property.
|
□
|
delete_uploaded_file - deleting an uploaded file of a listing
|
o
|
listing_id - ID of a listing. A file will be deleted from this listing.
|
o
|
field_id - ID of a listing field. A file will be deleted from this listing field.
|
o
|
delete_uploaded_file.tpl
|
|
□ add_to_comparison - adds listing to the comparison chart
• Parameters: none
• Used templates:
o add_to_comparison.tpl
□ clear_comparison - clears comparison chart
• Parameters: none
• Used templates:
o clear_comparison.tpl
□ compared_listings - views comparison chart
• Parameters: none
• Used templates:
o compared_listings.tpl
□ featured_listings_rss - RSS channel for the all featured listings
• Parameters: none
• Used templates:
o featured_listings_rss.tpl
□ last_listings_rss - RSS channel for the last N listings
• Parameters: none
• Used templates:
o last_listings_rss.tpl
□ rate_listing - rates listing
• Parameters: none
• Used templates:
o rate_listing.tpl
□ remove_from_comparison - removes listing from comparison chart
• Parameters: none
• Used templates:
o remove_from_comparison.tpl
|