WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [plugin: TDO mini forms] Submitter's avatar (3 posts)

  1. Kostas R.
    Member
    Posted 2 years ago #

    Good evening. I m using wordpress 3.1.2, graphene theme, and the latest version of TDO mini forms. I use it so that unregistered users to be able to post on my blog (after moderation). I ve created a new page and put the form in it with the required information (nickname, mail, content). After setting everything up, I test it and it works. It shows the submitter's nickname as author (although the author is my second account-contributor-), but the Wavatar (randomly generated) is not generated by the users given email, but stays the same as the authors. With some google searching I' ve found this:

    "These tags must be used within the loop:

    <?php echo tdomf_get_the_submitter(); ?>

    <?php tdomf_the_submitter(); ?>

    <?php tdomf_the_submitter_email(); ?>

    The tdomf_get_the_submitter_email template tag can be used to get the gravatar icon for a submitter."

    The problem is that i dont know where to put which part of the code, so that in any approved post, the wavatar to be generated by the submitter's given email. This is the last thing I need to make my blog working as I imagined it for the first time (now is lame :P)

    Thanks in advance for your support.

  2. Kostas R.
    Member
    Posted 2 years ago #

    I figured this out. I had to replace line 31 of my theme's loop.php with this echo get_avatar(tdomf_get_the_submitter_email(), 40);

  3. issaconan
    Member
    Posted 2 years ago #

    Hi,
    Plz can tell me how to add a nickname field to be as author in post + notification by mail after moderation.
    tnx

Topic Closed

This topic has been closed to new replies.

About this Topic