Log in

View Full Version : user profile field for programs with photos


cgway.net
08-02-2009, 09:53 AM
hello

i need to add profile field with program use

every user have many options to select with 2 options

1- only every user an select only 5 programs
2- the user can select any number of programs

when select any program it's appear with the program photo in postbit

i have attached an photo for illustration

https://vborg.vbsupport.ru/attachment.php?attachmentid=102787&stc=1&d=1249210345

i wait the replay with instruction

cgway.net
08-02-2009, 11:27 AM
why no any replay

Lynne
08-02-2009, 04:26 PM
Can't you just create a User Profile Field and then put an image in the postbit based on what they select in the profile field? User Profile Fields are discussed in the manual linked in my sig.

And please be patient in waiting for an answer. Two hours is not that much time. Please read the rules on bumping threads.

cgway.net
08-02-2009, 05:27 PM
give me the direct link for the solution please

Lynne
08-02-2009, 06:15 PM
You want a direct link to the stuff in the manual? Custom Profile Fields (http://www.vbulletin.com/docs/html/profile) You can do a search on "profile" in "articles" "titles only" to get articles on how to put them in the postbit.

cgway.net
08-02-2009, 08:58 PM
i can't understand what is the suitable code I'm no a programmer

please help me

give me steps to create the fild and give me the code must be input to postbit

Lynne
08-02-2009, 10:01 PM
Did you look at the page I linked to? There are pictures showing you how to set up a new profile field. What step are you stuck on?

cgway.net
08-02-2009, 10:18 PM
i talk about the code will inserted to postbit and will appear the photos

Lynne
08-02-2009, 11:24 PM
This is what I thought you were talking about:
- a selectable field for a user to pick several 'programs'
- based on what 'program' the user selects, an image shows up in the postbit.

So, if the choice was:
program a
program b
program c
program d

If a user picks program a and program c, then an image depicting that program shows up in the postbit. Is that not what you wanted? If so, you would make a Multiple-Selection Checkbox (http://www.vbulletin.com/docs/html/profile_add_checkbox) and then based on what they select, spit out an image in the postbit.

If you don't want to do it yourself, you could post in the Modification Requests (Unpaid) forum or the Request for Paid Services forum.

cgway.net
08-02-2009, 11:31 PM
i have use this code but this code appear n numbers only


<!-- programs -->
<table border="0" cellpadding="0" cellspacing="2" align="center">
<tr><td><if condition="$post[field9]"><img src="images/programs_icons/$post[field9].png" alt=" $post[field9] " align="absbottom"/></if></td></tr>
</table>
<!-- / programs -->



this code is correct in postbit_legacy ???

--------------- Added 1249261199 at 1249261199 ---------------

the problems when i rename the photo with the program name it's not work must be renamed to 1 or 2 for the option number and the image alt appear with the option number also

Lynne
08-03-2009, 02:51 AM
The code you posted could be used. If you used a multi-selection checkbox though, you probably want to follow post 2 in this thread - http://www.vbulletin.com/forum/showthread.php?t=108785 Where it says CODE TO DISPLAY, just put the html for the image you want to show.

cgway.net
08-03-2009, 04:36 AM
really thanks to you

the code work without any problem