PDA

View Full Version : onXiam Integration


Ninth Dimension
25 Aug 2006, 21:53
The World of Dan (http://theworldofdan.co.uk/) Presents: onXiam Integration

What is onXiam?

You can think of onXiam as a network of networks. In a nutshell, onXiam is a site that lets you consolidate all of your online identities and easily tie them back to a single point of reference. Ultimately this will make it easier for you to promote yourself and all of your various online identities by having a quick and easy place to which you can refer people if they want to learn all about your various online presences. You can see my onXiam page here: http://www.onxiam.com/people/TheWorldofDan/

What does this do?

This allows your members to enter their onXiam username in their profile, which will then display a link to their onXiam page in the postbit and on their members page.

How to install


Log into your ACP and go to the User Profile Field Manager


Add a new 'Single-Line Text Box' user profile field


Use the following details:

Title: onXiam
Description: Enter your <a href="http://onxiam.com/" target="_blank">onXiam</a> username.
Field Required: No
Field Editable by User: Yes
Private Field: Yes
Which page displays this option?: Edit Profile


Save and make a note of it's field-id (i.e. field5)


Edit the postbit template

FIND:<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

ADD UNDER: (Remembering to change the field-id to whatever number you remembered earlier)<if condition="$post[field5]"><div>onXiam: <a href="http://www.onxiam.com/people/$post[field5]" target="_blank">$post[field5]</a></div></if>

Edit the MEMBERINFO template

FIND: <if condition="$show['pm']">
<tr>
<td>
$vbphrase[private_message]:<br />
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>

ADD UNDER: (Remembering to change the field-id to whatever number you remembered earlier) <if condition="$post['field7']">
<tr>
<td>
onXiam:<br />
<a href="http://www.onxiam.com/people/$post[field5]" target="_blank">$post[field5]</a>
</td>
</tr>
</if>
All done :D


Notes


I'm not the developer of onXiam, I'm just so impressed with it's idea that I wanted to include it on my forum.


By setting the 'Private Field' option to No, you prevent it from showing under the 'Additional Information' section on the members profile page for all the site's users, but based on your permissions, admins and mods will still see it listed. It's best just to ignore it.


I'm keen on ideas and suggestions for this hack, as I use it on my own site, so any ways it can be improved upon are welcome.


If you use, please install :)

y2krazy
26 Aug 2006, 00:57
Could you please include the installation instructions in a text or zip file? Thank you. :)

Once you do, I'll be sure to click Install. :p

Ninth Dimension
26 Aug 2006, 01:25
I'm sure that I can, but I'm a little confused as to why you would want me to?

y2krazy
26 Aug 2006, 01:31
It's just more convenient that way and since I'm not a coder (just been around a while), I think there is a requirement to post an attachment? I'm not sure on that, but if not, it's just a preference then. ;)

Installed and working BTW. :)

Kirk Y
26 Aug 2006, 02:06
No it's not required - just encouraged; some people like to save a copy of the instructions on their computer, having them in a text-file just makes it simpler.

y2krazy
26 Aug 2006, 04:42
I have 2 folders that I save mods in: 1 for mods to be installed and the other for mods that have been successfully installed. I download everything that I click Install to. Merely a preference, but it's very helpful IMO.

Ninth Dimension
26 Aug 2006, 11:18
OK, well I'm sure I can make a text verson for people, I'll do it later when I have a bit more free time :)

y2krazy
26 Aug 2006, 22:58
I added a little something to Step 6:

<if condition="$post['fieldX']">
<tr>
<td>
onXiam:<br />
<a href="http://www.onxiam.com/people/$post[fieldX]" target="_blank">http://www.onxiam.com/people/$post[fieldX]</a>
</td>
</tr>
</if>

Just made it look like it fit better to me in that location by adding this: http://www.onxiam.com/people/$post[fieldX] to the code.

Alternatively, I can see this being added to the IM fieldset as something like this:

<if condition="$show['hasimicons']">
<fieldset class="fieldset">
<legend>$vbphrase[instant_messaging]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$show['textimicons']">
<if condition="$userinfo['showicq']">
<tr>
<td>$vbphrase[icq]</td>
<td>$userinfo[icq]</td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$vbphrase[aim]</td>
<td>$userinfo[aim]</td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$vbphrase[msn]</td>
<td>$userinfo[msn]</td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$vbphrase[yahoo]</td>
<td>$userinfo[yahoo]</td>
</tr>
</if>
<if condition="$userinfo['skype']">
<tr>
<td>$vbphrase[skype]</td>
<td>$userinfo[skype]</td>
</tr>
</if>
<if condition="$post['fieldX']">
<tr>
<td>onXiam</td>
<td>$post[fieldX]</td>
</tr>
</if>
<else />
<if condition="$userinfo['showicq']">
<tr>
<td>$userinfo[icqicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a></td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$userinfo[aimicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a></td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$userinfo[msnicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a></td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$userinfo[yahooicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td>
</tr>
</if>
<if condition="$userinfo['showskype']">
<tr>
<td>$userinfo[skypeicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('skype', '$userinfo[userid]', 400, 285); return false;">$userinfo[skype]</a></td>
</tr>
</if>
<if condition="$post['fieldX']">
<tr>
<td><img src="$stylevar[imgdir_misc]/onxiam.gif"></td>
<td><a href="http://www.onxiam.com/people/$post[fieldX]" target="_blank">$post[fieldX]</a></td>
</tr>
</if>
</if>
</table>
</fieldset>
</if>

Replace fieldX with your correct field number.

Snake
30 Aug 2006, 17:08
Thanks for the hack! I'll install it right away... :)

Ninth Dimension
09 Sep 2006, 14:35
Does anyone have any links of it in action? I'd love to see them :)