Latest Register Log In

+ Advanced Search

Using Personal List for Saved Articles

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

Normally, you would use Admin -> Settings -> Switches -> Saved Articles to allow members to save their favorite articles. Sometimes, however, this might be inadequate. Suppose you want to allow them to sort the articles into subcategories, or you want to allow them to both save existing articles and create their own unique articles 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 articles to their list (the list is a menu item in their member home area) but doesn't allow saving articles from elsewhere. To enable the saving to personal list, go to Admin -> Themes -> Manage Templates -> Article 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/wsnkb/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 article details template instead of the article bit if you only want it shown on the details page.




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