Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
Patrick Rehm
0 points
Beginner
Hi all,
some hours ago, i’ve posted an question, because for my experience the fields “Your Name” and “Your Email” within the “Contact Author” form have to filled out automatically by users which are logged in.
In the interim i’ve found a solution for this topic. For interested people, here is the fix:
1. Open class_shortcodes.php and find the following code (its not the whole line!!!: function SHOW_CONTACTFORM($style=0){ global $CORE,
Replace this code with:
function SHOW_CONTACTFORM($style=0){ global $CORE, $userdata,
2. Find the following code: $val1= "";
Replace with: $val1= $userdata->display_name;
3. Find the following code: $val2= "";
Replace with: $val2= $userdata->user_email;
Hi all,
some hours ago, i’ve posted an question, because for my experience the fields “Your Name” and “Your Email” within the “Contact Author” form have to filled out automatically by users which are logged in.
In the interim i’ve found a solution for this topic. For interested people, here is the fix:
1. Open class_shortcodes.php and find the following code (its not the whole line!!!:
function SHOW_CONTACTFORM($style=0){ global $CORE,
Replace this code with:
2. Find the following code:
$val1= "";
Replace with:
$val1= $userdata->display_name;
3. Find the following code:
$val2= "";
Replace with:
$val2= $userdata->user_email;
Thats it. Hope its helpfull for somebody 🙂
Greets
Patrick
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now