The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
MySpace & FaceBook buttons in member profile and postbit Details »» | |||||||||||||||||||||||||||
MySpace & FaceBook buttons in member profile and postbit
Developer Last Online: Oct 2013
Updated version with more options here: https://vborg.vbsupport.ru/showthread.php?t=174863
What is it? This modification adds the MySpace & FaceBook icons to the Postbit/Postbit_legacy & MEMBERINFO templates. It will display and link to the member's myspace and facebook profiles from there postbit and profiles. How is it done? - 2 Image uploads - 2 Profile fields - 2 Template edits Other Info What gave me this idea was this: https://vborg.vbsupport.ru/showthread.php?t=142290 I did not copy any of his code. He said he was going to try and add it to the member profile, so I went ahead and did it. Instructions Instructions and images and located in the .zip folder attached to this post. PLEASE CLICK INSTALL! UPDATES: v2.0: - Added stylevar so that it cuts down 2 temp edits. - Changed image directory to /forum/images/YOURSKIN/misc instead of /forum/images/misc. - Fixed </if> coding error. No real need to update or re download if you have it working already! This update is mainly for user's that have never installed or can't get it working. v3.0 Just one minor template edit. This was brought to my attention by jmurrayhead. Go to the MEMBERINFO template. FIND: HTML Code:
<if condition="$show['hasimicons']">
HTML Code:
<if condition="$show['hasimicons'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX']">
Show Your Support
|
Comments |
#52
|
||||
|
||||
sweet it works!
|
#53
|
|||
|
|||
how could i do this mod in a new information member like this screenshot?
|
#54
|
|||
|
|||
Like you want add the "Social Networking" fieldset? That where you want to add the facebook and myspace icons as well?
|
#55
|
|||
|
|||
i want "build" a SOCIAL NETWORDKING fieldset
|
#56
|
||||
|
||||
dont think i did take a look. also unless someone has the aim field filled in the myspace and facebook icons dont show up under the avatar.
Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <style type="text/css"> #additionalinfo_list, #membergroups_list { margin-top: 0px; margin-bottom: 0px; } #additionalinfo_list dd, #membergroups_list dd { margin: 0px 0px $stylevar[cellpadding]px 0px; } </style> <title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title> </head> <body> $header $navbar <!-- main info - avatar, profilepic etc. --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td> </tr> <tr> <td class="alt2"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" width="100%" colspan="2"> <if condition="$userinfo['rank'] OR $userinfo['reputationdisplay']"> <div style="float:$stylevar[right]; padding:4px"> <if condition="$userinfo['rank']"><div align="center">$userinfo[rank]</div></if> <if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if> </div> </if> <div class="bigusername">$userinfo[musername] $userinfo[onlinestatus]</div> <if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if> </td> <if condition="$show['profilepic']"> <td valign="top" align="$stylevar[right]" rowspan="2"> <img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /> </td> </if> </tr> <tr valign="top"> <if condition="$show['avatar']"> <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td> <else /> <td> </td> </if> <td class="smallfont" valign="bottom" align="$stylevar[right]"> <if condition="$show['lastactivity']"> <div>$vbphrase[last_activity]: $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span> </div> </if> <if condition="$show['currentlocation']"> <div>$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time] </div> </if> </td> </tr> </table> </td> </tr> </table> <!-- / main info - avatar, profilepic etc. --> $template_hook[memberinfo_pos1] <!-- button row --> <if condition="$show['profilelinks']"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px"> <tr align="center"> <if condition="$userinfo['showvcard']"> <td class="vbmenu_control"><a href="member.php?$session[sessionurl]do=vcard&u=$userinfo[userid]" rel="nofollow">$vbphrase[download_vcard]</a></td> </if> <if condition="$show['member']"> <td class="vbmenu_control"> <if condition="$show['addbuddylist']"> <a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a> <else /> <a href="profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a> </if> </td> <td class="vbmenu_control"> <if condition="$show['addignorelist']"> <a href="profile.php?$session[sessionurl]do=addlist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a> <else /> <a href="profile.php?$session[sessionurl]do=removelist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a> </if> </td> </if> <if condition="can_moderate()"> <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[user_options]</a></td> </if> <if condition="$show['giveinfraction']"> <td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&u=$userinfo[userid]">$vbphrase[give_infraction]</a></td> </if> </tr> </table> </if> <!-- / button row --> <br /> $template_hook[memberinfo_pos2] <if condition="$show['infractions']"> <!-- infractions row --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="$colspan"><span style="float:$stylevar[right]" class="smallfont"><phrase 1="$userinfo[ipoints]">$vbphrase[x_points_total]</phrase> </span>$vbphrase[infractions]</td> </tr> <tr> <td class="thead"> </td> <td class="thead">$vbphrase[post]</td> <td class="thead">$vbphrase[date]</td> <td class="thead">$vbphrase[expires]</td> <td class="thead">$vbphrase[points]</td> <td class="thead">$vbphrase[reason]</td> <td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td> <if condition="$show['reverse']"><td class="thead">$vbphrase[details]</td></if> </tr> $infractionbits </table> <if condition="$pagenav"> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px"> <tr valign="bottom"> <td align="$stylevar[right]">$pagenav</td> </tr> </table> </if> <!-- / infractions row --> <br /> </if> $template_hook[memberinfo_pos3] <if condition="$show['signature']"> <!-- signature row --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead">$vbphrase[signature]</td> </tr> <tr> <td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td> </tr> </table> <!-- / signature row --> <br /> </if> $template_hook[memberinfo_pos4] <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" width="50%">$vbphrase[forum_info]</td> <td class="tcat" width="50%">$vbphrase[contact_info]</td> </tr> <tr valign="top"> <td class="panelsurround" align="center"> <div class="panel"> <div align="$stylevar[left]"> <div class="fieldset"> <div style="padding:$stylevar[formspacer]px"> $vbphrase[join_date]: <strong>$userinfo[datejoined]</strong> </div> </div> <fieldset class="fieldset"> <legend>$vbphrase[posts]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td> $vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>) </td> </tr> <if condition="$vboptions['profilelastpost']"> <tr> <td> $vbphrase[last_post]:<br /> <a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br /> $userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span> </td> </tr> </if> <tr> <td><a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td> </tr> <tr> <td><a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]&starteronly=1" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td> </tr> </table> </fieldset> <if condition="$vboptions['usereferrer']"> <div class="fieldset"> <div style="padding:$stylevar[formspacer]px"> $vbphrase[referrals]: <strong>$referrals</strong> </div> </div> </if> <if condition="$show['usernotes']"> <div class="fieldset"> <div style="padding:$stylevar[formspacer]px"> $vbphrase[user_notes]: <if condition="$show['usernoteview']"> <strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>] </if> <if condition="$show['usernotepost']"> [<a href="usernote.php?$session[sessionurl]do=newnote&u=$userinfo[userid]">$vbphrase[post_user_note]</a>] </if> <if condition="$show['usernoteview']"> <br />($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>) </if> </div> </div> </if> $template_hook[memberinfo_foruminfo] </div> </div> </td> <td class="panelsurround" align="center"> <div class="panel"> <div align="$stylevar[left]"> <div class="fieldset"> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <if condition="!$show['contactlinks']"> <tr> <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_has_no_contact_info]</phrase></strong></td> </tr> </if> <if condition="$show['homepage']"> <tr> <td> $vbphrase[home_page]:<br /> <a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a> </td> </tr> </if> <if condition="$show['email']"> <tr> <td> $vbphrase[email]:<br /> <a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a> </td> </tr> </if> <if condition="$show['pm']"> <tr> <td> $vbphrase[private_message]:<br /> <a href="private.php?$session[sessionurl]do=newpm&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a> </td> </tr> </if> </table> </div> <if condition="$show['hasimicons']"> <fieldset class="fieldset"> <legend>Contact</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> <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> <!-- ChU's MySpace & FaceBook Icon's --> <if condition="$userinfo['field5']"> <tr> <td><a href="http://www.myspace.com/$userinfo[field5]"target="_blank"><img src="$stylevar[imgdir_misc]/myspace.gif"border="0"alt="View Member's Myspace Profile"></td></a> <td><a href="http://www.myspace.com/$userinfo[field5]"target="_blank">http://www.myspace.com/$userinfo[field5]</a></td> </tr> </if> <if condition="$userinfo['field6']"> <tr> <td><a href="http://www.facebook.com/$userinfo[field6]"target="_blank"><img src="$stylevar[imgdir_misc]/facebook.gif"border="0"alt="View Member's FaceBook Profile"></td></a> <td><a href="http://www.facebook.com/user/profile.php?id=$userinfo[field6]"target="_blank">http://www.facebook.com/profile.php?id=$userinfo[field6]</a></td> </tr> </if> <!-- End ChU's MySpace & FaceBook Icon's --> </if> $template_hook[memberinfo_iminfo] </table> </fieldset> </if> $template_hook[memberinfo_contactinfo] </div> </div> </td> </tr> <tr> <td class="tcat" width="50%">$vbphrase[additional_information]</td> <td class="tcat" width="50%">$vbphrase[group_memberships]</td> </tr> <tr valign="top"> <td class="panelsurround" align="center"> <div class="panel"> <div align="$stylevar[left]"> <if condition="$show['extrainfo']"> <dl id="additionalinfo_list"> <if condition="$show['birthday']"> <dt class="smallfont"><strong>$vbphrase[birth_date]</strong>:</dt> <dd class="smallfont">$userinfo[birthday]</dd> </if> <if condition="$show['age']"> <dt class="smallfont"><strong>$vbphrase[age]</strong>:</dt> <dd class="smallfont">$userinfo[age]</dd> </if> $customfields </dl> <else /> <em>$vbphrase[n_a]</em> </if> $template_hook[memberinfo_additionalinfo] </div> </div> </td> <td class="panelsurround" align="center"> <div class="panel"> <div align="$stylevar[left]"> <if condition="$show['membergroups']"> <dl id="membergroups_list" class="smallfont"> $membergroupbits </dl> <else /> <div class="smallfont"><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></div> </if> $template_hook[memberinfo_groups] </div> </div> </td> </tr> </table> <br /> $footer </body> </html> |
#57
|
|||
|
|||
Quote:
EDIT: I have found that the MySpace info and/or FaceBook info will show under Additional Information in the Member Profile simply because they are additional Profile Fields and will list there in order. I still cannot get the Icon/Link to show with the other Instant Messaging icons. |
#58
|
|||
|
|||
Ok, got it now.
In MEMBERINFO template, the ADD BELOW text has wrong code. There are 2 lines with URL links for each MySpace and FaceBook. (4 lines total). All should end with </a></td> but 2 of them end with </td></a> Fix that in your template and it will show up in the Member Profile area correctly. As for the info showing up in the Additional Information area, that would be if you have set the Profile Fields to NOT be private/hidden, or if you are admin etc. and have permission to see hidded fields. |
#59
|
|||
|
|||
I am having a problem getting the images to show up.
The forum template i have didn't have a "misc" folder already existing so I created my own so this is where the images are. myforum/forums/images/mytemplate/misc/ (iatgaming.net/forums/images/xbox/misc/) I saw before that the scrypt originally included the http://www.YOURFORUM.com/forums/imag...TEMPLATE/misc/ code so i reworked that into the code to see if that was the problem but i had no luck. You can check out the problem on my site. It's www.iatgaming.net . Just check out any post made by me "Brokenman" on the site and you will see. It displays in the right section, but images do not appear, just the text. Here is the code I have entered so far. Member info Code:
<!-- ChU's MySpace & FaceBook Icon's --> <if condition="$userinfo['field6']"> <tr> <td><a href="http://www.myspace.com/$userinfo[field6]"target="_blank"><img src="www.iatgaming.net/forums/images/xbox/misc/myspace.gif"border="0"alt="View Member's Myspace Profile"></td></a> <td><a href="http://www.myspace.com/$userinfo[field6]"target="_blank">http://www.myspace.com/$userinfo[field6]</a></td> </tr> </if> <if condition="$userinfo['field6']"> <tr> <td><a href="http://www.facebook.com/$userinfo[field7]"target="_blank"><img src="www.iatgaming.net/forums/images/xbox/misc/facebook.gif"border="0"alt="View Member's FaceBook Profile"> Code:
<!-- ChU's MySpace & FaceBook Icon's --> <if condition="$post[field6]"> <a href ="http://www.myspace.com/$post[field6]"target="_blank"><img src ="www.iatgaming.net/forums/images/xbox/misc/myspace.gif"border="0"alt="View Member's Myspace Profile"></a> </if> <if condition="$post[field7]"> <a href ="http://www.facebook.com/profile.php?id=$post[field7]"target="_blank"><img src ="www.iatgaming.net/forums/images/xbox/misc/facebook.gif"border="0"alt="View Member's FaceBook Profile"></a> </if> <!-- End ChU's MySpace & FaceBook Icon's --> |
#60
|
||||
|
||||
Nice hack, installed easily once I'd put the Memberinfo edits in the right place!
Cheers |
#61
|
|||
|
|||
Thanks for your post Gaskell, I wouldnt have guessed that was my problem till I saw your post.
And thanks to you too ChU because I used this hack to add YouTube and WeGame icons as well. Great stuff. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|