vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Display Your Browser In Post (https://vborg.vbsupport.ru/showthread.php?t=283154)

Xp.Warrior 05-18-2012 10:00 PM

Display Your Browser In Post
 
1 Attachment(s)
Hi And Assalam-o-Alaikum
Today I Make "Display Your Browser In Post"
I Hope Members Like This.
On Registration User Select User Browser.

INSTRUCTIONS
?Upload? ALL the Browser GIF pics to your forum root images/misc/ Folder.
If You Useing Any Skin Then Upload Browsers Gifs In forum root skin/misc Folder.

ACP -> User Profile Fields -> Add New User Profile Field ->Profile Field Type -> Single-Selection Menu
Add New User Profile Field Single-Selection Menu

Title = Your Browser
Description = Select Your Browser.
Profile Field Category = (Uncategorized)
Options = Open File 2 From Attachment And All Past In Options Box
Set Default = None
Display Order = You Select this (dependant on how many you already have)
Field Required = yes, at registration and profile updating
Field Editable by User = Yes
Private Field = No
Field Searchable on Members List = No
Show on Members List = Yes


Optional Input:

Allow user to input their own value for this option = No
Max length of allowed user input = 100
Field Length = 25
Regular Expression = Leave this Blank


Display Page:

Which page displays this option? = Edit Your Details

Save...

Then, In your Admin Control Panel (ACP)
Find Postbit_lagacy
ACP -> Styles & Templates -> Style Manager -> Postbit Templates -> postbit_lagacy
Find
Code:

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</if>
                        <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                        $template_hook[postbit_userinfo_left]

ADD Below This
Code:

<b><if condition="$post[fieldX]"><img src="$stylevar[imgdir_misc]/$post[fieldX].gif" alt="$post[fieldX]" /></if></b>
Remove "X" From This Coding And Add Your Profile Field Number For Example Your Field Number Is "7" Then I Remove "X" And Put 7 Looking Like This.
Code:

<b><if condition="$post[field7]"><img src="$stylevar[imgdir_misc]/$post[field7].gif" alt="$post[field7]" /></if></b>
I Hope You Not Feel Any Problem.
Press LIKE Then Supported.
Thanks

matrex722 05-31-2012 05:57 PM

thats very nice
i will try it now


All times are GMT. The time now is 11:16 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.00921 seconds
  • Memory Usage 1,715KB
  • 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