![]() |
Console image in postibit whit multiple selection field
1 Attachment(s)
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 --> 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: https://vborg.vbsupport.ru/external/2010/07/40.png 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 |
very nice acid good job!^^
|
But did not have it together?? the next mod to do together;)
|
When I try to edit the template I get this error
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/restric/public_html/includes/adminfunctions_template.php(3950) : eval()'d code on line 75 |
If is a syntax error or you not copy well the code, or try to insert the code in other position.
In postbit template find: HTML Code:
$template_hook[postbit_userinfo_left] In postbit_legacy template find: Code:
$post[yahooicon] $post[skypeicon]</div></div> |
I'll give it a try now and let you know.
EDIT: I'm still getting the error, I don't know why it won't work :confused: Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/restric/public_html/includes/adminfunctions_template.php(3950) : eval()'d code on line 75 |
Reset postbit legacy and postbit and try how i explain before. Is very strange.
If you want contact me on pm and give me your forum i help you directly |
Quote:
The Correct Syntax is: PHP Code:
where X is a ID of Field (Example 5...Always) and Y is a Number of Multiple selection fields that use a binary scheme to store the selected values. Each option is given a number value, like this: 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 etc... like in my Sample of my Posbit. It's Work ;) and....you are type PHP Code:
Correct is: PHP Code:
http://a.imageshack.us/img15/8748/immaginehwg.jpg I hope I have helped you :D |
Hey Having this Problem, I want the games played in under the Avatar but instead it is displayed here:
http://img80.imageshack.us/img80/4493/profield.jpg Any ideas?? Kinda new at this kind of stuff :( Here is my postbit: Code:
{vb:raw template_hook.postbit_start} |
Try to insert all code before the </div>
|
All times are GMT. The time now is 11:40 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|