Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Postbit Legacy Social Network Icons Details »»
Postbit Legacy 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: 13
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:


This will not work in the postbit. Use this for postbit 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.



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



Continue to Step 3

Step 3: Adding the code

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

Find:
Code:
{vb:raw post.skypeicon}


Add After the next </vb:if>:
Code:
<!-- Social Networking -->
</br>
<!-- Twitter -->
<ul>
<li class="right">
<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>
</li>
<!-- Facebook -->
<li class="right">
<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>
</li>
<!-- Google+ -->
<li class="right">
<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>
</li>
<!-- YouTube -->
<li class="right">
<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>
</li>
</ul>
<!-- #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!

Download Now

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
MusiquesElectro

Comments
  #2  
Old 09-02-2012, 06:54 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Should use the correct twitter logo https://twitter.com/logo
Reply With Quote
  #3  
Old 09-02-2012, 07:02 PM
stoute stoute is offline
 
Join Date: May 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added resized twitter icon to the attachments
Reply With Quote
  #4  
Old 01-01-2013, 04:41 PM
Gottcha Gottcha is offline
 
Join Date: Oct 2004
Location: NY
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed ... followed directions and not showing up ...
Reply With Quote
  #5  
Old 01-01-2013, 04:44 PM
Gottcha Gottcha is offline
 
Join Date: Oct 2004
Location: NY
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the code i added with the correct field numbers inserted:

Code:
<!-- Social Networking -->
</br>
<!-- Twitter -->
<ul>
<li class="right">
<vb:if condition="$post['6']">
            <a href="http://twitter.com/{vb:raw post.{6}" alt="Twitter" TARGET="_blank"><img src="./images/site_icons/socialpopup/twitter.png" /></a>
</vb:if>
</li>
<!-- Facebook -->
<li class="right">
<vb:if condition="$post['7']">
            <a href="http://facebook.com/{vb:raw post.7}" alt="Facebook" TARGET="_blank"><img src="./images/site_icons/socialpopup/facebook.png" /></a>
</vb:if>
</li>
<!-- Google+ -->
<li class="right">
<vb:if condition="$post['8']">
             <a href="http://plus.google.com/{vb:raw post.8}" alt="Google+" TARGET="_blank"><img src="./images/site_icons/socialpopup/googleplus.png" /></a>
</vb:if>
</li>
<!-- YouTube -->
<li class="right">
<vb:if condition="$post['9']">
            <a href="http://youtube.com/{vb:raw post.9}" alt="Youtube" TARGET="_blank"><img src="./images/site_icons/socialpopup/youtube.png" /></a>
</vb:if>
</li>
</ul>
<!-- #Social Networking -->
Reply With Quote
  #6  
Old 01-05-2013, 05:05 PM
JamalFree JamalFree is offline
 
Join Date: Dec 2012
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i will add this for my posbit thanx ..........
Reply With Quote
  #7  
Old 01-05-2013, 06:14 PM
Harpo's Avatar
Harpo Harpo is offline
 
Join Date: Dec 2011
Location: Canada
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Real cool. Going to install sometime this week.
Reply With Quote
  #8  
Old 01-06-2013, 09:22 PM
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Followed instructions, not working. Tried different placements around the skype icon code and still nothing. Not showing up at all on postbit.
Reply With Quote
  #9  
Old 01-12-2014, 03:43 PM
TandyServices's Avatar
TandyServices TandyServices is offline
 
Join Date: Aug 2008
Location: All over the USA
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is my code that works for 4.2.2.. Difference is that I have Postbit Tabs. But will work..

Code:
<!-- Twitter -->
<vb:if condition="$post['field#']">
<a href="https://twitter.com/{vb:raw post.field#}" TARGET="_blank"><img src="/images/site_icons/socialpopup/twitter.png" alt="Twitter"> </a>
</vb:if>

<!-- Facebook -->
<vb:if condition="$post['field#']">
<a href="https://www.facebook.com/{vb:raw post.field#}" TARGET="_blank"> <img src="/images/site_icons/socialpopup/facebook.png" alt="Facebook"> </a>
</vb:if>

<!-- Google Plus -->
<vb:if condition="$post['field#']">
<a href="https://plus.google.com/{vb:raw post.field#}" TARGET="_blank"> <img src="/images/site_icons/socialpopup/googleplus.png" alt="Google+"  /> </a>
</vb:if>

<!-- YouTube -->
<vb:if condition="$post['field#']">
<a href="http://www.youtube.com/user/{vb:raw post.field#}" TARGET="_blank"> <img src="/images/site_icons/socialpopup/youtube.png" alt="Youtube" /></a>
</vb:if>
The above code will line up the icons side by side. On in the on icon on each line like the above code. Of course replace # with your field number
Reply With Quote
  #10  
Old 01-11-2016, 08:05 PM
stoute stoute is offline
 
Join Date: May 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add on no longer supported by myself... if someone wants to take over, please do.
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:18 AM.


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.05761 seconds
  • Memory Usage 2,324KB
  • Queries Executed 26 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete