RSS
Home
Welcome, Guest
Please Login or Register.    Lost Password?

Agent Information in Details Page
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Agent Information in Details Page
*
#7249
Re:Agent Information in Details Page 2 Years, 6 Months ago Karma: 11
Or:

<?php
$db =& JFactory::getDBO();
$query = 'SELECT * FROM #__properties_profiles WHERE mid ='.$row->agent_id;
$db->setQuery($query);
$agent = $db->loadObject();

if ($DataAgent->logo_image) {
<img src="<?php echo '/images/properties/profiles/'.$DataAgent->logo_image;?>"

alt="<?php echo $DataAgent->name;?>" >
<?php echo '<br>';
}
if($agent->company){echo '<div class="list-company">'.JText::_('Company').' :

'.$agent->company.'</div>';}

if($agent->address1){echo '<div class="list-address1">'.JText::_('Address').'

: '.$agent->address1.'</div>';}

if($agent->locality){echo '<div class="list-locality">'.JText::_('Locality').'

: '.$agent->pcode.' '.$agent->locality.'</div>';}

if($agent->state){echo '<div class="list-state">'.JText::_('State').' :

'.$agent->state.' '.$agent->country.'</div>';}

if($agent->phone){echo '<div class="list-phone">'.JText::_('Phone').' :

'.$agent->phone.'</div>';}

if($agent->fax){echo '<div class="list-fax">'.JText::_('Fax').' :

'.$agent->fax.'</div>';}

if($agent->mobile){echo '<div class="list-tel">'.JText::_('Mobile').' :

'.$agent->mobile.'</div>';}

if($agent->email){echo '<div class="list-email">'.JText::_('Email').' :

'.$agent->email.'</div>';}

if($agent->web){echo '<div class="list-web">'.JText::_('Web').' :

'.$agent->web.'</div>';
} ?>
admlivasi
Expert Boarder
Posts: 154
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Sibenik, Croatia
The administrator has disabled public write access.
 
#7258
Re:Agent Information in Details Page 2 Years, 6 Months ago Karma: 26
Right admlivasi.
Your method is better. Mine is only texte. with your, it's possible to apply style with CSS.
I take it.
sigouil
New job => Less time :(
Platinum Boarder
Posts: 411
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: France Birthday: 12/31
The administrator has disabled public write access.
Sorry for my English. It is a Google translation.
 
#7275
Re:Agent Information in Details Page 2 Years, 6 Months ago Karma: 2
First, thanks for sigouil and admlivasi for your code.

If I add either of the new codes to my details.php as the first php instructions I get a white page.

Using php instructions like:
<?php
$DataAgent=$this->MyAgent[$Product->agent_id];
echo '<br />Agent: '.$DataAgent->name;
echo '<br />Phone: '.$DataAgent->phone;
?>
I can get agent details to appear, but just not the logo.
If I try: echo '<br />Agent: '.$DataAgent->logo_image;
I get text: Agent: 3_l.jpg

The agent logo appears fine in the property listing page and in the Agent listing page.

What am I doing wrong!

Chris
Chris
Expert Boarder
Posts: 109
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7391
Re:Agent Information in Details Page 2 Years, 5 Months ago Karma: 0
Hi Chris,

Did you ever get around the white page problem ... I use details1.php and when I insert the code provided I also get the white page.

?????
adriamare
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7393
Re:Agent Information in Details Page 2 Years, 5 Months ago Karma: 0
Hi Chris,

Did you ever get around the white page problem ... I use details1.php and when I insert the code provided I also get the white page.

?????
adriamare
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7406
Re:Agent Information in Details Page 2 Years, 5 Months ago Karma: 2
Hi,

No I never did get around the white page problem.

In spite of the two code offerings, for me and it seems for you, instead of a logo, I get a white page.

I can get other parts of the Agent info to appear in the details page, but cannot get the logo to appear. Strange because the Agent logo's appear OK in the Agent's listing page.

Chris
Chris
Expert Boarder
Posts: 109
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7730
Re:Agent Information in Details Page 2 Years, 5 Months ago Karma: 1
Sigouil can you put the right code because whit that I not show nothing
yuri1982
www.com-property-template.com CUSTOM WORK FOR PROP
Platinum Boarder
Posts: 443
graphgraph
User Offline Click here to see the profile of this user
Gender: Male yuri-cristodaro yuri_cristodaro@hotmail.com Location: ITALIA Birthday: 12/14
The administrator has disabled public write access.
If you need custom work for your Property add new field, customize template, please contact me in MNS yuri_cristodaro@hotmail.com
And go to www.com-property-template.com
 
#7732
Re:Agent Information in Details Page 2 Years, 5 Months ago Karma: 0
User admlivasi has got it to work and I am paying him to fix my code.

You might want him to do the same for you.
adriamare
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7734
Re:Agent Information in Details Page 2 Years, 5 Months ago Karma: 1
That code wrong...Not show nothing

Code:

<?php
$db =& JFactory::getDBO();
$query = 'SELECT * FROM #__properties_profiles WHERE mid ='.$row->agent_id;
$db->setQuery($query);
$agent = $db->loadObject();

if($agent->company){echo '<div class="list-company">'.JText::_('Company').' : 

'.$agent->company.'</div>';}

if($agent->address1){echo '<div class="list-address1">'.JText::_('Address').' 

: '.$agent->address1.'</div>';}

if($agent->locality){echo '<div class="list-locality">'.JText::_('Locality').' 

: '.$agent->pcode.' '.$agent->locality.'</div>';}

if($agent->state){echo '<div class="list-state">'.JText::_('State').' : 

'.$agent->state.' '.$agent->country.'</div>';}

if($agent->phone){echo '<div class="list-phone">'.JText::_('Phone').' : 

'.$agent->phone.'</div>';}

if($agent->fax){echo '<div class="list-fax">'.JText::_('Fax').' : 

'.$agent->fax.'</div>';}

if($agent->mobile){echo '<div class="list-tel">'.JText::_('Mobile').' : 

'.$agent->mobile.'</div>';}

if($agent->email){echo '<div class="list-email">'.JText::_('Email').' : 

'.$agent->email.'</div>';}

if($agent->web){echo '<div class="list-web">'.JText::_('Web').' : 

'.$agent->web.'</div>';
} ?>

yuri1982
www.com-property-template.com CUSTOM WORK FOR PROP
Platinum Boarder
Posts: 443
graphgraph
User Offline Click here to see the profile of this user
Gender: Male yuri-cristodaro yuri_cristodaro@hotmail.com Location: ITALIA Birthday: 12/14
The administrator has disabled public write access.
If you need custom work for your Property add new field, customize template, please contact me in MNS yuri_cristodaro@hotmail.com
And go to www.com-property-template.com
 
#7735
Re:Agent Information in Details Page 2 Years, 5 Months ago Karma: 0
He has not posted his latest code that does work. you will have to ask him for the code or wait for him to respond.
adriamare
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7736
Re:Agent Information in Details Page 2 Years, 5 Months ago Karma: 1
Fbio you are online can you fix that?!
yuri1982
www.com-property-template.com CUSTOM WORK FOR PROP
Platinum Boarder
Posts: 443
graphgraph
User Offline Click here to see the profile of this user
Gender: Male yuri-cristodaro yuri_cristodaro@hotmail.com Location: ITALIA Birthday: 12/14
The administrator has disabled public write access.
If you need custom work for your Property add new field, customize template, please contact me in MNS yuri_cristodaro@hotmail.com
And go to www.com-property-template.com
 
#7788
Re:Agent Information in Details Page 2 Years, 5 Months ago Karma: 1
same news?
yuri1982
www.com-property-template.com CUSTOM WORK FOR PROP
Platinum Boarder
Posts: 443
graphgraph
User Offline Click here to see the profile of this user
Gender: Male yuri-cristodaro yuri_cristodaro@hotmail.com Location: ITALIA Birthday: 12/14
The administrator has disabled public write access.
If you need custom work for your Property add new field, customize template, please contact me in MNS yuri_cristodaro@hotmail.com
And go to www.com-property-template.com
 
#7790
Re:Agent Information in Details Page 2 Years, 5 Months ago Karma: 11
Yeah...good news and solution which works 100%.
admlivasi
Expert Boarder
Posts: 154
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Sibenik, Croatia
The administrator has disabled public write access.
 
#8034
Re:Agent Information in Details Page 2 Years, 4 Months ago Karma: 11
So here is updated code for agent data in property details file:

Also you will need to add extra lines in index.css file for better styling or simply style div`s directly in code below.

Code:


<?php
if($agent->logo_image){
?>

<div class="agent" style="agent-img">
<img src="images/properties/profiles/<?php echo $agent->logo_image;?>" alt="<?php echo $agent->alias;?>" />
</div>

<?php }?>

<?php }?>

<?php
$db =& JFactory::getDBO();
$query = 'SELECT * FROM #__properties_profiles WHERE mid ='.$Product->agent_id;
$db->setQuery($query);
$agent = $db->loadObject();

if($agent->company){echo '<div class="list-company">'.JText::_('Company').' : '.$agent->company.'</div>';}

if($agent->address1){echo '<div class="list-address1">'.JText::_('Address').' : '.$agent->address1.'</div>';}

if($agent->locality){echo '<div class="list-locality">'.JText::_('Locality').' : '.$agent->pcode.' '.$agent->locality.'</div>';}

if($agent->state){echo '<div class="list-state">'.JText::_('State').' : '.$agent->state.' '.$agent->country.'</div>';}

if($agent->phone){echo '<div class="list-phone">'.JText::_('Phone').' : '.$agent->phone.'</div>';}

if($agent->fax){echo '<div class="list-fax">'.JText::_('Fax').' : '.$agent->fax.'</div>';}

if($agent->mobile){echo '<div class="list-tel">'.JText::_('Mobile').' : '.$agent->mobile.'</div>';}

if($agent->email){echo '<div class="list-email">'.JText::_('Email').' : '.$agent->email.'</div>';}

if($agent->logo_image ){echo '<div class="list-image">'.JText::_('Image').' : '.$agent->logo_image.'</div>';
} ?>



Web info is excluded, you can add web info if you want just before last } ?>

if($agent->web){echo '<div class="list-web">'.JText::_('Web').' : '.$agent->web.'</div>';


HERE IS ONE EXAMPLE:
croatiaexclusive.hr/en/properties/showpr...first-row-hotel.html






Cheers!
admlivasi
admlivasi
Expert Boarder
Posts: 154
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Sibenik, Croatia
Last Edit: 2010/12/29 18:18 By admlivasi.
The administrator has disabled public write access.
 
#8967
Re:Agent Information in Details Page 2 Years, 2 Months ago Karma: 1
adriamare wrote:
User admlivasi has got it to work and I am paying him to fix my code.

You might want him to do the same for you.


How to contact admlivasi, please?
Sloger
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
privatfiles@hotmail.com
The administrator has disabled public write access.
 
#8968
Re:Agent Information in Details Page 2 Years, 2 Months ago Karma: 0
adriamare
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12