|
|
Justin |
| January 12, 2007, 11:18am |
|
|
Posts: 15,007
Gender:  Male
Posts Per Day: 6.77
Reputation: 93.38%
Reputation Score: +296 / -21
Time Online: 36 days 17 hours 26 minutes
Location: Tallassee, AL
Age: 21
|
|
|
|
|
|
whiskymac |
| January 12, 2007, 11:48am |
|
|
Posts: 302
Gender:  Male
Posts Per Day: 0.30
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!
 |
This post contains attachments; to download them you must login. |
|
|
| |
|
|
|
|
|
Justin |
|
|
Posts: 15,007
Gender:  Male
Posts Per Day: 6.77
Reputation: 93.38%
Reputation Score: +296 / -21
Time Online: 36 days 17 hours 26 minutes
Location: Tallassee, AL
Age: 21
|
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). |
| I do installs for $25 and upgrades for $20.Technical support is always free. Donate to E-Blah! My Websites: Revolution Reality (My Blog) | MinistryTalk.com | Portfolio"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV  |
|
|
|
|
|
whiskymac |
|
|
Posts: 302
Gender:  Male
Posts Per Day: 0.30
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 |
| |
|
|
|
|
|
Justin |
|
|
Posts: 15,007
Gender:  Male
Posts Per Day: 6.77
Reputation: 93.38%
Reputation Score: +296 / -21
Time Online: 36 days 17 hours 26 minutes
Location: Tallassee, AL
Age: 21
|
|
|
|
|
|
whiskymac |
|
|
Posts: 302
Gender:  Male
Posts Per Day: 0.30
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... |
| |
|
|
|
|
|
whiskymac |
|
|
Posts: 302
Gender:  Male
Posts Per Day: 0.30
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 |
| |
|
|
|
|
|
Justin |
|
|
Posts: 15,007
Gender:  Male
Posts Per Day: 6.77
Reputation: 93.38%
Reputation Score: +296 / -21
Time Online: 36 days 17 hours 26 minutes
Location: Tallassee, AL
Age: 21
|
|
|
|
|
|
whiskymac |
|
|
Posts: 302
Gender:  Male
Posts Per Day: 0.30
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! |
| |
|
|
|
|
|
whiskymac |
|
|
Posts: 302
Gender:  Male
Posts Per Day: 0.30
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...?  |
| |
|
|
|
|
|
Justin |
|
|
Posts: 15,007
Gender:  Male
Posts Per Day: 6.77
Reputation: 93.38%
Reputation Score: +296 / -21
Time Online: 36 days 17 hours 26 minutes
Location: Tallassee, AL
Age: 21
|
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. |
| I do installs for $25 and upgrades for $20.Technical support is always free. Donate to E-Blah! My Websites: Revolution Reality (My Blog) | MinistryTalk.com | Portfolio"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV  |
|
|
|
|
|
whiskymac |
|
|
Posts: 302
Gender:  Male
Posts Per Day: 0.30
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
|
ah cool, cheers for that  |
| |
|
|
|
|
|
maverick |
| January 30, 2007, 10:30am |
|
|
Posts: 100
Gender:  Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +3 / -0
Time Online: 254 days 20 hours 31 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. |
| |
|
|
|
|
|
Justin |
|
|
Posts: 15,007
Gender:  Male
Posts Per Day: 6.77
Reputation: 93.38%
Reputation Score: +296 / -21
Time Online: 36 days 17 hours 26 minutes
Location: Tallassee, AL
Age: 21
|
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 ... |
| I do installs for $25 and upgrades for $20.Technical support is always free. Donate to E-Blah! My Websites: Revolution Reality (My Blog) | MinistryTalk.com | Portfolio"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV  |
|
|
|
|
|
whiskymac |
|
|
Posts: 302
Gender:  Male
Posts Per Day: 0.30
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 |
| |
|
|
|
|
|
|