We have a Real Estate Website with Loan Officers & Real Estate Agents.
For group assignments, LOs are Editors & RE Agents are Authors.
We have hacked the jos_users and added additonal fields like: address, Assigned LO, Assigned Agent, Website, Branch, License number, etc...
About 15 extra fields.
The hack has worked great and is functioning as expected.
We want to be able to call the information for some other (jos_users) registered user while a registered user is logged in(say a Real Estate Agent).
Then show the data (or hidden input field) on a choronoform or article page.
Our reasoning has to do with Agents being Assigned to a Loan Officer for marketing purposes and emailing form results to a form recipient with both LO & RE AGENT contact info.
We have successfully set $var strings in the form URL so we can assign $owner in jos_leads (the captured form database for Chornoforms) to a $user.
One ECHO is: <?php echo $assignedlo->email; ?>
-----------------
CURRENT CODE
-----------------
<?php
$username =& JFactory::getUser();
$mls = JRequest::getString('mls');
$owner = JRequest::getString('owner');
$branch = JRequest::getString('branch');
JRequest::setVar('oemail', $username->email);
JRequest::setVar('branch', $username->branch);
JRequest::setVar('ophone', $username->phone);
JRequest::setVar('lousername', $username->assignedlo);
?>
<input type='hidden' name='oemail' value='<?php echo $username->email; ?>' />
<input type='hidden' name='owner' value='<?php echo $owner; ?>'/>
<input type='hidden' name='branch' value='<?php echo $username->branch; ?>'/>
<input type='hidden' name='oname' value='<?php echo $username->name; ?>' />
<input type='hidden' name='ophone' value='<?php echo $username->phone; ?>' />
<input type='hidden' name='assignedlo' value='<?php echo $username->assignedlo; ?>' />
<input type='hidden' name='mls' value='<?php echo $mls; ?>' />
---------------
Your username is: <?php echo $username->username; ?><br>
Your Assigned LO is: <?php echo $username->assignedlo; ?><br>
Your Assigned LO Email is: <?php echo $assignedlo->email; ?><br>
Your Assigned LO Name is: <?php echo $assignedlo->name; ?><br>
For group assignments, LOs are Editors & RE Agents are Authors.
We have hacked the jos_users and added additonal fields like: address, Assigned LO, Assigned Agent, Website, Branch, License number, etc...
About 15 extra fields.
The hack has worked great and is functioning as expected.
We want to be able to call the information for some other (jos_users) registered user while a registered user is logged in(say a Real Estate Agent).
Then show the data (or hidden input field) on a choronoform or article page.
Our reasoning has to do with Agents being Assigned to a Loan Officer for marketing purposes and emailing form results to a form recipient with both LO & RE AGENT contact info.
We have successfully set $var strings in the form URL so we can assign $owner in jos_leads (the captured form database for Chornoforms) to a $user.
One ECHO is: <?php echo $assignedlo->email; ?>
-----------------
CURRENT CODE
-----------------
<?php
$username =& JFactory::getUser();
$mls = JRequest::getString('mls');
$owner = JRequest::getString('owner');
$branch = JRequest::getString('branch');
JRequest::setVar('oemail', $username->email);
JRequest::setVar('branch', $username->branch);
JRequest::setVar('ophone', $username->phone);
JRequest::setVar('lousername', $username->assignedlo);
?>
<input type='hidden' name='oemail' value='<?php echo $username->email; ?>' />
<input type='hidden' name='owner' value='<?php echo $owner; ?>'/>
<input type='hidden' name='branch' value='<?php echo $username->branch; ?>'/>
<input type='hidden' name='oname' value='<?php echo $username->name; ?>' />
<input type='hidden' name='ophone' value='<?php echo $username->phone; ?>' />
<input type='hidden' name='assignedlo' value='<?php echo $username->assignedlo; ?>' />
<input type='hidden' name='mls' value='<?php echo $mls; ?>' />
---------------
Your username is: <?php echo $username->username; ?><br>
Your Assigned LO is: <?php echo $username->assignedlo; ?><br>
Your Assigned LO Email is: <?php echo $assignedlo->email; ?><br>
Your Assigned LO Name is: <?php echo $assignedlo->name; ?><br>