vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Profile Enhancements - Adding MyBuny ID To User Profile (https://vborg.vbsupport.ru/showthread.php?t=149819)

Q-v-n-s-Q 06-15-2007 10:00 PM

Adding MyBuny ID To User Profile
 
Found it on: http://freecodevn.com/for&um/adding-....html?p=163744
credit to binbinvn

This template mod will allow you to add your users MyBuny ID as a link, on their forum posts. This link, when clicked on, will open the users MyBuny ID page in a new browser!

Admin CP -> User Profile Fields -> Add New User Profile Field

Choose "Single Line Text Box"

Title: MyBuny ID
Display Order: (you choose!)
Field Required: (you choose!)
Field Editable by User: (you choose!)
Private Field: NO
Field Searchable on Members List: Yes
Show on Members List: (you choose!)
Display Page: Edit Profile

[SAVE]

NOTE:
You must now make a note of the field ID for your MyBuny ID input. You can check what field ID is assigned by going to:

Admin CP -> User Profile Fields -> User Profile Field Manager

and looking at what ID is next to "MyBuny ID"

For my instructions, i am going to use '99' as my Field ID, and you should change the number to suit what YOUR field ID is!



Go to AdminCP
Go to "Style Manager"
Go to "Edit Templates" for your theme.
Scroll down until you get to "Postbit Templates"
Open up either Postbit or Postbit Legacy (depending on what you use!)

Find in this template:

Code:

<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
add this below:

Code:

<if condition="$post['field5']"><div>MyBuny ID: <a href="http://www.mybuny.com/view_profile.php?member_id=$post[field5]" target="_blank">$post[field5]</a></div></if>
Save.

REMEMBER!! CHANGE THE [field99] to whatever field ID you have, i.e [field6] or [field9] !!

MyBuny is free, singup here

hexus.net 06-16-2007 09:50 PM

cheers for this, I didn't use it for myBuny, but I did mod it to be an XBOX 360 tag with image instead :)

For anyone that wants it, here's the code, obviously same rules with the field number...

Code:

<if condition="$post['field5']"><div><a href="http://live.xbox.com/member/$post[field5]" target="_blank"><img src="images/misc/xbox360.gif" border="0" alt="View my XBOX 360 Profile"></a></div></if>


All times are GMT. The time now is 04:44 AM.

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.01015 seconds
  • Memory Usage 1,717KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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