• I’m trying to come up with a script that I can throw into my loops for the main page that does the following:

    1) Checks to see if an author has a url entered for their homepage.
    2) If it does, create a hyperlink to it under the text, “Check Out this Author’s Homepage”
    3) And yet if they do not have a URL posted under their profile, than do not post ANY script.

    In other words, I want to have it automatically post a “Check Out this Author’s Homepage” hyperlink if an author takes the time to put in a URL under their profile, but ONLY if.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter badkarma9000

    (@badkarma9000)

    I guess I know how to do steps 1 and 2… I’m just really not sure how to script it so that it doesn’t post anything if the people haven’t put in a URL under their profile.

    What’s the coding for “else do nothing”?

    Thread Starter badkarma9000

    (@badkarma9000)

    Anyone have any ideas?

    Thread Starter badkarma9000

    (@badkarma9000)

    I figured out how to do the coding for all the author info, however, I’m now befuddled on how to apply a code that says, “If the user has not filled out these fields in their profile, don’t even list this here”.

    Is there a way to do that? Maybe I have to create a new loop, that says, for example:

    “If user has the URL field filled out, then include a line on this page that says: ‘Check out this author’s Webpage: INSERT WHATEVER IS IN THAT URL FIELD HERE’… but if user has nothing in that field, than don’t bother.”

    Does anyone know how to do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Posting Author E-Mails Query’ is closed to new replies.