By thepaul on
Hi I am adding a link to user's blogs in various places (custom profiles, forum posts, etc) .. I don't have a problem creating the link.
What I want to do is only display the link for users who have made at least one blog entry. This way there aren't links to empty user blogs.
How can I test to see if a user has created at least one blog entry?
Code snippets much appreciated.
Comments
Figured it out:<?php$result
Figured it out:
important to note that $thisuser is the user object of the person who's profile or forum post you are looking at.
And the path to user blogs on my site is /members/username/blog
Also just copied the query from somewhere else so it isn't optimized for this task.