Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Informational    Forum Updates  ›  New Member Profile Variables
Users Browsing Forum
No Members and 2 Guests

New Member Profile Variables  This thread currently has 6,833 views. Print
4 Pages « 1 2 3 4 » Recommend Thread
Justin
January 12, 2007, 11:18am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.44
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
Screenshot?  


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 15 - 49
whiskymac
January 12, 2007, 11:48am Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
ok, heres what i changed with the code, not perfect with the borders, think theres an extra <tr> or something there

Code
sub ExtendProfile  {
	$title = "Extra Profile Options";
	headerA();
	fopen(FILE,"$prefs/ProfileSections.txt");
	@profilesections = <FILE>;
	fclose(FILE);
	chomp @profilesections;

	fopen(FILE,"$prefs/ProfileSubsections.txt");
	@sections = <FILE>;
	fclose(FILE);
	chomp @sections;
	foreach(@sections) {
		($id) = split(/\|/,$_);
		$sections{$id} = $_;
	}

	fopen(FILE,"$prefs/ProfileVariables.txt");
	@sections = <FILE>;
	fclose(FILE);
	chomp @sections;
	foreach(@sections) {
		($t,$id) = split(/\|/,$_);
		$option{$id} = $_;
	}

	foreach(@profilesections) {
		($sectionname,$sortedids) = split(/\|/,$_);
		$ebout .= <<"EOT";
<table cellpadding="5" cellspacing="1" class="border" width="98%">
 <tr>
  <td class="titlebg"><input type="input" name="top_$sectionname" value="$sectionname" size="30"></td>
 </tr>
EOT

		foreach $sidss (split(/\//,$sortedids)) {
			($t,$subsectionname,$options,$image) = split(/\|/,$sections{$sidss});
			$ebout .= <<"EOT";
 <tr>
  <td class="win3"><input type="input" name="mid_$subsectionname" value="$subsectionname" size="30"></td>
 </tr><tr>
  <td class="win" style="padding: 0px">
   <table cellpadding="5" cellspacing="0" width="100%">
    <tr class="win3">
     <td class="smalltext"><strong>Sub Section</strong></td>
	 <td class="smalltext"><strong>Variable ID</strong></td>
	 <td class="smalltext"><strong>Variable Name</strong></td>
	 <td class="smalltext"><strong>Option Type</strong></td>
	 <td class="smalltext"><strong>Allowed Values</strong></td>
	</tr>
EOT
			@options = ();
			foreach $opts (split(/\//,$options)) { push(@options,$option{$opts}); }
			@sections = sort {$a cmp $b} @sections;

			foreach $topts (@options) {
				($subsubsect,$optionvar,$option,$type,$values) = split(/\|/,$topts);
					if($subsubsect ne $oldvalue) { $oldvalue = $subsubsect; $ebout .= qq~<tr><td class="win4" colspan="5">$subsubsect</td></tr>~; }
					%select = ();
					$select{$type} = ' selected="selected"';
					$ebout .= <<"EOT";
 <tr>
  <td class="win2"><input type="input" name="low_$optionvar" value="$subsubsect" /></td>
  <td class="win2">$optionvar</td>
  <td class="win2"><input type="input" name="option_$optionvar" value="$option" /></td>
  <td class="win2"><select name="type_$optionvar"><option value="1"$select{1}>Checkbox</option><option value="2"$select{2}>Text Input</option><option value="3"$select{3}>Select</option><option value="4"$select{4}>Textarea</option></select></td>
  <td class="win2"><input type="type" name="input" value="$values" size="50" /></td>
 </tr>
EOT
			}
			$ebout .= qq~</table></td></tr>~;
		}
		$ebout .= <<"EOT";
EOT
	}

	$ebout .= <<"EOT";
 <tr>
  <td class="center win"><input type="submit" value="Save" /></td>
 </tr>
</table>
EOT


heres the screen shot, not sure how it looks with standard templates though as I set it up so it looked better with mine!







A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 16 - 49
Justin
January 12, 2007, 1:15pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.44
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
Hmm.  That's not bad.  However, remember that complete newbies may use this.  I want it to be simple to know how to use and understand what everything means.  That's the big reason why I split the tables up, because when it's one big bunch it kind of looks like it's a big mess and could overwhelm new users.

Also, those "Allowed" values only work for the select type (it gives a drop down of the values).  That may be unclear too.  I need some sort of help, and was thinking about making a thread here about it, but I'm not sure still.  I could scrap the entire look now and go for something more like a drop down and expanded style (like Boards and Categories setup looks like).


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 17 - 49
whiskymac
January 12, 2007, 1:25pm Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
Boards and categories does look neat, but would it not be a bit over complicated for the few options you would have on each profile section?

Only reason i stopped the table being split up was to try and make it look more like the main settings, I know what you mean about all the section blending together though and looking confusing.  Tried to avoid that with the colour settings but didnt quite work




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 18 - 49
Justin
January 12, 2007, 4:03pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.44
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
Oh, did you go and add the new winX values from the main template to the admin one?


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 19 - 49
whiskymac
January 12, 2007, 6:37pm Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
I think i did add win4 and win5 but if i used them they didnt work anyway so i just used the standard ones, i think...




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 20 - 49
whiskymac
January 14, 2007, 1:19pm Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
Have you updated the colours and look slightly for the newest nightly Justin?

Just upgraded and I also stuck the defult admintemplate.css that came with the nightly onto my theme (colours dont matter as users dont see it!) and the layout looks much better - although the box with the save button would look better if it was the light grey colour

Just my opinion




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 21 - 49
Justin
January 14, 2007, 1:20pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.44
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
Nope, I've not touched it since you last used it.  


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 22 - 49
whiskymac
January 14, 2007, 3:23pm Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
random, just my choice of colours look odd!




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 23 - 49
whiskymac
January 29, 2007, 9:39am Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
Is this still being worked on or are you leaving it out of the next version...?




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 24 - 49
Justin
January 29, 2007, 3:35pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.44
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
Still being worked on.  I've not touched the code hardly any in the past few weeks. There's been the new site overhaul, which has taken a LOT of time, a little less time on the computer (trying ), and then I also did a lot of work on the converters.  There's just no date set for when 10.2.5 will be released, but it shouldn't be more than 2 to 3 months, so it'll be finished sometime before then.  You can remove that file from your /Prefs directory to get rid of the unsightly stuff in the Member Center.


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 25 - 49
whiskymac
January 30, 2007, 5:35am Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
ah cool, cheers for that




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 26 - 49
maverick
January 30, 2007, 10:30am Report to Moderator Report to Moderator

E-Blah Member
Posts: 109
Gender: Male
Posts Per Day: 0.02
Reputation: 100.00%
Reputation Score: +3 / -0
Time Online: 256 days 2 hours 11 minutes
Location: Wales, UK
I do hope you decide to include it in the next version, it will be a lot easier to validate members into the relative member groups. I have a separate registration form at the moment. cheers.


Logged Offline
Site Site Private Message Private message Reply: 27 - 49
Justin
February 1, 2007, 9:55pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,252
Gender: Male
Posts Per Day: 2.44
Reputation: 93.31%
Reputation Score: +307 / -22
Time Online: 39 days 5 hours 58 minutes
Location: Tallassee, AL
Age: 32
Tonights nightly will have a working version.  Delete those files in the Prefs directory before testing, or else it may not work right.  Everything should work on the front end and backend.  I've not added the options to show it on the Message Display and all yet though.  I want to see how it goes so far ...


My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 28 - 49
whiskymac
February 2, 2007, 8:13am Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
Fantastic! will be doing that ASAP!

Does it automatically create the files for the prefs file now then? I have deleted the others anyway




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 29 - 49
4 Pages « 1 2 3 4 » Recommend Thread
Print

E-Blah Community    Informational    Forum Updates  ›  New Member Profile Variables