How do i get a squirrel webmail i have tried but still cant do it is anybody ready to help build one. please you can use the following infomation
user name: bushfellow
password :elikiba
On 4/4/07, Andy Kannberg <kulganthesorcerer@xxxxxxxxx> wrote:
Tomas,
Many great thanks !! It works like a charm !
cheers,
Andy
Tomas Kuliavas <tokul@xxxxxxxxxxxxxxxxxxxxx> wrote:---
if (!empty($row['mobile'][0])) {
$label = $this->charset_decode($row['mobile'][0]);
}
else if(!empty($row['ou'][0])) {
$label = $this->charset_decode($row['ou'][0]);
}
else if(!empty($row['o'][0])) {
$label = $this->charset_decode($row['o'][0]);
} else {
$label = '';
}
---
Missed two opening curly brackets.
> Tomas,
>
> I have adapted the abook_ldap_server.php as you described. But when I try
> to test (hit compose for a new mail so I can add addresses from the LDAP
> address book, the right part of SM goes blank.
>
> When I replace the original file, the addressbook works. Is there anything
> I am missing ? I've copy/pasted the code as you supplied it into the
> abook_ldap_server.php as you explained, but it won't work.
>
> Anyway, thanks for helping me on this. Much appreciated !
> Hope to hear from you soon !
>
> Best regards,
> Andy
>
> Tomas Kuliavas wrote: > Hi,
>>
>> I've got the LDAP addressbook running with SM, and it runs damn fine!
>> But,
>> now I want to get one more piece of info out of LDAP and show it in the
>> 'info' field of the addressbook. Can anyone help me with this ? I've
>> already found the array with the LDAP variables that are queried, and
>> I've
>> added the variable that I want to show. The array (in
>> abook_ldap_server.php ) looks like this:
>> $sret = @ldap_search($this->linkid, $this->basedn, $_expression_,
>> array('dn', 'o', 'ou', 'sn', 'givenname', 'cn', 'mail',
>> 'mobile'),
>> 0, $this->maxrows, $this->timeout);
>>
>> As you can see, I've added the 'mobile' variable.
>> So, how can I get the mobile var to appear in the info field ? (I'm not
>> quite a PHP programmer )
>
>
> See same functions/abook_ldap_server.php file. Somewhere near lines
> 312-319 you have
> ---
> if(!empty($row['ou'][0]))
> $label = $this->charset_decode($row['ou'][0]);
> }
> else if(!empty($row['o'][0])) {
> $label = $this->charset_decode($row['o'][0]);
> } else {
> $label = '';
> }
> ---
>
> It makes sure that info field contains value of 'ou' or 'o' attributes or
> empty string.
>
> If you want to use mobile number attribute, you need
> ---
> if(!empty($row['mobile'][0]))
> $label = $this->charset_decode($row['mobile'][0]);
> }
> else if(!empty($row['ou'][0]))
> $label = $this->charset_decode($row['ou'][0]);
> }
> else if(!empty($row['o'][0])) {
> $label = $this->charset_decode($row['o'][0]);
> } else {
> $label = '';
> }
> ---
>
> Please make a backup of abook_ldap_server.php before you mod it.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> --
> squirrelmail-users mailing list
> Posting Guidelines:
> http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
> List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
> List Archives:
> http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
> List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
> List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>
>
>
> ---------------------------------
> Don't be flakey. Get Yahoo! Mail for Mobile and
> always stay connected to friends.
Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
--
BORN TO MAKE IT NO MATTER THE CIRCUMSTANCE
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users