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 |
#12
|
|||
|
|||
I've installed these but it the data in the filed is not getting put after the / so it just goes to the main myspace/facebook page =/
|
#13
|
||||
|
||||
Installed, thanks!
|
#14
|
|||
|
|||
check to see if the URL is typed correctly and also make sure your that 1. you have the field filled out meaning your username/id saved in your member profile and 2. that you replaced the XX in the code with the field number you set up in the ACP.
|
#15
|
||||
|
||||
Make sure you correct the URL to go to the exact location your images are stored. For example, I don't have a folder called "forum" so I had to modify the URL to:
http://www.mypage.com/images/mics/myspace.gif instead of http://www.mypage.com/forum/images/misc/myspace.gif |
#16
|
||||
|
||||
You forgot to close the facebook if statement...
Code:
<!-- ChU's MySpace & FaceBook Icon's --> <if condition="$post[fieldXX]"> <a href ="http://www.myspace.com/$post[fieldXX]"target="_blank"><img src ="http://www.YOURFORUM.com/forum/images/misc/myspace.gif"border="0"alt="View Member's MySpace Profile"></a> </if> <if condition="$post[fieldXX]"> <a href ="http://www.facebook.com/profile.php?id=$post[fieldXX]"target="_blank"><img src ="http://www.YOURFORUM.com/forum/images/misc/facebook.gif"border="0"alt="View Member's FaceBook Profile"></a> <!-- End ChU's MySpace & FaceBook Icon's --> Code:
<!-- ChU's MySpace & FaceBook Icon's --> <if condition="$post[fieldXX]"> <a href ="http://www.myspace.com/$post[fieldXX]"target="_blank"><img src ="$stylevar[imgdir_misc]/myspace.gif"border="0"alt="View Member's MySpace Profile"></a> </if> <if condition="$post[fieldXX]"> <a href ="http://www.facebook.com/profile.php?id=$post[fieldXX]"target="_blank"><img src ="$stylevar[imgdir_misc]/facebook.gif"border="0"alt="View Member's FaceBook Profile"></a> </if> <!-- End ChU's MySpace & FaceBook Icon's --> also- the reason that many people are not seeing the myspace and facebook icons in their forum is that they go in the misc images folder, and if you simply upload the "Images" folder it will not go there. It would be better if you didn't capitalize the "Images" folder and also added a "misc" folder with the icons inside of that so people could just upload the contents of the "upload" folder. There is no editprofile template - it is modifyprofile. |
#17
|
||||
|
||||
I also noticed that if a user doesn't have an Instant Messenger listed, then the links won't show up like they should and the user ID's will just display in the regular profile section.
|
#18
|
|||
|
|||
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. |
#19
|
|||
|
|||
Where in the instructions is this? I could not find it. The only template edits are in postbit/postbit legacy and MEMBERINFO. Unless I forgot and am missing it.
You mean, if they don't AIM, MSN, Yahoo, or Skype in the one of the other profile fields, the myspace and facebook images don't work? I tried this and didn't have a problem. |
#20
|
||||
|
||||
Quote:
I worked on it for a while and was able to fix it by changing this in MEMBERINFO: Code:
<if condition="$show['hasimicons']"> Code:
<if condition="$show['hasimicons'] OR $userinfo['field7'] OR $userinfo['field8']"> |
#21
|
|||
|
|||
Oh I see what you are saying, ya that fixes it thank you.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|