Back to vBulletin 4.x Template Modifications

Social Networking in Postbit Popup
Mod Version: 0.3, by stoute

vB Version: 4.2.0 Rating: (1 vote - 4.00 average) Installs: 10
Released: 31 Aug 2012 Last Update: Never Downloads: 34
Not Supported Template Edits Additional Files Re-usable Code Translations  

This is my first posted template modification so be kind...

This will add a users social networks icon and link in the popup menu in postbit when you click on the User's name. The link is only accessible by the user groups you choose.

To install:

Step 1:

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:
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



Step 3:

This step adds the links in the postbit popup.

ACP> Styles & Templates> Search in Templates for "memberaction_dropdown"

Links at the TOP:

Find:
Code:
<ul class="popupbody popuphover memberaction_body">
Continue to STEP 4

Links at the BOTTOM;


Find:
Code:
<vb:if condition="$show['emaillink']">
and find the next:
Code:
</vb:if>
Continue to Step 4

Step 4:

Paste this:
Code:
<!-- Social Networking -->
<vb:if condition="is_member_of($bbuserinfo, X, Y)">
<!-- Twitter -->
<vb:if condition="$memberinfo['A']">
        <li class="left">    
            <a href="http://twitter.com/{vb:raw memberinfo.A}" TARGET="_blank" class="siteicon_twitter">Twitter
            </a>
        </li>
     </vb:if>
<!-- Facebook -->
<vb:if condition="$memberinfo['B']">
        <li class="right">    
            <a href="http://facebook.com/{vb:raw memberinfo.B}" TARGET="_blank" class="siteicon_facebook">Facebook
            </a>
        </li>
     </vb:if>
<!-- Google+ -->
<vb:if condition="$memberinfo['C']">
        <li class="left">    
            <a href="http://plus.google.com/{vb:raw memberinfo.C}" TARGET="_blank" class="siteicon_googleplus">Google+
            </a>
        </li>
     </vb:if>
<!-- YouTube -->
<vb:if condition="$memberinfo['D']">
        <li class="right">    
            <a href="http://youtube.com/{vb:raw memberinfo.D}" TARGET="_blank" class="siteicon_youtube">Youtube
            </a>
        </li>
     </vb:if>
        </vb:if>
Change the red letters to the correct information. X and Y are where you enter the user groups that can view this information. A, B, C, and D need to be replaced this the field names we found in the last step. in the image A = field5, B = field6, C = field7, D = filed13

Step 5:

Upload the extracted zip to your forum root.

Step 6:

This step adds the images to your postbit (you can edit these if you like just make sure you have them in the correct location and the size is 16px x 16px)

ACP> Styles & Templates > Style Manager> [your style]> Template Options> Edit Templates> CSS Templates> additional.css

Paste the below

Code:
<!-- Social Networking in Postbit Popup -->
.memberaction_body.popupbody li .siteicon_twitter { 
	background:url({vb:stylevar imgdir_siteicons}/socialpopup/twitter.png) {vb:stylevar left} 2px no-repeat; 
}.memberaction_body.popupbody li .siteicon_facebook { 
	background:url({vb:stylevar imgdir_siteicons}/socialpopup/facebook.png) {vb:stylevar left} 2px no-repeat; 
}.memberaction_body.popupbody li .siteicon_googleplus { 
	background:url({vb:stylevar imgdir_siteicons}/socialpopup/googleplus.png) {vb:stylevar left} 2px no-repeat; 
}.memberaction_body.popupbody li .siteicon_youtube { 
	background:url({vb:stylevar imgdir_siteicons}/socialpopup/youtube.png) {vb:stylevar left} 2px no-repeat; 
}
Step 7:

Enjoy



Icon Images

- Twitter
- Facebook
- Google+
- YouTube

Special Thanks to:
Mobo for Edit User link in postbit UserName popup menu
Lycaon @http://www.theadminzone.com/forums/member.php?u=47889

Download

File Type: %1$s images.zip (3.8 KB, 38 downloads)

Screenshots

Similar Mods

Show Thread Enhancements Social Networking in Postbit (with or without block) vBulletin 4.x Template Modifications

vblts.ru supports vBulletin®, 2022-2024