Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Console image in postibit whit multiple selection field Details »»
Console image in postibit whit multiple selection field
Version: 1.00, by Acidflame Acidflame is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.8.4 Rating:
Released: 07-04-2010 Last Update: Never Installs: 9
Template Edits
Additional Files  
No support by the author.

Hi Guys I'm Acidflame is the first mod that i insert in vbulletin.org. I'm Italian Webmaster and i hope that this mod like it

This mod lets you choose when registering or usercp users using the console. Of course you can enter anything and make it appear in the user profile (postbit)

Let's go

The first step it's to create a costum field

Go in the AdminCP ---> User profile fields ---> Add new user profile field --->(in dropdown menu) Multiple-selection menu

Now complete the form as you I've compiled so:

Title: Game Platform
Description: Indicates what the gaming devices owned: consoles, mobile devices, PCs, etc.. Indicate in particular mobile phones and PC devices only if actually owned and used for the game.
Profile field: Uncategorized
Limit Selection: 0
Object in line: 2
Field: (Download the file)
Profile type field: Multiple selection box
Required Field: Yes, to registration and update profile
User editable field: Yes
Private Field: No
Field searchable list of members: Yes
View on users list: Yes

Which page displays this option: Edit your profile

And click on save


Now take note of number of field.

Go to the Style and Template ---> Management Style --->Choose in template dropdown menu the option "Edit Template"

Now Search Template Postbit and double click on postbit.

Choose the position of mod and add in postbit code this code:

Code:
<!-- Platform Game Start -->
<Legend>Platform Game:</Legend>
<br />
<div><if condition="$post['field[X] & Y">
   <img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if>
<if condition="$post[X] & Y">
    <img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if>
<if condition="$post[X] & Y">
      <img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if>
<if condition="$post[X] & Y">
       <img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if>
<if condition="$post[X] & Y">
        <img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if>
<if condition="$post[X] & Y">
    <img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if>
<if condition="$post[X] & Y">
       <img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if>
<if condition="$post[X] & Y">
     <img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if>
<if condition="$post[X] & Y">
      <img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if>
<if condition="$post[X] & Y">
    <img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if>
<if condition="$post[X] & Y">
    <<img src="http://xxxxxxxxxxxxx/images/styles/carforum/buttons/game/ps2.png">
</if></div>
<!--// dispositivi di gioco end End -->
Where are theRedColor you must change with your path address.

Where are the X you must change with your field number

Where are the Y you must chage with the id of fieldset


The same thing goes in postbit_legacy. Choose the position and add the code Above.

The result is:



Note: Multiple selection use binary code then for change the Y:

option 1 = 2^0 = 1
option 2 = 2^1 = 2
option 3 = 2^2 = 4
option 4 = 2^3 = 8
option 5 = 2^4 = 16
option 6 = 2^5 = 32
option 7 = 2^6 = 64
option 8 = 2^7 = 128

The part of information were taken on Vbulletin.com

Download Now

File Type: zip Consoleimage.zip (55.7 KB, 64 views)

Show Your Support

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

Comments
  #12  
Old 10-24-2010, 12:35 PM
Acidflame Acidflame is offline
 
Join Date: Nov 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a error. if you have horizontal postbit you modify the postbit file, if you have a vertical postbit you modify postbit_legacy
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 11:45 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.03513 seconds
  • Memory Usage 2,231KB
  • Queries Executed 19 (?)
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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete