Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-12-2008, 11:29 PM
glorify's Avatar
New Pligger
Pligg Version: 9.9
Pligg Template: Custom
 
Join Date: Jul 2008
Location: Hebron, IN
Posts: 20
Thanks: 1
Thanked 10 Times in 1 Post
Question Profile Fields via Drop Down

I want to use a drop down for values instead of a text box for input of a user profile field. Anybody know how?

I can get a drop down box, but it won't save the value.
Reply With Quote
  #2 (permalink)  
Old 07-14-2008, 09:20 AM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Thanks: 20
Thanked 102 Times in 65 Posts
Profile extra fields

Quote:
Originally Posted by glorify View Post
I want to use a drop down for values instead of a text box for input of a user profile field. Anybody know how?

I can get a drop down box, but it won't save the value.
You need to edit few files in order to be able to save the values of the added fields.

Check this thread, it has all what you need to do so.

http://forums.pligg.com/pligg-module...need-help.html
Reply With Quote
  #3 (permalink)  
Old 07-14-2008, 11:29 AM
glorify's Avatar
New Pligger
Pligg Version: 9.9
Pligg Template: Custom
 
Join Date: Jul 2008
Location: Hebron, IN
Posts: 20
Thanks: 1
Thanked 10 Times in 1 Post
Thanks for the reply redwine. I am experimenting right now, just trying to change MSN's value to a drop down. I looked at the other thread and it will be helpful when I do decide to add this instead of trying to modify prebuilt field with a drop down. This is what I have:

Code:
<label for="name" accesskey="1">{#PLIGG_Visual_User_Profile_MSN#}: </label>          
<select name="msn" id="msn">
				<option value="0" ></option>
				<option value="Alworth" >Alworth</option>
                                <option value="AlworthHome" >AlworthHome</option>
</select>		

		<input type="hidden" name="msn" value="{$user_msn}" />
It shows the drop down box in the profile field, just no savey. I am guessing somehow the values are wrong.

Once I get the drop down working, I'll be able to release a nice little hack for your profiles to the community. I already have youtube working in profiles. This will be different.

Last edited by glorify; 07-14-2008 at 11:36 AM..
Reply With Quote
  #4 (permalink)  
Old 07-16-2008, 11:40 AM
glorify's Avatar
New Pligger
Pligg Version: 9.9
Pligg Template: Custom
 
Join Date: Jul 2008
Location: Hebron, IN
Posts: 20
Thanks: 1
Thanked 10 Times in 1 Post
Any other ideas on this? I will be able to put together a mood hack for profiles as long as I can get the drop downs to save.
Reply With Quote
  #5 (permalink)  
Old 07-21-2008, 09:40 PM
catchpen's Avatar
Pligg Donor
 
Join Date: Jan 2008
Posts: 210
Thanks: 30
Thanked 18 Times in 13 Posts
Quote:
Originally Posted by glorify View Post
Thanks for the reply redwine. I am experimenting right now, just trying to change MSN's value to a drop down. I looked at the other thread and it will be helpful when I do decide to add this instead of trying to modify prebuilt field with a drop down. This is what I have:

Code:
<label for="name" accesskey="1">{#PLIGG_Visual_User_Profile_MSN#}: </label>          
<select name="msn" id="msn">
				<option value="0" ></option>
				<option value="Alworth" >Alworth</option>
                                <option value="AlworthHome" >AlworthHome</option>
</select>		

		<input type="hidden" name="msn" value="{$user_msn}" />
It shows the drop down box in the profile field, just no savey. I am guessing somehow the values are wrong.

Once I get the drop down working, I'll be able to release a nice little hack for your profiles to the community. I already have youtube working in profiles. This will be different.
I just started looking into the same. If members have the ability to place a xmlns link (xml playlist) via extra fields, you can embed some type of flash player on the profile page to play or view what what ever is in the xml file, a quick way to personalize and spruce up the user profile page.
Reply With Quote
  #6 (permalink)  
Old 07-22-2008, 05:56 AM
Constant Pligger
 
Join Date: Feb 2007
Posts: 183
Thanks: 13
Thanked 24 Times in 19 Posts
Yep and with little modification you can let users add widgets like Facebook widget to their profile. Or feed adress that shows 5 latest entries from their blog etc.

Just use one of the fields like AIM to hold the widgets id and embed the other part of the widget's code to the user_center.tpl.
Reply With Quote
  #7 (permalink)  
Old 07-29-2008, 04:33 PM
catchpen's Avatar
Pligg Donor
 
Join Date: Jan 2008
Posts: 210
Thanks: 30
Thanked 18 Times in 13 Posts
Quote:
Originally Posted by Andtony View Post
Yep and with little modification you can let users add widgets like Facebook widget to their profile. Or feed adress that shows 5 latest entries from their blog etc.

Just use one of the fields like AIM to hold the widgets id and embed the other part of the widget's code to the user_center.tpl.
Be careful changing anything around user/profile files. I would check and try to modify your profile and save changes every now and then to see if you get a token error.
Reply With Quote
  #8 (permalink)  
Old 07-29-2008, 05:14 PM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Thanks: 20
Thanked 102 Times in 65 Posts
Option select values

Quote:
Originally Posted by glorify View Post
Thanks for the reply redwine. I am experimenting right now, just trying to change MSN's value to a drop down. I looked at the other thread and it will be helpful when I do decide to add this instead of trying to modify prebuilt field with a drop down. This is what I have:

Code:
<label for="name" accesskey="1">{#PLIGG_Visual_User_Profile_MSN#}: </label>          
<select name="msn" id="msn">
                <option value="0" ></option>
                <option value="Alworth" >Alworth</option>
                                <option value="AlworthHome" >AlworthHome</option>
</select>        
 
        <input type="hidden" name="msn" value="{$user_msn}" />
It shows the drop down box in the profile field, just no savey. I am guessing somehow the values are wrong.

Once I get the drop down working, I'll be able to release a nice little hack for your profiles to the community. I already have youtube working in profiles. This will be different.
I am not sure I understand what you want. However, I am going to guess. I think that the $user_msn has to be "Alworth" or "AlworthHome". and you want to place its value in the option select.
If this is the case, in order for the option select to have the appropriate value selected based on the $user_msn value, this is how the code must be (The for="name" was wrong):
Code:
 
<label for="msn" accesskey="1">{#PLIGG_Visual_User_Profile_MSN#}: </label> 
<select name="msn" id="msn">
<option value="0" ></option>
<option value="Alworth"{if $user_msn eq "Alworth"} selected="selected"{/if}>Alworth</option>
<option value="Alworth"{if $user_msn eq "AlworthHome"} selected="selected"{/if}>AlworthHome</option>
</select>
Reply With Quote
Reply

Thread Tools
Display Modes
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Modification Tutorials 3 10-18-2008 10:28 AM
Custom Profile Fields RyanH General Help 4 07-28-2007 05:09 PM
How to link Extra fields in Profile to pull information from user table in database pliggnewbie Modification Tutorials 0 04-12-2007 01:59 AM
Custom user profile fields revolver Suggestions 2 12-05-2006 09:52 PM
How can I add new fields to user profile gragland General Help 0 07-18-2006 12:03 AM


Search Engine Friendly URLs by vBSEO 3.2.0