PDA

View Full Version : $subscribe Question


dkmulford
September 15th, 2004, 04:00 PM
Michael/Chuck/Don,

I really wanted to have a subscribe link next to each category on the main page. My crude way of doing this was to put a "Subscribe to the Category" link in the description for each category (see below).

<a href="http://www.mydomain.com/subscribe.php?sub=516&amp;password=">Subscribe to this Category</a>

Although this works, it would be nice if the "Subscribe to this Category" text would change to "Unsubscribe" after the user subscribes just like it does on the showgallery pages. I realize in order to do this, the $subscribe variable receives the category number from whichever category the user happens to be in at the time.

I am wondering if there is a way that I could use the $subscribe variable along with a category number so that the link functions just like it does on the showgallery page? In other words, can I do something like "$subscribe?sub=516&amp;password" in place of the link above?

Thanks,
DM