Jump to content

User bookmarking code


leeandrew

Recommended Posts

Hi,

 

I already have a system which allows users to bookmark 10 pages on my site; refered to as their top 10. I want to be able to have an unlimited bookmark system also where users can add 'favourites' besides their top 10.

In my top 10 system each page goes into an individual cell... top1, top2, top3 etc...

Is it possible to lump all favourites into 1 cell?

 

Is there a better way to do this... rather than having 200 different available cells for each favourited page.

Link to comment
Share on other sites

You could do this in several different ways. The simplest would be to create a cell of type "TEXT" (i am assuming that my cell you mean in MYSQL) and appending the page name or id in a comma separated list. Then just use split(",", $string) to ouput tem into an array when you build your list of bookmarks.

Link to comment
Share on other sites

Yes its sql. I have created a TEXT cell called BOOKMARKS. I dont know what to do next. i know i will need to do 2 further things; place something on each page i want available for bookmarking, and a page in the user section that displays each users list.

 

Can anyone help?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.