Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ternstyle

    (@mpraetzel)

    Not without customizing the plugin.

    Thread Starter jasnon

    (@jasnon)

    Would that be difficult to do? Even though it’s a pretty minor change I’m really hoping to be able to do this. Could you point me in the right direction of code that would need to be modified?

    Thanks again for the help,
    Jon

    Plugin Author ternstyle

    (@mpraetzel)

    You’d be looking at the markup function on line 421 of the file /class/members.php.

    Thread Starter jasnon

    (@jasnon)

    This is the code for the markup function on line 421:

    $o = $this->wp->getOption(‘tern_wp_members’,$tern_wp_members_defaults);

    I’m not exactly sure what to modify in this since it looks like it’s referring to other variables.

    Thanks.

    Plugin Author ternstyle

    (@mpraetzel)

    My fault. The function itself begins on line 419. What you need to do is add another “elseif” statement checking for the date and rendering it according to your specifications.

    like this code:

    elseif($v['name'] == 'user_email') {
    				$s .= "\n        <a href='mailto:".$u->$v['name']."'>".str_replace('%value%',$u->$v['name'],$v['markup']).'</a>';
    				continue;
    			}

    You’ll need to create another statement like that that checks for “user_registered” and adds to the string variable $s the date as you’d like it.

    Thread Starter jasnon

    (@jasnon)

    Excellent! I was able to get it to work by adding the following code to the location you suggested:

    elseif($v[‘name’] == ‘user_registered’) {
    $s .= “\n “.str_replace(‘%value%’,date(“F j, Y”,strtotime($u->$v[‘name’])),$v[‘markup’]);
    continue;
    }

    Thank you so much!!!

    Plugin Author ternstyle

    (@mpraetzel)

    You’re welcome.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Registration Date Format’ is closed to new replies.