UBB.Dev
Posted By: omegatron Beta-[6.2-6.3-6.4] My Contacts 1.0 - 01/23/2004 6:21 PM
Mod Name / Version: My Contacts 1.0

Description: Adds a simple contact manager to threads to save and track your contacts.

Name,Address,City,State,Phone,Fax,Email,Website,Title,Affiliation,Notes are some of the fields

Customize it the way you want.

Working Under: UBB.Threads 6.2-6.3-6.4

Mod Status: Beta

Any pre-requisites: UBBThreads

Author(s): Omegatron

Date: 01/23/04

Credits:

Files Altered: None

New Files: mycontacts.php,showcontacts.php,editcontacts.php,addcontact.php,contact_config.php

Database Altered: Yes New Table {$config['tbprefix']}Contacts.

Info/Instructions: Thanks to Shortbus for commisioning it.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attached File
106089-mycontacts.zip  (56 downloads)
Posted By: PhotoPost Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 01/23/2004 8:26 PM
Is this an external thing (i.e. No files altered)?

Just a thought, maybe an "Add to Contacts" in profile pages which adds a user with some of the info if its in that users profile?

wheels turning
Posted By: omegatron Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 01/23/2004 9:11 PM
External yes. I altered it from a membership database script I wrote for a non-profit I am president of. It is a very simple script.

I can write up a simple script to add a link in the profile page the desired information from a user's profile However by default that would only be email and website and possibly name but this script has a first and last name field. Normal Threads users dont have phone fax etc address etc. but if they use dimopoulis's contact Threads scripts they might or if they have a modified threads install.
Posted By: shortbus Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 01/24/2004 4:22 AM
He added this on my site and it works great so far. I think it will be a heavily used feature...
Posted By: BWilliams_dup1 Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 01/24/2004 5:31 AM
Omegatron,

Great work

I have found a little bug, well I think it's a bug.

In the /contact/mycontacts.php list where it shows the contacts you have an option to click on the email address and it's not linking properly. It does show mailto: in the bottom left corner of IE though


BWilliams
Posted By: AKD96 Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 01/25/2004 12:17 AM
In mycontacts.php change:
Code
<a href="mailto:"$mem_email">$mem_email</a>

to:
Code
<a href="mailto:$mem_email">$mem_email</a>
Posted By: omegatron Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 01/25/2004 4:17 AM
Thanks Bobby and Josh,

Yeah gotta love typo's updated the attachment
Posted By: AKD96 Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 01/25/2004 8:59 AM
Posted By: omegatron Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 01/25/2004 6:05 PM
I have been doing alot of typo's lately. I think alzheimers is setting in you know that age thing and all.
Posted By: BWilliams_dup1 Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 02/01/2004 5:11 AM
Chuck,

Love the ad on. Now the question is... How do I make it show where the users are in the "who's online" (Showing Private right now)

Thanks,

BWilliams
Posted By: AKD96 Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 02/03/2004 3:33 AM
Include a line in your online.php file in your language folder that looks something like:

Code
$ubbt_lang['mycontacts']  = 	"Viewing Contacts";
Posted By: BWilliams_dup1 Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 02/03/2004 4:18 AM
[]DLWebmaestro said:
Include a line in your online.php file in your language folder that looks something like:

Code
$ubbt_lang['mycontacts']  = 	"Viewing Contacts";
[/]
I should have known that

Thanks
Posted By: omegatron Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 02/03/2004 4:34 AM
Thanks Little Josh. Yeah forgot to add that although it might be more like this

$ubbt_lang['mycontacts'] = "Viewing Contact List";
$ubbt_lang['addcontact'] = "Adding a Contact";
$ubbt_lang['editcontact'] = "Editing a Contact";
$ubbt_lang['showcontact'] = "Viewing a Contact";
Posted By: scroungr Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 02/03/2004 5:10 AM
don;t forget the..

$ubbt_lang['scrubbing'] = "Scrubbing the Floors and Doing the Windows";
Posted By: BWilliams_dup1 Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 02/05/2004 4:56 AM
I think I found a bug.

The zip code field is not following through on initial submission, but will if you edit contact and re-add it.

Am I doing something wrong
Posted By: omegatron Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 02/05/2004 5:06 AM
Righto you are.

In addcontact.php in the INSERT query there is this

'$zipcode_q' should be this '$mem_zipcode_q'

when I get a minute I will update the build
Posted By: scroungr Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 02/05/2004 5:07 AM
Hmmm sounds like the insert command isn;t inserting the zipcode. check the array where he is putting it all together and make sure it looks ok.
Posted By: scroungr Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 02/05/2004 5:08 AM
see I told you
Posted By: BWilliams_dup1 Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 02/05/2004 7:46 AM
That did the trick

Thanks
Very nice. I love this.
I would like to change the type of contact...
Leave it as it is but use a different name for the type of contact.

Where can i edit this?
Posted By: scroungr Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 05/04/2004 5:32 PM
TRY

in addcontact.php find

<select name="type">
<option value="Family">Family</option>
<option value="Friends">Friends</option>
<option value="Work">Work</option>

change to

<select name="type">
<option value="{$contact_lang['TYPE1']}">{$contact_lang['TYPE1']}</option>
<option value="{$contact_lang['TYPE2']}">{$contact_lang['TYPE2']}</option>
<option value="{$contact_lang['TYPE3']}">{$contact_lang['TYPE3']}</option>

in mycontacts.php

find

$tbopen
<tr>
<td align="center" class="lighttable">
<form method="post" action="addcontact.php">
<input type="submit" name="add" value="Add a Contact" class="buttons" />
</form>
<form method="post" action="mycontacts.php">
<input type="hidden" name="type" value="Family">
<input type="submit" name="Submit" value="Get Family" class="buttons" />
</form>
<form method="post" action="mycontacts.php">
<input type="hidden" name="type" value="Friends">
<input type="submit" name="Submit" value="Get Friends" class="buttons" />
</form>
<form method="post" action="mycontacts.php">
<input type="hidden" name="type" value="Work">
<input type="submit" name="Submit" value="Work" class="buttons" />
</form>
</td>
</tr>
$tbclose

change to

$tbopen
<tr>
<td align="center" class="lighttable">
<form method="post" action="addcontact.php">
<input type="submit" name="add" value="Add a Contact" class="buttons" />
</form>
<form method="post" action="mycontacts.php">
<input type="hidden" name="type" value="{$contact_lang['TYPE1']}">
<input type="submit" name="Submit" value="Get {$contact_lang['TYPE1']}" class="buttons" />
</form>
<form method="post" action="mycontacts.php">
<input type="hidden" name="type" value="{$contact_lang['TYPE2']}">
<input type="submit" name="Submit" value="Get {$contact_lang['TYPE2']}" class="buttons" />
</form>
<form method="post" action="mycontacts.php">
<input type="hidden" name="type" value="{$contact_lang['TYPE3']}">
<input type="submit" name="Submit" value="{$contact_lang['TYPE3']}" class="buttons" />
</form>
</td>
</tr>
$tbclose

in contactconfig.php

add

$contact_lang['TYPE1'] = "Family";
$contact_lang['TYPE2'] = "Friends";
$contact_lang['TYPE3'] = "Work";
Thank you very much. I will try it. Looks great!
Posted By: scroungr Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 05/04/2004 6:06 PM
that way you can call it whatever ya want and also put it in different languages and even ADD to it...
Posted By: omegatron Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 05/07/2004 12:53 AM
LOL Scroungr Thanks I am gonna update this and add language strings and ability to add types etc. This is kinda a stand alone app .
Posted By: shortbus Re: Beta-[6.2-6.3-6.4] My Contacts 1.0 - 05/07/2004 8:07 AM
[]Omegatron said:
I have been doing alot of typo's lately. I think alzheimers is setting in you know that age thing and all. [/]

okay, I was just going over this thread and have to call you on "commisioning". Missing an "s".

Just wanted to pester you .
© UBB.Developers