vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   New Posting Features - Myspace Button in postbit (https://vborg.vbsupport.ru/showthread.php?t=233008)

txsbmw 01-12-2010 10:00 PM

Myspace Button in postbit
 
1 Attachment(s)
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

AliceHoward 07-25-2010 01:23 PM

Exactly what I was looking for, thank you sweetie. ;)

2fast4ya 10-28-2010 08:22 PM

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


zonaenlinea 10-28-2010 09:48 PM

screnshop


All times are GMT. The time now is 09:56 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.03627 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete