Not logged in. · Lost password · Registration disabled
Forum: Overview Suggestions and Wishes / Anregungen und Wünsche RSS
Instead of "OR" category, "AND" category
mojoflyer #1
Member since Sep 2009 · 2 posts
Group memberships: Mitglieder
Show profile · Link to this post
Subject: Instead of "OR" category, "AND" category
I've got a request:

Now when user subscribe, they get to choose 1 "OR" more categories.
I would like to allow user to subscribe "AND" categories, which means, when a post is posted in all the categories selected by user, then only will subscriber get notified.

My blog has posts posted in multiple categories, so i would like a subscription and will notify subscriber only when a post is posted in certain categories.

example: POST posted by me
Posted in Categories : Movie, Action, Comedy

So when a subscriber sign up, he can choose that the only post that is posted in all the 3 categories "Movie,Action,Comedy" get notified.

Can this be easily implemented? could u pls suggest some easy code modification?

Thanks a lot in advance.
Morty (Administrator) #2
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
This is possible as it's just a database querry, but the problem is that a intuitive user interface is needed. When designing the current one, I had lots of Ideas in that direction, but discarded them all... If you know php have a look at the sendmail.php:post_notification_send() function.
mojoflyer #3
Member since Sep 2009 · 2 posts
Group memberships: Mitglieder
Show profile · Link to this post
Thanks for fast reply.

I'm not a php programmer, but is willing to learn and try to mod it. I'll google it and ask for help.

about the user interface, which file that i need to modify on? for example, instead of tick box, i could change it to with several drop down menus, specifying only limited categories for each drop down menu, and "AND" them together for subscription.

Any good place that i could get help on php?
Morty (Administrator) #4
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
If you haven't coded yet this might become complicated. You should also look at the frontend.php. http://php.net is good place to start.
skynet061 #5
Member since Apr 2011 · 2 posts
Group memberships: Mitglieder
Show profile · Link to this post
Thanks for the info.
The waiter. camsex is better than extra income Income that is salary. sbobet bad.
cyndihuang #6
Member since Sep 2011 · 7 posts
Group memberships: Mitglieder
Show profile · Link to this post
WOW thank you very much.I like it



Microsoft office 2010|beats dr dre|air jordan shoes for sale
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum