vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   onXiam Integration (https://vborg.vbsupport.ru/showthread.php?t=124926)

Ninth Dimension 08-24-2006 10:00 PM

onXiam Integration
 
The World of Dan 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
  1. Log into your ACP and go to the User Profile Field Manager

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

  3. 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

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

  5. Edit the postbit template

    FIND:
    Code:

    <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)
    Code:

    <if condition="$post[field5]"><div>onXiam: <a href="http://www.onxiam.com/people/$post[field5]" target="_blank">$post[field5]</a></div></if>
  6. Edit the MEMBERINFO template

    FIND:
    Code:

                                    <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)
    Code:

                                    <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>

  7. 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 08-25-2006 11:57 PM

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 08-26-2006 12:25 AM

I'm sure that I can, but I'm a little confused as to why you would want me to?

y2krazy 08-26-2006 12:31 AM

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 08-26-2006 01:06 AM

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 08-26-2006 03:42 AM

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 08-26-2006 10:18 AM

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 08-26-2006 09:58 PM

I added a little something to Step 6:

Code:

                                <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:

Code:

                        <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 08-30-2006 04:08 PM

Thanks for the hack! I'll install it right away... :)

Ninth Dimension 09-09-2006 01:35 PM

Does anyone have any links of it in action? I'd love to see them :)


All times are GMT. The time now is 10:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01385 seconds
  • Memory Usage 1,777KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete