Author Topic: E-mail directory and Joomla 1.5x  (Read 12305 times)

joomla

  • Newbie
  • *
  • Posts: 14
    • View Profile
E-mail directory and Joomla 1.5x
« on: 20 October 2008, 23:23 »
Dear Saka, I would like to migrate my website to joomla 1.5x, and I would like to have information is it E-mail directory compatible with new version of joomla? Is there any migration instructions?  ;)

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: E-mail directory and Joomla 1.5x
« Reply #1 on: 21 October 2008, 00:38 »
Should be in legacy mode but haven't tested that carefully. Might be glitches.

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: E-mail directory and Joomla 1.5x
« Reply #2 on: 11 November 2008, 07:21 »
I have made it compatible with Joomla! 1.5 in legacy mode now. Plus it goes Open Source now. ;)

croman91

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: E-mail directory and Joomla 1.5x
« Reply #3 on: 28 February 2009, 00:28 »
Hello, (pozdrav)

i have a question, how can i turn off the function that display email formats in the listing component! i would like use the email field like the others fields like country! (i'm usig your componet for a Prefix and postal code listing! Second question is, how can i search in the City field! Only this field is not searching!?

Thanks for a solution!
(Hvala na pomoc)


Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: E-mail directory and Joomla 1.5x
« Reply #4 on: 28 February 2009, 12:17 »
That would require code modifications. I will see if I can catch some time to post code examples here.

croman91

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: E-mail directory and Joomla 1.5x
« Reply #5 on: 04 March 2009, 17:51 »
Hello Saka (Pozdrav)

I have changed follow code in the emails.html.php file:

Code: [Select]
if ($settings->email) {
if (extension_loaded('gd') && $settings->image) {
$row->email = "<img src=\"components/com_emails/image.php?id=$row->id\" border=\"0\" width=\"180\" height=\"15\" alt=\"".sprintf(_EMAIL_ALT, $row->name)."\" />";
} else {
$row->email = mosHTML::emailCloaking( $row->email, 0 );
}
echo "\t\t<td><a href=\"" . sefRelToAbs("$base_url&task=contact&mailid=".$row->id) . "\">$row->email</a></td>\n";
}

To:
Code: [Select]
if ($settings->email) {
echo "\t\t<td>$row->email</a></td>\n";
}

It seems now like the other fields (only fronted)! But it is enough for me!
I think that is correct what i have do.

The other problem to search in the City Field, i have no idea, what  kind of code modification i must do! If you help me i will buy your AJAX Register component!

Its simple, i like them!

(Hvala na pomoci, puno pozdrava iz Bosne)

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: E-mail directory and Joomla 1.5x
« Reply #6 on: 04 March 2009, 20:53 »
In emails.php around line 102 look for:
Code: [Select]
$query .= " WHERE (`name` LIKE '%$search%' OR email LIKE '%$search%') AND published='1'";

Change it to:
Code: [Select]
$query .= " WHERE (`name` LIKE '%$search%' OR email LIKE '%$search%' OR city LIKE '%$search%') AND published='1'";

Pozdrav.