Latest Register Log In

+ Advanced Search

Using Personal List for Saved Listings

Using Personal List for Saved Listings
By
11/15/13 (Edited 03/11/14)

Normally, you would use Admin -> Settings -> Switches -> Saved Listings to allow members to save their favorite listings. Sometimes, however, this might be inadequate. Suppose you want to allow them to sort the listings into subcategories, or you want to allow them to both save existing listings and create their own unique listings that are in their list alone (and you don't want these to be separate lists). For these purposes, we can adapt Admin -> Settings -> Switches -> Personal List instead.

In normal use, the personal list allows submitting their own unique listings to their list (the list is a menu item in their member home area) but doesn't allow saving listings from elsewhere. To enable the saving to personal list, go to Admin -> Themes -> Manage Templates -> Listing Bit and add this at your desired location (say just before the </td> at the end):
<IF {THISMEMBERISREGISTERED}>
<IF not {LINKISINMYALBUMS}>
<IF {TID} does not contain albums>
<form action="https://scripts.webmastersite.net/wsnclassifieds/manual/albums.php?add={LINKID}" method="post">
Add to <select name="subalbumid">{THISMEMBERALBUMLIST}</select>
<input type="submit" value="Add" >
</form>
</IF>
<ELSE>
<a href="albums.php?todo=remove&linkid={LINKID}&catid={LINKOURALBUMCATID}">Remove from personal list</a>
</IF>
</IF>


Now your members can easily add/remove from their personal list from anywhere on the site. Alternatively, you might prefer to put the above code in the listing details template instead of the listing bit if you only want it shown on the details page.




Description Saved listings with subcategories and unique listings.
Rating
Views 260 views. Averaging 0 views per day.