Print Topic - Archive
E-Blah Community / Forum Updates / New Member Profile Variables
Posted by: Justin, January 9, 2007, 8:12pm
Add it or not? Note: this will work in tonights nightly, bit there no "Admin CP" yet. I'm still debating whether to really add it ... I dread doing the Admin CP. :(
Posted by: whiskymac, January 10, 2007, 12:44pm; Reply: 1
being a bit dumb, what would this be used for?
Extra customisation is usually always welcome though! thanks
Posted by: Justin, January 10, 2007, 4:00pm; Reply: 2
People wanting to add more stuff ...
Posted by: whiskymac, January 10, 2007, 5:38pm; Reply: 3
Just extra information fields? Like the extra fields mod?
Thats cool :)
Posted by: Justin, January 10, 2007, 11:54pm; Reply: 4
Posted by: whiskymac, January 11, 2007, 4:37am; Reply: 5
In that case definitly add it :)
The mod is a cool feature on my site, so people can say what car they have etc, is a pain when i cant update it for a new version though
Posted by: Jasonf, January 11, 2007, 11:17am; Reply: 6
I want this for the same reason as above.
Posted by: whiskymac, January 11, 2007, 1:50pm; Reply: 7
Can I be awkward and also ask that it has the same options as the mod version, ie. options for showing up in profile on message display and at the end of the members list ;)
Posted by: Justin, January 11, 2007, 3:09pm; Reply: 8
Some will, but I know I'm probably NOT adding it to the members list.
Posted by: whiskymac, January 11, 2007, 3:33pm; Reply: 9
ok no problem, cant wait for this feature, great work :D
Posted by: Justin, January 11, 2007, 4:37pm; Reply: 10
Yeah. I started on the Admin CP for it. I normally like to get things done the day I start, but this one's going to be spanned a little. I don't really like the way it looks so far, so after tonights nightly, everyone can try it and give advice on how to make it look better and easier to manage.
Upload these files to the Prefs directory in ASCII ...
Posted by: whiskymac, January 11, 2007, 5:47pm; Reply: 11
Posted by: Jasonf, January 12, 2007, 1:43am; Reply: 12
Yeah. I started on the Admin CP for it. I normally like to get things done the day I start, but this one's going to be spanned a little. I don't really like the way it looks so far, so after tonights nightly, everyone can try it and give advice on how to make it look better and easier to manage.
Upload these files to the Prefs directory in ASCII ...
What does adding this do?
Posted by: Justin, January 12, 2007, 1:56am; Reply: 13
Add the things I showed in the screen shot. It's so you can see the Admin CP view, since you can't actual save anything on the Admin page yet. :P
Posted by: whiskymac, January 12, 2007, 8:10am; Reply: 14
I've been playing about with the way it looks, think it now looks better on my site but not sure how it would look in other themes.
I played about with the "class" settings changing the win numbers to try and get it to match the layout of the normal "forum settings" section. Also removed the gaps between section ie. where you could see the background between the final section option and the save window
Posted by: Justin, January 12, 2007, 11:18am; Reply: 15
Posted by: whiskymac, January 12, 2007, 11:48am; Reply: 16
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!
Posted by: Justin, January 12, 2007, 1:15pm; Reply: 17
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).
Posted by: whiskymac, January 12, 2007, 1:25pm; Reply: 18
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
Posted by: Justin, January 12, 2007, 4:03pm; Reply: 19
Oh, did you go and add the new winX values from the main template to the admin one?
Posted by: whiskymac, January 12, 2007, 6:37pm; Reply: 20
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...
Posted by: whiskymac, January 14, 2007, 1:19pm; Reply: 21
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
Posted by: Justin, January 14, 2007, 1:20pm; Reply: 22
Nope, I've not touched it since you last used it. :)
Posted by: whiskymac, January 14, 2007, 3:23pm; Reply: 23
random, just my choice of colours look odd!
Posted by: whiskymac, January 29, 2007, 9:39am; Reply: 24
Is this still being worked on or are you leaving it out of the next version...? :)
Posted by: Justin, January 29, 2007, 3:35pm; Reply: 25
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 :P), 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.
Posted by: whiskymac, January 30, 2007, 5:35am; Reply: 26
ah cool, cheers for that 8)
Posted by: maverick, January 30, 2007, 10:30am; Reply: 27
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.
Posted by: Justin, February 1, 2007, 9:55pm; Reply: 28
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 ...
Posted by: whiskymac, February 2, 2007, 8:13am; Reply: 29
Fantastic! will be doing that ASAP!
Does it automatically create the files for the prefs file now then? I have deleted the others anyway
Posted by: Justin, February 2, 2007, 11:27am; Reply: 30
Posted by: whiskymac, February 2, 2007, 6:46pm; Reply: 31
This is awesome, really love the way it works :)
Posted by: Justin, February 2, 2007, 6:51pm; Reply: 32
So it's working great? Try removing them too. :P
Also, does it look good or is it overtly confusing?
Posted by: whiskymac, February 2, 2007, 7:43pm; Reply: 33
Took me a moment to figure it all out, but very easy to use - was confused by not having a delete button, but all removed fine when i just deleted the text and hit save :)
Got a few questions/suggestions! will do some screenshots tomorrow :)
Posted by: Justin, February 2, 2007, 7:49pm; Reply: 34
Ok, great. :) Check out what I whipped up for the nightlies site. ;D
Posted by: whiskymac, February 3, 2007, 6:59am; Reply: 35
Have just uploaded the latest nightly, what have i missed, i cant see anything different! :o
As the screen shot shows, i have two "groupings" under one section (car 1 and car 2) but they are all mixed up and not aligned together in the admin Center. IS there a way so all car 1 options will sit together - as they do in the member Center?
Also could there be arrows like in the boards admin where i could move options up and down to rearrange the order they display in the member Center?
Posted by: Justin, February 3, 2007, 11:57am; Reply: 36
Yeah, the up/down stuff is what I'm not wanting to do. I might do the order thing with those too, it's easier for me.
Posted by: whiskymac, February 3, 2007, 4:49pm; Reply: 37
Yeah, the up/down stuff is what I'm not wanting to do. I might do the order thing with those too, it's easier for me.
figured the up/down stuff may be time consuming to sort out! would just be nice to have everything grouped together, as long as the order could be changed by swapping category names or something - although the order in the admin area doesnt seem to reflect that of the member Center!
Posted by: mealybar, February 8, 2007, 3:19am; Reply: 38
Is this extra info meant to show up on a members profile? (It doesnt on mine) Otherwise, what would it be used for?
Posted by: whiskymac, February 8, 2007, 5:33am; Reply: 39
It will, but it doesnt yet ;)
Posted by: Justin, February 8, 2007, 1:38pm; Reply: 40
Yeah, it will, but I've been doing other things lately and not been working on that as much. :P
Posted by: WhiteKnight, February 12, 2007, 10:22am; Reply: 41
Sounds like a good project.
This would be good for me, i.e What Version PSP? What Firmware? etc
Keep us updated.
Cheers
Posted by: stornowaychat, September 11, 2007, 2:00am; Reply: 42
is this running in 10.2.5?
Im probably being daft but i cant seem to find it
Posted by: Justin, September 11, 2007, 8:11pm; Reply: 43
No. The feature is currently not available and there's not ETA for it.
Lately all that's been done to E-Blah is bug fixes.
Posted by: stornowaychat, September 12, 2007, 9:01am; Reply: 44
ok thanks, would be a good feature to add
Posted by: Nilboglin, October 29, 2007, 1:25pm; Reply: 45
Ok very cool to do.
I have just heard form Opfer he does not plan to update the additional fields mod anymore.
I would like to add it to my 10.3 forum. So this will help me out too.
I asked Martin if he would update it, it is nice how in the original mod you can choose where the add info shows up.
Posted by: Nilboglin, October 30, 2007, 11:51am; Reply: 46
Warlock has updated the original mod from Opfer.
Just thought to say...even if I am like centuries behind everyone.
Posted by: Martin, October 30, 2007, 12:11pm; Reply: 47
This should work with 10.3 but if it doesn't then let me know and I will fix it.
Posted by: Nilboglin, October 30, 2007, 12:56pm; Reply: 48
Yep the 10.2.5 mod works fine.
Up and running.
Tanx
Posted by: stornowaychat, November 3, 2007, 3:51am; Reply: 49
can someone give me a link to this mod, just want to make sure i get the right one
Print page generated: September 7, 2010, 7:43pm