« show/hide sidebar blocks | Main | AvantGo mobile version »

allow your visitors to create their own hotlist

The hotlist script from Scriptygoddess allows visitors to create a list of favorite entries that they want to bookmark for future reference. You can show the hotlist on a sidebar but I've chosen to make a separate My Hotlist page that people can reference from anywhere.

Any page that you provide a "add to hotlist" link or display the hotlist will need to be PHP. This script is pretty straightforward to implement. The only problems I had were when I made stupid mistakes not following the instructions carefully enough.

One important thing to keep in mind. The "add to hotlist" link is actually part of a hidden form on your blog page. The way that the <form> elements are rendered, at least in some browsers, they are block elements which means that you get a blank line before and after them. In order to put the "add to hotlist" link on the same line as some of my other footer information, I moved those links inside the form. I couldn't figure out how Scriptygoddess got it all on one line until I did a View Source and saw their clever trick.

Because this way of doing it is complicated and long (you have to create the footer line twice, once for "add to hotlist" and once for "remove from hotlist") I put the whole thing in a template module. This is also convenient because I can include the same module on all of my blog pages. Saves a lot of work updating! I also put the header code in a template module.

Related

About This Blog

  • Disclaimer: This is a personal site and is not connected with Six Apart, Ltd, the makers of Movable Type
  • Contact me:
  • Readme: What this blog is and is not
  • Reference: Templates for Al-Muhajabah's Islamic Blogs

August 2008

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

Tips by Type

Tips by Area

Other ways to read this blog

Feed Subscribe to this blog's feed
(default is RSS 2.0, I also have RSS 1.0 and Atom)

Text-only version
Powered by
Movable Type 3.2