vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Myspace and Facebook in profile like Yahoo, msn, and aol IM (https://vborg.vbsupport.ru/showthread.php?t=216741)

colochris 06-21-2009 03:52 PM

Myspace and Facebook in profile like Yahoo, msn, and aol IM
 
Hello to all.

I have seen a few times where a forum will have additional blocks in a users profile where they can add their url to their myspace and facebook accounts.

Also not sure if it is possible to place a small logo for a myspace or facebook under a users member name like the IM logos, but I wanted to see how hard this would be and if it is even possible.

Chris

--------------- Added [DATE]1245607508[/DATE] at [TIME]1245607508[/TIME] ---------------

Here is an example https://vborg.vbsupport.ru/showthread.php?t=160232

HMBeaty 06-21-2009 04:11 PM

Something like this?

http://www.usmilitarylife.com/forum/member.php?u=1 (Click the "Contact Info" tab)

colochris 06-21-2009 09:03 PM

Yes something like that indeed.

I have seen a few sites that add these extra blocks so a member can add their link in it, yet I have not figured it out. Any help is appreciated.

Chris

smartkidbk5 06-21-2009 09:14 PM

Did you try that link you gave?
Even though it is an old mod, it just has template edits, and may work. If it doesnt, I will try editing it for you. Just contact me on AIM- eXn GraViTY, or PM me

HMBeaty 06-21-2009 09:22 PM

Basically, to do like how I did it in mine in the link above, go to your AdminCP > User Profile Fields > Add New User Profile Field with the following:
Code:

Profile Field Type: Single-Line Text Box
Title: Myspace ID
Description: Enter your Myspace Profile ID if you have one
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No
Show on Members List: No

Then go to AdminCP > Styles & Templates > Style Manager > Edit Templates > memberinfo_block_contactinfo:

Find:
HTML Code:

<dd><a href="$prepared[profileurl]">$prepared[profileurl]</a></dd>
Underneath, add:
HTML Code:

<!-- Start U.S. Military Life Customization -->
    <if condition="$userinfo['fieldx']">
    <dt class="shade">Myspace</dt>
        <dd><a href="http://www.myspace.com/$userinfo[fieldx]">$userinfo[fieldx]</a></dd>
        <else />
    <dt class="shade">Myspace</dt>
        <dd>$userinfo[musername] has not entered their MySpace Friend ID</dd>
    </if>
<!-- End U.S. Military Life Customization -->

And change x to your profile field number

colochris 06-21-2009 10:55 PM

Is it possible to add an icon under a user name? Like an IM

--------------- Added [DATE]1245633716[/DATE] at [TIME]1245633716[/TIME] ---------------

Quote:

Originally Posted by Redlinemotorsports (Post 1834375)
Basically, to do like how I did it in mine in the link above, go to your AdminCP > User Profile Fields > Add New User Profile Field with the following:
Code:

Profile Field Type: Single-Line Text Box
Title: Myspace ID
Description: Enter your Myspace Profile ID if you have one
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No
Show on Members List: No

Then go to AdminCP > Styles & Templates > Style Manager > Edit Templates > memberinfo_block_contactinfo:

Find:
HTML Code:

<dd><a href="$prepared[profileurl]">$prepared[profileurl]</a></dd>
Underneath, add:
HTML Code:

<!-- Start U.S. Military Life Customization -->
    <if condition="$userinfo['fieldx']">
    <dt class="shade">Myspace</dt>
        <dd><a href="http://www.myspace.com/$userinfo[fieldx]">$userinfo[fieldx]</a></dd>
        <else />
    <dt class="shade">Myspace</dt>
        <dd>$userinfo[musername] has not entered their MySpace Friend ID</dd>
    </if>
<!-- End U.S. Military Life Customization -->

And change x to your profile field number


How did you get it on the contact us page? I can only do the about me page?

HMBeaty 06-21-2009 11:36 PM

Edit the template memberinfo_block_contactinfo

colochris 06-22-2009 12:12 AM

Ah ok. I also sent a pm, I am not sure how to make the field show a link? It is showing the whole html info I put in

HMBeaty 06-22-2009 12:14 AM

What code are you using in the memberinfo_block_contactinfo template?

colochris 06-22-2009 11:20 AM

I am getting closer, yet I need additional help if anyone has had experience with this


All times are GMT. The time now is 11:03 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.01565 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete