Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Myspace Button in postbit Details »»
Myspace Button in postbit
Version: 1.00, by txsbmw txsbmw is offline
Developer Last Online: Oct 2014 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.0.0 Rating:
Released: 01-12-2010 Last Update: Never Installs: 8
Template Edits
 
No support by the author.

This will add a Myspace button to the postbit of any member who has a myspace page (assuming they filled out the profile field).

Go to Admin Cp and click Add New User Profile Field

Profile Field Type: Single Line Text Box
Title: Myspace Page
Description: Enter your Myspace username here. ex: usmchangout or if you have not chosen a myspace username enter your friend ID. You can find this by viewing your profile and locating the numbers within that profile. They will be followed by friendID=
Field Editable by user: Yes
Display Page: Edit Profile

Click Save and remember your field # (ex field22)

Upload the attached pic to images/misc

In your postbit template find:

HTML Code:
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
Add below (remember to replace the XX with your own field number that you just created):

HTML Code:
<!-- Myspace start --> 
<vb:if condition="$post['fieldXX']"><a href="http://www.myspace.com/{vb:raw post.fieldXX}" target="_blank"> 
<img src="images/misc/myspace.gif" alt="Go to {vb:raw post.username}'s Myspace page"  border="0"></a> 
</vb:if> 
<!-- Myspace end -->
Click save

Show Your Support

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

Comments
  #2  
Old 07-25-2010, 01:23 PM
AliceHoward AliceHoward is offline
 
Join Date: Mar 2010
Location: Oxford, England
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exactly what I was looking for, thank you sweetie.
Reply With Quote
  #3  
Old 10-28-2010, 08:22 PM
2fast4ya 2fast4ya is offline
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to do the same thing here with Facebook. Can't get it to work for some reason. Here is my code if anyone can help me figure it out. I've put it in the exact place that txs told us to put it.

HTML Code:
<!-- Facebook start --> 
<vb:if condition="$post['field6']"><a href="{vb:raw post.field6}" target="_blank"> 
<img src="images/misc/facebook.gif" alt="Go to {vb:raw post.username}'s Facebook page"  border="0"></a> 
</vb:if> 
<!-- Facebook end -->
Reply With Quote
  #4  
Old 10-28-2010, 09:48 PM
zonaenlinea's Avatar
zonaenlinea zonaenlinea is offline
 
Join Date: Dec 2009
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screnshop
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:00 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.04594 seconds
  • Memory Usage 2,236KB
  • Queries Executed 18 (?)
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_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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