Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adding MyBuny ID To User Profile Details »»
Adding MyBuny ID To User Profile
Version: 1.00, by Q-v-n-s-Q Q-v-n-s-Q is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.7 Rating:
Released: 06-15-2007 Last Update: Never Installs: 2
 
No support by the author.

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

Show Your Support

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

Comments
  #2  
Old 06-16-2007, 09:50 PM
hexus.net hexus.net is offline
 
Join Date: Oct 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Reply


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 04:05 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03333 seconds
  • Memory Usage 2,200KB
  • Queries Executed 15 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_onlinestatus
  • (2)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