View Single Post
  #125  
Old 01-28-2012, 01:11 AM
thenamesgould thenamesgould is offline
 
Join Date: Mar 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

These alterations so that you only have to enter the username of the various services seem to work fine for me. First of all in memberinfo_block_social:

Code:
<div class="friends_mini friends block">
  <h5 class="blocksubhead userprof_blocksubhead smaller ">My Social Networking
  <vb:if condition="$prepared['myprofile']">
		<a class="textcontrol imagecontrol" href="profile.php?{vb:raw session.sessionurl}do=editprofile"><img src="{vb:stylevar imgdir_button}/edit_40b.png" alt="{vb:rawphrase edit}" /></a>
		</vb:if></h5>
    <div class="blockbody userprof_content userprof_content_border">
      <div class="blockrow member_blockrow">
      <div align="center">
    <vb:if condition="$social['twitter']">
<a target ="blank" href="http://www.twitter.com/{vb:raw social.twitter}"><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="$social['facebook']">
<a target ="blank" href="http://www.facebook.com/{vb:raw social.facebook}"><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="$social['google']">
<a target ="blank" href="http://plus.google.com/{vb:raw social.google}"><img src="images/postbit_social/google.png" onmouseover="this.src='images/postbit_social/google_a.png'" onmouseout="this.src='images/postbit_social/google.png'" alt="Add {vb:raw post.username} on Google+" /></a>
</vb:if>

	<vb:if condition="$social['bebo']">
<a target ="blank" href="http://www.bebo.com/{vb:raw social.bebo}"><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="$social['myspace']">
<a target ="blank" href="http://www.myspace.com/{vb:raw social.myspace}"><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="$social['linkedin']">
<a target ="blank" href="http://www.linkedin.com/in/{vb:raw social.linkedin}"><img src="images/postbit_social/linkedin.png" onmouseover="this.src='images/postbit_social/linkedin_a.png'" onmouseout="this.src='images/postbit_social/linkedin.png'" alt="Add {vb:raw post.username} on Linkedin" /></a>
	</vb:if>
    
    <vb:if condition="$social['tumblr']">
<a target ="blank" href="http://{vb:raw social.tumblr}.tumblr.com"><img src="images/postbit_social/tumblr.png" onmouseover="this.src='images/postbit_social/tumblr_a.png'" onmouseout="this.src='images/postbit_social/tumblr.png'" alt="Follow {vb:raw post.username} on Tumblr" /></a>
	</vb:if>
    
     <vb:if condition="$social['flickr']">
<a target ="blank" href="http://www.flickr.com/{vb:raw social.flickr}"><img src="images/postbit_social/flickr.png" onmouseover="this.src='images/postbit_social/flickr_a.png'" onmouseout="this.src='images/postbit_social/flickr.png'" alt="Follow {vb:raw post.username} on Flickr" /></a>
	</vb:if>

     <vb:if condition="$social['youtube']">
<a target ="blank" href="http://www.youtube.com/user/{vb:raw social.youtube}"><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>    
    
      <vb:if condition="$social['vimeo']">
<a target ="blank" href="http://www.vimeo.com/{vb:raw social.vimeo}"><img src="images/postbit_social/vimeo.png" onmouseover="this.src='images/postbit_social/vimeo_a.png'" onmouseout="this.src='images/postbit_social/vimeo.png'" alt="Visit {vb:raw post.username}'s Vimeo Channel" /></a>
	</vb:if>
      </div>
    </div> 		 
 </div>
</div>
<div class="underblock"></div>
And in postbit_social1, this:

Code:
  <vb:if condition="$social['twitter']">
<a target ="blank" href="http://www.twitter.com/{vb:raw social.twitter}"><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="$social['facebook']">
<a target ="blank" href="http://www.facebook.com/{vb:raw social.facebook}"><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="$social['google']">
<a target ="blank" href="http://plus.google.com/{vb:raw social.google}"><img src="images/postbit_social/google.png" onmouseover="this.src='images/postbit_social/google_a.png'" onmouseout="this.src='images/postbit_social/google.png'" alt="Add {vb:raw post.username} on Google+" /></a>
</vb:if>

	<vb:if condition="$social['bebo']">
<a target ="blank" href="http://www.bebo.com/{vb:raw social.bebo}"><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="$social['myspace']">
<a target ="blank" href="http://www.myspace.com/{vb:raw social.myspace}"><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="$social['linkedin']">
<a target ="blank" href="http://www.linkedin.com/in/{vb:raw social.linkedin}"><img src="images/postbit_social/linkedin.png" onmouseover="this.src='images/postbit_social/linkedin_a.png'" onmouseout="this.src='images/postbit_social/linkedin.png'" alt="Add {vb:raw post.username} on Linkedin" /></a>
	</vb:if>
    
    <vb:if condition="$social['tumblr']">
<a target ="blank" href="http://{vb:raw social.tumblr}.tumblr.com"><img src="images/postbit_social/tumblr.png" onmouseover="this.src='images/postbit_social/tumblr_a.png'" onmouseout="this.src='images/postbit_social/tumblr.png'" alt="Follow {vb:raw post.username} on Tumblr" /></a>
	</vb:if>
    
     <vb:if condition="$social['flickr']">
<a target ="blank" href="http://www.flickr.com/{vb:raw social.flickr}"><img src="images/postbit_social/flickr.png" onmouseover="this.src='images/postbit_social/flickr_a.png'" onmouseout="this.src='images/postbit_social/flickr.png'" alt="Follow {vb:raw post.username} on Flickr" /></a>
	</vb:if>

     <vb:if condition="$social['youtube']">
<a target ="blank" href="http://www.youtube.com/user/{vb:raw social.youtube}"><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>    
    
      <vb:if condition="$social['vimeo']">
<a target ="blank" href="http://www.vimeo.com/{vb:raw social.vimeo}"><img src="images/postbit_social/vimeo.png" onmouseover="this.src='images/postbit_social/vimeo_a.png'" onmouseout="this.src='images/postbit_social/vimeo.png'" alt="Visit {vb:raw post.username}'s Vimeo Channel" /></a>
	</vb:if>
I then edited the User Profile fields to read
Enter your Twitter username (excluding the @).
Enter your Facebook username.

etc ...
Reply With Quote
Благодарность от:
MaXimus
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01219 seconds
  • Memory Usage 1,813KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_box_bit
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete