Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Postbit Social Network Icons Details »»
Postbit Social Network Icons
Version: 1.00, by stoute stoute is offline
Developer Last Online: Jan 2016 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 4.2.0 Rating:
Released: 09-01-2012 Last Update: Never Installs: 15
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

This is a quick template modification that works with the "User Profile Fields" and adds a social network icon for; Twitter, Facebook, Google+, and YouTube. Once Completed you will see this:
Image Removed by Staff (image changed with new domain owner etc)

This will not work in the postbit_legacy. Use this for postbit_legacy template: HERE

Step 1: Create your User Profile Fields

Make Custom Profile Fields for each of the four social networks; Twitter, Facebook, Google+, and Youtube.

ACP> User Profile Fields> Add New User Profile Field

Profile Field Type: Single-Line Textbox

Create your profile fields as below. you can leave "default value" blank.

Image Removed by Staff (image changed with new domain owner etc)

Make one of these for each of the social networks. Once you have created your fields for Twitter, Facebook, Google+, and YouTube.

Continue to Step 2

Step 2: Locate the Correct Field Names

ACP> User Profile Fields> User Profile Field Manager

Take note of your "field name". Below you will find a screen shot; notice I have labeled the field names A - D. for refrence a = twitter; b = facebook; c = google+; d = youtube

Image Removed by Staff (image changed with new domain owner etc)

Continue to Step 3

Step 3: Adding the code

ACP> Styles & Templates> [Your Style]> Edit Templates> Postbit Templates > Postbit

Find:
Code:
{vb:raw post.skypeicon}
Add After:
Code:
<!-- Social Networking -->
<!-- Twitter -->
<vb:if condition="$post['A']">
            <a href="http://twitter.com/{vb:raw post.A}" alt="Twitter" TARGET="_blank"><img src="./images/site_icons/socialpopup/twitter.png" /></a>
</vb:if>
<!-- Facebook -->
<vb:if condition="$post['B']">
            <a href="http://facebook.com/{vb:raw post.B}" alt="Facebook" TARGET="_blank"><img src="./images/site_icons/socialpopup/facebook.png" /></a>
</vb:if>
<!-- Google+ -->
<vb:if condition="$post['C']">
             <a href="http://plus.google.com/{vb:raw post.C}" alt="Google+" TARGET="_blank"><img src="./images/site_icons/socialpopup/googleplus.png" /></a>
</vb:if>
<!-- YouTube -->
<vb:if condition="$post['D']">
            <a href="http://youtube.com/{vb:raw post.D}" alt="Youtube" TARGET="_blank"><img src="./images/site_icons/socialpopup/youtube.png" /></a>
</vb:if>
<!-- #Social Networking -->
CHANGE THE RED LETTERS above or this will NOT work!

Step 4: Images!!!

Upload the extracted zip to your forum root.

Step 5: Enjoy!

Image Removed by Staff (image changed with new domain owner etc)

Download Now

File Type: zip images.zip (3.8 KB, 123 views)

Show Your Support

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

Comments
  #2  
Old 09-02-2012, 07:04 PM
stoute stoute is offline
 
Join Date: May 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uploaded "approved" twitter logo
Reply With Quote
  #3  
Old 07-01-2013, 08:50 PM
clutchthese clutchthese is offline
 
Join Date: Apr 2011
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All these images are broken...
Reply With Quote
  #4  
Old 07-03-2013, 04:01 AM
ramesh_umk3 ramesh_umk3 is offline
 
Join Date: Jul 2010
Location: Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pls update your images
Reply With Quote
  #5  
Old 08-13-2013, 08:56 PM
datoneer datoneer is offline
 
Join Date: Jul 2011
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man! It is great! Installed and nominated v 4.2.1
Reply With Quote
  #6  
Old 05-04-2016, 01:33 PM
tevbas tevbas is offline
 
Join Date: Jan 2013
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please fix it tutorial images.
Reply With Quote
  #7  
Old 06-19-2016, 08:42 AM
tme_power tme_power is offline
 
Join Date: Sep 2006
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just try, look pretty good, changed css a bit.
Reply With Quote
  #8  
Old 06-30-2016, 02:16 PM
ukhostz's Avatar
ukhostz ukhostz is offline
 
Join Date: Oct 2010
Location: Workington, Cumbria
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to clarify for people who are not 100% code savvy, change the abcd to the field number as stated in the "User Profile Field Manager" e.g. field6, field7, field8, field9.
So if your twitter profile was say field 6 then it should be changed to the example below
Code:
<vb:if condition="$post['field6']">
            <a href="http://twitter.com/{vb:raw post.field6}" alt="Twitter" TARGET="_blank"><img src="images/site_icons/socialpopup/twitter.png" /></a>
</vb:if>
Hope this helps
Reply With Quote
  #9  
Old 07-10-2016, 02:34 AM
tme_power tme_power is offline
 
Join Date: Sep 2006
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ukhostz View Post
Just to clarify for people who are not 100% code savvy, change the abcd to the field number as stated in the "User Profile Field Manager" e.g. field6, field7, field8, field9.
So if your twitter profile was say field 6 then it should be changed to the example below
Code:
<vb:if condition="$post['field6']">
            <a href="http://twitter.com/{vb:raw post.field6}" alt="Twitter" TARGET="_blank"><img src="images/site_icons/socialpopup/twitter.png" /></a>
</vb:if>
Hope this helps
Thank you man.
Reply With Quote
Reply

Thread Tools

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 12: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.10647 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete