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)
-   -   Xbox User Space postbit addon (https://vborg.vbsupport.ru/showthread.php?t=137297)

Twilkey 01-22-2007 10:00 PM

Xbox User Space postbit addon
 
I just became a member of a fairly new site. This site is known as XUS (Xbox User Space). This site has grown alot in a little time. It is now home to over 1000 members. This site has many features, including a big profile system that has many features in itself. This includes a customizable profile url. I decided that I would like it if my members could have the link to their personal profile in their postbit. So I made my first official mod.

First off, you must make a profile field.
Do this by logging into your AdminCP and going to,
User Profile Fields > Add New User Profile Field
Fill out the info as needed. No specifics really.

Next you must edit your postbit or postbit_legacy template.
Again done in the AdminCP.
Styles & Templates > Style Manager > Edit Templates > postbit_legacy(or postbit)

In the template
FIND:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
Right after $post[skypeicon] add a space and add this:
Code:

<if condition="$post[field13]"><A HREF="$post[field13]"><img src="http://www.domain.com/forum/image_name.png" alt="Xbox User Space Profile: $post[field13]"></if></a>
Change the red to the profile field number.
Change the green to the url of the image you plan to see on your postbit.

Screenshot is in attachments.

I have attached an image I use on my site for anyone that doesn't wish to make their own.

Matt6908 01-24-2007 04:56 AM

Nice one Twilkey!!! AHAHA

Twilkey 02-09-2007 08:45 AM

Sorry for the inconvenience on the demo, I didn't realize you needed to register to see it. So I just added a screen shot. Enjoy.


All times are GMT. The time now is 10:47 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.02188 seconds
  • Memory Usage 1,708KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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