Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Linked Profile Postbit Legacy Enhancement Details »»
Linked Profile Postbit Legacy Enhancement
Version: 1.00, by merk_aus merk_aus is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.1.2 Rating:
Released: 03-15-2011 Last Update: Never Installs: 9
Template Edits
Re-useable Code Translations  
No support by the author.

First of all a SHOUT OUT to boydy and his template modification titled Social Networking in Postbit / Postbit Legacy.

His thread was ticked as being re-usable code, and I was going to post this over in that thread however thought that the information I was/am about to give could benefit more than just people interested in doing Social Media, it could benefit a wide range of websites and so those not interested in Social Media may miss out on the opportunity to have this on their site.

Okay so start off with let me just say that I am far from a developer and all of my knowledge in vBulletin is self taught, and learned from reading through threads and articles right here on vBulletin.org.

WHAT DOES THIS DO?!?
This will add a number of custom fields to your vBulletin Board, which if information is entered into them will display a small image on your Postbit Legacy - primarily used on my website to link numerous user accounts.

DOES THIS WORK ON POSTBIT?
It should work on both Postbit and Postbit Legacy however since day one on my website I have only ever used Postbit Legacy, however will do my best to support Postbit enhancement as well - but just know you may have to do some of the work yourself as I won't be able to hold your hand through every step of the way.

Okay so here we go with my instructions:

.::-=// Step One \\=-::.

The first step you will need to go through is creating the custom profile fields for the following:

Profile Field Type - Single-Line Text Box
Title - Twitter
Description - Add a link to your Twitter profile.
Field Searchable on Members List - NO
Show on Members List - NO

Profile Field Type - Single-Line Text Box
Title - Facebook
Description - Add a link to your Facebook profile.
Field Searchable on Members List - NO
Show on Members List - NO

Profile Field Type - Single-Line Text Box
Title - MySpace
Description - Add a link to your MySpace profile.
Field Searchable on Members List - NO
Show on Members List - NO

Profile Field Type - Single-Line Text Box
Title - Bebo
Description - Add a link to your Bebo profile.
Field Searchable on Members List - NO
Show on Members List - NO

Profile Field Type - Single-Line Text Box
Title - Youtube
Description - Add a link to your Youtube profile.
Field Searchable on Members List - NO
Show on Members List - NO

^^^ PLEASE NOTE: The Custom Profile Fields above are primarily for Social Media, if you a running a sports website you may want to create things such as:
ESPN - Add a link to your ESPN Profile
Sports Force - Add a link to your Sports Force Profile

Or if you run a Webmasters Website stuff like:
WordPress - Add a link to your WordPress Profile
vBulletin.com - Add a link to your vBulletin.com Profile
vBulletin.org - Add a link to your vBulletin.org Profile

More or less Custom Profile Fields for whatever suits your website's niche.


.::-=// Step Two \\=-::.
Gather up your images that you wish to be displayed in your Postbit, I haven't even bothered to attempt to upload anything here because there are so many better graphic designers out there than me, and the possibilities are endless with this modification that no matter how many I added into the attachment there would still be countless requests for many other websites.

Once you have all of your images, for the websites you are willing your members to link to on their postbit simply upload them to the following destination:
Code:
www.yoursite.com/yourforum/images/postbit_social/
.::-=// Step Three \\=-::.
Open Template - Postibit Templates -> postbit_legacy
Find -
Code:
 <div class="imlinks">
                    {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                </div>
            </vb:if>
Add Under -

Code:
<vb:if condition="$post['fieldx']">
<a target ="blank" href="http://twitter.com/#!/{vb:raw post.fieldx}"><img src="images/postbit_social/twitter.png" onmouseover="this.src='images/postbit_social/twitter_a.png'" onmouseout="this.src='images/postbit_social/twitter.png'" alt="Follow {vb:raw post.username} On Twitter" /></a>
</vb:if>

<vb:if condition="$post['fieldx']">
<a target ="blank" href="http://www.facebook.com/profile.php?id={vb:raw post.fieldx}"><img src="images/postbit_social/facebook.png" onmouseover="this.src='images/postbit_social/facebook_a.png'" onmouseout="this.src='images/postbit_social/facebook.png'" alt="Add {vb:raw post.username} on Facebook" /></a>
</vb:if>

<vb:if condition="$post['fieldx']">
<a target ="blank" href="http://www.myspace.com/{vb:raw post.fieldx}"><img src="images/postbit_social/myspace.png" onmouseover="this.src='images/postbit_social/myspace_a.png'" onmouseout="this.src='images/postbit_social/myspace.png'" alt="Add {vb:raw post.username} on MySpace" /></a>
</vb:if>

<vb:if condition="$post['fieldx']">
<a target ="blank" href="http://www.bebo.com/Profile.jsp?MemberId={vb:raw post.fieldx}"><img src="images/postbit_social/bebo.png" onmouseover="this.src='images/postbit_social/bebo_a.png'" onmouseout="this.src='images/postbit_social/bebo.png'" alt="Add {vb:raw post.username} on Bebo" /></a>
</vb:if>

<vb:if condition="$post['fieldx']">
<a target ="blank" href="http://www.youtube.com/user/{vb:raw post.fieldx}"><img src="images/postbit_social/youtube.png" onmouseover="this.src='images/postbit_social/youtube_a.png'" onmouseout="this.src='images/postbit_social/youtube.png'" alt="Visit {vb:raw post.username}'s Youtube Channel" /></a>
</vb:if>
Then click Save - travel to your profile and enter your profile links, click save and then check out your new postbit with the images.

Obviously:
1) Replace all fieldx with the corrosponding field number given to you in the User Profile Field Manager.

2) The above is a list for Social Media. These can be easily edited to what you want - for example if you were putting vBulletin.org the link would be:
https://vborg.vbsupport.ru/member.php?u={vb:raw post.fieldx}

- To get the correct link go to the website you wish to link to, log in and click on your profile to see what the websites correct profile link is.

- For the above vb.org link to work (using my details) I would go into my profile and put 240499 in the Custom Profile Field for vBulletin.org - therefore the image in your postbit legacy when clicked would take me to https://vborg.vbsupport.ru/member.php?u=240499

Let me know if you have any questions, issues and I will do my best to support, I do not mind re-writing some of the links to help you out if you tell me what websites you are trying to get to link up HOWEVER I do have my website to worry about and work on, and you can not expect people to hold your hand while trying to customize your website - this is relatively simple.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-16-2011, 01:36 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


RESERVED FOR FAQ's / GENERAL ASSISTANCE
Reply With Quote
  #3  
Old 03-18-2011, 01:27 AM
mikem164 mikem164 is offline
 
Join Date: Jan 2009
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshots plz!
Reply With Quote
  #4  
Old 03-20-2011, 02:30 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot has been added as requested - it is hard to add a screenshot as it depends on what you want to have your profiles linked to.

All of those buttons in the screenshot link directly to the profile themself whereas the other modification mentioned above is a messy way to do it mine is more direct, and is set up to allow you to select what type of accounts you want people to link to.

If you have any other questions please feel free to ask.
Reply With Quote
  #5  
Old 05-19-2011, 10:27 PM
clutchthese clutchthese is offline
 
Join Date: Apr 2011
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my images are showing up to the right on my avatar... how can i get them below the yahoo icon and skype icon...or better yet, on the same line as them.
Reply With Quote
  #6  
Old 05-21-2011, 08:15 PM
nomoreturn's Avatar
nomoreturn nomoreturn is offline
 
Join Date: Apr 2009
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not works for me in vBulletin Version 4.1.3
Reply With Quote
  #7  
Old 09-25-2011, 11:21 PM
mattyphatty mattyphatty is offline
 
Join Date: Feb 2010
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great here, I'm linkin it thanks! vb 4.1.5
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05040 seconds
  • Memory Usage 2,285KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete