PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Recent comments (http://www.photopost.com/forum/photopost-pro-how-do-i/136247-recent-comments.html)

Nobody April 16th, 2008 07:23 AM

Recent comments
 
Is there a way to have the recent comments appear on the gallery homepage but have all comments from a specific cat (501) excluded?

Chuck S April 16th, 2008 11:43 AM

Only if you modify the query for that block with some sort of mod like add this to the query

AND cat != 501

Nobody April 17th, 2008 03:35 AM

I am using PhotoPost Pro with vb integration, can you tell me where in which template I would find the query please?

Chuck S April 17th, 2008 08:04 AM

Not in a template try looking in your index.php for the recent comments query.

Nobody April 17th, 2008 11:15 AM

Thank you Chuck.

Is this correct please?

Code:

Content visible to verified customers only.

Chuck S April 17th, 2008 03:48 PM

Yeah looks fine to me.

Nobody April 18th, 2008 02:02 AM

Thanks, much appreciated :)

Chuck S April 18th, 2008 07:06 AM

enjoy your weekend

Nobody April 20th, 2008 01:43 PM

Sorry to bother you again Chuck but this is not working for me.

When I use the code above it stops the whole of the recent comments section from showing. I checked over the code and noticed that elsewhere on here you have recommended using
Code:

Content visible to verified customers only.
the difference being the inverted commas around the cat, so I tried that as well. Again I got the same results.

Finally, to be absolutely sure, I tried it with a different cat (as the one I want to block is currently not open) but again I had the same issues.

I don't know what I am missing but I would appreciate any advice.

Chuck S April 21st, 2008 07:00 AM

How about this?

AND p.cat != 501

Nobody April 21st, 2008 09:52 AM

Yes that has done the job!!

Thanks very much Chuck.

Chuck S April 21st, 2008 03:35 PM

Not a problem enjoy your evening.


All times are GMT -5. The time now is 06:54 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97